@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #002c5f;
    --accent: #1d4f9c;
    --light-blue: #ecf2f8;
    --text-gray: #6d6d6d;
    --border-gray: #d4d4d4;
    --maxw: 1600px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif; color: #1a1a1a; line-height: 1.7; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
@media (min-width: 1024px) { .container { padding: 0 48px; } }
@media (min-width: 1280px) { .container { padding: 0 80px; } }
.container.narrow { max-width: 900px; }

.section { padding: 80px 0; }
@media (min-width: 1024px) { .section { padding: 120px 0; } }
.bg-primary { background: var(--primary); }
.bg-light { background: var(--light-blue); }
.muted { color: var(--text-gray); }

.section-title { font-size: 24px; font-weight: 700; color: #000; margin: 0 0 32px; display: inline-block; }
@media (min-width: 1024px) { .section-title { font-size: 28px; } }
.section-title::after { content: ''; display: block; width: 50px; height: 3px; background: var(--accent); margin-top: 16px; }
.section-title.center { display: block; text-align: center; }
.section-title.center::after { margin-left: auto; margin-right: auto; }

.btn-more { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 500; font-size: 14px; transition: gap .3s; }
.btn-more:hover { gap: 12px; }
.btn { display: inline-block; padding: 12px 26px; background: var(--accent); color: #fff; border: 0; border-radius: 6px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: .2s; }
.btn:hover { background: var(--primary); }

/* ---------- Navbar ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 2000; transition: .3s; }
.nav.scrolled { background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); box-shadow: 0 2px 12px rgba(0, 0, 0, .08); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand .en { font-size: 10px; letter-spacing: 1px; color: rgba(255, 255, 255, .7); }
.brand .cn { font-size: 20px; font-weight: 700; letter-spacing: 1px; color: #fff; }
.brand .logo-img { height: 40px; }
.nav.scrolled .brand .en { color: var(--text-gray); }
.nav.scrolled .brand .cn { color: var(--primary); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .85); position: relative; padding: 4px 0; transition: .2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav.scrolled .nav-links a { color: #222; }
.nav.scrolled .nav-links a:hover, .nav.scrolled .nav-links a.active { color: var(--accent); }
.nav-links a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: currentColor; }
.nav-right { display: flex; align-items: center; gap: 16px; color: #fff; }
.nav.scrolled .nav-right { color: #222; }
.nav-phone { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.nav-lang a { font-size: 13px; opacity: .8; margin-left: 8px; }
.nav-lang a.active { color: var(--accent); font-weight: 600; opacity: 1; }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; color: inherit; font-size: 24px; line-height: 1; }
.mmenu { position: fixed; inset: 0; z-index: 1999; background: var(--primary); display: none; flex-direction: column; align-items: center; justify-content: center; gap: 26px; }
.mmenu.open { display: flex; }
.mmenu a { color: #fff; font-size: 20px; font-weight: 500; }
@media (max-width: 1023px) { .nav-links, .nav-phone { display: none; } .nav-burger { display: block; } }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; min-height: 560px; overflow: hidden; background: var(--primary); }
.hero video, .hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .overlay { position: absolute; inset: 0; background: rgba(0, 44, 95, .6); }
.hero-inner { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.hero-side { font-size: 48px; font-weight: 800; color: #fff; writing-mode: vertical-rl; letter-spacing: 6px; }
@media (min-width: 1024px) { .hero-side { font-size: 72px; } }
@media (max-width: 767px) { .hero-side { display: none; } }
.hero-center { text-align: center; flex: 1; }
.hero-eyebrow { font-size: 11px; letter-spacing: 6px; color: rgba(255, 255, 255, .7); margin-bottom: 10px; }
.hero-title { font-size: 28px; font-weight: 700; color: #fff; letter-spacing: 2px; margin: 0 0 28px; }
@media (min-width: 1024px) { .hero-title { font-size: 38px; } }
.hero-lines p { color: #fff; letter-spacing: 2px; margin: 5px 0; font-size: 15px; }

/* ---------- Stats ---------- */
.stats { background: var(--primary); padding: 64px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 0; } }
.stat { text-align: center; color: #fff; }
.stat .n { font-size: 46px; font-weight: 800; line-height: 1; display: inline-block; }
@media (min-width: 1024px) { .stat .n { font-size: 58px; } }
.stat .u { font-size: 22px; margin-left: 3px; }
.stat .d { font-size: 13px; color: rgba(255, 255, 255, .7); margin-top: 12px; }

/* ---------- Intro ---------- */
.intro-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .intro-grid { grid-template-columns: 2fr 3fr; gap: 64px; } }
.intro-text p { margin: 0 0 16px; color: rgba(0, 0, 0, .8); }
.intro-img img { width: 100%; height: 300px; object-fit: cover; border-radius: 8px; }
@media (min-width: 1024px) { .intro-img img { height: 400px; } }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); transition: .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0, 0, 0, .1); }
.card .img { height: 220px; overflow: hidden; }
.card .img img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.card:hover .img img { transform: scale(1.04); }
.card .body { padding: 24px; }
.card .body h3 { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.card .body p { font-size: 14px; color: var(--text-gray); margin: 0; }

/* ---------- Logo carousel ---------- */
.logos { overflow: hidden; }
.logos-track { display: flex; gap: 64px; align-items: center; width: max-content; animation: scroll-logos 28s linear infinite; }
.logos-track img { height: 46px; object-fit: contain; filter: grayscale(1); opacity: .65; transition: .3s; }
.logos-track img:hover { filter: none; opacity: 1; }
@keyframes scroll-logos { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- News preview ---------- */
.news-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.news-item .img { height: 200px; border-radius: 8px; overflow: hidden; margin-bottom: 16px; }
.news-item .img img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.news-item:hover .img img { transform: scale(1.04); }
.news-item .date { font-size: 12px; color: var(--text-gray); margin-bottom: 8px; }
.news-item h3 { font-size: 16px; font-weight: 600; margin: 0; transition: .2s; }
.news-item:hover h3 { color: var(--accent); }

/* ---------- Page banner ---------- */
.banner { position: relative; height: 300px; overflow: hidden; }
@media (min-width: 1024px) { .banner { height: 400px; } }
.banner .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.banner .overlay { position: absolute; inset: 0; background: rgba(0, 44, 95, .6); }
.banner h1 { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 30px; font-weight: 700; margin: 0; }
@media (min-width: 1024px) { .banner h1 { font-size: 38px; } }

/* ---------- Content list / detail ---------- */
.grid-list { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .grid-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-list { grid-template-columns: repeat(3, 1fr); } }
.crumb { font-size: 14px; color: var(--text-gray); margin-bottom: 24px; }
.crumb a:hover { color: var(--accent); }
.article-body { font-size: 16px; line-height: 1.9; color: #2b3038; }
.article-body p { margin: 0 0 1em; }
.article-body :is(h2, h3) { margin: 1.5em 0 .6em; }
.article-body img { border-radius: 8px; margin: 1em 0; }
.article-body a { color: var(--accent); text-decoration: underline; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1.3fr; } }
.contact-info .ci { padding: 16px 0; border-bottom: 1px solid #eee; }
.contact-info .ci strong { display: block; font-size: 13px; color: var(--text-gray); margin-bottom: 4px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form .frow { display: flex; gap: 14px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border-gray); border-radius: 6px; font: inherit; font-size: 15px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }

/* ---------- Footer ---------- */
.footer { background: var(--primary); color: #fff; }
.footer-cols { display: grid; grid-template-columns: 1fr; gap: 40px; padding: 64px 0; }
@media (min-width: 640px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-cols { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.footer .brand-cn { font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.footer .brand-en { font-size: 12px; color: rgba(255, 255, 255, .6); }
.footer h4 { font-size: 18px; font-weight: 700; margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 12px 0; }
.footer a, .footer li, .footer p { color: rgba(255, 255, 255, .7); font-size: 14px; }
.footer a:hover { color: #fff; }
.footer .ci { display: flex; gap: 8px; align-items: flex-start; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); text-align: center; padding: 16px 0; }
.footer-bottom p { font-size: 12px; color: rgba(255, 255, 255, .4); margin: 0; }

/* ---------- Flash + reveal + misc ---------- */
.flash { margin: 18px 0; padding: 12px 16px; border-radius: 8px; font-size: 14.5px; }
.flash-success { background: #ecfdf3; color: #067647; border: 1px solid #abefc6; }
.flash-error { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pager a { padding: 8px 14px; border: 1px solid var(--border-gray); border-radius: 6px; font-size: 14px; color: var(--text-gray); }
.pager a.active, .pager a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* 语言下拉 */
.nav-lang { position: relative; }
.nav-lang-btn { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.nav-lang-menu { position: absolute; right: 0; top: 150%; background: #fff; border: 1px solid var(--border-gray); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); min-width: 120px; padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s; }
.nav-lang.open .nav-lang-menu { opacity: 1; visibility: visible; transform: none; }
.nav-lang-menu a { display: block; padding: 8px 12px; border-radius: 6px; font-size: 14px; color: #222; }
.nav-lang-menu a:hover { background: var(--light-blue); }
.nav-lang-menu a.active { color: var(--accent); font-weight: 600; }

/* 关于页：标语徽章 / 三列 / 时间线 / 证书 */
.badge { display: inline-block; background: var(--accent); color: #fff; font-size: 13px; padding: 6px 16px; border-radius: 4px; margin-bottom: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 2px; background: rgba(29, 79, 156, .3); }
.tl-item { position: relative; margin-bottom: 24px; }
.tl-dot { position: absolute; left: -25px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.tl-card { background: #fff; border-radius: 8px; padding: 18px 22px; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); }
.tl-tag { color: var(--accent); font-weight: 700; font-size: 16px; }
.tl-card p { margin: 4px 0 0; color: rgba(0, 0, 0, .8); }
.cert { text-align: center; }
.cert-img { background: var(--light-blue); border-radius: 8px; overflow: hidden; margin-bottom: 12px; }
.cert-img img { width: 100%; height: 300px; object-fit: contain; }
.cert p { font-size: 14px; margin: 0; }

/* 产品 Tab */
.tab-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.tab-btn { padding: 10px 22px; border: 1px solid var(--border-gray); background: #fff; border-radius: 6px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: .2s; }
.tab-btn:hover { border-color: var(--accent); }
.tab-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* 海外公司：子公司图文档案 */
.ov-sub { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 1024px) { .ov-sub { grid-template-columns: 1fr 1fr; gap: 56px; } .ov-sub.rev .ov-sub-img { order: 2; } }
.ov-sub-img { overflow: hidden; border-radius: 8px; }
.ov-sub-img img { width: 100%; height: 300px; object-fit: cover; display: block; transition: transform .5s; }
@media (min-width: 1024px) { .ov-sub-img img { height: 400px; } }
.ov-sub-img:hover img { transform: scale(1.02); }
.ov-flag { font-size: 1.4em; vertical-align: -2px; }
.ov-fields { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.ov-field dt { font-weight: 600; color: #000; font-size: 14px; margin-bottom: 2px; }
.ov-field dd { margin: 0; color: var(--text-gray); font-size: 15px; line-height: 1.8; }

/* 海外服务优势四宫格 */
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.ov-adv { background: #fff; border: 1px solid var(--border-gray); border-radius: 8px; padding: 28px 24px; height: 100%; transition: transform .3s, box-shadow .3s; }
.ov-adv:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0, 44, 95, .1); }
.ov-adv-ic { width: 48px; height: 48px; border-radius: 50%; background: rgba(29, 79, 156, .1); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.ov-adv-ic svg { width: 24px; height: 24px; color: var(--accent); }
.ov-adv h3 { font-size: 17px; font-weight: 600; color: #000; margin: 0 0 10px; }
.ov-adv p { font-size: 14px; color: var(--text-gray); line-height: 1.7; margin: 0; }

/* 关于页·公司全景大图 */
.about-pano { margin-top: 36px; border-radius: 8px; overflow: hidden; }
.about-pano img { width: 100%; height: 300px; object-fit: cover; display: block; }
@media (min-width: 1024px) { .about-pano img { height: 450px; } }

/* 列表卡片增强：新闻阅读更多、案例地点 */
.read-more { display: inline-block; margin-top: 12px; color: var(--accent); font-size: 14px; font-weight: 500; }
.news-card:hover h3 { color: var(--accent); }
.card .body p.loc { font-size: 13px; color: var(--accent); margin: 0 0 6px; }

/* 联系页：图标信息行 + 在线留言表单 + 线上平台 */
.contact-info .ci-list { margin-top: 28px; display: flex; flex-direction: column; gap: 22px; }
.ci-row { display: flex; align-items: flex-start; gap: 16px; }
.ci-ic { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: rgba(29, 79, 156, .1); display: flex; align-items: center; justify-content: center; }
.ci-ic svg { width: 20px; height: 20px; color: var(--accent); }
.ci-row strong { display: block; font-size: 15px; color: #000; margin-bottom: 3px; font-weight: 600; }
.ci-row span:not(.ci-ic) { font-size: 14px; color: var(--text-gray); }
.ci-online { margin-top: 36px; }
.ci-online p { font-weight: 600; color: #000; margin: 0 0 12px; }
.ci-online a { display: inline-block; padding: 9px 16px; border: 1px solid var(--border-gray); border-radius: 6px; font-size: 14px; color: var(--text-gray); transition: .2s; }
.ci-online a:hover { border-color: var(--accent); color: var(--accent); }
.contact-form-wrap { background: var(--light-blue); border-radius: 8px; padding: 32px; }
.cf-title { font-size: 20px; font-weight: 700; margin: 0 0 24px; }
.contact-form label { display: block; }
.contact-form label > span { display: block; font-size: 14px; font-weight: 500; color: #000; margin-bottom: 8px; }
.contact-form label > span em { color: #d93636; font-style: normal; }
.contact-form input, .contact-form textarea { background: #fff; }
