html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    overflow-x: hidden;
    width: 100%;
}

body {
    width: 100vw;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* SEO标题样式 - 隐藏但保持SEO价值 */
.main-title {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.calculator-types-title {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.results-title {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.optional-settings-title {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.summary-title {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.items-title {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
    position: relative;
}

/* 悬浮广告位 */
.ad-left, .ad-right {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: 300px;
    z-index: 1000;
}

.ad-left {
    left: 20px;
}

.ad-right {
    right: 20px;
}

.ad-placeholder {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.ad-placeholder:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.ad-placeholder i {
    font-size: 24px;
    margin-bottom: 8px;
}

/* 头部样式 */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding-left: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* 标题与副标题横向排列 */
.title-wrap {
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 400;
    color: #2d3748;
    display: flex;
    align-items: center;
    padding:8px;
}

.logo i {
    color: #479EF2;
    font-size: 2.2rem;
}

/* Logo parts styling */
.logo-concrete {
    color: #2d3748; /* Dark gray - represents concrete material */
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
}

.logo-prokit {
    color: #479EF2; /* Blue - represents professional/pro tools */
    font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.6rem;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 2px rgba(71, 158, 242, 0.1);
    transition: all 0.3s ease;
}

.logo-domain {
    color: #718096; /* Light gray - represents web domain */
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 0.02em;
    opacity: 0.8;
    transition: all 0.3s ease;
}

/* Logo hover effects */
.logo:hover .logo-concrete {
    color: #1a202c;
    transform: translateY(-1px);
}

.logo:hover .logo-prokit {
    color: #3182ce;
    text-shadow: 0 2px 4px rgba(71, 158, 242, 0.2);
    transform: translateY(-1px);
}

.logo:hover .logo-domain {
    color: #4a5568;
    opacity: 1;
    transform: translateY(-1px);
}

.subtitle {
    color: #718096;
    font-size: 1rem;
    margin-top: 0;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.btn-secondary {
    background: #f7fafc;
    color: #4a5568;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 300;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #edf2f7;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* 主内容区域 */
.main-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    margin-bottom: 40px;
}
.blog-main-content{
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

/* 形状选择器 - 在计算器内部 */
.shape-selector-top {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 15px;
    margin-bottom: 25px;
}

.object-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: stretch;
}

.object-btn {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    padding: 8px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
    min-width: 140px;
    max-width: 140px;
    height: 75px;
    justify-content: center;
    flex: 1;
}

.object-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}
.object-list h3{
    display: none;
}

.object-btn:hover::before {
    left: 100%;
}

.object-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.object-btn.active {
    border-color: #479EF2;
    box-shadow: 0 8px 25px rgba(71, 158, 242, 0.3);
}

.object-btn i {
    font-size: 1.4rem;
    margin-bottom: 4px;
    color: #479EF2;
}

/* SVG图标样式 */
.object-btn img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

/* 防止图片与SVG在小屏下撑破布局 */
img, svg {
    max-width: 100%;
    height: auto;
}

.object-btn:hover img {
    transform: scale(1.05);
}

.object-btn span {
    font-size: 0.8rem;
    line-height: 1.1;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}


.object-btn small {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* 计算器主体 */
.calculator {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    min-height: 600px;
}

.calc-section {
    display: none;
    min-height: 330px;
}

.calc-section h2 {
    display: none;
}

.calc-section h3 {
    display: none;
}


.calc-section.active {
    display: block;
}

.calc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 30px;
}

.calc-content {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.calc-header h2 {
    color: #2d3748;
    font-size: 1.8rem;
    font-weight: 400;
}

.calc-header h3 {
    display: none;
}

.calc-header span {
    font-size: 1.8rem;
}

/* 图形显示区域 */
.shape-diagram {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    height: 100%;
}

.diagram-3d {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.diagram-3d img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 输入区域 */
.input-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
    flex: 1;
    min-width: 0;
    justify-content: flex-start;
}

.input-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    position: relative;
}

.input-group label {
    font-weight: 400;
    color: #4a5568;
    font-size: 0.95rem;
    min-width: 120px;
    max-width: 120px;
    text-align: right;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.input-with-unit {
    display: flex;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.input-with-unit:focus-within {
    border-color: #479EF2;
}

.input-with-unit input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 1rem;
    outline: none;
    background: #f8fafc;
    min-width: 0;
}

.input-with-unit input:focus {
    background: white;
}

.unit-select {
    border: none;
    background: #edf2f7;
    padding: 12px 16px;
    font-size: 0.9rem;
    color: #4a5568;
    cursor: pointer;
    flex: 0 0 120px;
    min-width: 120px;
    outline: none;
}

.unit-select:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.input-group input[type="number"] {
    padding: 12px 16px;
    font-size: 1rem;
    background: #fff;
}

.input-group input[type="number"]:focus {
    border-color: #479EF2;
    background: white;
    outline: none;
}

/* Quantity和Stairs Count输入框样式 - 与input-with-unit保持一致 */
.input-group .quantity-input {
    border: 1px solid #e2e8f0;
    padding: 12px 16px;
    font-size: 1rem;
    background: #f8fafc;
    width: 100%;
    box-sizing: border-box;
}

.input-group .quantity-input:focus {
    border-color: #479EF2;
    background: white;
    outline: none;
}

/* 可选设置区域 */
.optional-settings {
    margin-top: 15px;
    margin-bottom: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.optional-settings:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.optional-settings.expanded {
    padding: 8px 0px;
}

.optional-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.optional-settings-header:hover {
    background: rgba(71, 158, 242, 0.05);
}

.optional-settings-summary {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #4a5568;
}

.optional-settings-summary span {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.optional-settings-summary span:hover {
    background-color: rgba(71, 158, 242, 0.1);
}

.optional-settings-icon {
    color: #479EF2;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.optional-settings.expanded .optional-settings-icon {
    transform: rotate(180deg);
}

.optional-settings-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.optional-settings.expanded .optional-settings-content {
    max-height: 200px;
    margin-top: 5px;
}

.optional-settings-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    padding: 0px 8px 0px 22px;
}

.optional-settings-field {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

.optional-settings-field label {
    font-size: 0.9rem;
    font-weight: 400;
    color: #4a5568;
    margin: 0;
    min-width: 40px;
    flex-shrink: 0;
}

.optional-settings-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.optional-settings .input-group {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

.optional-settings .input-group label {
    min-width: auto;
    text-align: left;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.optional-settings .input-group input[type="number"] {
    width: 100%;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.optional-settings-field .input-with-unit {
    display: flex;
    border: 1px solid #e2e8f0;
}

.optional-settings-field .input-with-unit input {
    flex: 1;
    border: none;
    padding: 8px 12px;
    font-size: 0.9rem;
    background: white;
    min-width: 0;
    max-width: 120px;
}

.optional-settings-field .input-with-unit input:focus {
    background: white;
    outline: none;
}

.optional-settings-field .unit-select {
    border: none;
    background: #edf2f7;
    padding: 8px 12px;
    font-size: 0.8rem;
    color: #4a5568;
    cursor: pointer;
    min-width: 80px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.optional-settings .input-with-unit {
    display: flex;
    overflow: hidden;
    border:none;
}

.optional-settings .input-with-unit input {
    flex: 1;
    border: none;
    padding: 8px 12px;
    font-size: 0.9rem;
    background: white;
}

.optional-settings .input-with-unit input:focus {
    background: white;
    outline: none;
}

.optional-settings .unit-select {
    border: none;
    background: #edf2f7;
    padding: 8px 12px;
    font-size: 0.8rem;
    color: #4a5568;
    cursor: pointer;
    min-width: 60px;
    border: 1px solid #e2e8f0;
}

.btn-reset {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    border: none;
    padding: 10px;
    font-size: 0.9rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
}

.btn-reset:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.btn-reset:active {
    transform: translateY(0);
}

.btn-apply {
    background: linear-gradient(135deg, #479EF2, #3b82f6);
    color: white;
    border: none;
    padding: 10px;
    font-size: 0.9rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
}

.btn-apply:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(71, 158, 242, 0.3);
}

.btn-apply:active {
    transform: translateY(0);
}

.help-tooltip {
    position: absolute;
    top: 0;
    right: 0;
    color: #a0aec0;
    cursor: help;
}

.tooltip-content {
    position: absolute;
    top: 30px;
    right: 0;
    background: #2d3748;
    color: white;
    padding: 12px 16px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.help-tooltip:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tooltip-content::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 12px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #2d3748;
}

/* 结果区域 */
.results-section {
    margin-bottom: 30px;
}

.results-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.result-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    flex: 1;
    min-width: 150px;
    padding: 15px;
    background: white;
    border: 1px solid #e2e8f0;
    
}

.result-label {
    font-weight: 400;
    color: #4a5568;
    font-size: 1rem;
    margin-bottom: 8px;
}

.result-values {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    padding-left: 20px;
}

.result-value {
    color: #2d3748;
    font-weight: 300;
    font-size: 0.9rem;
}

.weight-info, .price-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #4a5568;
}

.weight-info input, .price-info input {
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.8rem;
    width: 80px;
    text-align: center;
    background: white;
    transition: border-color 0.3s ease;
}

.weight-info input:focus, .price-info input:focus {
    border-color: #479EF2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(71, 158, 242, 0.1);
}





.btn-primary {
    background: linear-gradient(135deg, #479EF2, #3b82f6);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
    margin-top: 20px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(71, 158, 242, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* 计算详情 */
.calculation-details {
    background: #f8fafc;
    padding: 25px;
    border: 1px solid #e2e8f0;
}

.calculation-details h4 {
    color: #4a5568;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.formula {
    background: white;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    font-family: 'Courier New', monospace;
}

.current-calculation {
    background: white;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    font-family: 'Courier New', monospace;
    color: #4a5568;
}

.density-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 15px;
    border: 1px solid #e2e8f0;
}

.density-info label {
    font-weight: 400;
    color: #4a5568;
}

.density-info input {
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    width: 100px;
    text-align: center;
}

.density-info span {
    color: #718096;
    font-size: 0.9rem;
}

/* 右侧总计面板 */
.total-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 18px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.total-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.total-header h2{
    font-size: 1.2rem;
}

.total-header h3 {
    color: #2d3748;
    font-size: 1.2rem;
    font-weight: 400;
}

.total-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #4a5568;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateY(-2px);
}

.total-summary {
    background: #f8fafc;
    padding: 14px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.summary-item:last-child {
    margin-bottom: 0;
}

.summary-label {
    color: #4a5568;
    font-weight: 300;
    font-size: 0.85rem;
}

.summary-value {
    color: #2d3748;
    font-weight: 400;
    font-size: 0.8rem;
}

/* Bags grid under Price */
.bags-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
}

.bag-cell {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 10px 8px;
    text-align: center;
}

.bag-value {
    font-size: 1rem;
    font-weight: 400;
    color: #2d3748;
}

.bag-label {
    margin-top: 4px;
    font-size: 0.8rem;
    color: #718096;
}

.items-list {
    max-height: 480px;
    overflow-y: auto;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #a0aec0;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #718096;
}

.empty-state small {
    font-size: 0.9rem;
}

.item-card {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.item-card:hover {
    border-color: #cbd5e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.item-title {
    font-weight: 400;
    color: #2d3748;
    font-size: 0.9rem;
}

.item-actions {
    display: flex;
    gap: 8px;
}

.item-actions .btn-icon {
    width: 32px;
    height: 32px;
    padding: 6px;
    font-size: 0.8rem;
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.82rem;
    color: #718096;
}

/* 新的紧凑布局 */
.item-dimensions {
    line-height: 1.2;
}

.item-volume {
    line-height: 1.2;
}

.item-weight {
    line-height: 1.2;
}

.item-stats {
    line-height: 1.2;
}

.item-detail {
    display: flex;
    justify-content: space-between;
}

.item-detail strong {
    color: #4a5568;
    font-weight: 400;
}

/* FAQ 部分 */
.faq-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.faq-section h2 {
    color: #2d3748;
    font-size: 2rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 40px;
}

.faq-list {
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #e2e8f0;
    margin-bottom: 16px;
}

.faq-item:hover {
    border-color: #cbd5e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-question {
    background: #f8fafc;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: #edf2f7;
}

.faq-question h4 {
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 400;
}

.faq-question i { display: none; }

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 16px 20px 20px 20px;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    color: #4a5568;
    line-height: 1.6;
}

/* 页脚 */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 40px;
    flex: 1;
}

.footer-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 300;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #479EF2;
}

.footer-copyright {
    color: #718096;
    font-size: 0.9rem;
}

.footer-description {
    color: #a0aec0;
    font-size: 0.75rem;
    font-weight: 300;
    margin-top: 8px;
    line-height: 1.4;
}

.qr-code {
    display: flex;
    align-items: center;
    gap: 15px;
}

.qr-code img {
    width: 120px;
    height: 120px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.qr-code img:hover {
    transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .ad-left, .ad-right {
        display: none;
    }
    
    .main-content {
        grid-template-columns: 1fr 280px;
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .total-panel {
        position: static;
    }
    
    .calc-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        display: none;
    }
    
    .calc-content {
        flex-direction: column;
        align-items: center;
    }
    .calc-section{
        min-height: 100px;
    }
    .shape-diagram {
        display: none;
    }
    
    .diagram-3d {
        width: 150px;
        height: 150px;
    }
    
    .optional-settings-header{
        padding: 4px 5px 4px 5px;
    }
    .optional-settings-summary{
        gap:10px;
    }
    .optional-settings-summary span{
        padding:4px 1px;
    }
    .object-list {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        gap: 8px;
        padding-top:5px;
    }
    
    .object-btn {
        flex-shrink: 0;
        min-width: 100px;
        max-width: 100px;
        height: 70px;
        flex: none;
    }
    /* 移动端下去除左右内边距，提升可见区域 */
    .object-btn {
        padding-left: 0;
        padding-right: 0;
    }

    .object-btn span {
        font-size: 0.65rem;
    }
    
    .object-btn i {
        font-size: 1.2rem;
    }
    
    .shape-selector-top {
        margin-bottom: 20px;
        padding: 0px;
    }
    .shape-selector-top{
        border:0px;
    }
    .faq-section{
        display: none;
    }
}

/* QR Code Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background-color: #f9fafb;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 400;
    color: #111827;
}

.close {
    color: #6b7280;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover {
    color: #374151;
}

.modal-body {
    padding: 24px;
    text-align: center;
}

#qr-code-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f9fafb;
    border-radius: 8px;
    border: 2px dashed #d1d5db;
    min-height: 200px;
    align-items: center;
}

#qr-code-container canvas {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.qr-info {
    margin-top: 20px;
}

.qr-info p {
    margin: 0 0 16px 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.qr-url {
    display: flex;
    gap: 8px;
    align-items: center;
}

#qr-url-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    background-color: #f9fafb;
    color: #374151;
}

.btn-copy {
    padding: 8px 16px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 300;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-copy:hover {
    background-color: #2563eb;
}

.btn-copy:active {
    background-color: #1d4ed8;
}

@media (max-width: 768px) {
    .header {
        display: none;
    }
    .ad-left, .ad-right {
        display: none !important;
    }
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .input-section {
        grid-template-columns: 1fr;
    }
    /* 缩小输入行元素，避免在移动端溢出 */
    .input-group { gap: 10px; }
    .input-group label {
        min-width: 90px;
        max-width: 90px;
        font-size: 0.9rem;
        text-align: left;
        line-height: 1.2;
    }
    .input-with-unit { border-width: 1px; }
    .input-with-unit input {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    .unit-select {
        flex: 0 0 90px;
        min-width: 90px;
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    
    .bag-types {
        flex-direction: column;
    }
    
    .results-grid {
        flex-direction: column;
        gap: 15px;
    }
    
    .result-item {
        min-width: auto;
    }
    
    .weight-info, .price-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .weight-info input, .price-info input {
        width: 100%;
        max-width: 120px;
    }

    .optional-settings-form {
        flex-direction: column;
        gap: 12px;
    }
    
    .optional-settings .input-group {
        flex: none;
    }
    
    .optional-settings-actions {
        align-self: stretch;
    }
    
    .btn-apply {
        width: 100%;
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .footer-left {
        align-items: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-right {
        order: -1;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px;
        margin: 10px 0;
        
    }
    
    .calculator {
        padding: 20px;
    }
    
    .total-panel {
        padding: 20px;
    }
    /* 超小屏进一步压缩输入区域 */
    .input-group label {
        min-width: 80px;
        max-width: 80px;
        font-size: 0.85rem;
    }
    .input-with-unit input {
        padding: 8px 10px;
        font-size: 0.9rem;
        width:80px;
    }
    .unit-select {
        flex: 0 0 80px;
        min-width: 80px;
        padding: 8px 10px;
        font-size: 0.75rem;
    }
    
    .faq-section {
        padding: 25px;
    }
    
    .footer {
        padding: 20px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calc-section.active {
    animation: fadeIn 0.3s ease;
}

/* 加载状态 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #479EF2;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Blog List Styles */
.blog-content {
    max-width: none !important;
    width: 100%;
    padding: 40px 0;
}

.blog-list {
    margin: 40px 0;
}

.blog-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.blog-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.blog-item-header {
    margin-bottom: 20px;
}

.blog-item h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    line-height: 1.3;
}

.blog-item h3 a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-item h3 a:hover {
    color: #479EF2;
}

.blog-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 15px;
}

.blog-date, .blog-category {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-category {
    background: #f7fafc;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.blog-excerpt {
    margin-bottom: 25px;
}

.blog-excerpt p {
    margin-bottom: 15px;
    color: #4a5568;
    line-height: 1.6;
}

.blog-actions {
    display: flex;
    justify-content: flex-start;
}

.btn-primary {
    background: #479EF2;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #3182ce;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(71, 158, 242, 0.3);
}

.blog-cta {
    background: #667eea ;
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin: 50px 0;
}

.blog-cta h3 {
    margin: 0 0 15px 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.blog-cta p {
    margin: 0 0 25px 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.blog-cta .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.blog-cta .btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive adjustments for blog list */
@media (max-width: 768px) {
    .blog-item {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .blog-item h3 {
        font-size: 1.3rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .blog-cta {
        padding: 30px 20px;
    }
    
    .blog-cta h3 {
        font-size: 1.5rem;
    }
}
