/* ===================================
   杭州长生保数字科技 - 主样式文件
   =================================== */

/* CSS Variables */
:root {
    --primary: #2B6CB0;
            --primary-dark: #1A365D;
            --primary-light: #4299E1;
    --secondary: #00D4AA;
    --accent: #FF6B35;
    --dark: #0A0E27;
    --dark-light: #1A1F3C;
    --gray: #6B7280;
    --gray-light: #9CA3AF;
    --gray-lighter: #F3F4F6;
    --white: #FFFFFF;
    --bg-light: #F8FAFC;
    --gradient: linear-gradient(135deg, #0066FF 0%, #00D4AA 100%);
    --gradient-reverse: linear-gradient(135deg, #00D4AA 0%, #0066FF 100%);
    --shadow: 0 10px 40px rgba(0, 102, 255, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 102, 255, 0.15);
    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    background: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ===================================
   Header
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    /* width: 48px;
    height: 48px; */
    border-radius: 12px;
    object-fit: contain;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 14px;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 1px;
}

.logo-text span {
    color: #0066FF;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
    border-radius: var(--radius-sm);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(0, 102, 255, 0.05);
}

.header-btn {
    padding: 10px 24px;
    background: var(--gradient);
    color: white;
    border-radius: 25px;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.3);
}

.mobile-menu {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    padding: 120px 0 80px;
    background: var(--dark);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(0, 102, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 212, 170, 0.1) 0%, transparent 40%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.02)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.2) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.15) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite reverse;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease-out;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    color: white;
    line-height: 1.2;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-title .highlight {
    background: var(--gradient-reverse);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.8;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-tags .tag {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    transition: var(--transition);
}

.hero-tags .tag:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.35);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-white {
    background: white;
    color: var(--primary);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.25);
}

.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-size: 48px;
    font-weight: 900;
    color: var(--secondary);
    line-height: 1;
}

.stat-plus {
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary);
}

.stat-text {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

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

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

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

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

.section-header.light .section-tag {
    background: rgba(255, 255, 255, 0.15);
    color: var(--secondary);
}

.section-header.light .section-title,
.section-header.light .section-desc {
    color: white;
}

.section-header.light .section-desc {
    color: rgba(255, 255, 255, 0.7);
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: var(--radius);
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 212, 170, 0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gradient);
    color: white;
}

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

.service-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
}

.service-link i {
    transition: var(--transition);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* ===================================
   Patents Preview
   =================================== */
.patents-preview {
    background: var(--dark);
}

.patents-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.patent-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 30px;
    transition: var(--transition);
}

.patent-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--secondary);
    transform: translateY(-5px);
}

.patent-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--secondary);
    color: var(--dark);
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.patent-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
    line-height: 1.5;
}

.patent-no {
    font-size: 12px;
    color: var(--secondary);
    margin-bottom: 12px;
}

.patent-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 16px;
}

.patent-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.patent-tags span {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.patents-more {
    text-align: center;
    margin-top: 50px;
}

/* ===================================
   Code Preview
   =================================== */
.code-preview {
    background: var(--bg-light);
}

.code-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.code-block {
    background: #1e1e1e;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #2d2d2d;
    border-bottom: 1px solid #3d3d3d;
}

.code-dots {
    display: flex;
    gap: 8px;
}

.code-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.code-name {
    flex: 1;
    font-family: 'Consolas', monospace;
    font-size: 13px;
    color: #9ca3af;
}

.code-lang {
    font-size: 12px;
    color: #6b7280;
}

.code-body {
    padding: 24px;
    overflow-x: auto;
}

.code-body pre {
    margin: 0;
}

.code-body code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    line-height: 1.7;
    color: #d4d4d4;
}

.code-body .keyword { color: #569cd6; }
.code-body .class { color: #4ec9b0; }
.code-body .function { color: #dcdcaa; }
.code-body .string { color: #ce9178; }
.code-body .number { color: #b5cea8; }
.code-body .comment { color: #6a9955; }

.code-more {
    text-align: center;
    margin-top: 50px;
}

/* ===================================
   Partners
   =================================== */
.partners {
    background: white;
    padding: 80px 0;
}

.partner-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 30px 40px;
    background: var(--bg-light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.partner-logo:hover {
    background: var(--dark);
    color: white;
}

.partner-logo i {
    font-size: 36px;
    color: var(--primary);
}

.partner-logo:hover i {
    color: var(--secondary);
}

.partner-logo span {
    font-size: 16px;
    color: var(--gray);
}

/* ===================================
   CTA
   =================================== */
.cta {
    background: var(--gradient);
    padding: 80px 0;
}

.cta-content {
    text-align: center;
    color: white;
}

.cta h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--dark);
    padding: 80px 0 30px;
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 12px;
}

.footer-col > p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
}

.footer-col h4 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
}

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

.footer-col ul a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-col ul a:hover {
    color: var(--secondary);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    margin-bottom: 16px !important;
}

.footer-contact i {
    color: var(--secondary);
    margin-top: 4px;
}

.footer-qr {
    text-align: center;
}

.qr-placeholder {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.qr-placeholder i {
    font-size: 48px;
    color: var(--dark);
}

.footer-qr span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 42px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .patents-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .code-showcase {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .header-btn {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-desc {
        font-size: 16px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .stat-num {
        font-size: 36px;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .patents-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cta h2 {
        font-size: 28px;
    }
    
    .cta-btns {
        flex-direction: column;
        align-items: center;
    }
}

/* Why Choose Us */
.why-choose {
    background: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--radius);
    background: var(--bg-light);
    transition: var(--transition);
}

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

.why-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 212, 170, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    color: var(--primary);
}

.why-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
}

.why-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}
