/* =========================================================
   SeaStrong Rope & Net — 内页样式
   产品页 / 关于页 / 联系页 / 隐私页 / 管理后台
   ========================================================= */

/* ---------- 内页 Hero ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--navy-950), var(--navy-800));
  color: #fff; padding: 66px 0 56px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; right: -120px; top: -120px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,140,30,.25), transparent 65%);
}
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: #C6D4EA; max-width: 680px; margin: 0; font-size: 1.06rem; }
.breadcrumb { font-size: .84rem; color: #8CA3C4; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px; }
.breadcrumb a { color: var(--orange-400); }
.breadcrumb a:hover { color: #fff; }

/* ---------- 产品页 ---------- */
.product-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 30px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1.5px solid var(--line); background: #fff; color: var(--navy-800);
  border-radius: 999px; padding: 8px 18px; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: .96rem; letter-spacing: .4px; text-transform: uppercase;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--navy-600); color: var(--navy-600); }
.chip.active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.product-search { position: relative; }
.product-search input {
  padding: 10px 16px 10px 40px; border: 1.5px solid var(--line); border-radius: 999px;
  font: inherit; font-size: 16px; width: 240px; background: #fff;
}
.product-search input:focus { outline: none; border-color: var(--navy-600); }
.product-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--slate); }
.p-count { font-size: .88rem; color: var(--slate); }

.p-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.p-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.p-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.p-card-media { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--bg); }
.p-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.p-card:hover .p-card-media img { transform: scale(1.05); }
.p-card-tag {
  position: absolute; left: 12px; top: 12px;
  background: rgba(10,35,69,.88); color: #fff;
  font-family: var(--font-display); font-weight: 600; letter-spacing: .8px;
  text-transform: uppercase; font-size: .78rem;
  padding: 4px 12px; border-radius: 999px;
}
.p-card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.p-card-body h3 { font-size: 1.28rem; margin-bottom: 12px; }
.p-specs { margin: 0 0 18px; display: grid; gap: 8px; }
.p-specs div { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; border-bottom: 1px dashed var(--line); padding-bottom: 7px; }
.p-specs dt { color: var(--slate); }
.p-specs dd { margin: 0; font-weight: 600; color: var(--navy-900); text-align: right; }
.p-card-actions { display: flex; gap: 10px; margin-top: auto; }
.p-card-actions .btn { flex: 1; }
.empty-state { grid-column: 1 / -1; text-align: center; color: var(--slate); padding: 60px 0; }

/* ---------- 关于：时间轴 ---------- */
.timeline { display: grid; gap: 0; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 132px; top: 10px; bottom: 10px;
  width: 2px; background: var(--blue-100);
}
.tl-row { display: grid; grid-template-columns: 110px 46px 1fr; gap: 0; align-items: center; position: relative; }
.tl-year { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--orange-500); text-align: right; padding-right: 14px; }
.tl-dot { justify-self: center; z-index: 1; width: 18px; height: 18px; border-radius: 50%; background: var(--orange-500); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--orange-500); }
.tl-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.tl-card h4 { margin: 0 0 4px; font-size: 1.2rem; }
.tl-card p { margin: 0; color: var(--slate); font-size: .93rem; }

/* ---------- 关于：工厂实景 ---------- */
.gallery { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-auto-rows: 230px; gap: 18px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery .wide { grid-column: span 2; }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(7,26,51,.78));
  color: #fff; padding: 26px 16px 12px; font-size: .88rem; font-weight: 600;
}

/* ---------- 关于：生产工序流程 ---------- */
.proc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: proc; }
.proc-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-sm); position: relative; border-top: 3px solid var(--orange); }
.proc-step::before {
  counter-increment: proc; content: '0' counter(proc);
  font-family: var(--font-display); font-weight: 700; font-size: 2.2rem;
  color: var(--orange); display: block; line-height: 1; margin-bottom: 10px;
}
.proc-step h4 { margin: 0 0 6px; font-size: 1.14rem; }
.proc-step p { margin: 0; color: var(--slate); font-size: .9rem; }

/* ---------- 关于：质控流程 ---------- */
.qc-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: qc; }
.qc-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-sm); position: relative; }
.qc-step::before {
  counter-increment: qc; content: '0' counter(qc);
  font-family: var(--font-display); font-weight: 700; font-size: 2.4rem;
  color: var(--blue-100); display: block; line-height: 1; margin-bottom: 10px;
}
.qc-step h4 { margin: 0 0 6px; font-size: 1.16rem; }
.qc-step p { margin: 0; color: var(--slate); font-size: .9rem; }

/* ---------- 关于：认证 ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.cert-badge {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 16px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .2s ease;
}
.cert-badge:hover { transform: translateY(-3px); }
.cert-badge .c-ico { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; background: var(--blue-100); color: var(--navy-700); display: flex; align-items: center; justify-content: center; }
.cert-badge .c-ico svg { width: 26px; height: 26px; }
.cert-badge strong { display: block; font-family: var(--font-display); font-size: 1.12rem; color: var(--navy-900); }
.cert-badge span { font-size: .78rem; color: var(--slate); line-height: 1.45; display: block; margin-top: 6px; }

/* ---------- 关于：OEM ---------- */
.oem-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.oem-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.oem-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.oem-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.oem-list li { display: flex; gap: 12px; align-items: flex-start; }
.oem-list svg { width: 22px; height: 22px; flex: 0 0 22px; color: var(--orange-500); margin-top: 2px; }
.oem-list span { color: var(--ink); }

/* ---------- 承诺横幅 ---------- */
.promise-band { background: linear-gradient(120deg, var(--orange-600), var(--orange-500)); border-radius: 18px; padding: 44px 40px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; box-shadow: 0 18px 40px rgba(242,140,30,.3); }
.promise-band h3 { color: #fff; font-size: 1.7rem; margin: 0 0 6px; }
.promise-band p { margin: 0; color: rgba(255,255,255,.92); max-width: 640px; }
.promise-band .btn { background: var(--navy-900); color: #fff; }
.promise-band .btn:hover { background: var(--navy-950); }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 44px; align-items: start; }
.info-card { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.info-card + .info-card { margin-top: 16px; }
.info-card .i-ico { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 12px; background: var(--blue-100); color: var(--navy-700); display: flex; align-items: center; justify-content: center; }
.info-card .i-ico svg { width: 22px; height: 22px; }
.info-card h4 { margin: 0 0 3px; font-size: 1.05rem; }
.info-card p, .info-card a { margin: 0; color: var(--slate); font-size: .95rem; word-break: break-word; }
.info-card a { color: var(--navy-600); }
.contact-form-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px 28px; box-shadow: var(--shadow-md); }
.map-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.map-card iframe { width: 100%; height: 340px; border: 0; display: block; }
.map-card .map-cap { padding: 14px 20px; background: #fff; font-size: .9rem; color: var(--slate); }
.map-card .map-cap strong { color: var(--navy-900); }

/* ---------- 隐私页 ---------- */
.privacy-prose { max-width: 860px; margin: 0 auto; }
.privacy-prose h2 { font-size: 1.5rem; margin-top: 40px; }
.privacy-prose h3 { font-size: 1.18rem; margin-top: 26px; }
.privacy-prose p, .privacy-prose li { color: var(--slate); font-size: .96rem; }
.privacy-prose ul { padding-left: 20px; }
.privacy-meta { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; font-size: .86rem; color: var(--slate); margin-bottom: 8px; }

/* ---------- 管理后台 ---------- */
.admin-body { background: var(--bg); }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-side {
  background: var(--navy-950); color: #AFC1DC; padding: 22px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.admin-side .admin-brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 22px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 14px; }
.admin-side .admin-brand svg { width: 30px; height: 30px; color: var(--orange-400); }
.admin-side .admin-brand strong { color: #fff; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .5px; }
.admin-nav { display: grid; gap: 2px; }
.admin-nav button {
  text-align: left; background: none; border: 0; color: #AFC1DC; cursor: pointer;
  padding: 11px 14px; border-radius: 10px; font: inherit; font-weight: 500; font-size: .95rem;
  display: flex; gap: 10px; align-items: center;
  transition: all .15s ease;
}
.admin-nav button svg { width: 18px; height: 18px; }
.admin-nav button:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-nav button.active { background: var(--orange-500); color: #fff; }
.admin-side .admin-out { margin-top: auto; }
.admin-main { padding: 28px 30px; min-width: 0; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-topbar h1 { font-size: 1.7rem; margin: 0; }
.admin-topbar .btn { padding: 9px 20px; font-size: .95rem; }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.admin-card h2 { font-size: 1.3rem; margin-bottom: 14px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 22px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow-sm); }
.stat-card .sc-num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--navy-800); line-height: 1; }
.stat-card .sc-label { font-size: .84rem; color: var(--slate); margin-top: 6px; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th { text-align: left; color: var(--slate); font-size: .78rem; text-transform: uppercase; letter-spacing: .8px; padding: 10px 12px; border-bottom: 2px solid var(--line); }
.admin-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:hover td { background: var(--blue-50); }
.admin-table img.thumb { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; }
.tag-new { background: #FFF4E5; color: var(--orange-600); }
.tag-done { background: var(--blue-100); color: var(--navy-700); }
.tbl-actions { display: flex; gap: 6px; }
.tbl-actions button {
  border: 1px solid var(--line); background: #fff; border-radius: 8px;
  padding: 6px 12px; cursor: pointer; font: inherit; font-size: .82rem; color: var(--navy-800);
  transition: all .15s ease;
}
.tbl-actions button:hover { border-color: var(--navy-600); color: var(--navy-600); }
.tbl-actions button.danger:hover { border-color: #DC2626; color: #DC2626; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.admin-form-grid .full { grid-column: 1 / -1; }
.admin-form-grid .field input, .admin-form-grid .field select, .admin-form-grid .field textarea { background: #FBFCFE; }
.form-actions-bar { display: flex; gap: 10px; margin-top: 8px; }
.btn-ghost { background: #fff; border: 1.5px solid var(--line); color: var(--navy-800); }
.btn-ghost:hover { border-color: var(--navy-600); color: var(--navy-600); transform: none; }
.btn-danger { background: #DC2626; color: #fff; }
.btn-danger:hover { background: #B91C1C; color: #fff; }
/* 登录页 */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy-950), var(--navy-800)); padding: 20px; }
.login-card { width: min(400px, 100%); background: #fff; border-radius: 18px; padding: 40px 36px; box-shadow: var(--shadow-lg); }
.login-card .logo-mark { margin-bottom: 16px; }
.login-card h1 { font-size: 1.6rem; margin-bottom: 4px; }
.login-card p.sub { color: var(--slate); font-size: .92rem; margin-bottom: 22px; }
.login-error { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; border-radius: 10px; padding: 10px 14px; font-size: .88rem; margin-bottom: 14px; display: none; }
.login-error.show { display: block; }
/* 模态 */
.modal-backdrop { position: fixed; inset: 0; background: rgba(7,26,51,.5); z-index: 110; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop.show { display: flex; }
.modal { width: min(620px, 100%); max-height: 88vh; overflow: auto; background: #fff; border-radius: 16px; padding: 28px; box-shadow: var(--shadow-lg); }
.modal h3 { font-size: 1.35rem; margin-bottom: 18px; }
.modal .modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.settings-note { background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 10px; padding: 12px 16px; font-size: .86rem; color: var(--navy-800); margin-bottom: 18px; }

/* ---------- 联系：询价提示 ---------- */
.inq-tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.inq-tip { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; box-shadow: var(--shadow-sm); }
.inq-tip .t-ico { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: var(--blue-50); color: var(--orange); display: flex; align-items: center; justify-content: center; }
.inq-tip .t-ico svg { width: 18px; height: 18px; }
.inq-tip p { margin: 0; font-size: .92rem; color: var(--navy-800); line-height: 1.5; }

/* ---------- 响应式（内页） ---------- */
@media (max-width: 1080px) {
  .p-grid { grid-template-columns: repeat(2, 1fr); }
  .qc-steps { grid-template-columns: repeat(2, 1fr); }
  .proc-steps { grid-template-columns: repeat(2, 1fr); }
  .inq-tips { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .wide { grid-column: span 2; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { flex-direction: row; align-items: center; padding: 12px 16px; overflow-x: auto; }
  .admin-side .admin-brand { border-bottom: 0; padding: 0 14px 0 0; margin: 0; }
  .admin-nav { display: flex; }
  .admin-side .admin-out { margin: 0 0 0 auto; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .p-grid { grid-template-columns: 1fr; }
  .proc-steps { grid-template-columns: 1fr; }
  .inq-tips { grid-template-columns: 1fr; }
  .oem-wrap, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gallery .wide { grid-column: span 1; }
  .tl-row { grid-template-columns: 70px 34px 1fr; }
  .timeline::before { left: 86px; }
  .tl-year { font-size: 1.25rem; }
  .product-toolbar { flex-direction: column; align-items: stretch; }
  .product-search input { width: 100%; }
  .promise-band { padding: 32px 24px; }
}
