* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Language switch button */
.language-switch {
    margin-top: 20px;
}

.lang-switch-btn {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.lang-switch-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.main {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* 标签页样式 */
.tab-container {
    display: flex;
    margin-bottom: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 5px;
    gap: 5px;
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    font-size: 0.95rem;
}

.tab-btn.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tab-btn:hover:not(.active) {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.input-section {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 20px;
    align-items: end;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
    font-size: 0.9rem;
}

.input-group input,
.input-group select {
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: #fafbfc;
    font-family: inherit;
}

.input-group select {
    cursor: pointer;
}

.suggestions {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suggestion-chip {
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f3f5;
    border: 1px solid #e9ecef;
    color: #495057;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 48px;
    text-align: center;
}

.suggestion-chip:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.calculate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 让右侧计算按钮与左侧输入对齐到左边 */
.input-section .calculate-btn {
    justify-self: start;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

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

.results-section {
    margin-top: 30px;
}

.result-cards {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
}

.result-card {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 16px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.pizza-visual {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    box-shadow: 0 8px 16px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
}

.result-card:hover .pizza-visual {
    transform: scale(1.1);
}

.result-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #333;
}

.area {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.badge-highlight {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.25);
}

.comparison {
    text-align: center;
}

.multiplier {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.arrow {
    font-size: 1.5rem;
    margin-top: 5px;
}

.insights {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    padding: 25px;
    border-radius: 16px;
    border-left: 5px solid #2196f3;
}

.insights h3 {
    color: #1976d2;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.insights p {
    color: #1565c0;
    font-weight: 500;
    line-height: 1.6;
}

/* 推荐方案样式 */
.recommendation-card {
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
    padding: 25px;
    border-radius: 16px;
    border-left: 5px solid #4caf50;
    margin-bottom: 25px;
}

.recommendation-card h3 {
    color: #2e7d32;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.recommendation-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e8f5e8;
    transition: all 0.3s ease;
    text-align: center;
}

.recommendation-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.2);
    border-color: #4caf50;
}

.recommendation-item .pizza-visual {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    font-size: 1.2rem;
}

.recommendation-item h4 {
    color: #2e7d32;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.recommendation-item .details {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* 尺寸信息网格 */
.size-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 25px;
}

.info-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 16px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.info-card h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-align: center;
}

/* 强化“常见切片数：N片”的视觉权重 */
.info-card .area { text-align: center; }
.size-info-grid .badge-highlight {
    font-size: 1.4rem;
    padding: 8px 14px;
}

/* 左侧突出人数 */
.people-highlight {
    background: linear-gradient(135deg, #fff7e6, #ffe0b2);
    padding: 25px;
    border-radius: 16px;
    border: 2px solid #ffd699;
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.15);
}

.people-highlight h3 {
    text-align: center;
    color: #b26a00;
    margin-bottom: 15px;
}

.people-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.people-item {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    border: 2px solid #ffecb3;
    text-align: center;
}

.people-label {
    color: #8d6e63;
    font-weight: 600;
    margin-bottom: 6px;
}

.people-value {
    font-size: 2rem;
    font-weight: 800;
    color: #ff8f00;
}

.people-value.hungry {
    color: #ef6c00;
}

.people-sub {
    color: #8d6e63;
    font-size: 0.85rem;
}



.examples-section {
    margin-top: 40px;
}

.examples-section h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #555;
    font-size: 1.4rem;
}

.example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.example-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    font-weight: 500;
    color: #555;
}

.example-item:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.footer {
    text-align: center;
    color: white;
    opacity: 0.8;
    font-size: 1.1rem;
}

/* SEO 文案区 */
.seo-section {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
    margin-top: 30px;
}

.seo-section h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #333;
}

.seo-section h3 {
    font-size: 1.2rem;
    margin: 18px 0 10px;
    color: #444;
}

.seo-section p, .seo-section li, .seo-section dd {
    color: #555;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .main {
        padding: 25px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .tab-container {
        flex-direction: column;
        gap: 5px;
    }
    
    .tab-btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .input-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .result-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .comparison {
        order: -1;
    }
    
    .multiplier {
        width: 80px;
        height: 80px;
        font-size: 1rem;
    }
    
    .pizza-visual {
        width: 100px;
        height: 100px;
        font-size: 1.2rem;
    }
    
    .size-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .recommendation-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .main {
        padding: 20px;
    }
    
    .example-grid {
        grid-template-columns: 1fr;
    }
}
