/* ===== CSS Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== CSS Variables ===== */
:root {
    --primary: #2250BE;
    --primary-dark: #173A90;
    --primary-light: #7AA2FF;
    --primary-glow: rgba(34, 80, 190, 0.3);
    --dark-bg: #101A30;
    --dark-secondary: #1B2745;
    --dark-grad: radial-gradient(420px 240px at 0% 0%, rgba(58, 105, 240, .30), transparent 72%), linear-gradient(180deg, #1B2745 0%, #141E36 55%, #101A30 100%);
    --light-bg: #ffffff;
    --light-secondary: #F5F7FB;
    --light-card: #ffffff;
    --text-dark: #182238;
    --text-light: #606B82;
    --text-white: #ffffff;
    --border-light: #E9EDF4;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
}

/* ===== Base Styles ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--light-bg);
}

/* ===== Header / Nav ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--dark-grad);
    padding: 0 5%;
    transition: all 0.3s ease;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary));
    opacity: 0.6;
}

header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    max-width: 1280px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-white);
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
}

.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.1);
}

.nav-links .btn-mini-program {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text-white);
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 2px 10px var(--primary-glow);
}

.nav-links .btn-mini-program:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px var(--primary-glow);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== Footer ===== */
footer {
    background: linear-gradient(180deg, #1B2745 0%, #141E36 55%, #101A30 100%);
    padding: 60px 5% 30px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
}

.footer-brand {
    color: var(--text-white);
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links h4 {
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    max-width: 1280px;
    margin: 40px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--primary-light);
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Section Shared Styles ===== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(43,92,230, 0.1), rgba(122,162,255, 0.1));
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ===== CTA Section ===== */
.cta {
    padding: 100px 5%;
    background: var(--light-secondary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(43,92,230, 0.1) 0%, transparent 70%);
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.cta p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 32px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text-white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.cta .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta .btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Page Hero ===== */
.page-hero {
    min-height: 50vh;
    background: linear-gradient(180deg, var(--light-bg) 0%, var(--light-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary));
}

.page-hero::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(43,92,230, 0.08) 0%, transparent 70%);
}

.page-hero-content {
    position: relative;
    z-index: 1;
    padding: 140px 5% 80px;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.page-hero h1 span {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero p {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.circular-avatar {
    clip-path: circle(41%); /* 半径为50%的圆形 */
    width: 100px; /* 或者你想要的任何尺寸 */
    height: 100px; /* 确保宽高一致以形成完美的圆形 */
    display: block; /* 如果需要，可以确保图片不溢出容器 */
}


/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: linear-gradient(180deg, #1B2745 0%, #141E36 55%, #101A30 100%);
        flex-direction: column;
        padding: 20px 5%;
        gap: 8px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        display: block;
        padding: 14px 18px;
        border-radius: 10px;
        text-align: center;
    }

    .nav-links .btn-mini-program {
        display: block;
        text-align: center;
        margin-top: 8px;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
    }

    .cta h2 {
        font-size: 1.8rem;
    }
}

/* ===== Doctor Review Highlight (index / dayday / intro / about) ===== */
.report-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 100px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    vertical-align: middle;
    margin-left: 8px;
    white-space: nowrap;
}

.feature-card:has(.report-badge),
.product-card:has(.report-badge) {
    background: linear-gradient(180deg, #f0fdf6 0%, #ffffff 62%);
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.1);
}

.feature-card:has(.report-badge):hover,
.product-card:has(.report-badge):hover {
    border-color: #10b981;
}

/* ===== Doctor Review Section (dayday / intro) ===== */
.doctor-review {
    padding: 90px 5%;
    background: var(--light-bg);
    border-top: 1px solid var(--border-light);
}

.review-container {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.review-text h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-dark);
    margin: 16px 0 18px;
}

.review-text h2 em {
    font-style: normal;
    color: #059669;
}

.review-text > p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.85;
}

.review-text > p.review-note {
    font-size: 0.8rem;
    line-height: 1.7;
    color: #8a94a6;
}

.review-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 26px 0 18px;
}

.review-hl {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(5, 150, 105, 0.03));
    border: 1px solid rgba(16, 185, 129, 0.22);
    border-radius: 14px;
    padding: 16px 18px;
}

.review-hl b {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #059669;
}

.review-hl span {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-light);
}

.review-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.review-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--light-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
}

.review-step-num {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-step h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.review-step p {
    font-size: 0.86rem;
    line-height: 1.7;
    color: var(--text-light);
}

.review-step.is-key {
    background: #f6fefb;
    border-color: rgba(16, 185, 129, 0.45);
}

.review-step.is-key .review-step-num {
    background: linear-gradient(135deg, #10b981, #059669);
}

@media (max-width: 1024px) {
    .review-container { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .doctor-review { padding: 60px 5%; }
    .review-text h2 { font-size: 1.6rem; }
    .review-highlights { grid-template-columns: 1fr; }
}

/* ===== FAQ Section (dayday) ===== */
.faq-section {
    padding: 90px 5%;
    background: var(--light-secondary);
    border-top: 1px solid var(--border-light);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--light-card);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 0 22px;
}

.faq-item[open] {
    border-color: rgba(34, 80, 190, 0.35);
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(34, 80, 190, 0.08);
    color: var(--primary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-item[open] summary::after { content: '−'; }

.faq-item p {
    font-size: 0.92rem;
    line-height: 1.85;
    color: var(--text-light);
    padding: 0 0 20px;
}

@media (max-width: 768px) {
    .faq-section { padding: 60px 5%; }
}

/* ===== Article Share Toast ===== */
.share-toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translate(-50%, 12px);
    z-index: 1300;
    padding: 10px 20px;
    border-radius: 999px;
    background: rgba(21, 38, 72, 0.92);
    color: #fff;
    font-size: 0.88rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
}
.share-toast.show { opacity: 1; transform: translate(-50%, 0); }

