/* ============================================================
   SARI RATU · 共享设计系统
   配色取自公司画册主视觉：藏青 + 金色 + logo红点缀
   ============================================================ */

:root {
  --navy-deep:  #0a1e3f;
  --navy:       #0d2a5c;
  --navy-mid:   #123b7a;
  --navy-light: #1c4e96;
  --blue-accent:#2a68c4;
  --gold:       #f0a92e;
  --gold-light: #f7c766;
  --gold-dark:  #c98a1c;
  --red-accent: #e2231a;
  --white:      #ffffff;
  --off-white:  #f5f7fb;
  --gray-light: #e4e9f2;
  --gray:       #8a93a6;
  --text:       #1c2740;
  --text-soft:  #4a5568;
  --success:    #2f7d4f;
  --danger:     #c0392b;
  --shadow: 0 8px 28px rgba(10,30,63,0.10);
  --shadow-lg: 0 16px 48px rgba(10,30,63,0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', Arial, sans-serif;
  background: var(--off-white);
  color: var(--text);
  line-height: 1.6;
}

body.rtl { direction: rtl; }
body.rtl .header-contact, body.rtl .logo-area, body.rtl .footer-cols { direction: rtl; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* ===== HEADER ===== */
#siteHeader {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-mid) 100%);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px; gap: 20px;
}
.logo-area { display: flex; align-items: center; gap: 12px; }
.logo-area img { height: 34px; width: auto; filter: brightness(0) invert(1); }
.main-nav { display: flex; align-items: center; gap: 34px; flex: 1; justify-content: center; }
.main-nav a {
  color: rgba(255,255,255,0.82); font-size: 15px; font-weight: 600;
  letter-spacing: 0.5px; padding: 6px 2px; position: relative; white-space: nowrap;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: var(--gold); transition: width 0.25s;
}
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.header-right { display: flex; align-items: center; gap: 18px; }
.lang-switcher { position: relative; }
.lang-btn {
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.28);
  color: #fff; font-size: 13px; padding: 7px 14px; border-radius: 20px;
  cursor: pointer; display: flex; align-items: center; gap: 6px;
}
.lang-btn:hover { background: rgba(255,255,255,0.2); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; background: #fff;
  border-radius: 10px; box-shadow: var(--shadow-lg); overflow: hidden;
  display: none; min-width: 140px; z-index: 50;
}
body.rtl .lang-menu { right: auto; left: 0; }
.lang-menu.open { display: block; }
.lang-menu button {
  display: block; width: 100%; text-align: left; background: none; border: none;
  padding: 10px 16px; font-size: 14px; color: var(--text); cursor: pointer;
}
body.rtl .lang-menu button { text-align: right; }
.lang-menu button:hover { background: var(--off-white); }
.lang-menu button.active { color: var(--navy); font-weight: 700; }

.header-cta {
  background: var(--gold); color: var(--navy-deep); font-weight: 700; font-size: 13px;
  padding: 9px 18px; border-radius: 22px; white-space: nowrap;
}
.header-cta:hover { background: var(--gold-light); }

.mobile-nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .mobile-nav-toggle { display: block; }
}

/* ===== PAGE HERO (used by all inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-mid) 100%);
  color: #fff; padding: 68px 32px 56px; text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(240,169,46,0.10) 0, transparent 45%),
                     radial-gradient(circle at 80% 70%, rgba(255,255,255,0.06) 0, transparent 40%);
}
.page-hero-inner { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; }
.page-eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: 3px; color: var(--gold-light);
  border: 1px solid rgba(240,169,46,0.5); padding: 5px 16px; border-radius: 20px; margin-bottom: 18px;
  text-transform: uppercase;
}
.page-title { font-size: 38px; font-weight: 800; margin-bottom: 10px; }
.page-title .accent { color: var(--gold-light); }
.page-subtitle { font-size: 15px; color: rgba(255,255,255,0.78); line-height: 1.8; }
.page-underline { width: 56px; height: 3px; background: var(--gold); margin: 18px auto 0; border-radius: 2px; }

/* ===== SECTION TITLE (画册风格： 中文 | ENGLISH) ===== */
.section-head { margin-bottom: 34px; }
.section-head .cn-en {
  font-size: 26px; font-weight: 800; color: var(--navy); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.section-head .cn-en .en { font-size: 16px; font-weight: 700; color: var(--blue-accent); letter-spacing: 1px; }
.section-head .bar { width: 46px; height: 4px; background: var(--gold); margin-top: 10px; border-radius: 2px; }
.section-head.center { text-align: center; }
.section-head.center .cn-en { justify-content: center; }
.section-head.center .bar { margin-left: auto; margin-right: auto; }
.section-head .desc { margin-top: 12px; font-size: 14px; color: var(--text-soft); max-width: 680px; }
.section-head.center .desc { margin-left: auto; margin-right: auto; }

.section { padding: 64px 32px; }
.section.alt { background: #fff; }
.section.navy {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%); color: #fff;
}
.section.navy .section-head .cn-en { color: #fff; }
.section.navy .section-head .en { color: var(--gold-light); }
.section-inner { max-width: 1280px; margin: 0 auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 26px; font-size: 14px; font-weight: 700;
  border: none; cursor: pointer; white-space: nowrap;
}
.btn.gold { background: var(--gold); color: var(--navy-deep); }
.btn.gold:hover { background: var(--gold-light); }
.btn.outline { background: transparent; border: 1.5px solid rgba(255,255,255,0.5); color: #fff; }
.btn.outline:hover { background: rgba(255,255,255,0.12); }
.btn.navy-outline { background: transparent; border: 1.5px solid var(--navy); color: var(--navy); }
.btn.navy-outline:hover { background: var(--navy); color: #fff; }

/* ===== STAT CARDS ===== */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px; padding: 26px 18px; text-align: center;
}
.stat-card .num { font-size: 30px; font-weight: 800; color: var(--gold-light); }
.stat-card .label { font-size: 13px; color: rgba(255,255,255,0.8); margin-top: 6px; }
@media (max-width: 900px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

/* ===== GENERIC CARD ===== */
.card {
  background: #fff; border-radius: 16px; padding: 26px; box-shadow: var(--shadow);
}
.icon-circle {
  width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy), var(--blue-accent)); color: #fff; flex-shrink: 0;
}
.icon-circle svg { width: 26px; height: 26px; stroke: currentColor; fill: none; }
.icon-circle.gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); }

/* ===== CATEGORY GRID (used on home + products sidebar) ===== */
.cat-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
@media (max-width: 1080px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

.cat-card {
  background: #fff; border-radius: 14px; padding: 20px 16px; text-align: center;
  border: 1.5px solid var(--gray-light); cursor: pointer; transition: all 0.2s;
}
.cat-card:hover, .cat-card.active { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-card .icon-circle { margin: 0 auto 12px; }
.cat-card .name { font-size: 13.5px; font-weight: 700; color: var(--navy); line-height: 1.4; }
.cat-card .count { font-size: 11px; color: var(--gray); margin-top: 4px; }

/* ===== TIMELINE (发展历程) ===== */
.timeline-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .timeline-row { grid-template-columns: repeat(2, 1fr); } }
.timeline-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: 14px;
  padding: 26px 18px; text-align: center;
}
.timeline-card .year { font-size: 26px; font-weight: 800; color: var(--gold-light); margin-bottom: 6px; }
.timeline-card h4 { font-size: 15px; margin-bottom: 10px; }
.timeline-card p { font-size: 12.5px; color: rgba(255,255,255,0.75); }

/* ===== TABLE-LIKE INFO ROWS ===== */
.info-row {
  display: flex; gap: 18px; align-items: flex-start; background: #fff; border-radius: 14px;
  padding: 20px 22px; box-shadow: var(--shadow); margin-bottom: 14px;
}
.info-row h4 { font-size: 15px; color: var(--navy); margin-bottom: 4px; }
.info-row p { font-size: 13px; color: var(--text-soft); }

/* ===== PRODUCT GRID / CARD (产品中心) ===== */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1080px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow);
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card .card-top {
  height: 120px; background: linear-gradient(135deg, var(--navy), var(--blue-accent));
  display: flex; align-items: center; justify-content: center; position: relative;
}
.product-card .card-top img { width: 100%; height: 100%; object-fit: cover; }
.product-card .card-top .icon-circle { background: rgba(255,255,255,0.15); width: 60px; height: 60px; }
.product-card .card-top .icon-circle svg { width: 30px; height: 30px; }
.product-card .cat-tag {
  position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.35); color: #fff;
  font-size: 10.5px; padding: 4px 10px; border-radius: 12px; letter-spacing: 0.3px;
}
body.rtl .product-card .cat-tag { left: auto; right: 10px; }
.product-card .card-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.product-card .trade-name { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.product-card .inci-name { font-size: 12.5px; color: var(--text-soft); margin-bottom: 10px; line-height: 1.5; }
.product-card .desc { font-size: 12px; color: var(--text-soft); flex: 1; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .card-foot {
  display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--gray-light);
  padding-top: 12px; font-size: 12px; color: var(--gray);
}
.product-card .card-foot .view-btn { color: var(--navy); font-weight: 700; }

/* ===== FILTER BAR (products page) ===== */
.filter-bar {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 24px;
}
.search-box { position: relative; flex: 1; min-width: 220px; }
.search-box input {
  width: 100%; padding: 11px 16px 11px 40px; border-radius: 24px; border: 1.5px solid var(--gray-light);
  font-size: 14px; font-family: inherit;
}
body.rtl .search-box input { padding: 11px 40px 11px 16px; }
.search-box .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gray); }
body.rtl .search-box .icon { left: auto; right: 14px; }
.result-count { font-size: 13px; color: var(--gray); white-space: nowrap; }

.tab-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tab {
  padding: 8px 16px; border-radius: 20px; border: 1.5px solid var(--gray-light); background: #fff;
  font-size: 13px; font-weight: 600; color: var(--text-soft); cursor: pointer; white-space: nowrap;
}
.tab:hover { border-color: var(--gold); }
.tab.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.no-results { text-align: center; padding: 70px 20px; color: var(--gray); }
.no-results .icon { font-size: 40px; margin-bottom: 14px; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10,20,40,0.6); z-index: 2000;
  display: none; align-items: flex-start; justify-content: center; padding: 40px 20px; overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff; border-radius: 18px; max-width: 720px; width: 100%; padding: 0; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.modal-head {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy)); color: #fff; padding: 26px 30px; position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 18px; background: rgba(255,255,255,0.15); border: none; color: #fff;
  width: 32px; height: 32px; border-radius: 50%; font-size: 18px; cursor: pointer;
}
body.rtl .modal-close { right: auto; left: 18px; }
.modal-head .cat-badge { font-size: 12px; color: var(--gold-light); margin-bottom: 6px; letter-spacing: 0.5px; }
.modal-head h2 { font-size: 22px; font-weight: 800; }
.modal-head .sub { font-size: 13px; color: rgba(255,255,255,0.75); margin-top: 4px; }
.modal-body { padding: 26px 30px 30px; }
.modal-section { margin-bottom: 20px; }
.modal-section h4 {
  font-size: 13px; color: var(--navy); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.modal-section h4::before { content: ''; width: 4px; height: 14px; background: var(--gold); border-radius: 2px; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .spec-grid { grid-template-columns: 1fr; } }
.spec-item { background: var(--off-white); border-radius: 10px; padding: 12px 14px; }
.spec-item .label { font-size: 11.5px; color: var(--gray); margin-bottom: 3px; }
.spec-item .value { font-size: 13.5px; color: var(--text); font-weight: 600; }
.modal-desc { font-size: 13.5px; color: var(--text-soft); line-height: 1.8; white-space: pre-line; }
.modal-cta { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

/* ===== FOOTER ===== */
#siteFooter {
  background: var(--navy-deep); color: rgba(255,255,255,0.85); padding: 54px 32px 24px;
}
.footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; max-width: 1280px; margin: 0 auto; }
@media (max-width: 900px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
.footer-cols h4 { color: #fff; font-size: 14.5px; margin-bottom: 16px; letter-spacing: 0.5px; }
.footer-cols p, .footer-cols a { font-size: 13px; color: rgba(255,255,255,0.7); display: block; margin-bottom: 10px; line-height: 1.7; }
.footer-cols a:hover { color: var(--gold-light); }
.footer-logo { height: 28px; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-bottom {
  max-width: 1280px; margin: 36px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 12px; color: rgba(255,255,255,0.5); text-align: center;
}

/* ===== FLOATING WHATSAPP BUTTON ===== */
.float-btn {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  background: var(--gold); color: var(--navy-deep); width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
  font-size: 26px; border: none; cursor: pointer;
}
body.rtl .float-btn { right: auto; left: 28px; }
.float-btn:hover { background: var(--gold-light); }

/* ===== UTILS ===== */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
[data-i18n], [data-i18n-html] { }
