:root {
  --brand: #1663a7;
  --brand-dark: #0f4a80;
  --brand-light: #e9f2fb;
  --accent: #f59e0b;
  --accent-dark: #d98a08;
  --ink: #1a2330;
  --ink-soft: #55606e;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --line: #dfe4ea;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 40, 70, 0.08);
  --shadow-lg: 0 16px 44px rgba(20, 40, 70, 0.14);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; color: var(--ink); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; }
.brand-logo { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; flex-shrink: 0; box-shadow: 0 2px 6px rgba(20,40,70,0.12); }
.brand-name { line-height: 1.2; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.main-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.main-nav a { color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--brand); }
.header-right { display: flex; align-items: center; gap: 12px; position: relative; }

/* Language switch dropdown */
.lang-switch { }
.lang-switch-current { display: inline-block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 0.88rem; color: var(--ink-soft); cursor: pointer; min-height: 40px; display: inline-flex; align-items: center; }
.lang-switch-menu { display: none; position: absolute; top: calc(100% + 6px); right: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); min-width: 170px; padding: 6px; z-index: 200; }
.lang-switch:hover .lang-switch-menu, .lang-switch.open .lang-switch-menu { display: block; }
.lang-switch-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 0.9rem; color: var(--ink-soft); transition: background .15s; }
.lang-switch-menu a:hover { background: #f4f6f8; color: var(--brand); }

/* RTL support */
html[dir="rtl"] .lang-switch-menu { right: auto; left: 0; }
html[dir="rtl"] body { direction: rtl; text-align: right; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; cursor: pointer; border: none; transition: all .2s; min-height: 48px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #1a2330; }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1eb957; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; min-height: 54px; }
.btn-block { width: 100%; }

/* ===== Hero Banner Carousel ===== */
.hero-banner { position: relative; color: #fff; overflow: hidden; }
.hero-slide { display: none; position: relative; padding: 120px 0 100px; background-size: cover; background-position: center; }
.hero-slide.active { display: block; animation: fadeIn .6s ease; }
.hero-slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(10,25,40,0.88) 0%, rgba(16,45,70,0.72) 55%, rgba(22,99,167,0.45) 100%); z-index: 0; }
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 18px; }
.hero-title { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; line-height: 1.12; margin-bottom: 20px; max-width: 720px; }
.hero-sub { font-size: 1.12rem; color: rgba(255,255,255,0.88); max-width: 620px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 2; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); border: none; cursor: pointer; transition: all .2s; padding: 0; }
.hero-dot.active { background: #fff; transform: scale(1.3); }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3); color: #fff; font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.hero-arrow:hover { background: rgba(255,255,255,0.28); }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== Advantage cards ===== */
.advantage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: -60px; position: relative; z-index: 5; }
.advantage-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; box-shadow: var(--shadow); }
.advantage-icon { font-size: 2rem; margin-bottom: 14px; }
.advantage-card h3 { font-size: 1.02rem; margin-bottom: 8px; font-weight: 700; }
.advantage-card p { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.5; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); font-weight: 700; margin-bottom: 12px; }
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.3rem); font-weight: 800; margin-bottom: 14px; }
.section-desc { color: var(--ink-soft); font-size: 1.02rem; }

/* Page hero */
.page-hero { background: linear-gradient(135deg, #0d2438, #1663a7); color: #fff; padding: 70px 0; }
.page-hero h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 640px; }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-grid-full { grid-template-columns: repeat(3, 1fr); }
.product-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-img { height: 200px; background-size: cover; background-position: center; position: relative; }
.product-img-placeholder { background: linear-gradient(135deg, #1663a7, #0d2438); }
.product-body { padding: 22px; }
.product-body h3 { font-size: 1.08rem; margin-bottom: 8px; }
.product-tag { display: inline-block; background: var(--brand-light); color: var(--brand-dark); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.product-specs { color: var(--ink-soft); font-size: 0.86rem; margin-top: 8px; }
.product-benefit { color: var(--ink-soft); font-size: 0.88rem; margin-top: 10px; line-height: 1.5; }
.empty-note { text-align: center; color: var(--ink-soft); padding: 30px 0; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-grid-full { grid-template-columns: repeat(3, 1fr); }
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .2s; }
.news-card:hover { transform: translateY(-4px); }
.news-img { height: 180px; background-size: cover; background-position: center; }
.news-body { padding: 20px; }
.news-body h3 { font-size: 1.02rem; margin: 8px 0; }
.news-body time { color: var(--ink-soft); font-size: 0.82rem; }

/* About */
.about-preview { max-width: 720px; }
.about-full h2 { font-size: 1.8rem; margin-bottom: 6px; }
.cn-name { color: var(--ink-soft); margin-bottom: 24px; }
.about-lead { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 32px; }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0; }
.about-point { background: var(--bg-alt); border-left: 3px solid var(--brand); padding: 14px 16px; border-radius: 8px; }
.about-point strong { display: block; margin-bottom: 4px; font-size: 0.95rem; }
.about-point span { font-size: 0.86rem; color: var(--ink-soft); }
.about-figure { margin: 32px 0; border-radius: var(--radius); overflow: hidden; }
.about-figure img { width: 100%; }
.about-figure figcaption { background: var(--bg-alt); padding: 12px 16px; font-size: 0.85rem; color: var(--ink-soft); }
.factory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.factory-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px 16px; text-align: center; box-shadow: var(--shadow); }
.factory-num { display: block; font-size: 1.7rem; font-weight: 800; color: var(--brand); }
.factory-label { font-size: 0.82rem; color: var(--ink-soft); }

/* ===== Inquiry / CTA section ===== */
.cta-section { background: linear-gradient(135deg, #0d2438, #1663a7); color: #fff; padding: 80px 0; }
.cta-inner { text-align: center; max-width: 720px; margin: 0 auto; }
.cta-inner h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.cta-inner p { color: rgba(255,255,255,0.85); margin-bottom: 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.inquiry-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; text-align: left; }
.inquiry-form .full { grid-column: 1 / -1; }
.inquiry-form input, .inquiry-form textarea { padding: 13px 16px; border: 1px solid rgba(255,255,255,0.25); border-radius: 10px; font-family: inherit; font-size: 0.95rem; background: rgba(255,255,255,0.1); color: #fff; }
.inquiry-form input::placeholder, .inquiry-form textarea::placeholder { color: rgba(255,255,255,0.55); }
.inquiry-form input:focus, .inquiry-form textarea:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,0.16); }
.inquiry-form textarea { resize: vertical; }
.file-upload-label { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border: 1px dashed rgba(255,255,255,0.4); border-radius: 10px; font-size: 0.9rem; color: rgba(255,255,255,0.8); cursor: pointer; }
.file-upload-label input { display: none; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-line { display: flex; flex-direction: column; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-line strong { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin-bottom: 4px; }
.contact-line span { font-weight: 500; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input, .contact-form textarea { padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 0.95rem; background: var(--bg-alt); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand); background: #fff; }
.contact-form textarea { resize: vertical; }
.contact-form .file-upload-label { border: 1px dashed var(--line); color: var(--ink-soft); }

/* Detail */
.detail-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.detail-visual img { width: 100%; border-radius: var(--radius); }
.detail-placeholder { height: 300px; border-radius: var(--radius); }
.detail-info h1 { font-size: 2rem; margin-bottom: 12px; }
.detail-specs { color: var(--ink-soft); margin: 16px 0; }
.detail-desc { color: var(--ink-soft); margin: 20px 0; }
.detail-features { margin: 20px 0; }
.detail-features li { margin-bottom: 8px; color: var(--ink-soft); padding-left: 22px; position: relative; }
.detail-features li::before { content: '✓'; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

/* ===== Project Cases ===== */
.case-filter { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.case-filter button { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); transition: all .2s; min-height: 40px; }
.case-filter button.active, .case-filter button:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.case-img { height: 220px; background-size: cover; background-position: center; }
.case-body { padding: 22px; }
.case-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.case-meta { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 10px; }
.case-meta span { display: inline-block; background: var(--brand-light); color: var(--brand-dark); padding: 2px 10px; border-radius: 999px; margin-right: 6px; font-weight: 600; }

/* ===== Technical Library ===== */
.tech-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tech-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.tech-card h3 { font-size: 1.05rem; }
.tech-card p { font-size: 0.88rem; color: var(--ink-soft); flex: 1; }
.tech-card .btn { align-self: flex-start; }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; background: #fff; }
.faq-q { padding: 18px 22px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 0.98rem; }
.faq-q::after { content: '+'; font-size: 1.4rem; color: var(--brand); }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { display: none; padding: 0 22px 18px; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ===== Export Packaging ===== */
.pack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pack-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.pack-card .pack-icon { font-size: 1.8rem; margin-bottom: 12px; }
.pack-card h3 { font-size: 1rem; margin-bottom: 8px; }
.pack-card p { font-size: 0.87rem; color: var(--ink-soft); }
.leadtime-table { width: 100%; border-collapse: collapse; margin-top: 24px; }
.leadtime-table th, .leadtime-table td { padding: 14px 16px; border: 1px solid var(--line); text-align: left; font-size: 0.9rem; }
.leadtime-table th { background: var(--bg-alt); font-weight: 700; }

/* Article */
.article-wrap { max-width: 760px; }
.article-wrap h1 { font-size: 2rem; margin: 14px 0; }
.article-time { color: var(--ink-soft); font-size: 0.85rem; display: block; margin-bottom: 20px; }
.article-cover { width: 100%; border-radius: var(--radius); margin: 20px 0; }
.article-content { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.8; }
.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; margin: 20px 0; }
.video-wrap iframe, .video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: var(--radius); object-fit: contain; background: #000; }
/* 竖版视频：9:16 比例，居中，限制最大高度 */
.video-wrap.vertical { padding-bottom: 0; height: auto; max-width: 420px; margin-left: auto; margin-right: auto; }
.video-wrap.vertical video { position: static; inset: auto; width: 100%; height: auto; max-height: 72vh; aspect-ratio: 9 / 16; }

/* Footer */
.site-footer { background: #0d2438; color: rgba(255,255,255,0.75); padding: 48px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.footer-inner .brand { color: #fff; margin-bottom: 8px; }
.footer-copy { font-size: 0.82rem; opacity: 0.6; }

/* ===== Mobile sticky action bar ===== */
.mobile-actions { display: none; }
.mobile-actions a { flex: 1; justify-content: center; min-height: 50px; font-size: 0.95rem; }

/* ===== Hamburger ===== */
.hamburger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--ink); transition: all .2s; }

/* ===== Trust badges ===== */
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: -40px; position: relative; z-index: 5; }
.trust-badge { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 12px; text-align: center; box-shadow: var(--shadow); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.trust-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.trust-badge .tb-icon { font-size: 1.5rem; display: block; margin-bottom: 6px; }
.trust-badge .tb-label { font-size: 0.82rem; font-weight: 700; color: var(--ink); }

/* ===== Sample CTA ===== */
.sample-banner { background: linear-gradient(135deg, #1663a7, #0d2438); color: #fff; border-radius: var(--radius); padding: 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.sample-banner h3 { font-size: 1.4rem; margin-bottom: 8px; }
.sample-banner p { color: rgba(255,255,255,0.85); font-size: 0.95rem; }

/* WebP hint (图片走 picture 标签，这里无额外 CSS) */

/* Responsive */
@media (max-width: 900px) {
  .product-grid, .product-grid-full, .news-grid, .news-grid-full, .case-grid { grid-template-columns: 1fr 1fr; }
  .advantage-grid, .factory-grid { grid-template-columns: 1fr 1fr; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .contact-grid, .detail-wrap { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .pack-grid { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: nowrap; height: auto; padding: 12px 0; gap: 10px; }
  .brand { flex: 1; min-width: 0; overflow: hidden; }
  .brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.85rem; }
  .brand-logo { width: 36px; height: 36px; }
  .header-right { gap: 8px; flex-shrink: 0; }
  .inquiry-form { grid-template-columns: 1fr; }
  .hero-arrow { display: none; }
  /* 汉堡菜单 + 悬浮按钮 */
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-actions { display: flex; }
  .header-right .btn-primary { display: none; }
  .main-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); gap: 4px; }
  .main-nav.open a { padding: 12px 0; border-bottom: 1px solid var(--bg-alt); font-size: 1rem; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  p, li, .about-text, .detail-desc, .article-content, .faq-a, .section-desc { font-size: 15px; }
  .product-grid, .product-grid-full, .news-grid, .news-grid-full, .case-grid { grid-template-columns: 1fr; }
  .advantage-grid, .factory-grid, .about-points, .trust-strip { grid-template-columns: 1fr 1fr; }
  .main-nav { gap: 14px; }
  .hero-slide { padding: 56px 0 64px; }
  .hero-title { font-size: 1.7rem; }
  .hero-sub { font-size: 1rem; }
  .btn { width: 100%; }
  .hero-actions .btn { width: auto; flex: 1; }
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .product-img, .news-img { height: 220px; }
  .contact-form input, .contact-form textarea, .inquiry-form input, .inquiry-form textarea { font-size: 16px; padding: 14px 16px; }
  .leadtime-table { font-size: 0.82rem; }
  .leadtime-table th, .leadtime-table td { padding: 10px 8px; }
  .sample-banner { padding: 24px; }
  /* 移动端悬浮操作栏 */
  .mobile-actions { position: fixed; bottom: 0; left: 0; right: 0; z-index: 300; display: flex; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,0.96); border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(0,0,0,0.08); }
  .mobile-actions a { flex: 1; min-height: 48px; }
  body { padding-bottom: 70px; }
}
