/* ========== 全局样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary: #0f172a;
    --text: #334155;
    --text-light: #64748b;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* ========== 导航栏 ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    position: relative;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--secondary);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========== Hero ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f9ff 0%, #faf5ff 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
}

.hero-bg::before,
.hero-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.hero-bg::before {
    width: 300px;
    height: 300px;
    background: rgba(37, 99, 235, 0.15);
    top: 10%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.hero-bg::after {
    width: 400px;
    height: 400px;
    background: rgba(124, 58, 237, 0.1);
    bottom: 10%;
    right: 10%;
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 120px 24px 80px;
}

.hero-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--secondary);
}

.title-line {
    display: block;
}

.title-highlight {
    display: block;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-light);
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-light);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-indicator span {
    width: 4px;
    height: 8px;
    background: var(--text-light);
    border-radius: 2px;
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(12px); opacity: 0; }
}

/* ========== Section Common ========== */
section {
    padding: 100px 0;
}

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

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ========== Page Hero ========== */
.page-hero {
    position: relative;
    padding: 172px 0 80px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f9ff 0%, #faf5ff 100%);
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
}

.page-hero-bg::before,
.page-hero-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.page-hero-bg::before {
    width: 300px;
    height: 300px;
    background: rgba(37, 99, 235, 0.15);
    top: 10%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.page-hero-bg::after {
    width: 400px;
    height: 400px;
    background: rgba(124, 58, 237, 0.1);
    bottom: -20%;
    right: 10%;
    animation: float 6s ease-in-out infinite reverse;
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.page-hero-title {
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 16px;
}

.page-hero-desc {
    font-size: 16px;
    color: var(--text-light);
}

/* ========== News ========== */
.news {
    background: white;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 24px;
    background: white;
    padding: 28px 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.news-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.news-date {
    flex-shrink: 0;
    width: 88px;
    height: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, #ede9fe 100%);
    border-radius: var(--radius);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
}

.news-date i {
    font-style: normal;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

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

.news-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 6px;
    transition: var(--transition);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-item:hover .news-title {
    color: var(--primary);
}

.news-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-arrow {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 18px;
    transition: var(--transition);
}

.news-item:hover .news-arrow {
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    border-color: transparent;
    color: white;
    transform: translateX(4px);
}

/* ========== Article ========== */
.article {
    background: var(--bg-alt);
}

.article-card {
    max-width: 860px;
    margin: 0 auto;
    background: white;
    padding: 48px 56px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.article-title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.4;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    gap: 24px;
    padding-bottom: 24px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-light);
    flex-wrap: wrap;
}

.article-body p {
    font-size: 16px;
    color: var(--text);
    line-height: 2;
    margin-bottom: 20px;
}

.article-body h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary);
    margin: 32px 0 16px;
    padding-left: 16px;
    border-left: 4px solid var(--primary);
}

.article-footer {
    display: flex;
    justify-content: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid var(--border);
}

/* ========== Services ========== */
.services {
    background: var(--bg-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.service-card {
    background: white;
    padding: 40px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #7c3aed);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, #ede9fe 100%);
    border-radius: 16px;
    color: var(--primary);
    margin-bottom: 24px;
}

.service-icon svg {
    width: 36px;
    height: 36px;
}

.service-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
}

.service-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ========== Products ========== */
.products {
    background: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.product-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}

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

.product-banner {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #faf5ff 100%);
    position: relative;
    overflow: hidden;
}

.product-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 40%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 60%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
}

.product-icon {
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    border-radius: 22px;
    color: white;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.product-card:hover .product-icon {
    transform: scale(1.1) rotate(-4deg);
}

.product-icon svg {
    width: 44px;
    height: 44px;
}

.product-info {
    padding: 28px 28px 32px;
}

.product-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 20px;
    padding: 4px 14px;
    margin-bottom: 14px;
}

.product-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
}

.product-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ========== Advantages ========== */
.advantages {
    background: white;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.advantage-card {
    position: relative;
    background: white;
    padding: 48px 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
    overflow: hidden;
}

.advantage-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.advantage-card:hover::after {
    opacity: 1;
}

.advantage-number {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1;
}

.advantage-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    border-radius: 16px;
    color: white;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.advantage-icon svg {
    width: 32px;
    height: 32px;
}

.advantage-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.advantage-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ========== About ========== */
.about {
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-content .section-tag {
    display: block;
    margin-bottom: 12px;
}

.about-text {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-text strong {
    color: var(--secondary);
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

/* ========== Contact ========== */
.contact {
    background: var(--bg-alt);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.contact-card {
    background: white;
    padding: 40px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 24px;
}

.contact-icon svg {
    width: 32px;
    height: 32px;
}

.contact-icon.phone {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: var(--primary);
}

.contact-icon.email {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #7c3aed;
}

.contact-icon.location {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
}

.contact-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 8px;
}

.contact-value {
    font-size: 16px;
    color: var(--primary);
    font-weight: 500;
    transition: var(--transition);
}

a.contact-value:hover {
    color: var(--primary-dark);
}

/* ========== Footer ========== */
.footer {
    background: var(--secondary);
    color: #94a3b8;
    padding: 80px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.logo-footer {
    color: white;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links a {
    display: block;
    font-size: 14px;
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-contact p {
    font-size: 14px;
    margin-bottom: 12px;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.icp {
    color: #64748b;
}

/* ========== 响应式 ========== */
@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-content .section-title {
        text-align: center;
    }

    .about-content .section-tag {
        text-align: center;
    }

    .about-stats {
        justify-content: center;
    }

    .about-image {
        order: -1;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 64px 0;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .menu-toggle {
        display: flex;
    }

    .page-hero {
        padding: 140px 0 56px;
    }

    .article-card {
        padding: 32px 24px;
    }

    .article-meta {
        gap: 12px;
        flex-direction: column;
    }

    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 24px;
    }

    .news-date {
        flex-direction: row;
        width: auto;
        height: auto;
        padding: 6px 12px;
        gap: 8px;
    }

    .news-date i {
        margin-bottom: 0;
    }

    .news-title,
    .news-desc {
        white-space: normal;
    }

    .news-arrow {
        display: none;
    }

    .hero-content {
        padding: 100px 24px 60px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .about-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .service-card {
        padding: 32px 24px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 32px 24px;
    }

    .stat-num {
        font-size: 28px;
    }
}
