:root {
    --primary-color: #0052CC;
    --primary-light: #00A3FF;
    --bg-dark: #FFFFFF;
    --bg-card: #F5F9FF;
    --text-primary: #003D99;
    --text-secondary: #4A6FA5;
    --silver: #6B8CC4;
    --gradient-primary: linear-gradient(135deg, #0052CC 0%, #00A3FF 100%);
    --container-width: 1200px;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, ""PingFang SC"", ""Microsoft YaHei"", sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-body);
    line-height: 1.6;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--text-body);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 82, 204, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-body);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 82, 204, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 82, 204, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 82, 204, 0.1);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav a {
    font-size: 17px;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.nav a:hover,
.nav a.active {
    color: var(--primary-light);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 30px;
}

.mobile-menu .nav {
    flex-direction: column;
    gap: 20px;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(0, 82, 204, 0.05) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(0, 163, 255, 0.04) 0%, transparent 50%);
}

/* Spotlight / 放大镜效果：圆圈内 100% 清晰，圆外 75% 遮罩 */
.hero-mask {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    pointer-events: none;
    z-index: 1;
    -webkit-mask-image: radial-gradient(
        circle 75px at var(--mx, -200px) var(--my, -200px),
        transparent 0%,
        transparent 68px,
        rgba(0, 0, 0, 0.3) 75px,
        rgba(0, 0, 0, 0.7) 80px,
        black 85px
    );
    mask-image: radial-gradient(
        circle 75px at var(--mx, -200px) var(--my, -200px),
        transparent 0%,
        transparent 68px,
        rgba(0, 0, 0, 0.3) 75px,
        rgba(0, 0, 0, 0.7) 80px,
        black 85px
    );
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    transition: opacity 0.3s ease;
    will-change: mask-image, -webkit-mask-image;
}

/* 圆圈细描边 */
.hero-mask::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(
        circle 75px at var(--mx, -200px) var(--my, -200px),
        transparent 73px,
        rgba(0, 0, 0, 1) 75px,
        rgba(0, 0, 0, 1) 76px,
        transparent 78px
    );
    mask-image: radial-gradient(
        circle 75px at var(--mx, -200px) var(--my, -200px),
        transparent 73px,
        rgba(0, 0, 0, 1) 75px,
        rgba(0, 0, 0, 1) 76px,
        transparent 78px
    );
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* 移动端禁用 spotlight 效果 */
@media (hover: none) {
    .hero-mask {
        -webkit-mask-image: none;
        mask-image: none;
    }
    .hero-mask::before {
        display: none;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero .brand {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: 20px;
    color: #1a1a1a;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.95), 0 0 1px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
}

.hero .slogan {
    font-size: 24px;
    color: #0d0d0d;
    font-weight: 700;
    text-shadow: 0 1px 5px rgba(255, 255, 255, 0.95), 0 0 1px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.about-summary {
    background: var(--bg-card);
}

.about-summary .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.about-image {
    background: #FFFFFF;
    border-radius: var(--border-radius);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* ECOFNM watermark removed */

.market-section {
    background: var(--bg-card);
}

.market-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.market-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-item {
    background: var(--bg-dark);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    text-align: center;
}

.product-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.product-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.product-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.tech-advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.tech-item {
    text-align: center;
    padding: 30px;
}

.tech-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: rgba(0, 82, 204, 0.1);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    font-size: 24px;
}

.tech-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.tech-item p {
    color: var(--text-secondary);
    font-size: 14px;
}

.clients-logo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    align-items: center;
    justify-items: center;
}

.client-item {
    width: 120px;
    height: 60px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(0, 82, 204, 0.1);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-light));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
    margin-right: calc(50% + 30px);
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: left;
    margin-left: calc(50% + 30px);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    border: 4px solid var(--bg-dark);
}

.timeline-content {
    max-width: 350px;
}

.timeline-year {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.timeline-desc {
    color: var(--text-secondary);
    font-size: 14px;
}

.cta-banner {
    background: linear-gradient(135deg, #a8c5e0 0%, #b8d4ea 50%, #c8e0f0 100%);
    text-align: center;
    padding: 60px 20px;
}

.cta-banner h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.footer {
    background: #E0EAF5;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(0, 82, 204, 0.15);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-section p,
.footer-section a {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 4px;
    font-weight: 600;
}

.footer-section a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 82, 204, 0.1);
    padding-top: 30px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

@media (max-width: 992px) {
    .about-summary .container,
    .market-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 40px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 70px;
        margin-right: 0;
        text-align: left;
    }
    
    .timeline-dot {
        left: 30px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero .slogan {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .market-stats {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-advantages {
        grid-template-columns: 1fr;
    }
}
