/* 年龄计算器页面样式 - 匹配 svg-preview 风格 */
.age-calculator-page {
    max-width: 1400px;
    margin: 40px auto 60px;
    padding: 0 20px;
}

/* 页面标题 */
.age-calculator-page .page-header {
    text-align: center;
    margin-bottom: 40px;
}

.age-calculator-page .header-icon {
    width: 56px;
    height: 56px;
    color: #2c3e50;
    margin-bottom: 16px;
}

.age-calculator-page .page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.age-calculator-page .page-header p {
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* ========== 输入区 - 居中卡片 ========== */
.age-calculator-page .input-section {
    max-width: 520px;
    margin: 0 auto 48px;
}

.age-calculator-page .input-panel {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
}

.age-calculator-page .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f8f8;
    border-bottom: 1px solid #e8e8e8;
}

.age-calculator-page .panel-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.age-calculator-page .panel-header h3 svg {
    width: 20px;
    height: 20px;
}

/* 输入方式切换 */
.age-calculator-page .input-mode-tabs {
    display: flex;
    margin: 16px 20px 0;
    background: #f0f0f0;
    border-radius: 8px;
    padding: 3px;
}

.age-calculator-page .mode-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.age-calculator-page .mode-tab.active {
    background: #fff;
    color: #2c3e50;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.age-calculator-page .mode-tab:hover:not(.active) {
    color: #2c3e50;
}

/* 表单 */
.age-calculator-page .input-form {
    padding: 20px;
}

.age-calculator-page .form-group {
    margin-bottom: 16px;
}

.age-calculator-page .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
}

.age-calculator-page .date-selects {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.age-calculator-page .date-selects select {
    width: 100%;
    padding: 10px 28px 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #2c3e50;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M3 4.5L6 8l3-3.5H3z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.age-calculator-page .date-selects select:focus {
    border-color: #2c3e50;
}

.age-calculator-page .input-hint {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    line-height: 1.5;
}

/* 操作按钮 */
.age-calculator-page .form-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.age-calculator-page .btn-calculate {
    flex: 1;
    padding: 12px 20px;
    background: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.age-calculator-page .btn-calculate:hover {
    background: #1a252f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44,62,80,0.3);
}

.age-calculator-page .btn-calculate svg {
    width: 18px;
    height: 18px;
}

.age-calculator-page .btn-share {
    padding: 12px 16px;
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.age-calculator-page .btn-share:hover {
    background: #2c3e50;
    color: #fff;
    border-color: #2c3e50;
}

.age-calculator-page .btn-share svg {
    width: 16px;
    height: 16px;
}

/* ========== 实际年龄 Hero 区 ========== */
.age-calculator-page .age-hero {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 40px 24px;
    border-radius: 12px 12px 0 0;
}

.age-calculator-page .age-hero-label {
    font-size: 14px;
    margin: 0 0 16px 0;
    opacity: 0.9;
}

.age-calculator-page .age-hero-value {
    font-size: 72px;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.age-calculator-page .age-hero-unit {
    font-size: 32px;
    font-weight: 500;
    margin-left: 4px;
}

.age-calculator-page .age-hero-exact {
    font-size: 16px;
    margin: 12px 0 0 0;
    opacity: 0.85;
}

.age-calculator-page .age-hero-xusui {
    font-size: 14px;
    margin: 16px 0 0 0;
    opacity: 0.75;
}

.age-calculator-page .age-hero-xusui-tip {
    font-size: 12px;
    opacity: 0.6;
    margin-left: 4px;
}

/* ========== 结果区 - 全宽网格 ========== */
.age-calculator-page .result-section {
    scroll-margin-top: 60px;
    margin-bottom: 48px;
}

.age-calculator-page .result-placeholder {
    max-width: 520px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
    color: #ccc;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
}

.age-calculator-page .result-placeholder i {
    font-size: 56px;
    margin-bottom: 16px;
}

.age-calculator-page .result-placeholder p {
    font-size: 15px;
    margin: 0;
    color: #999;
}

/* 结果网格 */
.age-calculator-page .result-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #e8e8e8;
    overflow: hidden;
}

.age-calculator-page .result-card {
    background: #fff;
    padding: 24px 16px;
    text-align: center;
    transition: background 0.2s;
}

.age-calculator-page .result-card:hover {
    background: #fcfcfc;
}

.age-calculator-page .result-card .result-label {
    font-size: 13px;
    color: #999;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.age-calculator-page .result-card .result-label svg {
    width: 15px;
    height: 15px;
    opacity: 0.5;
}

.age-calculator-page .result-card .result-value {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.age-calculator-page .result-card .result-value .unit {
    font-size: 15px;
    font-weight: 500;
    color: #999;
    margin-left: 2px;
}

.age-calculator-page .result-card .result-value .emoji {
    font-size: 28px;
    margin-right: 4px;
}

.age-calculator-page .result-card .result-desc {
    font-size: 12px;
    color: #bbb;
    margin: 0;
    line-height: 1.4;
}

/* 精确年龄 - 两列宽 */
.age-calculator-page .result-card.span-2 {
    grid-column: span 2;
}

/* 全宽行 */
.age-calculator-page .result-card.span-full {
    grid-column: 1 / -1;
}

/* 下次生日 - 红色高亮 */
.age-calculator-page .result-card .result-value.countdown {
    color: #e74c3c;
}

/* 人生进度条 */
.age-calculator-page .life-progress {
    grid-column: 1 / -1;
    background: #fff;
    padding: 20px 24px;
}

.age-calculator-page .life-progress .progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.age-calculator-page .life-progress .progress-label {
    font-size: 13px;
    color: #999;
}

.age-calculator-page .life-progress .progress-percent {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

.age-calculator-page .progress-bar-bg {
    width: 100%;
    height: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
}

.age-calculator-page .progress-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.8s ease;
    background: linear-gradient(90deg, #27ae60, #f39c12, #e74c3c);
    background-size: 200% 100%;
}

.age-calculator-page .progress-note {
    font-size: 11px;
    color: #ccc;
    margin-top: 6px;
    text-align: right;
}

/* 结果说明 */
.age-calculator-page .result-notes {
    padding: 16px 20px;
    margin-top: 12px;
}

.age-calculator-page .result-notes p {
    font-size: 12px;
    color: #bbb;
    margin: 0 0 4px 0;
    line-height: 1.5;
}

.age-calculator-page .result-notes p:last-child {
    margin-bottom: 0;
}

/* Toast 提示 */
.age-calculator-page .share-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.age-calculator-page .share-toast.show {
    opacity: 1;
}

/* ========== FAQ ========== */
.age-calculator-page .dynamic-faq {
    margin-bottom: 40px;
}

.age-calculator-page .dynamic-faq h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
}

.age-calculator-page .faq-list {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
}

.age-calculator-page .faq-item {
    border-bottom: 1px solid #e8e8e8;
}

.age-calculator-page .faq-item:last-child {
    border-bottom: none;
}

.age-calculator-page .faq-question {
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
}

.age-calculator-page .faq-question:hover {
    background: #fafafa;
}

.age-calculator-page .faq-question .faq-icon {
    color: #ccc;
    font-size: 12px;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.age-calculator-page .faq-question.open .faq-icon {
    transform: rotate(90deg);
}

.age-calculator-page .faq-answer {
    padding: 0 20px 16px 44px;
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    display: none;
}

.age-calculator-page .faq-answer.open {
    display: block;
}

/* ========== 科普内容 ========== */
.age-calculator-page .info-section {
    margin-bottom: 40px;
}

.age-calculator-page .info-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
}

.age-calculator-page .info-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 24px 0 12px 0;
}

.age-calculator-page .info-content {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 32px;
}

.age-calculator-page .info-content p {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin: 0 0 16px 0;
}

.age-calculator-page .info-content ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.age-calculator-page .info-content li {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.age-calculator-page .info-content li::before {
    content: '\2022';
    position: absolute;
    left: 8px;
    color: #2c3e50;
    font-weight: bold;
}

/* 星座表格 */
.age-calculator-page .constellation-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}

.age-calculator-page .constellation-table th {
    background: #f8f8f8;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #e8e8e8;
}

.age-calculator-page .constellation-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e8e8e8;
    color: #666;
}

.age-calculator-page .constellation-table tr:last-child td {
    border-bottom: none;
}

/* 隐私声明 */
.age-calculator-page .privacy-notice {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: #bbb;
    line-height: 1.6;
}

.age-calculator-page .privacy-notice svg {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    margin-right: 4px;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .age-calculator-page .result-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .age-calculator-page .result-card.span-2 {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .age-calculator-page {
        margin: 20px auto 40px;
        padding: 0 16px;
    }

    .age-calculator-page .page-header h1 {
        font-size: 24px;
    }

    .age-calculator-page .page-header p {
        font-size: 14px;
    }

    .age-calculator-page .age-hero-value {
        font-size: 56px;
    }

    .age-calculator-page .age-hero-unit {
        font-size: 24px;
    }

    .age-calculator-page .result-card .result-value {
        font-size: 24px;
    }

    .age-calculator-page .result-card {
        padding: 18px 12px;
    }

    .age-calculator-page .info-section h2,
    .age-calculator-page .dynamic-faq h2 {
        font-size: 22px;
    }

    .age-calculator-page .info-content {
        padding: 20px;
    }

    .age-calculator-page .constellation-table {
        font-size: 12px;
    }

    .age-calculator-page .constellation-table th,
    .age-calculator-page .constellation-table td {
        padding: 8px 6px;
    }
}

@media (max-width: 480px) {
    .age-calculator-page .result-grid {
        grid-template-columns: 1fr 1fr;
    }

    .age-calculator-page .result-card.span-2 {
        grid-column: 1 / -1;
    }

    .age-calculator-page .date-selects {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .age-calculator-page .form-actions {
        flex-direction: column;
    }

    .age-calculator-page .btn-share {
        justify-content: center;
    }

    .age-calculator-page .birth-info-banner .birth-solar {
        font-size: 16px;
    }
}
