/* ===== 基础重置 ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary: #e53935;
    --primary-dark: #c62828;
    --primary-light: #fdecea;
    --accent: #ff7043;
    --text: #1a2332;
    --text-light: #5a6b80;
    --text-muted: #8a98ac;
    --bg: #ffffff;
    --bg-soft: #f6f9fc;
    --border: #e6ecf2;
    --shadow-sm: 0 2px 8px rgba(20, 50, 100, 0.06);
    --shadow-md: 0 8px 28px rgba(20, 50, 100, 0.10);
    --shadow-lg: 0 16px 48px rgba(20, 50, 100, 0.14);
    --radius: 12px;
    --radius-lg: 20px;
    --maxw: 1200px;
    --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);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== 按钮 ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 13px 32px; border-radius: 8px; font-size: 15px; font-weight: 600;
    cursor: pointer; border: none; transition: var(--transition);
    letter-spacing: 0.5px;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(229, 57, 53, 0.35); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-block { width: 100%; }

/* ===== 头部导航 ===== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--text); }
.logo-img { height: 44px; width: auto; display: block; }
.logo-text { font-size: 20px; font-weight: 700; letter-spacing: 1px; color: var(--text); }
.logo-light .logo-text { color: #fff; }
/* 页脚使用浅色版 logo；若未提供则回退到主 logo 并反色显示 */
.logo-light .logo-img.logo-fallback { filter: brightness(0) invert(1); }
.nav { display: flex; gap: 8px; }
.nav-link {
    padding: 8px 16px; border-radius: 7px; font-size: 15px; font-weight: 500;
    color: var(--text-light); transition: var(--transition); position: relative;
}
.nav-link:hover { color: var(--primary); background: var(--primary-light); }
.nav-link.active { color: var(--primary); }
.nav-link.active::after {
    content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
    width: 24px; height: 3px; border-radius: 2px; background: var(--primary);
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== 产品方案二级下拉菜单 ===== */
.nav-item { position: relative; display: flex; align-items: center; }
.has-dropdown .caret {
    display: inline-block; font-size: 14px; line-height: 1; margin-left: 6px;
    transition: transform 0.25s ease;
}
.has-dropdown:hover .caret,
.has-dropdown:focus-within .caret { transform: rotate(180deg); }
.nav-dropdown {
    position: absolute; top: calc(100% + 8px); left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 210px; padding: 8px;
    display: flex; flex-direction: column; gap: 2px;
    background: #fff; border: 1px solid var(--border); border-radius: 10px;
    box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    z-index: 100;
}
/* 透明桥接区，避免鼠标从触发器移到下拉层时间隙断开 */
.nav-dropdown::before {
    content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px;
}
.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown-link {
    padding: 10px 14px; border-radius: 7px; font-size: 14px; font-weight: 500;
    color: var(--text-light); white-space: nowrap; transition: var(--transition);
}
.dropdown-link:hover { color: var(--primary); background: var(--primary-light); }
.dropdown-link.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding-top: 72px; }
.hero-bg {
    position: absolute; inset: 0;
    background-image: url('../images/back.jpg'),
                      linear-gradient(135deg, #2a0606 0%, #6b0d0d 40%, #e53935 100%);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}
.hero-bg::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(42,6,6,0.65) 0%, rgba(107,13,13,0.55) 40%, rgba(229,57,53,0.55) 100%),
                radial-gradient(circle at 20% 30%, rgba(255, 112, 67, 0.2) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(229, 57, 53, 0.3) 0%, transparent 45%);
}
.hero-bg::after {
    content: ''; position: absolute; inset: 0; opacity: 0.05;
    background-image: linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
    background-size: 60px 60px;
}
.hero-content {
    position: relative; z-index: 2; color: #fff; padding: 80px 24px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-text { text-align: left; }
.hero-title {
    font-size: clamp(26px, 3.8vw, 44px); font-weight: 800; letter-spacing: 2px;
    margin-bottom: 18px; animation: fadeUp 1s ease both; line-height: 1.2;
    background: linear-gradient(90deg, #fff, #ffcdd2);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle { font-size: clamp(18px, 2.2vw, 24px); font-weight: 500; margin-bottom: 18px; opacity: 0.95; animation: fadeUp 1s 0.15s ease both; }
.hero-desc { font-size: 15px; opacity: 0.82; margin-bottom: 36px; animation: fadeUp 1s 0.3s ease both; }
.hero-actions { display: flex; gap: 16px; justify-content: flex-start; margin-bottom: 60px; animation: fadeUp 1s 0.45s ease both; }
.hero-stats { display: flex; gap: 48px; animation: fadeUp 1s 0.6s ease both; }
.stat-item { display: flex; flex-direction: column; align-items: flex-start; }
.stat-num { font-size: 44px; font-weight: 800; color: #fff; line-height: 1; }
.stat-suffix { font-size: 28px; font-weight: 700; color: var(--accent); }
.stat-label { margin-top: 10px; font-size: 14px; opacity: 0.75; letter-spacing: 1px; }
.hero-visual {
    animation: fadeUp 1s 0.3s ease both;
    position: relative;
}
/* 图片外层红色光晕 + 半透明红色渐变蒙层，让深色图自然融入红色背景 */
.hero-visual::before {
    content: ''; position: absolute; inset: 0; z-index: 2; border-radius: 16px;
    background: linear-gradient(135deg, rgba(42,6,6,0.55) 0%, rgba(107,13,13,0.35) 50%, rgba(229,57,53,0.45) 100%),
                radial-gradient(ellipse at center, transparent 40%, rgba(42,6,6,0.75) 100%);
    pointer-events: none; mix-blend-mode: multiply;
}
/* 外围红光晕，消除图片硬边 */
.hero-visual::after {
    content: ''; position: absolute; inset: -40px; z-index: 1;
    background: radial-gradient(ellipse at center, rgba(229, 57, 53, 0.55) 0%, rgba(107, 13, 13, 0.3) 40%, transparent 75%);
    pointer-events: none; filter: blur(35px);
}
.hero-visual img {
    width: 100%; height: auto; border-radius: 16px; position: relative; z-index: 0;
    opacity: 0.88;
}

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

/* ===== 通用区块 ===== */
/* 全站板块间距统一：相邻板块间隙 = 2×padding（桌面80 / 移动64） */
.section { padding: 40px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-tag {
    display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px;
    color: var(--primary); background: var(--primary-light);
    padding: 6px 16px; border-radius: 20px; margin-bottom: 18px;
}
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 14px; color: var(--text); }
.section-subtitle { font-size: 16px; color: var(--text-light); }

/* ===== 关于我们 ===== */
.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; }
.about-text h3 { font-size: 28px; font-weight: 700; margin-bottom: 18px; color: var(--text); }
.about-text p { color: var(--text-light); margin-bottom: 16px; }
.about-list { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text); }
.check {
    width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
    background: var(--primary); position: relative;
}
.check::after {
    content: ''; position: absolute; top: 5px; left: 6px; width: 5px; height: 9px;
    border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ===== 产品方案 ===== */
.products { background: var(--bg-soft); }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
/* 三卡片区：等宽三列铺满 */
.product-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
.product-grid.grid-3 .product-img { height: 220px; }
.product-grid.grid-3 .product-body { padding: 24px; }
.product-card {
    background: #fff; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: var(--transition);
    border: 1px solid var(--border); display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.product-img { height: 320px; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-body { padding: 32px; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { font-size: 22px; font-weight: 700; margin-bottom: 14px; color: var(--text); }
.product-body > p { color: var(--text-light); font-size: 15px; margin-bottom: 20px; }
.feature-list { margin-bottom: 22px; }
.feature-list li {
    padding: 7px 0; font-size: 14px; color: var(--text-light); position: relative; padding-left: 26px;
}
.feature-list li::before {
    content: ''; position: absolute; left: 0; top: 14px; width: 6px; height: 6px;
    border-radius: 50%; background: var(--primary);
}
.product-links { display: flex; align-items: center; gap: 20px; margin-top: auto; }
.product-link { color: var(--primary); font-weight: 600; font-size: 15px; transition: var(--transition); }
.product-link:hover { color: var(--primary-dark); letter-spacing: 0.5px; }
.product-demo { color: var(--text-light); }
.product-demo:hover { color: var(--primary); }

/* ===== 解决方案 ===== */
.solutions { background: var(--bg-soft); }
.solution-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.solution-card {
    text-align: center; padding: 40px 24px; border-radius: var(--radius);
    background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: var(--transition);
}
.solution-card:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: transparent; transform: translateY(-6px); box-shadow: var(--shadow-md);
}
.solution-card:hover h3, .solution-card:hover p { color: #fff; }
.solution-icon {
    width: auto; height: auto; margin: 0 auto 20px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    background: none; border-radius: 0;
}
.solution-icon img {
    width: 120px; height: 120px; object-fit: contain;
    mix-blend-mode: multiply; transition: var(--transition);
}
.solution-card:hover .solution-icon img {
    mix-blend-mode: normal;
    background: #fff; border-radius: 18px; padding: 10px;
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}
.solution-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 12px; color: var(--text); transition: var(--transition); }
.solution-card p { font-size: 14px; color: var(--text-light); transition: var(--transition); }

/* ===== 合作伙伴与资质 ===== */
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 48px; }
.partner-logo {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    height: 110px; padding: 12px 16px; text-align: center;
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    font-size: 16px; font-weight: 700; color: #9aa3b2; letter-spacing: 1px;
    filter: grayscale(1); transition: var(--transition);
}
.partner-logo:hover { color: var(--primary); border-color: var(--primary); filter: none; transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.partner-logo img { max-height: 48px; max-width: 80%; object-fit: contain; filter: grayscale(1); opacity: 0.75; transition: var(--transition); }
.partner-logo:hover img { filter: none; opacity: 1; }
.partner-logo span { font-size: 14px; color: var(--text); letter-spacing: 0; }

/* ===== 新闻资讯 ===== */
.news { background: var(--bg-soft); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card {
    background: #fff; padding: 30px; border-radius: var(--radius);
    box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: var(--transition);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.news-date { font-size: 13px; color: var(--primary); font-weight: 600; margin-bottom: 12px; }
.news-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: var(--text); line-height: 1.5; }
.news-card p { font-size: 14px; color: var(--text-light); margin-bottom: 16px; }
.news-link { color: var(--primary); font-size: 14px; font-weight: 600; transition: var(--transition); }
.news-link:hover { color: var(--primary-dark); }

/* ===== 联系我们 ===== */
/* 首页联系板块浅灰底：与上方白色合作伙伴板块交替，表单白色卡片浮起。
   用 #contact 精准命中首页，避免影响子页面底部 id="cta" 的 CTA 区块（保持白色交替） */
#contact { background: var(--bg-soft); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: start; }
.contact-info { display: grid; gap: 24px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-icon {
    width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
    background: var(--primary-light);
}
.info-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.info-item p { font-size: 14px; color: var(--text-light); }
.contact-form {
    background: #fff; padding: 36px; border-radius: var(--radius-lg);
    border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.contact-form input,
.contact-form textarea {
    width: 100%; padding: 13px 16px; border: 1px solid var(--border); border-radius: 8px;
    font-size: 15px; font-family: inherit; background: var(--bg-soft); color: var(--text);
    transition: var(--transition); margin-bottom: 14px;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12); }
.form-tip { font-size: 14px; text-align: center; margin-top: 12px; color: var(--primary); min-height: 20px; }

/* ===== 页脚 ===== */
.footer { background: #2a0606; color: #b3c2d8; padding: 60px 0 0; }
.footer-wrap { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 40px; }
.logo-light { color: #fff; }
.footer-desc { margin-top: 16px; font-size: 14px; line-height: 1.7; opacity: 0.75; }
.footer-col h4 { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a, .footer-col ul li { font-size: 14px; color: #b3c2d8; transition: var(--transition); }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; }
.footer-bottom p { font-size: 13px; text-align: center; opacity: 0.7; }
.footer-bottom .beian-link { color: inherit; text-decoration: none; transition: var(--transition); }
.footer-bottom .beian-link:hover { color: #fff; opacity: 1; }

/* ===== 滚动动画 ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .solution-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid, .news-grid { grid-template-columns: 1fr; }
    /* 三卡片区平板端保持三列等宽 */
    .product-grid.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .product-grid.grid-3 .product-img { height: 160px; }
    .product-grid.grid-3 .product-body { padding: 18px; }
    .partner-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-wrap { grid-template-columns: 1fr 1fr; gap: 32px; }
    .hero-stats { gap: 36px; }
}
@media (max-width: 768px) {
    .nav { position: fixed; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column;
        padding: 16px 24px; gap: 4px; box-shadow: var(--shadow-md);
        transform: translateY(-150%); transition: transform 0.4s ease; }
    .nav.open { transform: translateY(0); }
    .nav-toggle { display: flex; }
    /* 移动端下拉子菜单静态展开、缩进显示 */
    .nav .nav-item { flex-direction: column; align-items: stretch; width: 100%; }
    .has-dropdown .caret { display: none; }
    .nav-dropdown {
        position: static; transform: none; opacity: 1; visibility: visible;
        min-width: 0; width: 100%; padding: 0 0 2px 14px; gap: 0;
        border: none; border-radius: 0; box-shadow: none;
    }
    .nav-dropdown::before { display: none; }
    .dropdown-link { padding: 8px 14px; }
    .section { padding: 32px 0; }
    .section-head { margin-bottom: 40px; }
    /* 三卡片区手机端单列堆叠 */
    .product-grid.grid-3 { grid-template-columns: 1fr; gap: 24px; }
    .product-grid.grid-3 .product-img { height: 220px; }
    .product-grid.grid-3 .product-body { padding: 24px; }
    .solution-icon img { width: 92px; height: 92px; }
    .about-list { grid-template-columns: 1fr; }
    .hero-content { grid-template-columns: 1fr; gap: 40px; padding: 60px 24px; }
    .hero-text { text-align: center; }
    .hero-actions { flex-direction: column; align-items: center; justify-content: center; }
    .hero-stats { flex-wrap: wrap; gap: 28px; justify-content: center; }
    .stat-item { align-items: center; }
    .stat-num { font-size: 34px; }
    .form-row { grid-template-columns: 1fr; }
    .partner-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .partner-logo { height: 92px; font-size: 13px; }
    .footer-wrap { grid-template-columns: 1fr; }
    .contact-form { padding: 24px; }
    .logo-img { height: 36px; }
    .logo-text { font-size: 17px; }
}
