/* ===== 基础重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    color: #1a1a2e;
    background: #fff;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== 导航栏 ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    height: 60px;
    overflow: visible;
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 60px;
}
.logo { display: flex; flex-direction: row; align-items: center; gap: 12px; position: relative; z-index: 10; }
.logo-icon {
    width: auto;
    height: 60px !important;
    object-fit: contain;
    transition: all 0.3s ease;
}
.logo-navi { height: 80px !important; width: auto !important; object-fit: contain; display: block; }
.logo-wordmark { display: flex; flex-direction: column; justify-content: center; }
.logo-text { font-size: 22px !important; font-weight: 700; color: #1a1a2e; letter-spacing: 2px; line-height: 1.2; }
.logo-sub { font-size: 10px !important; color: #6b7280; display: block; letter-spacing: 1px; line-height: 1.4; }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
    font-size: 15px; color: #4a4a6a; font-weight: 500;
    transition: color 0.2s; position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: #4361ee; transition: width 0.3s;
}
.nav-links a:hover { color: #4361ee; }
.nav-links a:hover::after { width: 100%; }
.btn-nav {
    padding: 8px 20px; background: #4361ee; color: #fff;
    border-radius: 8px; font-size: 14px; font-weight: 600;
    transition: all 0.2s; letter-spacing: 0.5px;
}
.btn-nav:hover { background: #3451d1; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(67,97,238,0.3); }

/* ===== Hero ===== */
.hero {
    min-height: 100vh; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
    position: relative; padding: 100px 24px 80px;
    background: url('/static/images/hero-bg.jpg') center/cover no-repeat;
    overflow: hidden;
}
.hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(15,12,41,0.92) 0%, rgba(48,43,99,0.85) 50%, rgba(36,36,62,0.9) 100%);
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(67,97,238,0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(0,200,150,0.1) 0%, transparent 60%);
}
.hero-overlay {
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
    display: inline-block; padding: 6px 16px;
    background: rgba(67,97,238,0.2); border: 1px solid rgba(67,97,238,0.4);
    border-radius: 20px; color: #8b9fff; font-size: 13px;
    font-weight: 600; letter-spacing: 1px; margin-bottom: 24px;
}
.hero h1 {
    font-size: 60px; font-weight: 800; color: #fff;
    letter-spacing: -1px; margin-bottom: 20px; line-height: 1.1;
}
.hero-sub {
    font-size: 18px; color: rgba(255,255,255,0.7);
    max-width: 600px; margin: 0 auto 40px; line-height: 1.8;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
    display: flex; gap: 60px; margin-top: 80px;
    padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1);
    position: relative; z-index: 2;
}
.stat-item { text-align: center; }
.stat-num { display: block; font-size: 36px; font-weight: 800; color: #fff; }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 4px; }

/* ===== 按钮 ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 10px; font-size: 15px;
    font-weight: 600; cursor: pointer; transition: all 0.2s;
    border: none; letter-spacing: 0.5px;
}
.btn-primary { background: #4361ee; color: #fff; }
.btn-primary:hover { background: #3451d1; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(67,97,238,0.35); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.3); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }
.btn-outline-dark { background: transparent; color: #1a1a2e; border: 2px solid #1a1a2e; }
.btn-outline-dark:hover { background: #1a1a2e; color: #fff; }
.btn-white { background: #fff; color: #4361ee; }
.btn-white:hover { background: #f0f0f0; transform: translateY(-2px); }

/* ===== 通用 Section ===== */
.section { padding: 100px 0; }
.section-header {
    text-align: center; margin-bottom: 60px;
}
.section-header h2 { font-size: 36px; font-weight: 700; margin: 12px 0 16px; }
.section-header p { font-size: 16px; color: #6b7280; }
.section-tag {
    display: inline-block; padding: 4px 12px; background: rgba(67,97,238,0.1);
    color: #4361ee; border-radius: 6px; font-size: 13px; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase;
}
.section-tag.light { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.8); }
.more-link { color: #4361ee; font-weight: 600; font-size: 14px; }

/* ===== 产品卡片 ===== */
.products-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.product-card {
    background: #fff; border-radius: 20px; padding: 48px 40px;
    border: 1px solid #e5e7eb; transition: all 0.3s;
    position: relative; overflow: hidden;
}
.product-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.ai-card::before { background: linear-gradient(90deg, #4361ee, #7c3aed); }
.iot-card::before { background: linear-gradient(90deg, #10b981, #059669); }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.product-icon { width: 100%; height: 200px; border-radius: 12px; overflow: hidden; margin-bottom: 20px; position: relative; }
.product-icon img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .product-icon img { transform: scale(1.05); }
.product-card h3 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.product-card > p { color: #6b7280; margin-bottom: 24px; line-height: 1.8; }
.product-features { margin-bottom: 28px; }
.product-features li {
    padding: 6px 0; color: #4a4a6a; font-size: 14px;
    border-bottom: 1px solid #f3f4f6;
}
.product-features li:last-child { border-bottom: none; }
.btn-card {
    display: inline-block; padding: 10px 24px;
    background: #f8f9ff; color: #4361ee;
    border-radius: 8px; font-size: 14px; font-weight: 600;
    transition: all 0.2s;
}
.ai-card .btn-card:hover { background: #4361ee; color: #fff; }
.iot-card .btn-card { background: #f0fdf4; color: #059669; }
.iot-card .btn-card:hover { background: #059669; color: #fff; }

/* ===== 联合解决方案 Banner ===== */
.solution-banner {
    background: url('/static/images/solution-banner-bg.jpg') center/cover no-repeat;
    position: relative;
}
.solution-banner::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(67,97,238,0.92) 0%, rgba(124,58,237,0.9) 100%);
}
.solution-content { text-align: center; color: #fff; max-width: 700px; margin: 0 auto; position: relative; z-index: 2; }
.solution-content h2 { font-size: 36px; margin: 16px 0 20px; }
.solution-content p { color: rgba(255,255,255,0.8); font-size: 16px; line-height: 1.9; margin-bottom: 32px; }
.solution-features { display: flex; justify-content: center; gap: 32px; margin-bottom: 36px; flex-wrap: wrap; }
.sf-item { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.sf-icon { width: 32px; height: 32px; background: rgba(255,255,255,0.2); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }

/* ===== 应用场景 ===== */
.scenarios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.scenario-card {
    padding: 32px 28px; border-radius: 16px;
    background: #f8f9fc; border: 1px solid #eef0f5;
    transition: all 0.3s;
}
.scenario-card:hover { background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,0.06); transform: translateY(-2px); }
.scenario-icon { width: 80px; height: 80px; border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.scenario-icon img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.scenario-card:hover .scenario-icon img { transform: scale(1.1); }
.scenario-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.scenario-card p { font-size: 14px; color: #6b7280; line-height: 1.7; }

/* ===== 新闻 ===== */
.news-section .section-header { position: relative; }
.news-section .section-header::after { content: ''; display: block; clear: both; }
.news-section .more-link { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
    background: #fff; border: 1px solid #e5e7eb;
    border-radius: 12px; padding: 0; display: block;
    transition: all 0.25s; overflow: hidden;
}
.news-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-3px); border-color: #4361ee; }
.news-card-image { width: 100%; height: 180px; object-fit: cover; }
.news-card-image-placeholder { width: 100%; height: 180px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.news-card-body { padding: 20px; }
.news-date { font-size: 12px; color: #9ca3af; margin-bottom: 10px; }
.news-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 10px; line-height: 1.5; color: #1a1a2e; }
.news-card p { font-size: 13px; color: #6b7280; line-height: 1.7; margin-bottom: 16px; }
.news-more { font-size: 13px; color: #4361ee; font-weight: 600; }

/* ===== CTA ===== */
.cta-section { background: #f8f9fc; text-align: center; }
.cta-section h2 { font-size: 36px; margin-bottom: 16px; }
.cta-section p { color: #6b7280; font-size: 16px; margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 16px; justify-content: center; }

/* ===== Footer ===== */
.footer {
    background: #1a1a2e; color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-logo-wrap { display: flex; align-items: center; gap: 24px; margin-bottom: 20px; background: transparent !important; }
.footer-logo-img { height: 140px !important; width: auto !important; object-fit: contain; background: transparent !important; }
.footer-logo { display: flex; align-items: center; gap: 24px; margin-bottom: 20px; }
.footer-logo img { height: 120px !important; width: auto !important; object-fit: contain; }
.footer-logo-text { display: flex; flex-direction: column; gap: 6px; }
.footer-logo-name { font-size: 32px; font-weight: 800; color: #fff; letter-spacing: 3px; line-height: 1.2; }
.footer-logo-full { font-size: 13px; color: rgba(255,255,255,0.55); letter-spacing: 1px; }
.footer-brand p { font-size: 14px; line-height: 1.8; }
.footer-links h5 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: #8b9fff; }
.footer-links li { font-size: 14px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px; text-align: center; font-size: 13px;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: 1fr; }
    .scenarios-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 44px; }
    .footer-logo-name { font-size: 26px; }
    .footer-logo-img { height: 110px !important; }
    .footer-logo-wrap { gap: 16px; }
    .logo-icon, .logo-navi { height: 64px !important; margin-top: -2px !important; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 32px; }
    .hero-stats { gap: 30px; }
    .scenarios-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-actions { flex-direction: column; align-items: center; }
    .section { padding: 60px 0; }
    .footer-logo-name { font-size: 22px; }
    .footer-logo-img { height: 80px !important; }
    .footer-logo-wrap { flex-direction: column; align-items: flex-start; gap: 12px; }
    .logo-icon, .logo-navi { height: 56px !important; margin-top: 2px !important; }
}
