/* ===== 全局变量 ===== */
:root {
    --primary-dark: #0a1628;
    --primary-blue: #0d3b7a;
    --accent-blue: #1a6fc4;
    --accent-purple: #6c3fa0;
    --gradient-start: #0a1628;
    --gradient-mid: #0d3b7a;
    --gradient-end: #1a237e;
    --text-white: #ffffff;
    --text-gray: #a8b2c3;
    --text-light: #d0d8e4;
    --card-bg: rgba(13, 59, 122, 0.3);
    --card-border: rgba(26, 111, 196, 0.25);
    --hover-glow: rgba(26, 111, 196, 0.4);
    --success: #00d4aa;
}

/* ===== 重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--primary-dark);
    color: var(--text-white);
    line-height: 1.7;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

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

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

/* ===== 导航栏 ===== */
.tech-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 22, 40, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    transition: all 0.3s;
}

.tech-header.scrolled {
    background: rgba(10, 22, 40, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

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

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 1px;
}

.main-nav ul {
    display: flex;
    gap: 8px;
}

.main-nav a {
    padding: 8px 16px;
    font-size: 14px;
    color: var(--text-light);
    border-radius: 6px;
    transition: all 0.3s;
}

.main-nav a:hover {
    background: var(--card-bg);
    color: var(--text-white);
}

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

.header-phone a {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent-blue);
    letter-spacing: 0.5px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-white);
    cursor: pointer;
}

/* ===== 轮播 banner ===== */
.tech-banner {
    position: relative; height: 100vh; min-height: 600px;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.banner-slider { position: absolute; inset: 0; }
.banner-slide {
    position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease;
    display: flex; align-items: center; justify-content: center;
}
.banner-slide.active { opacity: 1; z-index: 3; }
.banner-slide::before {
    content: ''; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(26, 111, 196, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 111, 196, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
}
.banner-content { position: relative; z-index: 2; text-align: center; padding: 0 20px; }
.banner-title { font-size: 56px; font-weight: 800; margin-bottom: 16px; line-height: 1.2; letter-spacing: 2px; }
.banner-title .highlight { color: transparent; background: linear-gradient(90deg, #00d4ff, #6c3fa0); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.banner-subtitle { font-size: 20px; color: var(--text-light); margin-bottom: 12px; letter-spacing: 1px; }
.banner-desc { font-size: 16px; color: var(--text-gray); margin-bottom: 40px; }
.banner-btns { display: flex; gap: 16px; justify-content: center; }

/* ===== 幻灯片控制 ===== */
.banner-controls { position: absolute; inset: 0; z-index: 10; }
.banner-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; z-index: 20; }
.banner-dots .dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s; }
.banner-dots .dot.active { background: #fff; transform: scale(1.3); }
.banner-arrows { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); display: flex; justify-content: space-between; padding: 0 20px; z-index: 20; pointer-events: none; }
.banner-arrows .arrow { width: 50px; height: 50px; border-radius: 50%; background: rgba(0,0,0,0.5); color: white; font-size: 24px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; pointer-events: all; user-select: none; }
.banner-arrows .arrow:hover { background: rgba(26, 111, 196, 0.9); }

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.banner-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: 2px;
}

.banner-title .highlight {
    color: transparent;
    background: linear-gradient(90deg, #00d4ff, #6c3fa0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner-subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.banner-desc {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 40px;
}

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

/* ===== 按钮 ===== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #1a6fc4, #6c3fa0);
    color: var(--text-white);
    box-shadow: 0 4px 20px rgba(26, 111, 196, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(26, 111, 196, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
}

.btn-outline:hover {
    background: var(--accent-blue);
    color: var(--text-white);
}

.btn-lg {
    padding: 14px 40px;
    font-size: 16px;
}

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

.btn-white:hover {
    background: var(--text-light);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    border: 2px solid var(--text-white);
    color: var(--text-white);
}

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

/* ===== 区块通用 ===== */
section {
    padding: 80px 0;
}

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

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--accent-blue);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ===== 产品分类 ===== */
.tech-categories {
    background: linear-gradient(180deg, var(--primary-dark) 0%, rgba(13, 59, 122, 0.3) 100%);
}

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

.category-card {
    position: relative;
    padding: 30px 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 111, 196, 0.1), rgba(108, 63, 160, 0.1));
    opacity: 0;
    transition: opacity 0.3s;
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-blue);
    box-shadow: 0 12px 40px rgba(26, 111, 196, 0.3);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover .arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ===== 产品分类图标（按序号不同颜色） ===== */
.cat-1 .category-icon { background: linear-gradient(135deg, #ff6b6b, #ff8e53); }
.cat-2 .category-icon { background: linear-gradient(135deg, #4ecdc4, #44a08d); }
.cat-3 .category-icon { background: linear-gradient(135deg, #667eea, #764ba2); }
.cat-4 .category-icon { background: linear-gradient(135deg, #f093fb, #f5576c); }
.cat-5 .category-icon { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.cat-6 .category-icon { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.cat-7 .category-icon { background: linear-gradient(135deg, #fa709a, #fee140); }
.cat-8 .category-icon { background: linear-gradient(135deg, #a8edea, #fed6e3); }
.cat-9 .category-icon { background: linear-gradient(135deg, #ff9a9e, #fecfef); }
.cat-10 .category-icon { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
.cat-11 .category-icon { background: linear-gradient(135deg, #ffecd2, #fcb69f); }
.cat-12 .category-icon { background: linear-gradient(135deg, #667eea, #764ba2); }

.category-icon {
    font-size: 28px;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.category-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }

.category-card p {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 14px;
}

.category-card .arrow {
    display: inline-block;
    color: var(--accent-blue);
    font-size: 18px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.category-card:hover .arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ===== 产品推荐 ===== */
.tech-products {
    background: var(--primary-dark);
}

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

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(26, 111, 196, 0.25);
}

.product-img {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.product-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #1a6fc4, #6c3fa0);
    color: white;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-desc {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 14px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-more {
    font-size: 13px;
    color: var(--accent-blue);
    font-weight: 500;
}

/* ===== 优势数据 ===== */
.tech-advantage {
    background: linear-gradient(180deg, var(--primary-dark) 0%, rgba(13, 59, 122, 0.4) 50%, var(--primary-dark) 100%);
}

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

.advantage-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
}

.advantage-num {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #00d4ff, #6c3fa0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.advantage-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 6px;
}

.advantage-item p {
    font-size: 13px;
    color: var(--text-gray);
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #00d4aa, #00a080);
    border-radius: 50%;
    font-size: 14px;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 13px;
    color: var(--text-gray);
}

/* ===== 应用领域 ===== */
.tech-industry {
    background: var(--primary-dark);
}

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

.industry-item {
    padding: 30px 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}

.industry-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 8px 30px rgba(26, 111, 196, 0.2);
}

.industry-icon {
    font-size: 36px;
    margin-bottom: 14px;
}

.industry-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.industry-item p {
    font-size: 13px;
    color: var(--text-gray);
}

/* ===== 新闻动态 ===== */
.tech-news {
    background: linear-gradient(180deg, var(--primary-dark) 0%, rgba(13, 59, 122, 0.3) 100%);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.news-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    transition: all 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 8px 30px rgba(26, 111, 196, 0.2);
}

.news-date {
    padding: 20px;
    background: linear-gradient(135deg, rgba(26, 111, 196, 0.3), rgba(108, 63, 160, 0.3));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 90px;
}

.news-date .day {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.news-date span {
    font-size: 13px;
    color: var(--text-gray);
}

.news-info {
    padding: 20px;
}

.news-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-info p {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 12px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-more {
    font-size: 13px;
    color: var(--accent-blue);
    font-weight: 500;
}

/* ===== CTA ===== */
.tech-cta {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0d3b7a 0%, #1a237e 50%, #2d1b69 100%);
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 14px;
}

.cta-content p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 36px;
}

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

/* ===== 底部 ===== */
.tech-footer {
    background: #060e1a;
    padding: 60px 0 0;
}

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

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-white);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo img {
    height: 36px;
}

.footer-logo span {
    font-size: 16px;
    font-weight: 600;
}

.footer-col p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
}

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

.footer-col ul li a {
    font-size: 14px;
    color: var(--text-gray);
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    border-top: 1px solid var(--card-border);
    padding: 20px 0;
    text-align: center;
    display: flex;
    justify-content: space-between;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-gray);
}

/* ===== 动画 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .advantage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .industry-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .banner-title {
        font-size: 36px;
    }
    
    .banner-subtitle {
        font-size: 16px;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .header-phone {
        display: none;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advantage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-list {
        grid-template-columns: 1fr;
    }
    
    .industry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .cta-content h2 {
        font-size: 30px;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .banner-title {
        font-size: 28px;
    }
    
    .banner-btns {
        flex-direction: column;
        gap: 12px;
    }
    
    .category-grid,
    .product-grid,
    .industry-grid {
        grid-template-columns: 1fr;
    }
    
    .advantage-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-btns {
        flex-direction: column;
    }
}