/* ============================================================
   DiplomaRestore — 前台样式
   主题：黑金学术风（Academic Black & Gold）
   ============================================================ */
:root {
  --bg: #0b0b0d;
  --bg-soft: #101014;
  --panel: #15151a;
  --panel-2: #1a1a21;
  --border: #2a2a33;
  --border-gold: rgba(201, 162, 39, 0.35);

  --gold: #c9a227;
  --gold-bright: #e3c04a;
  --gold-deep: #8a6d14;
  --gold-gradient: linear-gradient(135deg, #e3c04a 0%, #c9a227 45%, #8a6d14 100%);

  --text: #ece7da;
  --muted: #9b968a;
  --faint: #6d6a62;

  --danger: #e05252;
  --success: #4fae6c;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-bright); text-decoration: none; transition: color .2s; }
a:hover { color: #f4d97b; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.25; color: #f5f0e1; }
ul, ol { list-style-position: inside; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; }

/* ---------------- Topbar ---------------- */
.topbar {
  background: linear-gradient(90deg, #14120b, #1d1806 50%, #14120b);
  border-bottom: 1px solid var(--border-gold);
  font-size: 13px;
  color: var(--muted);
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 7px 24px; }
.topbar-note { color: var(--gold-bright); letter-spacing: .4px; }
.topbar-contact a { color: var(--muted); }
.topbar-contact a:hover { color: var(--gold-bright); }
.topbar-sep { margin: 0 10px; color: var(--border-gold); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 11, 13, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 28px; padding: 14px 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo { width: 44px; height: 44px; }
.brand-logo-long { height: 56px; width: auto; max-width: 340px; object-fit: contain; display: block; }
.footer-logo-long { height: 48px; max-width: 260px; margin-bottom: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: var(--serif); font-size: 21px; letter-spacing: 1px; color: #f5f0e1; }
.brand-text small { font-size: 11px; color: var(--muted); letter-spacing: .3px; max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main-nav { flex: 1; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; flex-wrap: nowrap; }
.nav-item { position: relative; }
.nav-link {
  display: block; padding: 9px 12px; font-size: 14px; font-weight: 500;
  color: var(--text); border-radius: 6px; white-space: nowrap;
}
.nav-link:hover { color: var(--gold-bright); background: rgba(201, 162, 39, 0.08); }
.nav-dropdown {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--panel); border: 1px solid var(--border-gold); border-radius: var(--radius);
  list-style: none; padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .22s ease; box-shadow: var(--shadow); z-index: 50;
}
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(4px); }
.nav-dropdown a { display: block; padding: 8px 12px; font-size: 13.5px; color: var(--text); border-radius: 6px; }
.nav-dropdown a:hover { background: rgba(201, 162, 39, 0.1); color: var(--gold-bright); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-search {
  display: flex; align-items: center; background: var(--panel);
  border: 1px solid var(--border); border-radius: 999px; overflow: hidden;
}
.header-search input { background: transparent; border: 0; outline: 0; color: var(--text); padding: 8px 14px; font-size: 13px; width: 150px; }
.header-search button { background: transparent; border: 0; color: var(--gold); cursor: pointer; padding: 8px 12px 8px 4px; display: flex; }
.nav-toggle { display: none; background: transparent; border: 0; cursor: pointer; padding: 6px; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--gold-bright); border-radius: 2px; transition: .25s; }

/* ---------------- Breadcrumb ---------------- */
.breadcrumb-bar { background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.breadcrumb { display: flex; flex-wrap: wrap; list-style: none; gap: 6px; padding: 10px 0; font-size: 13px; color: var(--faint); }
.breadcrumb li + li::before { content: '/'; margin-right: 6px; color: var(--border-gold); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold-bright); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 8px; font-size: 14.5px; font-weight: 600;
  letter-spacing: .3px; cursor: pointer; border: 1px solid transparent;
  transition: all .2s; font-family: var(--sans);
}
.btn-gold { background: var(--gold-gradient); color: #14110a; box-shadow: 0 6px 22px rgba(201, 162, 39, 0.28); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(201, 162, 39, 0.42); color: #14110a; }
.btn-outline { border-color: var(--border-gold); color: var(--gold-bright); background: transparent; }
.btn-outline:hover { background: rgba(201, 162, 39, 0.1); border-color: var(--gold); }
.btn-light { background: #f5f0e1; color: #14110a; }
.btn-light:hover { background: #fff; color: #14110a; }
.btn-outline-light { border-color: rgba(245, 240, 225, 0.5); color: #f5f0e1; }
.btn-outline-light:hover { background: rgba(245, 240, 225, 0.12); color: #fff; }
.btn-block { width: 100%; }
.btn-danger { background: rgba(224, 82, 82, 0.12); border-color: rgba(224, 82, 82, 0.4); color: var(--danger); }
.btn-danger:hover { background: rgba(224, 82, 82, 0.22); }
.text-link { color: var(--gold-bright); font-weight: 500; font-size: 14px; }
.text-link:hover { text-decoration: underline; }

/* ---------------- Sections ---------------- */
.sec { padding: 72px 0; }
.sec-alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.sec-head-left { text-align: left; margin: 0 0 24px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 36px); position: relative; padding-bottom: 14px; }
.sec-head h2::after {
  content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 64px; height: 2px; background: var(--gold-gradient);
}
.sec-head-left h2::after { left: 0; transform: none; }
.sec-sub { color: var(--muted); margin-top: 12px; font-size: 15.5px; }
.sec-eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: 3px; font-size: 12.5px; font-weight: 600; margin-bottom: 10px; }
.sec-more { text-align: center; margin-top: 36px; }

/* Hero */
.sec-hero { padding: 84px 0 72px; background:
  radial-gradient(ellipse 60% 50% at 85% 15%, rgba(201, 162, 39, 0.10), transparent),
  radial-gradient(ellipse 40% 40% at 10% 90%, rgba(201, 162, 39, 0.06), transparent),
  var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-title { font-size: clamp(34px, 4.6vw, 54px); letter-spacing: .5px; }
.hero-sub { color: var(--muted); font-size: 17px; margin: 20px 0 30px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media::before {
  content: ''; position: absolute; inset: -18px; border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg); pointer-events: none;
}
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 24px; transition: all .25s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-gold); box-shadow: var(--shadow); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(201, 162, 39, 0.1); border: 1px solid var(--border-gold); color: var(--gold-bright); margin-bottom: 18px;
}
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 14px; line-height: 1.65; }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-card {
  display: block; background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; transition: all .25s; color: var(--text);
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--border-gold); box-shadow: var(--shadow); color: var(--text); }
.cat-card-media { display: block; aspect-ratio: 16/7; overflow: hidden; background: var(--panel-2); }
.cat-card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s; }
.cat-card:hover .cat-card-media img { transform: scale(1.04); }
.cat-card-body { display: block; padding: 18px 20px; position: relative; }
.cat-card-body strong { display: block; font-family: var(--serif); font-size: 19px; color: #f5f0e1; }
.cat-card-body em { display: block; font-style: normal; font-size: 13px; color: var(--muted); margin-top: 4px; }
.cat-card-arrow { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 20px; transition: transform .25s; }
.cat-card:hover .cat-card-arrow { transform: translateY(-50%) translateX(4px); }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; counter-reset: step; }
.step-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 20px; position: relative; }
.step-num { font-family: var(--serif); font-size: 36px; color: var(--gold); opacity: .85; display: block; margin-bottom: 10px; }
.step-card h3 { font-size: 16px; margin-bottom: 6px; }
.step-card p { color: var(--muted); font-size: 13px; line-height: 1.6; }
@media (min-width: 769px) {
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
  .steps-grid .step-card:nth-child(n+5) { margin-top: 4px; }
}

/* Reviews */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; }
.review-stars { color: var(--gold-bright); letter-spacing: 3px; font-size: 15px; }
.review-card blockquote { color: var(--text); font-size: 14.5px; line-height: 1.75; flex: 1; }
.review-card figcaption { display: flex; align-items: center; gap: 12px; }
.review-card figcaption img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--border-gold); }
.review-card figcaption span { display: flex; flex-direction: column; line-height: 1.4; }
.review-card figcaption em { font-style: normal; color: var(--faint); font-size: 12.5px; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all .25s; }
.blog-card:hover { transform: translateY(-4px); border-color: var(--border-gold); box-shadow: var(--shadow); }
.blog-card-media { display: block; aspect-ratio: 3/2; overflow: hidden; background: var(--panel-2); }
.blog-card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s; }
.blog-card:hover .blog-card-media img { transform: scale(1.04); }
.blog-card-body { padding: 20px 22px 24px; }
.blog-card-body time { color: var(--faint); font-size: 12.5px; letter-spacing: .5px; }
.blog-card-body h3 { font-size: 17.5px; margin: 8px 0 10px; }
.blog-card-body h3 a { color: #f5f0e1; }
.blog-card-body h3 a:hover { color: var(--gold-bright); }
.blog-card-body p { color: var(--muted); font-size: 13.5px; margin-bottom: 12px; }

/* CTA */
.sec-cta {
  background:
    radial-gradient(ellipse 50% 80% at 50% 0%, rgba(201, 162, 39, 0.14), transparent),
    linear-gradient(135deg, #151208, #0d0c08);
  border-top: 1px solid var(--border-gold);
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(24px, 3vw, 32px); }
.cta-inner p { color: var(--muted); margin-top: 8px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Prose (正文排版) */
.prose { font-size: 15.5px; color: #d8d3c4; }
.prose h2, .prose h3, .prose h4 { margin: 28px 0 12px; color: #f5f0e1; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 14px 20px; list-style-position: outside; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.prose th { background: var(--panel-2); color: var(--gold-bright); font-weight: 600; }
.prose img { border-radius: var(--radius); margin: 16px 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- Page hero（内页横幅）---------------- */
.page-hero {
  background:
    radial-gradient(ellipse 55% 90% at 80% 10%, rgba(201, 162, 39, 0.12), transparent),
    linear-gradient(180deg, #12100a, var(--bg));
  border-bottom: 1px solid var(--border);
  padding: 56px 0 44px;
}
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); }
.page-hero p { color: var(--muted); margin-top: 12px; max-width: 680px; }

.page-body { padding: 48px 24px 72px; }
.with-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 44px; align-items: start; }
/* 后台可切换侧栏靠左：交换列宽与排列顺序 */
.with-sidebar.sidebar-left { grid-template-columns: 300px 1fr; }
.with-sidebar.sidebar-left .content-col { order: 2; }
.with-sidebar.sidebar-left .sidebar { order: 1; }

/* ---------------- Samples ---------------- */
.cat-grid-page { margin-top: 8px; }
.samples-back { margin-bottom: 20px; }
.samples-available { font-size: 24px; margin: 10px 0 22px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.samples-empty { color: var(--muted); background: var(--panel); border: 1px dashed var(--border-gold); padding: 26px; border-radius: var(--radius); text-align: center; }

.sample-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sample-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all .25s; }
.sample-card:hover { transform: translateY(-4px); border-color: var(--border-gold); box-shadow: var(--shadow); }
.sample-card-media { display: block; aspect-ratio: 3/2; overflow: hidden; background: var(--panel-2); }
.sample-card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s; }
.sample-card:hover .sample-card-media img { transform: scale(1.04); }
.sample-card-body { padding: 18px 20px 20px; }
.sample-card-body h3 { font-size: 16.5px; margin-bottom: 8px; }
.sample-card-body h3 a { color: #f5f0e1; }
.sample-card-body h3 a:hover { color: var(--gold-bright); }
.sample-card-body p { color: var(--muted); font-size: 13px; margin-bottom: 10px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip {
  display: inline-block; font-size: 12px; padding: 4px 12px; border-radius: 999px;
  background: rgba(201, 162, 39, 0.08); border: 1px solid var(--border-gold); color: var(--gold-bright);
}
.tag-chip:hover { background: rgba(201, 162, 39, 0.16); }

.samples-cta {
  margin-top: 52px; text-align: center;
  background: linear-gradient(135deg, #16120a, #0f0d08);
  border: 1px solid var(--border-gold); border-radius: var(--radius-lg); padding: 40px 28px;
}
.samples-cta h3 { font-size: 24px; margin-bottom: 8px; }
.samples-cta p { color: var(--muted); margin-bottom: 18px; }

/* ---------------- Sample detail ---------------- */
.detail-hero {
  background:
    linear-gradient(180deg, rgba(11, 11, 13, 0.55), rgba(11, 11, 13, 0.92)),
    linear-gradient(135deg, #14110a, #0d0c08) center/cover;
  border-bottom: 1px solid var(--border);
  padding: 64px 0 48px;
}
.detail-hero h1 { font-size: clamp(28px, 4vw, 42px); }
.detail-hero p { color: var(--gold-bright); margin-top: 8px; font-style: italic; font-family: var(--serif); }

.detail-title { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 18px; }
.lead { color: #cfc9b8; font-size: 16.5px; margin-bottom: 22px; }
.detail-figure { margin: 0 0 26px; }
.detail-figure img { width: 100%; max-height: 640px; object-fit: contain; border-radius: var(--radius); border: 1px solid var(--border-gold); background: var(--panel); }
.detail-figure figcaption { text-align: center; color: var(--faint); font-size: 13px; margin-top: 10px; font-style: italic; }
.video-wrap { position: relative; padding-bottom: 56%; margin: 0 0 26px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.detail-tags { margin: 26px 0; }
.detail-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.more-samples { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }
.more-samples h2 { font-size: 26px; margin-bottom: 22px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 18px 0 10px; }
.gallery-item img { border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel); width: 100%; }

/* ---------------- Blogs ---------------- */
.blog-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; font-size: 13px; color: var(--faint); }
.chip {
  display: inline-block; padding: 5px 14px; border-radius: 999px; font-size: 12.5px;
  background: var(--panel); border: 1px solid var(--border); color: var(--muted);
}
.chip:hover { border-color: var(--border-gold); color: var(--gold-bright); }
.chip-active { background: rgba(201, 162, 39, 0.14); border-color: var(--gold); color: var(--gold-bright); }

.blog-list { display: flex; flex-direction: column; gap: 26px; }
.blog-row { display: grid; grid-template-columns: 280px 1fr; gap: 24px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .25s; }
.blog-row:hover { border-color: var(--border-gold); }
.blog-row-media { display: block; overflow: hidden; background: var(--panel-2); }
.blog-row-media img { width: 100%; height: 100%; object-fit: contain; }
.blog-row-body { padding: 22px 24px 22px 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.blog-row-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--faint); }
.blog-row-body h2 { font-size: 21px; }
.blog-row-body h2 a { color: #f5f0e1; }
.blog-row-body h2 a:hover { color: var(--gold-bright); }
.blog-row-body > p { color: var(--muted); font-size: 14px; }

.blog-detail-meta { margin-bottom: 12px; }
.comments { margin-top: 52px; padding-top: 36px; border-top: 1px solid var(--border); }
.comments h2 { font-size: 26px; margin-bottom: 20px; }
.comment { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
.comment-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 13px; color: var(--faint); }
.comment-head strong { color: var(--gold-bright); font-size: 14px; }
.comment p { color: #d8d3c4; font-size: 14.5px; }
.comment-child { margin: 12px 0 0 26px; background: var(--bg-soft); }
.admin-reply { margin: 12px 0 0; border-left: 3px solid var(--gold); background: var(--bg-soft); }
.comment-form-wrap { margin-top: 30px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.comment-form-wrap h3 { margin-bottom: 16px; }

/* ---------------- Forms ---------------- */
.card-form { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; }
.card-form h2 { font-size: 24px; margin-bottom: 20px; }
label { display: block; font-size: 13.5px; font-weight: 500; color: var(--muted); margin-bottom: 14px; }
label input, label textarea, label select {
  display: block; width: 100%; margin-top: 6px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); padding: 11px 14px; font-size: 14.5px; font-family: var(--sans); outline: none;
  transition: border-color .2s;
}
label input:focus, label textarea:focus, label select:focus { border-color: var(--gold); }
textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { color: var(--faint); font-size: 12.5px; margin: -4px 0 14px; }
.card-form .btn { margin-top: 6px; }
input[type="file"] { padding: 9px !important; }
input[type="file"]::file-selector-button {
  background: rgba(201, 162, 39, 0.14); color: var(--gold-bright); border: 1px solid var(--border-gold);
  border-radius: 6px; padding: 7px 14px; margin-right: 12px; cursor: pointer; font-family: var(--sans);
}

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.alert { padding: 13px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.alert-success { background: rgba(79, 174, 108, 0.12); border: 1px solid rgba(79, 174, 108, 0.4); color: #7fd29a; }
.alert-error { background: rgba(224, 82, 82, 0.1); border: 1px solid rgba(224, 82, 82, 0.4); color: #ef9090; }

.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 26px; align-items: start; }
.contact-info h2 { font-size: 22px; margin-bottom: 18px; }
.contact-list { list-style: none; }
.contact-list li { display: flex; flex-direction: column; padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.contact-list strong { color: var(--gold); font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 3px; }
.contact-forms { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.contact-forms h3 { font-size: 17px; margin-bottom: 4px; }
.upload-form { max-width: 760px; }

.search-big { display: flex; gap: 12px; max-width: 560px; margin-bottom: 34px; }
.search-big input {
  flex: 1; background: var(--panel); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); padding: 12px 16px; font-size: 15px; outline: none;
}
.search-big input:focus { border-color: var(--gold); }
.search-results { display: flex; flex-direction: column; gap: 14px; }
.search-item { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; }
.search-item h3 { font-size: 17px; margin: 8px 0 6px; }
.search-item p { color: var(--muted); font-size: 13.5px; }

/* ---------------- FAQ ---------------- */
/* FAQ Slider */
.faq-slider { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.faq-track { display: flex; gap: 20px; will-change: transform; }
.faq-slide-card {
  flex: 0 0 calc(33.333% - 14px); background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px; display: flex; flex-direction: column; gap: 12px;
}
.faq-slide-num { font-family: var(--serif); font-size: 32px; color: var(--gold); opacity: .8; }
.faq-slide-q { font-size: 16px; color: #f0ebdb; line-height: 1.5; }
.faq-slide-a { color: var(--muted); font-size: 14px; line-height: 1.7; }
@media (max-width: 768px) {
  .faq-slide-card { flex: 0 0 calc(50% - 10px); }
}
.faq-page { margin-top: 6px; }

/* ---------------- Sidebar ---------------- */
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 92px; }
.side-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.side-title { font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.side-links { list-style: none; }
.side-links li { border-bottom: 1px dashed var(--border); }
.side-links li:last-child { border-bottom: 0; }
.side-links a { display: block; padding: 9px 0; color: var(--text); font-size: 13.5px; }
.side-links a:hover { color: var(--gold-bright); padding-left: 4px; transition: .2s; }
.side-posts { list-style: none; }
.side-posts li { padding: 10px 0; border-bottom: 1px dashed var(--border); display: flex; flex-direction: column; gap: 3px; }
.side-posts li:last-child { border-bottom: 0; }
.side-posts a { color: var(--text); font-size: 13.5px; line-height: 1.5; }
.side-posts a:hover { color: var(--gold-bright); }
.side-posts time { color: var(--faint); font-size: 12px; }
.side-img { border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 12px; }
.side-note { color: var(--muted); font-size: 13px; line-height: 1.6; }
.side-actions { display: flex; flex-direction: column; gap: 10px; }

/* ---------------- Pagination ---------------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.page-link {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px;
  padding: 0 14px; border-radius: 8px; background: var(--panel); border: 1px solid var(--border);
  color: var(--text); font-size: 14px;
}
.page-link:hover { border-color: var(--border-gold); color: var(--gold-bright); }
.page-link.current { background: var(--gold-gradient); color: #14110a; font-weight: 700; border-color: transparent; }
.page-dots { display: inline-flex; align-items: center; color: var(--faint); }

/* ---------------- Status pages ---------------- */
.sec-status { padding: 90px 0; text-align: center; }
.status-code { font-family: var(--serif); font-size: 96px; color: var(--gold); opacity: .5; line-height: 1; }
.status-inner h1 { font-size: 34px; margin: 12px 0 10px; }
.status-text { color: var(--muted); margin-bottom: 26px; }
.status-inner .hero-actions { justify-content: center; }

/* ---------------- Footer ---------------- */
.site-footer { background: #08080a; border-top: 1px solid var(--border-gold); margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 40px; padding: 54px 24px 40px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-about { color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-gold); border-radius: 8px; color: var(--gold-bright); font-size: 13px; font-weight: 600;
}
.footer-social a:hover { background: rgba(201, 162, 39, 0.12); }
.footer-col h4 { font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-links, .footer-contact { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--muted); font-size: 13.5px; }
.footer-links a:hover { color: var(--gold-bright); }
.footer-contact li { color: var(--muted); font-size: 13px; margin-bottom: 9px; line-height: 1.55; }
.footer-contact a { color: var(--text); }
.footer-contact-qr { display: flex; gap: 12px; margin-top: 12px; }
.footer-contact-qr .qr-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.footer-contact-qr .qr-item em { font-style: normal; font-size: 11px; color: var(--muted); }
.qr-img { width: 74px; height: 74px; border-radius: 8px; border: 1px solid var(--border-gold); background: #fff; padding: 4px; object-fit: contain; }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px 0; }
.footer-bottom p { color: var(--faint); font-size: 12.5px; text-align: center; }
.footer-disclaimer { margin-top: 6px; }
.footer-disclaimer a { color: var(--muted); text-decoration: underline; }

/* ---------------- WhatsApp float ---------------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 300; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wa-btn {
  width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #25d366; box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45); transition: transform .2s;
  animation: waPulse 2.4s infinite;
}
.wa-btn:hover { transform: scale(1.08); }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 8px 34px rgba(37, 211, 102, 0.75); }
}
.wa-card {
  width: 300px; background: var(--panel); border: 1px solid var(--border-gold); border-radius: var(--radius-lg);
  padding: 18px; box-shadow: var(--shadow); position: relative; display: none;
}
.wa-card.open { display: block; animation: waIn .25s ease; }
@keyframes waIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.wa-close { position: absolute; top: 8px; right: 12px; background: transparent; border: 0; color: var(--faint); font-size: 20px; cursor: pointer; }
.wa-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.wa-avatar { width: 42px; height: 42px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wa-card-head strong { display: block; font-size: 14px; color: #f5f0e1; }
.wa-card-head small { color: var(--muted); font-size: 12px; }
.wa-card-msg { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 13px; color: var(--text); margin-bottom: 12px; }
.wa-card-btn {
  display: flex; align-items: center; justify-content: center; background: #25d366; color: #fff;
  border-radius: 8px; padding: 11px; font-weight: 600; font-size: 14px;
}
.wa-card-btn:hover { background: #2ee06f; color: #fff; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
  .with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; order: -1; display: grid; grid-template-columns: repeat(2, 1fr); align-items: start; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid, .sample-grid, .review-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-text small { display: none; }
  .main-nav {
    position: fixed; top: 0; right: -300px; width: 300px; height: 100vh;
    background: var(--panel); border-left: 1px solid var(--border-gold);
    transition: right .3s; z-index: 200; padding: 80px 20px 20px; overflow-y: auto;
  }
  .main-nav.open { right: 0; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-link { padding: 13px 14px; border-bottom: 1px solid var(--border); }
  .nav-dropdown { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; background: transparent; padding: 0 0 0 16px; display: none; }
  .nav-item:hover .nav-dropdown { display: block; }
  .nav-toggle { display: flex; position: relative; z-index: 210; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 768px) {
  .topbar-note { display: none; }
  .topbar-inner { justify-content: center; }
  .header-search input { width: 110px; }
  .sec { padding: 52px 0; }
  .sec-hero { padding: 56px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { order: -1; }
  .form-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .blog-row { grid-template-columns: 1fr; }
  .blog-row-body { padding: 0 22px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 560px) {
  .feature-grid, .steps-grid, .cat-grid, .sample-grid, .review-grid, .blog-grid, .gallery-grid, .sidebar { grid-template-columns: 1fr; }
  .header-search { display: none; }
  .brand-text strong { font-size: 17px; }
  .cta-inner { flex-direction: column; text-align: center; }
}
