/* ================= 基础 ================= */
:root {
    --primary: #1246a8;
    --primary-deep: #0b2e74;
    --primary-grad: linear-gradient(120deg, #0b2e74 0%, #1d5fd0 100%);
    --accent: #f5a623;
    --dark: #0e1b33;
    --text: #2b3446;
    --muted: #6b7487;
    --light: #f5f8fd;
    --border: #e6ebf4;
    --radius: 14px;
    --shadow: 0 10px 34px rgba(16, 46, 110, .09);
    --shadow-hover: 0 18px 44px rgba(16, 46, 110, .16);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; color: var(--text); background: #fff; line-height: 1.7; -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100vh; animation: pageIn .3s ease; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ================= 按钮 ================= */
.btn { display: inline-block; padding: 12px 30px; border-radius: 999px; font-size: 15px; font-weight: 600; cursor: pointer; border: 1.5px solid transparent; transition: all .25s ease; letter-spacing: 1px; text-align: center; }
.btn-lg { padding: 15px 38px; font-size: 16px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 22px rgba(18, 70, 168, .32); }
.btn-primary:hover { background: var(--primary-deep); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--primary-deep); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.btn-ghost { border-color: rgba(255, 255, 255, .65); color: #fff; background: rgba(255, 255, 255, .06); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-block { width: 100%; }

/* ================= 顶部信息栏 ================= */
.topbar { background: var(--primary-deep); color: rgba(255, 255, 255, .85); font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar-left, .topbar-right { display: flex; gap: 22px; align-items: center; }
.topbar-admin { color: #ffd37a; }
.topbar-admin:hover { color: #fff; }

/* ================= 导航 ================= */
.navbar { background: #fff; position: sticky; top: 0; z-index: 100; transition: box-shadow .25s; }
.navbar.scrolled { box-shadow: 0 4px 24px rgba(16, 46, 110, .10); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; position: relative; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark svg { display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-text strong { font-size: 22px; color: var(--dark); letter-spacing: 2px; }
.logo-text em { font-style: normal; font-size: 10.5px; color: var(--muted); letter-spacing: 1.6px; }
.nav-list { display: flex; gap: 8px; }
.nav-list > li > a { display: block; padding: 8px 20px; font-size: 16px; color: var(--text); border-radius: 999px; transition: all .2s; }
.nav-list > li > a:hover { color: var(--primary); }
.nav-list > li.active > a { color: #fff; background: var(--primary-grad); }
.nav-toggle { display: none; border: none; background: none; font-size: 26px; color: var(--dark); cursor: pointer; }

/* ================= 首屏 ================= */
.hero { position: relative; min-height: 620px; display: flex; align-items: center; background-size: cover; background-position: center; background-color: #0b2e74; color: #fff; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(8, 26, 66, .93) 15%, rgba(13, 46, 118, .72) 55%, rgba(18, 70, 168, .45)); }
.hero-inner { position: relative; z-index: 2; padding: 110px 0; }
.hero-badge { display: inline-block; padding: 8px 22px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 14px; letter-spacing: 2px; margin-bottom: 26px; }
.hero-title { font-size: 52px; line-height: 1.3; font-weight: 700; letter-spacing: 3px; margin-bottom: 22px; text-shadow: 0 4px 18px rgba(0, 0, 0, .25); }
.hero-desc { font-size: 17px; color: rgba(255, 255, 255, .88); max-width: 640px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

/* ================= 滚动显现 ================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .12s; }
.d2 { transition-delay: .24s; }
.d3 { transition-delay: .36s; }

/* ================= 通用板块 ================= */
.section { padding: 88px 0; }
.section-light { background: var(--light); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head.left { text-align: left; margin-bottom: 28px; }
.section-label { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 3px; color: var(--primary); text-transform: uppercase; margin-bottom: 10px; padding-left: 14px; border-left: 3px solid var(--accent); }
.section-head h2 { font-size: 36px; color: var(--dark); letter-spacing: 2px; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 15.5px; }
.section-more { text-align: center; margin-top: 48px; }
.empty { text-align: center; padding: 80px 20px; color: var(--muted); font-size: 15px; background: var(--light); border-radius: var(--radius); }
.empty a { color: var(--primary); }

/* 列表页预占高度 + 加载占位：避免 AJAX 加载过程中页脚上下跳动 */
.section-list { min-height: 720px; }
.list-loading { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 90px 0; font-size: 14px; letter-spacing: 2px; }

/* ================= 关于我们（首页） ================= */
.about-home { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-home-media { position: relative; }
.about-home-media img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-home-badge { position: absolute; right: -26px; bottom: 36px; background: #fff; border-radius: var(--radius); padding: 20px 26px; box-shadow: var(--shadow-hover); text-align: center; }
.about-home-badge strong { display: block; font-size: 40px; color: var(--primary); line-height: 1.1; }
.about-home-badge span { font-size: 13px; color: var(--muted); }
.about-home-text { color: var(--muted); font-size: 15.5px; margin-bottom: 24px; }
.about-points { margin-bottom: 34px; display: grid; gap: 14px; }
.about-points li { position: relative; padding-left: 32px; color: var(--text); font-size: 15px; }
.about-points li::before { content: '✓'; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; background: var(--primary-grad); color: #fff; border-radius: 50%; font-size: 12px; display: flex; align-items: center; justify-content: center; }

/* ================= 数据统计 ================= */
.stats { background: var(--primary-grad); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.stats::after { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(255, 255, 255, .05); top: -160px; right: -120px; }
.stats::before { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .05); bottom: -120px; left: 8%; }
.stats-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item strong { display: block; font-size: 46px; font-weight: 700; color: #ffd37a; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-item span { font-size: 15px; color: rgba(255, 255, 255, .85); letter-spacing: 2px; }

/* ================= 产品 ================= */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease; border: 1px solid var(--border); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.product-cover { height: 210px; overflow: hidden; background: #e8edf6; }
.product-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-cover img { transform: scale(1.06); }
.product-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.product-cat { align-self: flex-start; font-size: 12px; color: var(--primary); background: rgba(18, 70, 168, .08); padding: 3px 12px; border-radius: 999px; margin-bottom: 12px; }
.product-body h3 { font-size: 19px; color: var(--dark); margin-bottom: 10px; }
.product-body p { font-size: 14px; color: var(--muted); flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-more { margin-top: 14px; font-size: 13.5px; color: var(--primary); font-weight: 600; }
.product-card:hover .product-more { color: var(--accent); }

/* ================= 新闻（首页卡片） ================= */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all .3s; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.news-cover { height: 190px; overflow: hidden; background: #e8edf6; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-cover img { transform: scale(1.06); }
.news-body { padding: 22px 24px 26px; }
.news-date { font-size: 13px; color: var(--primary); font-weight: 700; }
.news-body h3 { font-size: 17.5px; color: var(--dark); margin: 8px 0 10px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 52px; }
.news-body h3:hover { color: var(--primary); }
.news-body p { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ================= 新闻列表页 ================= */
.news-list { display: grid; gap: 24px; }
.news-item { display: grid; grid-template-columns: 260px 1fr; gap: 30px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); transition: all .3s; }
.news-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: transparent; }
.news-item-cover { height: 170px; border-radius: 10px; overflow: hidden; background: #e8edf6; }
.news-item-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-item-body { display: flex; flex-direction: column; padding: 6px 4px; }
.news-item-body h3 { font-size: 20px; color: var(--dark); margin-bottom: 10px; line-height: 1.5; }
.news-item-body h3:hover { color: var(--primary); }
.news-item-body > p { color: var(--muted); font-size: 14.5px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item-meta { display: flex; gap: 18px; align-items: center; font-size: 13px; color: #9aa3b5; }
.news-item-meta .product-more { margin: 0; margin-left: auto; }

/* ================= 合作邀请 ================= */
.cta { background: var(--primary-grad); padding: 76px 0; position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .12), transparent 45%), radial-gradient(circle at 10% 90%, rgba(245, 166, 35, .18), transparent 40%); }
.cta-inner { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; color: #fff; }
.cta-text h2 { font-size: 34px; letter-spacing: 2px; margin-bottom: 10px; }
.cta-text p { color: rgba(255, 255, 255, .85); }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ================= 页脚 ================= */
.site-footer { background: #0c1526; color: #9aa7bd; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 20px 48px; }
.footer-logo { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.footer-logo .logo-text strong { color: #fff; }
.footer-desc { font-size: 13.5px; line-height: 1.9; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 20px; letter-spacing: 1px; }
.footer-links { display: grid; gap: 12px; font-size: 14px; }
.footer-links a:hover { color: #fff; padding-left: 6px; transition: all .2s; }
.footer-contact { display: grid; gap: 12px; font-size: 13.5px; line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 20px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; }

/* ================= 子页横幅 ================= */
.page-banner { background: var(--primary-grad); position: relative; padding: 70px 0 60px; color: #fff; overflow: hidden; }
.page-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 10%, rgba(255, 255, 255, .14), transparent 40%), radial-gradient(circle at 15% 100%, rgba(245, 166, 35, .16), transparent 35%); }
.page-banner .container { position: relative; z-index: 2; }
.page-banner-title { font-size: 38px; letter-spacing: 3px; margin-bottom: 8px; }
.page-banner-crumb { font-size: 14px; color: rgba(255, 255, 255, .8); }
.page-banner-crumb a:hover { color: #ffd37a; }
.page-banner-crumb i { font-style: normal; margin: 0 8px; opacity: .6; }

/* ================= 标签筛选 & 分页 ================= */
.tabs { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 46px; }
.tab { padding: 9px 26px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--muted); font-size: 15px; cursor: pointer; transition: all .22s; }
.tab:hover { color: var(--primary); border-color: var(--primary); }
.tab.active { background: var(--primary-grad); border-color: transparent; color: #fff; box-shadow: 0 8px 20px rgba(18, 70, 168, .28); }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 52px; flex-wrap: wrap; }
.page-btn { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--muted); cursor: pointer; font-size: 14px; transition: all .2s; }
.page-btn:hover:not(.disabled):not(.active) { color: var(--primary); border-color: var(--primary); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-btn.disabled { opacity: .45; cursor: default; }
.page-ellipsis { align-self: center; color: var(--muted); }

/* ================= 详情页 ================= */
.detail-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 60px; }
.detail-cover img { width: 100%; height: 400px; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; background: #e8edf6; }
.detail-info .product-cat { margin-bottom: 14px; }
.detail-info h1 { font-size: 32px; color: var(--dark); line-height: 1.4; margin-bottom: 16px; }
.detail-summary { color: var(--muted); font-size: 15.5px; margin-bottom: 22px; }
.detail-meta { font-size: 14px; color: var(--muted); margin-bottom: 28px; padding: 14px 18px; background: var(--light); border-radius: 10px; border-left: 3px solid var(--accent); }
.detail-body-title { font-size: 22px; color: var(--dark); margin-bottom: 22px; padding-left: 14px; border-left: 4px solid var(--primary); }
.article-content { color: #4a5468; font-size: 15.5px; line-height: 2; }
.detail-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 56px; padding-top: 26px; border-top: 1px dashed var(--border); font-size: 14px; flex-wrap: wrap; }
.detail-nav a { color: var(--primary); }
.detail-nav a:hover { color: var(--accent); }
.related { margin-top: 70px; }

/* ================= 新闻详情 ================= */
.article { max-width: 860px; margin: 0 auto; }
.article-title { font-size: 30px; text-align: center; color: var(--dark); line-height: 1.5; }
.article-meta { text-align: center; color: #9aa3b5; font-size: 13.5px; margin: 18px 0 30px; display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.article-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 36px; min-height: 300px; background: #e8edf6; }
.article-cover img { width: 100%; max-height: 420px; object-fit: cover; }

/* ================= 关于页 ================= */
.about-detail { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: start; }
.about-detail-media img { width: 100%; height: 460px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); position: sticky; top: 100px; background: #e8edf6; }
.culture-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.culture-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 40px 32px; text-align: center; box-shadow: var(--shadow); transition: all .3s; }
.culture-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.culture-icon { font-size: 40px; }
.culture-card h3 { font-size: 20px; color: var(--dark); margin: 16px 0 12px; }
.culture-card p { color: var(--muted); font-size: 14.5px; }
.culture-extra { margin-top: 40px; background: #fff; border-left: 4px solid var(--accent); border-radius: 10px; padding: 26px 30px; color: var(--muted); box-shadow: var(--shadow); font-size: 15px; }

/* ================= 联系页 ================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; }
.contact-lead { color: var(--muted); margin-bottom: 28px; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-card { background: var(--light); border-radius: var(--radius); padding: 22px; transition: all .25s; }
.contact-card:hover { background: #fff; box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.contact-icon { font-size: 26px; }
.contact-card h4 { font-size: 15px; color: var(--dark); margin: 8px 0 6px; }
.contact-card p { font-size: 13.5px; color: var(--muted); line-height: 1.8; }
.contact-form-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); align-self: start; }
.contact-form-panel h3 { font-size: 22px; color: var(--dark); }
.contact-form-tip { color: var(--muted); font-size: 13.5px; margin: 6px 0 24px; }
.form-row { margin-bottom: 16px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form-panel input, .contact-form-panel textarea { width: 100%; padding: 13px 16px; border: 1px solid var(--border); border-radius: 10px; font-size: 14.5px; font-family: inherit; transition: border .2s, box-shadow .2s; background: #fbfcfe; }
.contact-form-panel input:focus, .contact-form-panel textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(18, 70, 168, .1); background: #fff; }
.contact-form-panel textarea { min-height: 130px; resize: vertical; }
.form-msg { margin-top: 12px; font-size: 14px; min-height: 20px; text-align: center; }

/* ================= 响应式 ================= */
@media (max-width: 992px) {
    .hero { min-height: 520px; }
    .hero-title { font-size: 38px; }
    .about-home, .about-detail, .contact-grid, .detail-head { grid-template-columns: 1fr; gap: 40px; }
    .product-grid, .news-grid, .culture-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
    .about-home-media img { height: 340px; }
    .about-detail-media img { position: static; height: 380px; }
    .detail-cover img { height: 320px; }
    .section-list { min-height: 560px; }
    .news-item { grid-template-columns: 200px 1fr; }
}
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-list { position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 4px; padding: 12px 20px 20px; box-shadow: 0 16px 30px rgba(16, 46, 110, .12); display: none; }
    .nav-list.open { display: flex; }
    .nav-list > li.active > a { background: none; color: var(--primary); }
    .topbar-right { display: none; }
    .hero { min-height: 460px; }
    .hero-title { font-size: 30px; letter-spacing: 1px; }
    .hero-desc { font-size: 15px; }
    .hero-inner { padding: 70px 0; }
    .section { padding: 60px 0; }
    .section-head h2 { font-size: 28px; }
    .about-home-badge { right: 12px; bottom: 16px; }
    .news-item { grid-template-columns: 1fr; }
    .form-row-2 { grid-template-columns: 1fr; }
    .about-detail-media img { height: 260px; }
    .detail-cover img { height: 240px; }
    .section-list { min-height: 480px; }
    .page-banner { padding: 50px 0 44px; }
    .page-banner-title { font-size: 28px; }
}
@media (max-width: 560px) {
    .product-grid, .news-grid, .culture-grid, .contact-cards { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 26px; }
    .about-home-media img { height: 240px; }
    .hero-actions .btn { width: 100%; }
    .cta-inner { flex-direction: column; text-align: center; }
    .cta-actions { justify-content: center; }
    .cta-actions .btn { width: 100%; }
}
