/*  ========================================
    RaysenX 外贸独立站样式
    Wenzhou Raysen Electronic Technology
    ======================================== */
:root {
    --primary: #0a2a5e;
    --primary-light: #163d80;
    --accent: #d32f2f;
    --accent-hover: #b71c1c;
    --text: #1a1a2e;
    --text-light: #4a4a5a;
    --muted: #7a7a8a;
    --border: #e0e0e5;
    --bg-light: #f4f5f8;
    --bg-white: #ffffff;
    --bg-dark: #0a1628;
    --gold: #c8a44e;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1220px, calc(100% - 40px)); margin: 0 auto; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 30px; border-radius: 8px; font-weight: 600; font-size: 15px;
    transition: all .25s; cursor: pointer; border: none; letter-spacing: -0.01em;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(211,47,47,0.35); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); }
.btn-outline:hover { background: #fff; color: var(--primary); border-color: #fff; transform: translateY(-2px); }
.btn-outline-dark { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline-dark:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: #f0f0f5; transform: translateY(-2px); box-shadow: var(--shadow); }

/* ── Top Bar ── */
.topbar { background: #0a1628; color: rgba(255,255,255,.78); font-size: 13px; z-index: 105; position: fixed; top: 0; left: 0; right: 0; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 40px; gap: 16px; }
.topbar-left { display: flex; align-items: center; gap: 22px; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-contact { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.78); transition: color .2s; white-space: nowrap; }
.topbar-contact:hover { color: #fff; }
.topbar-contact svg { flex-shrink: 0; opacity: .7; }
.topbar-socials { display: flex; align-items: center; gap: 12px; padding-right: 16px; border-right: 1px solid rgba(255,255,255,.12); }
.topbar-social { color: rgba(255,255,255,.6); display: flex; align-items: center; transition: color .25s, transform .25s; }
.topbar-social:hover { color: #fff; transform: translateY(-1px); }

/* ── Language Dropdown ── */
.lang-dropdown { position: relative; }
.lang-btn {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.88); font-size: 13px; font-weight: 600;
    padding: 4px 10px; border-radius: 6px; cursor: pointer;
    transition: background .2s; white-space: nowrap; font-family: inherit;
}
.lang-btn:hover { background: rgba(255,255,255,.15); }
.lang-btn svg { flex-shrink: 0; transition: transform .25s; }
.lang-dropdown:hover .lang-btn svg:last-child { transform: rotate(180deg); }
.lang-menu {
    display: none; position: absolute; right: 0; top: calc(100% + 6px);
    background: #fff; border: 1px solid var(--border); border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.14); min-width: 110px; overflow: hidden; z-index: 200;
}
.lang-dropdown:hover .lang-menu { display: block; }
.lang-option {
    display: block; padding: 9px 16px; font-size: 13px; font-weight: 600;
    color: var(--text); transition: background .15s, color .15s;
}
.lang-option:hover { background: #f0f4fb; color: var(--primary); }
.lang-option.active { color: var(--accent); background: #fef5f5; font-weight: 700; }

/* ── Main Header ── */
.site-header {
    position: fixed; top: 40px; left: 0; right: 0; z-index: 50;
    background: transparent; transition: background .3s;
}
.site-header.scrolled {
    position: fixed; top: 0; z-index: 106; background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px); border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.header-right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 42px; width: auto; display: block; }
.site-header.scrolled .brand-logo { height: 38px; }
.nav { display: flex; gap: 30px; flex-wrap: wrap; }
.nav a {
    color: rgba(255,255,255,.9); font-weight: 500; font-size: 15px;
    position: relative; padding: 6px 0; transition: color .25s; letter-spacing: -0.01em;
}
.nav a:hover { color: #fff; }
.nav a.active { font-weight: 700; }
.nav a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0;
    height: 2px; background: #fff; transform: scaleX(0); transition: transform .25s;
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.site-header.scrolled .nav a { color: var(--text); }
.site-header.scrolled .nav a:hover { color: var(--primary); }
.site-header.scrolled .nav a::after { background: var(--primary); }

/* ── Nav Search Box ── */
.nav-search { display: flex; align-items: center; gap: 0; margin-left: 8px; }
.nav-search input {
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
    color: #fff; font-size: 14px; padding: 6px 10px; border-radius: 6px 0 0 6px;
    width: 160px; height: 34px; outline: none; transition: .25s;
}
.nav-search input::placeholder { color: rgba(255,255,255,.5); }
.nav-search input:focus { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.4); width: 200px; }
.nav-search button {
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-left: 0;
    color: rgba(255,255,255,.8); padding: 6px 10px; border-radius: 0 6px 6px 0;
    height: 34px; cursor: pointer; display: flex; align-items: center; transition: .25s;
}
.nav-search button:hover { background: rgba(255,255,255,.25); color: #fff; }
.site-header.scrolled .nav-search input {
    background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.12); color: var(--text);
}
.site-header.scrolled .nav-search input::placeholder { color: rgba(0,0,0,.35); }
.site-header.scrolled .nav-search input:focus { background: rgba(0,0,0,.06); border-color: var(--primary); }
.site-header.scrolled .nav-search button {
    background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.12); color: var(--text);
}
.site-header.scrolled .nav-search button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Nav Dropdown ── */
.nav-dropdown { position: relative; }
.nav-dropdown .nav-item { display: inline-flex; align-items: center; gap: 4px; }
.dropdown-arrow { transition: transform .25s; opacity: .6; }
.nav-dropdown:hover .dropdown-arrow { transform: rotate(180deg); opacity: 1; }

.dropdown-menu {
    position: absolute; top: 100%; left: -12px;
    min-width: 180px; background: #fff; border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
    padding: 8px 0; opacity: 0; visibility: hidden;
    transform: translateY(8px); transition: .25s;
    z-index: 200;
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-dropdown .dropdown-item {
    display: block; padding: 9px 18px; color: var(--text); font-size: 14px;
    font-weight: 400; white-space: nowrap; transition: .15s;
    text-decoration: none;
}
.nav-dropdown .dropdown-item:hover { background: #fef5f5; color: var(--primary); padding-left: 22px; }
.nav-dropdown .dropdown-item::after { display: none !important; } /* 覆盖 nav a 的下划线动画 */
.dropdown-icon { display:inline-block; width:20px; height:20px; object-fit:cover; border-radius:3px; vertical-align:-3px; margin-right:4px; }

.site-header.scrolled .dropdown-menu { background: #fff; box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.site-header.scrolled .nav-dropdown .dropdown-item { color: var(--text); }
.site-header.scrolled .nav-dropdown .dropdown-item:hover { background: #fef5f5; color: var(--primary); }

/* ── Hero ── */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    background: linear-gradient(135deg, #0a1f40 0%, #0d2f5c 40%, #122d5e 100%);
    overflow: hidden; padding-top: 112px;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(211,47,47,0.12) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(10,42,94,0.6) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 2; max-width: 720px; padding: 40px 0 80px; }
.hero-badge {
    display: inline-block; background: rgba(211,47,47,0.15); color: #f87171;
    padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
    margin-bottom: 24px; border: 1px solid rgba(211,47,47,0.25); letter-spacing: 0.05em;
}
.hero h1 {
    font-size: clamp(40px, 6vw, 68px); line-height: 1.08; color: #fff;
    margin-bottom: 22px; font-weight: 800; letter-spacing: -0.02em;
}
.hero h1 em { font-style: normal; color: #f87171; }
.hero p {
    font-size: 18px; line-height: 1.7; color: rgba(255,255,255,.72);
    margin-bottom: 36px; max-width: 560px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-strip {
    display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px;
}
.hero-strip-item {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.06); color: rgba(255,255,255,.8);
    padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
    border: 1px solid rgba(255,255,255,0.08);
}
.hero-strip-item .icon { font-size: 16px; }

/* ── Sections ── */
.section { padding: 100px 0; }
.section-dark { background: var(--bg-light); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-label {
    display: inline-block; color: var(--accent); font-weight: 700; font-size: 13px;
    text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px;
}
.section-title { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin-bottom: 14px; letter-spacing: -0.02em; }
.section-subtitle { color: var(--muted); font-size: 17px; max-width: 600px; margin: 0 auto; }

/* ── About Cards ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-image {
    border-radius: var(--radius-lg); overflow: hidden; position: relative;
    aspect-ratio: 4/3; background: linear-gradient(135deg, #e8edf5, #dce4f0);
    display: flex; align-items: center; justify-content: center; font-size: 72px; color: var(--primary);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 { font-size: 34px; font-weight: 800; margin-bottom: 20px; }
.about-text p { color: var(--text-light); font-size: 16px; line-height: 1.8; margin-bottom: 14px; }
.about-stats-row { display: flex; gap: 30px; margin-top: 28px; flex-wrap: wrap; }
.about-stat { text-align: center; min-width: 90px; }
.about-stat strong { display: block; font-size: 36px; color: var(--primary); font-weight: 800; }
.about-stat span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Product Cards ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
    background: #fff; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s;
    border: 1px solid var(--border);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-thumb {
    aspect-ratio: 4/3; background: linear-gradient(135deg, #e8edf5, #dce4f0);
    display: flex; align-items: center; justify-content: center;
    font-size: 56px; color: var(--primary); overflow: hidden;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px 24px; }
.card-title { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.card-desc { color: var(--muted); font-size: 14px; line-height: 1.6; }
.card-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 14px; margin-top: 12px; transition: gap .25s; }
.card-link:hover { gap: 10px; }

/* ── Stats Row ── */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stats-row .stat-item {
    text-align: center; padding: 40px 20px; border-right: 1px solid rgba(255,255,255,0.1);
    background: var(--primary); color: #fff;
}
.stats-row .stat-item:last-child { border-right: 0; }
.stat-item .stat-value { display: block; font-size: 48px; font-weight: 800; margin-bottom: 6px; }
.stat-item .stat-label { font-size: 14px; opacity: .75; font-weight: 500; }

/* ── Video / Factory Section ── */
.factory-section { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: center; }
.factory-video {
    border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/10;
    background: linear-gradient(135deg, #e8edf5, #dce4f0);
    display: flex; align-items: center; justify-content: center; font-size: 72px; color: var(--primary);
    position: relative; box-shadow: var(--shadow-lg);
}
.factory-video img { width: 100%; height: 100%; object-fit: cover; }
.factory-info h2 { font-size: 32px; font-weight: 800; margin-bottom: 20px; }
.factory-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.factory-stat {
    background: var(--bg-light); padding: 18px 20px; border-radius: var(--radius);
    display: flex; align-items: center; gap: 14px;
}
.factory-stat .fs-icon { font-size: 28px; flex-shrink: 0; }
.factory-stat .fs-icon img { width: 36px; height: 36px; object-fit: contain; vertical-align: middle; }
.factory-stat .fs-value { font-size: 24px; font-weight: 800; color: var(--primary); }
.factory-stat .fs-label { font-size: 12px; color: var(--muted); }

/* ── CTA Banner ── */
.cta-banner {
    background: linear-gradient(135deg, var(--accent), #b71c1c); color: #fff;
    padding: 70px 0; text-align: center; border-radius: var(--radius-lg); margin: 0 auto;
    max-width: 1200px;
}
.cta-banner h2 { font-size: 34px; font-weight: 800; margin-bottom: 12px; }
.cta-banner p { opacity: .85; margin-bottom: 28px; font-size: 17px; }
.cta-banner .btn { box-shadow: 0 4px 15px rgba(0,0,0,0.2); }

/* ── page-banner (subpages) ── */
.page-banner {
    background: linear-gradient(135deg, #0a1f40, #122d5e); color: #fff;
    padding: 120px 0 80px; position: relative; overflow: hidden;
}
.page-banner h1 { font-size: 42px; font-weight: 800; margin-bottom: 6px; }
.breadcrumbs { font-size: 14px; opacity: .7; margin-bottom: 12px; }
.breadcrumbs a { color: rgba(255,255,255,.8); }
.breadcrumbs a:hover { color: #fff; }
.content { padding: 70px 0; }

/* ── Timeline ── */
.timeline { position: relative; padding-left: 36px; }
.timeline::before {
    content: ''; position: absolute; left: 10px; top: 0; bottom: 0;
    width: 2px; background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-item::before {
    content: ''; position: absolute; left: -30px; top: 6px;
    width: 14px; height: 14px; border-radius: 50%; background: var(--primary);
    border: 3px solid #fff; box-shadow: 0 0 0 2px var(--primary);
}
.timeline-year { font-size: 20px; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.timeline-desc { color: var(--text-light); font-size: 15px; line-height: 1.7; }

/* ── Ceritification Grid ── */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; }
.cert-item {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px 16px; text-align: center; box-shadow: var(--shadow-sm);
    transition: transform .25s;
}
.cert-item:hover { transform: translateY(-3px); }
.cert-icon { font-size: 48px; margin-bottom: 10px; overflow: hidden; }
.cert-icon img { width: 64px; height: 64px; object-fit: contain; display: inline-block; vertical-align: middle; }
.cert-name { font-weight: 700; font-size: 15px; }

/* ── Contact Form ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: start; }
.contact-info h2 { font-size: 30px; font-weight: 800; margin-bottom: 18px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-item .ci-icon { width: 44px; height: 44px; background: var(--bg-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 20px; }
.contact-item .ci-text p { margin: 0; color: var(--text-light); font-size: 15px; }
.contact-item .ci-text strong { color: var(--text); font-size: 16px; }
.form-panel { background: #fff; border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--text); }
.form-input, .form-textarea, .form-select {
    width: 100%; border: 1px solid var(--border); border-radius: 8px;
    padding: 12px 14px; font: inherit; font-size: 15px; background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(10,42,94,0.08); }
.form-textarea { min-height: 130px; resize: vertical; }

/* ── News / Blog ── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: transform .3s, box-shadow .3s; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card .card-thumb { aspect-ratio: 16/10; }
.news-card .card-body { padding: 20px; }
.news-date { color: var(--accent); font-weight: 700; font-size: 13px; margin-bottom: 8px; }

/* ── Footer ── */
.footer {
    background: #0a1628; color: rgba(255,255,255,.7);
    padding: 70px 0 24px; font-size: 14px;
}
.footer a { color: rgba(255,255,255,.7); transition: color .25s; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-logo { height: 36px; width: auto; margin-bottom: 14px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; font-weight: 700; }
.footer p { margin-bottom: 8px; line-height: 1.8; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08); margin-top: 48px; padding-top: 20px;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-socials { display: flex; gap: 12px; }
.footer-socials a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.06); transition: background .25s; }
.footer-socials a:hover { background: var(--accent); }

/* ── Utility ── */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 20px; }
.mt-4 { margin-top: 40px; }
.section-no-pad { padding: 0; }

/* ── panel (legacy) ── */
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.list { display: grid; gap: 16px; }
.list-item { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: 0; padding-bottom: 0; }
.list-date { min-width: 72px; text-align: center; border-radius: 14px; background: #eef5ff; color: var(--primary); padding: 10px 8px; font-weight: 700; font-size: 18px; }
.list-date small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.muted { color: var(--muted); }
.badge { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: #eef5ff; color: var(--primary); font-size: 13px; font-weight: 700; }

/* ── Admin (keep) ── */
.admin-wrap { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: linear-gradient(135deg, #eff6ff, #f8fbff); }
.admin-login { width: min(420px, 100%); background: #fff; border-radius: 24px; box-shadow: var(--shadow); padding: 32px; }
.admin-nav { width: 250px; background: #0b1728; color: rgba(255,255,255,.8); min-height: 100vh; position: fixed; left: 0; top: 0; padding: 28px 20px; }
.admin-nav a { display: block; color: rgba(255,255,255,.8); padding: 12px 14px; border-radius: 12px; margin-bottom: 8px; }
.admin-nav a.active, .admin-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-main { margin-left: 250px; padding: 28px; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.table th, .table td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; }
.table th { background: #f8fbff; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .about-grid, .factory-section, .contact-grid { grid-template-columns: 1fr; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .stats-row .stat-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .nav { gap: 18px; }
}
@media (max-width: 768px) {
    .topbar-inner { height: auto; padding: 8px 0; flex-wrap: wrap; gap: 8px; }
    .topbar-left { flex-wrap: wrap; gap: 10px; }
    .topbar-right { flex-wrap: wrap; gap: 10px; }
    .topbar-socials { padding-right: 0; border-right: 0; }
    .site-header { position: fixed; top: 0; } /* topbar fixed on mobile */
    .header-inner, .header-right { align-items: flex-start; }
    .header-inner, .header-right, .nav { flex-direction: column; }
    .header-right { width: 100%; }
    .nav { gap: 14px; }
    .nav-search { margin-left: 0; width: 100%; }
    .nav-search input { flex: 1; width: auto; }
    .lang-menu { right: auto; left: 0; }
    .hero { min-height: auto; padding-top: 100px; }
    .hero h1 { font-size: 32px; }
    .section { padding: 60px 0; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .news-grid, .footer-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .hero-strip { gap: 8px; }
    .section-title { font-size: 26px; }
}

/* ── Admin: nav items (override .nav for sidebar) ── */
.admin-nav-item { display:block; padding:10px 16px; color:rgba(255,255,255,.75); font-weight:600; font-size:14px; border-radius:8px; margin-bottom:4px; transition:.2s; }
.admin-nav-item:hover, .admin-nav-item.active { background:rgba(255,255,255,.12); color:#fff; }

/* ── Admin: form input ── */
.form-input { border:1px solid var(--border); border-radius:8px; padding:10px 12px; font-size:14px; }
.form-textarea { border:1px solid var(--border); border-radius:8px; padding:10px 12px; font-size:14px; resize:vertical; min-height:120px; }

/* ── Hero: 背景图轮播 ── */
/*
 * 有背景图时：去掉渐变，改用纯色底板
 * 轮播图通过 .hero-slide 的 background-image 显示
 */
.hero-has-bg {
    background: #0a1f40 !important;
    background-image: none !important;
}

/* 轮播图层容器：铺满整个 hero */
.hero-slides {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 0 !important;
    display: block !important;
}

/* 单张幻灯片 */
.hero-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    display: block !important;
}
.hero-slide.active {
    opacity: 1 !important;
}

/* 深色遮罩：让文字更清晰 */
.hero-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

/* 有背景图时，正文内容要在遮罩之上 */
.hero-has-bg .hero-content { z-index: 3 !important; }
.hero-has-bg .container   { position: relative !important; z-index: 3 !important; }

/* 指示点 */
.hero-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 10px;
}
.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: 2px solid rgba(255,255,255,0.6);
    cursor: pointer;
    transition: 0.3s;
    padding: 0;
}
.hero-dot.active {
    background: #fff !important;
    transform: scale(1.2);
}
.hero-dot:hover {
    background: rgba(255,255,255,0.7);
}

/* 指示点 */
.hero-dots {
    position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
    z-index: 4; display: flex; gap: 10px;
}
.hero-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,.35); border: 2px solid rgba(255,255,255,.6);
    cursor: pointer; transition: .3s; padding: 0;
}
.hero-dot.active { background: #fff; transform: scale(1.2); }
.hero-dot:hover { background: rgba(255,255,255,.7); }


