
:root {
    --color-deep-blue: #1d2786;
    --color-purple-blue: #6a65d8;
    --color-light-pink: #ffcdcd;
    --color-soft-pink: #ffe6eb;
    --color-white: #ffffff;
    --color-dark: #1a1a2e;
    --color-gray: #555555;
    --color-light-gray: #f5f5f7;
    --color-border: #e8e8ec;
    --font-primary: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    --transition-base: 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.14);
    --shadow-xl: 0 16px 56px rgba(0, 0, 0, 0.18);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --max-width: 1280px;
    --header-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    color: var(--color-dark);
    background-color: var(--color-white);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========== 顶部导航栏 - 100%宽度 ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow var(--transition-base);
    height: var(--header-height);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--color-deep-blue), var(--color-purple-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-deep-blue);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.logo-text span {
    color: var(--color-purple-blue);
    font-weight: 400;
    font-size: 14px;
}

/* 主导航 */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
}

.main-nav li {
    position: relative;
}

.main-nav li a {
    display: block;
    padding: 10px 18px;
    text-decoration: none;
    color: var(--color-dark);
    font-size: 15px;
    font-weight: 500;
    transition: color var(--transition-base);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.main-nav li a:hover,
.main-nav li a.active {
    color: var(--color-deep-blue);
}

.main-nav li a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 18px;
    right: 18px;
    height: 3px;
    background: var(--color-deep-blue);
    border-radius: 0 0 3px 3px;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    background: none;
    border: none;
    width: 40px;
    height: 36px;
    justify-content: center;
    align-items: center;
}

.mobile-menu-toggle span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--color-deep-blue);
    border-radius: 3px;
    transition: all var(--transition-base);
    transform-origin: center;
}

#mobile-menu-checkbox {
    display: none;
}

#mobile-menu-checkbox:checked~.mobile-menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
#mobile-menu-checkbox:checked~.mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#mobile-menu-checkbox:checked~.mobile-menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========== Hero 区域 ========== */
.hero-section {
    margin-top: var(--header-height);
    background: linear-gradient(170deg, #f8f9fd 0%, var(--color-soft-pink) 40%, #fdf5f6 100%);
    padding: 60px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -180px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(106, 101, 216, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -120px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 205, 205, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 48px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    min-width: 0;
}

.hero-badge {
    display: inline-block;
    background: var(--color-light-pink);
    color: var(--color-deep-blue);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 18px;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: clamp(28px, 4.5vw, 46px);
    font-weight: 700;
    color: var(--color-deep-blue);
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.hero-content h1 .highlight {
    color: var(--color-purple-blue);
    position: relative;
}

.hero-content .hero-desc {
    font-size: 17px;
    color: var(--color-gray);
    margin-bottom: 28px;
    max-width: 520px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 30px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-base);
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-deep-blue);
    color: #fff;
    border-color: var(--color-deep-blue);
}
.btn-primary:hover {
    background: #162070;
    border-color: #162070;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-deep-blue);
    border-color: var(--color-deep-blue);
}
.btn-outline:hover {
    background: var(--color-deep-blue);
    color: #fff;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    min-width: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 520px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    object-fit: cover;
    aspect-ratio: 4/3;
}

/* ========== 通用区块样式 ========== */
.section {
    padding: 72px 24px;
}

.section-bg-light {
    background: var(--color-light-gray);
}

.section-bg-soft {
    background: var(--color-soft-pink);
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-purple-blue);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(24px, 3.5vw, 34px);
    font-weight: 700;
    color: var(--color-deep-blue);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 15px;
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========== 产品展示区 ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: transparent;
}

.product-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f0f1f8;
    position: relative;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.product-card:hover .product-card-img img {
    transform: scale(1.06);
}

.product-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-body h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-deep-blue);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.product-card-body p {
    font-size: 13px;
    color: var(--color-gray);
    line-height: 1.6;
    margin-bottom: 14px;
    flex: 1;
}

.product-card-body .card-tag {
    display: inline-block;
    font-size: 11px;
    background: var(--color-soft-pink);
    color: var(--color-deep-blue);
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 500;
    align-self: flex-start;
}

.product-card-body .card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-purple-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-top: 10px;
    transition: gap var(--transition-base);
}
.product-card-body .card-link:hover {
    gap: 10px;
    color: var(--color-deep-blue);
}

/* ========== 关于我们区域 ========== */
.about-grid {
    display: flex;
    gap: 48px;
    align-items: center;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.about-content h2 {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    color: var(--color-deep-blue);
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.about-content p {
    font-size: 15px;
    color: var(--color-gray);
    line-height: 1.9;
    margin-bottom: 14px;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.highlight-item {
    background: #f9f9fd;
    border-radius: var(--radius-sm);
    padding: 18px 14px;
    text-align: center;
    border-left: 3px solid var(--color-purple-blue);
    transition: all var(--transition-base);
}
.highlight-item:hover {
    background: #f0effa;
    transform: translateY(-2px);
}

.highlight-item .num {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-deep-blue);
    display: block;
}
.highlight-item .label {
    font-size: 12px;
    color: var(--color-gray);
    margin-top: 4px;
}

/* ========== 优势区域 ========== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.advantage-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 28px 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
    text-align: center;
}
.advantage-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: transparent;
}

.advantage-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.advantage-icon.type-a {
    background: #e8e7f7;
    color: var(--color-deep-blue);
}
.advantage-icon.type-b {
    background: #fde8ec;
    color: #c0395c;
}
.advantage-icon.type-c {
    background: #e6f0fa;
    color: #2471a3;
}
.advantage-icon.type-d {
    background: #fef5e7;
    color: #b8860b;
}

.advantage-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-deep-blue);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}
.advantage-card p {
    font-size: 13px;
    color: var(--color-gray);
    line-height: 1.6;
}

/* ========== CTA区域 ========== */
.cta-section {
    background: linear-gradient(135deg, var(--color-deep-blue), #2a3599);
    color: #fff;
    text-align: center;
    padding: 60px 24px;
}

.cta-section .section-title {
    color: #fff;
}
.cta-section .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
}
.cta-section .btn-primary {
    background: #fff;
    color: var(--color-deep-blue);
    border-color: #fff;
    font-size: 16px;
    padding: 15px 36px;
}
.cta-section .btn-primary:hover {
    background: #f0f0f5;
    border-color: #f0f0f5;
    color: #141d60;
    box-shadow: var(--shadow-lg);
}
.cta-section .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}
.cta-section .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
}

/* ========== 联系信息区域 ========== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.contact-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    text-align: center;
    transition: all var(--transition-base);
}
.contact-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.contact-card h3 {
    font-size: 16px;
    color: var(--color-deep-blue);
    margin-bottom: 6px;
    font-weight: 600;
}
.contact-card p {
    font-size: 14px;
    color: var(--color-gray);
    line-height: 1.6;
}
.contact-card .icon-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-purple-blue);
    margin-right: 6px;
}

/* ========== 底部导航 - 100%宽度 ========== */
.site-footer {
    background: #1a1a2e;
    color: #ccc;
    width: 100%;
}

.footer-top {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 24px 32px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #aaa;
    text-decoration: none;
    font-size: 13px;
    transition: color var(--transition-base);
}
.footer-col ul li a:hover {
    color: var(--color-light-pink);
}

.footer-col p {
    font-size: 13px;
    color: #aaa;
    line-height: 1.8;
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    color: #888;
}

.footer-bottom a {
    color: #aaa;
    text-decoration: none;
    transition: color var(--transition-base);
    font-size: 12px;
}
.footer-bottom a:hover {
    color: var(--color-light-pink);
}

.footer-mobile-link {
    display: inline-block;
    background: var(--color-deep-blue);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px !important;
    letter-spacing: 0.5px;
    transition: all var(--transition-base) !important;
    text-decoration: none;
}
.footer-mobile-link:hover {
    background: var(--color-purple-blue) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
    .hero-inner {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }
    .hero-content .hero-desc {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-image img {
        max-width: 400px;
    }
    .about-grid {
        flex-direction: column;
    }
    .about-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    .header-inner {
        padding: 0 16px;
    }
    .logo-text {
        font-size: 15px;
    }
    .logo-text span {
        font-size: 11px;
        display: block;
    }

    /* 移动端导航 */
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 340px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 80px 28px 40px;
        gap: 6px;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-base);
        z-index: 999;
        overflow-y: auto;
    }

    #mobile-menu-checkbox:checked~.main-nav {
        right: 0;
    }

    .main-nav li a {
        font-size: 16px;
        padding: 12px 16px;
        border-radius: var(--radius-sm);
    }
    .main-nav li a.active::after {
        display: none;
    }
    .main-nav li a.active {
        background: #f0effa;
    }

    /* 移动端遮罩 */
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 998;
    }
    #mobile-menu-checkbox:checked~.mobile-overlay {
        display: block;
    }

    .hero-section {
        padding: 40px 16px 56px;
    }
    .hero-content h1 {
        font-size: 24px;
    }
    .hero-content .hero-desc {
        font-size: 14px;
    }
    .btn {
        padding: 11px 22px;
        font-size: 13px;
    }
    .section {
        padding: 48px 16px;
    }
    .section-title {
        font-size: 22px;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
    .advantages-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
    .advantage-card {
        padding: 20px 14px;
    }
    .about-highlights {
        grid-template-columns: 1fr 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr;
    }
    .hero-image img {
        max-width: 280px;
    }
    .about-highlights {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .highlight-item {
        padding: 14px 10px;
    }
    .highlight-item .num {
        font-size: 22px;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .hero-buttons .btn {
        width: 100%;
        max-width: 260px;
    }
    .cta-section {
        padding: 40px 16px;
    }
}

/* 辅助：平滑显示 */
.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 打印样式 */
@media print {
    .site-header,
    .site-footer,
    .cta-section,
    .mobile-menu-toggle,
    .mobile-overlay {
        display: none !important;
    }
    .hero-section {
        margin-top: 0;
        padding: 20px 0;
    }
    body {
        font-size: 12px;
    }
}
