:root {
  --primary: #0b4ea2;
  --primary-dark: #07366f;
  --primary-soft: #eaf3ff;
  --accent: #15a6d9;
  --orange: #ff8a34;
  --text: #152238;
  --muted: #62738a;
  --line: #dbe6f3;
  --bg: #f5f8fc;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(7, 54, 111, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 98px; }
body { margin: 0; font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; color: var(--text); background: var(--white); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.88); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(219,230,243,0.8); }
.navbar { height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand-mark { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-size: 1.9rem; font-weight: 900; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 12px 24px rgba(11,78,162,0.24); }
.brand-mark.has-image { background: transparent; box-shadow: none; border-radius: 0; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.brand-mark em { font-style: normal; }
.brand strong { display: block; font-size: 1.28rem; letter-spacing: 0.02em; }
.brand small { display: block; color: var(--muted); margin-top: 3px; font-size: 0.86rem; }
.nav-links { display: flex; align-items: center; gap: 26px; color: #32445c; font-size: 0.95rem; }
.nav-links a { transition: color .2s ease; }
.nav-links a:hover { color: var(--primary); }
.nav-admin { padding: 10px 16px; border-radius: 999px; color: #fff !important; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 10px 22px rgba(11,78,162,0.18); }
.nav-toggle { display: none; border: 0; background: var(--primary-soft); color: var(--primary); width: 42px; height: 38px; border-radius: 10px; }

.hero { position: relative; overflow: hidden; background-image: radial-gradient(circle at 75% 20%, rgba(21,166,217,0.18), transparent 32%), linear-gradient(90deg, rgba(6,43,94,0.90) 0%, rgba(11,78,162,0.66) 42%, rgba(10,117,184,0.24) 72%, rgba(6,43,94,0.18) 100%), url("/images/hero-container-ship.jpg"); background-size: auto, cover, cover; background-position: center, center, center center; color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, #000, transparent 90%); }
.hero-grid { position: relative; min-height: 620px; display: flex; align-items: center; padding: 80px 0; }
.hero-copy { max-width: 880px; }
.eyebrow, .section-head span, .cta span { display: inline-flex; align-items: center; color: var(--accent); font-weight: 900; letter-spacing: 0.08em; font-size: 1rem; }
.hero .eyebrow { display: none; }
.hero h1 { margin: 0 0 18px; font-size: clamp(2.4rem, 4.1vw, 4.15rem); line-height: 1.12; letter-spacing: -0.06em; white-space: nowrap; }
.hero p { margin: 0; max-width: 680px; color: rgba(255,255,255,0.82); font-size: 1.13rem; line-height: 1.9; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 12px; min-height: 46px; padding: 0 22px; cursor: pointer; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 14px 28px rgba(11,78,162,0.24); }
.btn-light { color: var(--primary); background: #fff; box-shadow: 0 12px 28px rgba(0,0,0,0.08); }
.full { width: 100%; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 42px; max-width: 720px; }
.hero-stats div { border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.1); border-radius: 18px; padding: 18px; backdrop-filter: blur(10px); }
.hero-stats strong { display: block; font-size: 1.05rem; }
.hero-stats span { display: block; margin-top: 6px; color: rgba(255,255,255,0.72); font-size: 0.9rem; }

.network-strip { position: relative; z-index: 4; margin-top: -54px; padding-bottom: 40px; }
.network-box { display: grid; grid-template-columns: 390px 1fr; gap: 24px; align-items: stretch; padding: 28px; border-radius: 28px; background: rgba(255,255,255,0.96); border: 1px solid var(--line); box-shadow: var(--shadow); }
.network-title { padding: 8px 8px 8px 0; }
.network-title span { color: var(--accent); font-weight: 900; letter-spacing: .08em; }
.network-title h2 { margin: 10px 0; font-size: 1.8rem; line-height: 1.25; letter-spacing: -0.04em; }
.network-title p { color: var(--muted); line-height: 1.75; margin: 0; }
.city-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.city-grid div { position: relative; overflow: hidden; min-height: 150px; padding: 22px 16px; border-radius: 20px; color: #fff; background: linear-gradient(145deg, var(--primary), var(--accent)); box-shadow: 0 16px 30px rgba(11,78,162,0.14); cursor: pointer; transition: transform .22s ease, box-shadow .22s ease, filter .22s ease; }
.city-grid div::before { content: ""; position: absolute; right: -30px; top: -30px; width: 92px; height: 92px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.city-grid div::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 18px; height: 2px; background: rgba(255,255,255,0.36); }
.city-grid div:hover { transform: translateY(-8px); box-shadow: 0 24px 46px rgba(11,78,162,0.24); filter: saturate(1.08); }
.city-grid div.city-tapped { transform: translateY(-2px) scale(.98); box-shadow: 0 16px 34px rgba(11,78,162,0.26); }
.city-grid div .city-ripple { position: absolute; left: var(--tap-x, 50%); top: var(--tap-y, 50%); width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,0.28); transform: translate(-50%, -50%) scale(0); animation: cityRipple .5s ease-out; pointer-events: none; z-index: 0; }
@keyframes cityRipple {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(30); }
}
.city-grid strong { position: relative; z-index: 1; display: block; font-size: 1.75rem; margin-bottom: 10px; }
.city-grid span { position: relative; z-index: 1; display: block; color: rgba(255,255,255,0.8); line-height: 1.55; }

.section { padding: 92px 0; }
.section-soft { background: var(--bg); }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head.row { max-width: none; display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.section-head h2 { margin: 10px 0 0; font-size: clamp(1.9rem, 3vw, 3rem); line-height: 1.22; letter-spacing: -0.04em; }
.section-head h2[data-content="advantagesTitle"] { font-size: clamp(1.9rem, 2.55vw, 2.55rem); white-space: nowrap; }
.section-head p { margin: 12px 0 0; color: var(--muted); line-height: 1.75; }
.text-link { color: var(--primary); font-weight: 800; }
.page-hero { padding: 92px 0; color: #fff; background: radial-gradient(circle at 80% 20%, rgba(21,166,217,0.26), transparent 30%), linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.page-hero h1 { margin: 16px 0; font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -0.05em; }
.page-hero p { max-width: 720px; color: rgba(255,255,255,0.78); line-height: 1.9; font-size: 1.08rem; }
.cards.four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card, .product-card, .admin-grid article { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: 0 14px 36px rgba(7,54,111,0.06); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.card { position: relative; overflow: hidden; cursor: pointer; }
.card::after { content: ""; position: absolute; left: var(--tap-x, 50%); top: var(--tap-y, 50%); width: 12px; height: 12px; border-radius: 50%; background: rgba(21,166,217,0.16); transform: translate(-50%, -50%) scale(0); opacity: 0; pointer-events: none; }
.card:hover, .product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card:hover { border-color: #b8ddff; }
.card.card-tapped { transform: translateY(-2px) scale(.985); box-shadow: 0 18px 46px rgba(11,78,162,0.16); }
.card.card-tapped::after { animation: cardRipple .48s ease-out; }
@keyframes cardRipple {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(34); }
}
.icon { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-weight: 900; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.card h3, .product-card h3 { margin: 18px 0 10px; font-size: 1.18rem; }
.card p, .product-card p { margin: 0; color: var(--muted); line-height: 1.75; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.category-grid .product-card { display: block; }
.product-card { min-height: 210px; position: relative; overflow: hidden; }
.product-card::after { content: ""; position: absolute; width: 130px; height: 130px; right: -42px; bottom: -42px; background: var(--primary-soft); border-radius: 50%; }
.product-card span { color: var(--primary); font-weight: 900; }
.product-card.active { border-color: #86c8ff; box-shadow: var(--shadow); }
.frontend-products { margin-top: 28px; }
.frontend-product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.frontend-product-card { display: block; overflow: hidden; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 36px rgba(7,54,111,0.06); transition: transform .22s ease, box-shadow .22s ease; }
.frontend-product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.frontend-product-card img { width: 100%; height: 190px; object-fit: contain; background: #f7fbff; padding: 10px; }
.frontend-product-card div { min-width: 0; padding: 20px; }
.frontend-product-card span { color: var(--primary); font-weight: 900; font-size: .9rem; }
.frontend-product-card h3 { margin: 8px 0; line-height: 1.32; overflow-wrap: anywhere; word-break: break-word; display: -webkit-box; line-clamp: 3; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.frontend-product-card p { margin: 0; color: var(--muted); line-height: 1.7; overflow-wrap: anywhere; word-break: break-word; display: -webkit-box; line-clamp: 2; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pagination { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.pagination button { min-width: 42px; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--primary); font-weight: 900; background: #fff; cursor: pointer; box-shadow: 0 10px 24px rgba(7,54,111,0.06); }
.pagination button.active { color: #fff; border-color: var(--primary); background: var(--primary); }
.pagination button:disabled { color: var(--muted); cursor: not-allowed; background: #f4f8fc; box-shadow: none; }
.pagination span { color: var(--muted); font-size: .92rem; }
.brand-section { background: #fff; }
.brand-head { margin-bottom: 22px; }
.brand-logo-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.brand-logo-card { min-height: 74px; display: grid; place-items: center; padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, #fff, #f8fbff); box-shadow: 0 10px 24px rgba(7,54,111,0.05); }
.brand-logo-card img { max-width: 138px; max-height: 58px; object-fit: contain; }
.brand-logo-card strong { color: var(--primary); font-size: .86rem; letter-spacing: .04em; }
.empty-state { padding: 26px; border-radius: 20px; color: var(--muted); background: var(--bg); border: 1px dashed #c8dff6; }
.product-detail-shell { width: min(1100px, calc(100% - 40px)); margin: 46px auto 80px; }
.product-detail-card { display: grid; grid-template-columns: .95fr 1.05fr; gap: 34px; align-items: start; padding: 32px; border-radius: 30px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.product-detail-image { overflow: hidden; border-radius: 24px; background: var(--primary-soft); }
.product-detail-image img { display: block; width: 100%; min-height: 360px; object-fit: cover; }
.product-detail-info span { color: var(--primary); font-weight: 900; }
.product-detail-info { min-width: 0; }
.product-detail-info h1 { margin: 12px 0; max-width: 100%; font-size: clamp(1.75rem, 3vw, 2.7rem); line-height: 1.18; letter-spacing: -0.04em; overflow-wrap: anywhere; word-break: break-word; }
.product-detail-info p { color: var(--muted); line-height: 1.8; }
.parameter-box { margin-top: 24px; padding: 24px; max-width: 100%; border-radius: 22px; background: var(--bg); border: 1px solid var(--line); white-space: pre-wrap; color: #32445c; line-height: 1.9; overflow-wrap: anywhere; word-break: break-word; box-sizing: border-box; }
.parameter-box.rich-content img { display: block; max-width: 100%; height: auto; margin: 14px 0; border-radius: 14px; }
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
.timeline div { position: relative; padding: 24px; border-radius: 20px; background: var(--primary-soft); border: 1px solid #d4e8ff; }
.timeline div::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 18px; border-radius: 50%; color: #fff; font-weight: 900; background: var(--primary); }
.timeline strong { font-size: 1.05rem; }
.timeline p { margin: 10px 0 0; color: var(--muted); line-height: 1.7; }
.about-band { color: #fff; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 46px; align-items: center; }
.about-grid h2 { margin: 12px 0 16px; font-size: clamp(1.9rem, 3vw, 3rem); }
.about-grid p { color: rgba(255,255,255,0.78); line-height: 1.9; font-size: 1.05rem; }
.about-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.about-metrics div { padding: 24px; border-radius: 20px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); }
.about-metrics strong { display: block; font-size: 1.28rem; }
.about-metrics span { display: block; margin-top: 8px; color: rgba(255,255,255,0.72); }
.cta-box { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; padding: 42px; border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.cta-box > div:first-child { max-width: none; }
.cta h2 { margin: 12px 0; font-size: clamp(2rem, 3.35vw, 3rem); letter-spacing: -0.05em; white-space: nowrap; }
.cta p { color: var(--muted); line-height: 1.8; }
.contact-card { padding: 26px; border-radius: 22px; background: var(--bg); display: grid; grid-template-columns: .95fr 1.05fr; gap: 24px; align-items: start; }
.contact-lines { display: grid; gap: 12px; margin-bottom: 0; }
.contact-lines p { margin: 0; color: #32445c; font-weight: 800; line-height: 1.6; }
.qr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.qr-grid div { display: grid; gap: 8px; place-items: center; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: transform .22s ease, filter .22s ease, opacity .22s ease, box-shadow .22s ease, border-color .22s ease; transform-origin: center; }
.qr-grid:hover div { opacity: .42; filter: blur(2px) grayscale(.25); }
.qr-grid div:hover { position: relative; z-index: 5; opacity: 1; filter: none; transform: scale(1.55); border-color: rgba(0,91,179,.35); box-shadow: 0 22px 52px rgba(7,54,111,0.18); }
.qr-grid img { width: 96px; height: 96px; object-fit: contain; }
.qr-grid img.empty-qr { display: block; background: linear-gradient(135deg, #eef6ff, #fff); border: 1px dashed #bed8f4; border-radius: 12px; }
.qr-grid span { color: var(--primary); font-weight: 900; font-size: .86rem; }
.footer { background: #061b36; color: rgba(255,255,255,0.72); }
.footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { height: 78px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); }

.login-page { min-height: 100vh; background: radial-gradient(circle at 20% 10%, rgba(21,166,217,0.18), transparent 34%), linear-gradient(135deg, #f6f9fd, #eaf3ff); }
.login-shell { min-height: 100vh; width: min(1040px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: 1fr 420px; gap: 36px; align-items: center; }
.login-brand h1 { margin: 34px 0 14px; font-size: clamp(2.2rem, 4vw, 4rem); letter-spacing: -0.05em; }
.login-brand p { color: var(--muted); line-height: 1.9; font-size: 1.05rem; }
.login-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.login-tags span { padding: 9px 14px; border-radius: 999px; color: var(--primary); background: #fff; border: 1px solid var(--line); font-weight: 800; }
.login-card { padding: 34px; border-radius: 28px; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); }
.login-card h2 { margin: 0 0 8px; font-size: 1.8rem; }
.login-card p { margin: 0 0 24px; color: var(--muted); }
.login-card label { display: block; color: #32445c; font-weight: 800; margin-bottom: 16px; }
.login-card input { width: 100%; height: 46px; margin-top: 8px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); outline: none; }
.login-card input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(11,78,162,0.1); }
.login-error { display: none; color: #dc2626; font-size: 0.9rem; margin: 0 0 14px; }
.back-home { display: block; text-align: center; margin-top: 18px; color: var(--muted); }
.admin-page { min-height: 100vh; background: var(--bg); }
.admin-topbar { height: 76px; padding: 0 28px; display: flex; justify-content: space-between; align-items: center; background: #fff; border-bottom: 1px solid var(--line); }
.admin-actions { display: flex; gap: 12px; align-items: center; }
.admin-shell { width: min(1160px, calc(100% - 40px)); margin: 36px auto; }
.admin-hero { padding: 38px; border-radius: 28px; color: #fff; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); box-shadow: var(--shadow); }
.admin-hero span { color: #aee9ff; font-weight: 900; }
.admin-hero h1 { margin: 10px 0; font-size: 2.4rem; }
.admin-hero p { max-width: 800px; color: rgba(255,255,255,0.78); line-height: 1.85; }
.admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 22px; }
.admin-grid h3 { margin: 0 0 10px; }
.admin-grid p { color: var(--muted); line-height: 1.7; margin: 0; }
.admin-panel { margin-top: 26px; padding: 28px; border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 36px rgba(7,54,111,0.06); }
.admin-collapsible { padding: 0; overflow: hidden; }
.admin-collapse-head { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 24px 28px; border: 0; background: #fff; color: var(--text); cursor: pointer; text-align: left; }
.admin-collapse-head strong { display: block; font-size: 1.45rem; }
.admin-collapse-head small { display: block; margin-top: 6px; color: var(--muted); }
.admin-collapse-head em { min-width: 52px; padding: 8px 12px; border-radius: 999px; color: var(--primary); background: var(--primary-soft); font-style: normal; font-weight: 900; text-align: center; }
.admin-collapse-body { padding: 0 28px 28px; }
.admin-collapsible.collapsed .admin-collapse-body { display: none; }
.product-admin-form, .content-admin-form, .category-admin-form, .brand-admin-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.admin-modal-card .brand-admin-form { grid-template-columns: repeat(2, 1fr); }
.admin-modal-card .brand-admin-form .form-actions { grid-column: 1 / -1; }
.content-admin-form fieldset, .category-admin-form fieldset { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 0; padding: 20px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg); }
.content-admin-form legend, .category-admin-form legend { padding: 0 8px; color: var(--primary); font-weight: 900; }
.product-admin-form label, .content-admin-form label, .category-admin-form label, .brand-admin-form label { display: block; color: #32445c; font-weight: 800; }
.field-title { color: #32445c; font-weight: 800; }
.product-admin-form input, .product-admin-form select, .product-admin-form textarea, .content-admin-form input, .content-admin-form textarea, .category-admin-form input, .category-admin-form textarea, .brand-admin-form input, #adminCategoryFilter { width: 100%; margin-top: 8px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); outline: none; font: inherit; }
.product-admin-form input:focus, .product-admin-form select:focus, .product-admin-form textarea:focus, .content-admin-form input:focus, .content-admin-form textarea:focus, .category-admin-form input:focus, .category-admin-form textarea:focus, .brand-admin-form input:focus, #adminCategoryFilter:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(11,78,162,0.1); }
.rich-editor-toolbar { display: flex; align-items: center; gap: 12px; margin-top: 8px; color: var(--muted); font-weight: 700; }
.rich-editor { width: 100%; min-height: 190px; margin-top: 10px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); outline: none; background: #fff; line-height: 1.8; font-weight: 500; }
.rich-editor:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(11,78,162,0.1); }
.rich-editor:empty::before { content: attr(data-placeholder); color: #9ca3af; }
.rich-editor img { display: block; max-width: 100%; height: auto; margin: 12px 0; border-radius: 12px; }
.check-field { display: flex !important; align-items: center; gap: 10px; min-height: 48px; margin-top: 28px; }
.check-field input { width: auto !important; margin: 0 !important; }
.full-field { grid-column: 1 / -1; }
.form-actions { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; }
#productFormMessage.ok, #productListMessage.ok, #contentFormMessage.ok, #contentActionMessage.ok, #categoryFormMessage.ok, [data-category-action-message].ok, #brandFormMessage.ok, #brandModalMessage.ok { color: #047857; font-weight: 900; }
#productFormMessage.error, #productListMessage.error, #contentFormMessage.error, #contentActionMessage.error, #categoryFormMessage.error, [data-category-action-message].error, #brandFormMessage.error, #brandModalMessage.error { color: #dc2626; font-weight: 900; }
.admin-product-list { display: grid; gap: 14px; }
.admin-product-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg); }
.admin-product-thumb { width: 96px; height: 74px; overflow: hidden; border-radius: 14px; background: #fff; display: grid; place-items: center; color: var(--muted); font-size: .9rem; }
.admin-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-product-item strong { display: block; font-size: 1.05rem; }
.admin-product-item p { margin: 7px 0 0; color: var(--muted); }
.admin-product-actions { display: flex; gap: 10px; }
.danger { color: #dc2626 !important; }
.admin-list-tools { display: flex; gap: 12px; align-items: center; }
.admin-list-tools select { min-width: 260px; }
.admin-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 28px; }
.admin-modal.open { display: flex; }
.admin-modal-backdrop { position: absolute; inset: 0; background: rgba(7, 24, 48, 0.52); backdrop-filter: blur(8px); }
.admin-modal-card { position: relative; z-index: 1; width: min(980px, 100%); max-height: min(88vh, 820px); overflow: auto; padding: 30px; border-radius: 30px; background: #fff; box-shadow: 0 30px 80px rgba(7,54,111,0.28); }
.modal-open { overflow: hidden; }
.official-qr-box { display: grid; grid-template-columns: 1fr 260px; gap: 26px; align-items: center; padding: 24px; border-radius: 22px; background: var(--bg); border: 1px solid var(--line); }
.official-qr-box h3 { margin: 0 0 10px; font-size: 1.35rem; }
.official-qr-box p { margin: 0 0 18px; color: var(--muted); font-weight: 800; overflow-wrap: anywhere; }
.official-qr-preview { display: grid; place-items: center; padding: 18px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.official-qr-preview img { width: 220px; height: 220px; object-fit: contain; }
#officialQrMessage.ok { color: #047857; font-weight: 900; }
#officialQrMessage.error { color: #dc2626; font-weight: 900; }
.analytics-stats { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; margin-bottom: 18px; }
.analytics-stats div { padding: 20px; border-radius: 18px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; box-shadow: 0 14px 32px rgba(11,78,162,0.14); }
.analytics-stats strong { display: block; font-size: 2rem; line-height: 1; }
.analytics-stats span { display: block; margin-top: 10px; color: rgba(255,255,255,.78); font-weight: 800; }
.analytics-dashboard { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; margin-top: 18px; }
.analytics-dashboard section { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); }
.analytics-dashboard h3 { margin: 0 0 14px; color: var(--primary); }
.analytics-chart, .analytics-rank { display: grid; gap: 10px; }
.analytics-bar-row { display: grid; grid-template-columns: 92px 1fr 54px; gap: 10px; align-items: center; color: #32445c; font-size: .9rem; }
.analytics-bar-track { height: 12px; overflow: hidden; border-radius: 999px; background: #dbe6f3; }
.analytics-bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.analytics-rank .analytics-bar-row { grid-template-columns: minmax(110px, 1fr) 1.2fr 44px; }
.analytics-table-wrap { margin-top: 18px; overflow: auto; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.analytics-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.analytics-table th, .analytics-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: .92rem; }
.analytics-table th { color: var(--primary); background: var(--primary-soft); font-weight: 900; }
.analytics-table td { color: #32445c; }
#analyticsMessage.ok { color: #047857; font-weight: 900; }
#analyticsMessage.error { color: #dc2626; font-weight: 900; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; left: 20px; right: 20px; top: 74px; display: none; flex-direction: column; align-items: stretch; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .about-grid, .cta-box, .login-shell, .network-box { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; }
  .qr-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { min-height: auto; }
  .cards.four, .product-grid, .frontend-product-grid, .brand-logo-grid, .timeline, .admin-grid, .product-admin-form, .content-admin-form, .category-admin-form, .brand-admin-form, .product-detail-card { grid-template-columns: repeat(2, 1fr); }
  .city-grid { grid-template-columns: repeat(3, 1fr); }
  .network-strip { margin-top: -28px; }
  .cta-box { padding: 28px; }
}

@media (max-width: 640px) {
  section[id] { scroll-margin-top: 76px; }
  body { font-size: 15px; background: #fff; }
  .container { width: min(100% - 24px, 1180px); }
  .site-header { background: rgba(255,255,255,0.96); }
  .navbar { height: 64px; gap: 12px; }
  .brand { gap: 10px; min-width: 0; }
  .brand-mark { width: 44px; height: 44px; border-radius: 13px; font-size: 1.45rem; flex: 0 0 auto; }
  .brand strong { font-size: 1.08rem; white-space: nowrap; }
  .brand small { display: none; }
  .nav-toggle { width: 42px; height: 40px; flex: 0 0 auto; }
  .nav-links { left: 12px; right: 12px; top: 58px; gap: 6px; padding: 12px; border-radius: 16px; }
  .nav-links a { padding: 13px 14px; border-radius: 12px; background: #f7fbff; font-weight: 800; }
  .hero { background-position: center, center, 58% center; }
  .hero-grid { min-height: calc(100vh - 64px); padding: 48px 0 38px; align-items: end; }
  .hero-copy { max-width: 100%; }
  .hero h1 { white-space: normal; font-size: clamp(2.05rem, 10vw, 3rem); line-height: 1.16; letter-spacing: -0.05em; }
  .hero p { font-size: 1rem; line-height: 1.8; color: rgba(255,255,255,0.88); }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
  .btn { width: 100%; min-height: 48px; border-radius: 14px; }
  .hero-stats { gap: 10px; margin-top: 28px; }
  .hero-stats div { padding: 14px 16px; border-radius: 16px; }
  .hero-stats strong { font-size: 1rem; }
  .section-head h2[data-content="advantagesTitle"] { white-space: normal; }
  .cta h2 { white-space: normal; }
  .hero-stats, .cards.four, .product-grid, .frontend-product-grid, .brand-logo-grid, .timeline, .about-metrics, .admin-grid, .city-grid, .product-admin-form, .content-admin-form, .category-admin-form, .brand-admin-form, .content-admin-form fieldset, .category-admin-form fieldset, .admin-product-item, .product-detail-card { grid-template-columns: 1fr; }
  .network-strip { margin-top: 0; padding: 18px 0 10px; background: var(--bg); }
  .network-box { padding: 18px; border-radius: 22px; }
  .network-title h2 { font-size: 1.45rem; }
  .city-grid { gap: 10px; }
  .city-grid div { min-height: auto; padding: 18px; border-radius: 18px; }
  .city-grid strong { font-size: 1.42rem; margin-bottom: 6px; }
  .section { padding: 54px 0; }
  .section-head { margin-bottom: 22px; }
  .section-head h2 { font-size: clamp(1.65rem, 7vw, 2.1rem); line-height: 1.25; }
  .section-head.row { display: block; }
  .card, .product-card, .frontend-product-card { border-radius: 18px; }
  .card { padding: 20px; }
  .frontend-product-card img { height: 170px; }
  .frontend-product-card div { padding: 16px; }
  .brand-logo-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-logo-card { min-height: 66px; padding: 10px; border-radius: 14px; }
  .brand-logo-card img { max-width: 124px; max-height: 46px; }
  .timeline { gap: 12px; }
  .timeline div { padding: 18px; }
  .about-grid { gap: 22px; }
  .about-grid h2 { font-size: 1.8rem; }
  .about-metrics div { padding: 18px; }
  .cta-box { padding: 20px; border-radius: 22px; }
  .contact-card { padding: 18px; border-radius: 18px; }
  .contact-lines p { font-size: .95rem; overflow-wrap: anywhere; }
  .qr-grid { grid-template-columns: repeat(2, 1fr); }
  .qr-grid:hover div { opacity: 1; filter: none; }
  .qr-grid div:hover { transform: none; box-shadow: 0 10px 24px rgba(7,54,111,0.06); }
  .qr-grid img { width: 104px; height: 104px; }
  .admin-list-tools { display: grid; grid-template-columns: 1fr; margin-top: 16px; }
  .admin-list-tools select { min-width: 0; }
  .admin-modal { padding: 14px; }
  .admin-modal-card { padding: 20px; }
  .official-qr-box { grid-template-columns: 1fr; padding: 18px; }
  .official-qr-preview img { width: 200px; height: 200px; }
  .analytics-stats { grid-template-columns: 1fr; }
  .analytics-dashboard { grid-template-columns: 1fr; }
  .analytics-bar-row, .analytics-rank .analytics-bar-row { grid-template-columns: 1fr; gap: 6px; }
  .footer-inner { height: auto; padding: 22px 0; display: grid; gap: 8px; }
  .login-shell { width: min(100% - 28px, 1040px); padding: 34px 0; }
  .product-detail-shell { width: min(100% - 24px, 1100px); margin: 24px auto 54px; }
  .product-detail-card { padding: 18px; border-radius: 22px; gap: 18px; }
  .product-detail-image { border-radius: 18px; }
  .product-detail-image img { min-height: 240px; object-fit: contain; }
  .parameter-box { padding: 18px; border-radius: 18px; }
}

@media (max-width: 390px) {
  .container { width: min(100% - 20px, 1180px); }
  .hero h1 { font-size: 1.92rem; }
  .section-head h2 { font-size: 1.55rem; }
  .brand-logo-grid, .qr-grid { grid-template-columns: 1fr; }
}
