/* ============================================================================
 * KRS Scarves — 围巾编辑式设计系统
 * 暖象牙底 + 优雅衬线 + 大图 + 酒红/驼色点缀
 * ==========================================================================*/

:root {
  --bg: #FAF7F2;
  --bg-2: #F2EBE0;
  --ink: #211C17;
  --muted: #6E6358;
  --line: #E6DCCF;
  --accent: #7C3A2D;      /* 酒红 / bordeaux */
  --accent-dark: #642E23;
  --camel: #B98E5E;       /* 驼色 */
  --white: #ffffff;
  --shadow: 0 12px 34px rgba(33, 28, 23, .10);
  --shadow-sm: 0 4px 16px rgba(33, 28, 23, .07);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --script: "Allura", "Segoe Script", "Brush Script MT", cursive;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --maxw: 1200px;
  --radius: 4px;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section.alt { background: var(--bg-2); }
.eyebrow {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--camel); font-weight: 600; margin-bottom: 14px;
}
.section-title { font-size: clamp(28px, 4vw, 40px); }
.section-sub { color: var(--muted); max-width: 620px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  letter-spacing: .04em; padding: 13px 26px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; transition: all .2s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-light:hover { background: #fff; color: var(--accent); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 242, .86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand .logo, .footer-col .logo .krs-script {
  font-family: var(--script); font-size: 39px; font-weight: 400; line-height: .8;
  letter-spacing: .015em; transform: rotate(-2deg); display: inline-block;
}
.brand .logo span { color: var(--accent); }
.brand .tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
  position: relative; padding: 6px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--accent); transition: width .22s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: flex; gap: 4px; }
.lang-btn {
  background: none; border: 1px solid var(--line); border-radius: 3px;
  font-size: 11px; padding: 5px 8px; cursor: pointer; color: var(--muted); font-family: var(--sans);
}
.lang-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.menu-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 80vh; display: flex; align-items: center;
  background-image: linear-gradient(90deg, rgba(28,22,18,.62), rgba(28,22,18,.18)), url("../images/hero.jpg");
  background-size: cover; background-position: center; color: #fff;
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; width: 100%; }
.hero-eyebrow { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: #E9C9A6; font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-size: clamp(38px, 6vw, 66px); max-width: 14ch; color: #fff; }
.hero p { font-size: clamp(15px, 1.6vw, 18px); max-width: 52ch; color: rgba(255,255,255,.9); margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- section head ---------- */
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- grid / cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { display: block; }
.card-media {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 5; background: var(--bg-2);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 16px 4px 0; }
.card-title { font-size: 20px; margin-bottom: 4px; }
.card-text { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.card-link { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.card:hover .card-link { text-decoration: underline; }

/* ---------- insights / news ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.news-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.news-card-body { padding: 24px; }
.news-meta { color: var(--camel); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.news-card h2, .news-card h3 { font-size: 23px; }
.article { max-width: 820px; margin: 0 auto; }
.article-hero { width: 100%; aspect-ratio: 16/8; object-fit: cover; margin: 26px 0 34px; }
.article h1 { font-size: clamp(34px, 5vw, 54px); }
.article h2 { margin-top: 34px; font-size: 27px; }
.article p, .article li { color: #4f463e; }
.article li { margin-bottom: 9px; }
.article-callout { border-left: 3px solid var(--camel); background: var(--bg-2); padding: 20px 24px; margin: 28px 0; }
.article-sources { border-top: 1px solid var(--line); margin-top: 38px; padding-top: 20px; font-size: 13px; }

/* ---------- craft ---------- */
.craft-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.craft-points { display: grid; gap: 20px; margin-top: 8px; }
.point { border-top: 1px solid var(--line); padding-top: 16px; }
.point h4 { font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: .04em; margin-bottom: 4px; }
.point p { color: var(--muted); font-size: 14px; margin: 0; }
.craft-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow); }
.craft-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- materials ---------- */
.mat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.mat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.mat h4 { font-family: var(--serif); font-size: 19px; margin-bottom: 6px; }
.mat p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- cta band ---------- */
.cta-band { background: var(--accent); color: #fff; text-align: center; }
.cta-band .container { max-width: 760px; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 4vw, 38px); }
.cta-band p { color: rgba(255,255,255,.88); margin-bottom: 26px; }

/* ---------- products list ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip {
  border: 1px solid var(--line); background: var(--white); border-radius: 999px;
  padding: 8px 16px; font-size: 13px; cursor: pointer; color: var(--ink); font-family: var(--sans);
  transition: all .18s ease;
}
.chip:hover { border-color: var(--accent); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- product detail ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-gallery .main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; background: var(--bg-2); }
.product-gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.product-thumbs button { border: 1px solid var(--line); background: none; padding: 0; border-radius: 3px; overflow: hidden; cursor: pointer; aspect-ratio: 1; }
.product-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbs button.active { border-color: var(--accent); }
.product-info .eyebrow { margin-bottom: 8px; }
.product-info h1 { font-size: clamp(26px, 3.4vw, 38px); }
.price { font-family: var(--serif); font-size: 22px; color: var(--accent); margin: 6px 0 18px; }
.price small { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.product-info .desc { color: var(--muted); }
.spec-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.spec-table td { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.spec-table td:first-child { color: var(--muted); width: 38%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 22px; }
.chips span { background: var(--bg-2); border-radius: 999px; padding: 6px 13px; font-size: 13px; }
.note { font-size: 12px; color: var(--muted); border-left: 2px solid var(--camel); padding-left: 12px; margin-top: 16px; }
.back-link { display: inline-block; margin-bottom: 22px; font-size: 13px; color: var(--muted); }
.back-link:hover { color: var(--accent); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.about-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 5/4; box-shadow: var(--shadow); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 3px;
  font-family: var(--sans); font-size: 15px; color: var(--ink); background: var(--bg);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 120px; resize: vertical; }
.form-msg { margin-top: 14px; font-size: 14px; padding: 12px 14px; border-radius: 3px; display: none; }
.form-msg.ok { display: block; background: #E8F1E6; color: #2F5A2A; }
.form-msg.err { display: block; background: #F6E7E2; color: var(--accent); }
.contact-info p { color: var(--muted); font-size: 15px; }
.contact-info .row { margin-bottom: 14px; }
.contact-info .row b { font-family: var(--serif); font-weight: 600; display: block; font-size: 15px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.82); padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-col h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--camel); margin-bottom: 14px; }
.footer-col .logo { font-family: var(--serif); font-size: 24px; color: #fff; margin-bottom: 10px; display: inline-block; }
.footer-col a { display: block; color: rgba(255,255,255,.78); font-size: 14px; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 14px; color: rgba(255,255,255,.66); }
.social { display: flex; gap: 12px; margin-top: 14px; }
.social a { display: inline-flex; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; align-items: center; justify-content: center; }
.social a:hover { background: var(--accent); border-color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; font-size: 13px; color: rgba(255,255,255,.55); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .mat-grid { grid-template-columns: repeat(2, 1fr); }
  .craft-grid, .about-grid, .product, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 18px 24px; gap: 14px;
  }
}
@media (max-width: 620px) {
  .grid-3, .mat-grid, .news-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { min-height: 70vh; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- RTL (Arabic) ---------- */
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .hero { background-image: linear-gradient(270deg, rgba(28,22,18,.62), rgba(28,22,18,.18)), url("../images/hero.jpg"); }
[dir="rtl"] .hero-inner { text-align: right; }
[dir="rtl"] .hero h1 { margin-left: auto; margin-right: 0; }
[dir="rtl"] .nav-links a::after { left: auto; right: 0; }
[dir="rtl"] .section-head { margin-right: 0; }
[dir="rtl"] .skip-link { left: auto; right: -999px; }
[dir="rtl"] .skip-link:focus { left: auto; right: 12px; }
.lang-switch { flex-wrap: wrap; }
