/* ========================================
   精油能量圖譜 - 主樣式表
   ======================================== */
html { font-size: 130%; }

:root {
  --green-dark:   #3D5A3E;
  --green-mid:    #5B7A4E;
  --green-light:  #8AAD7A;
  --brown:        #8B6B4A;
  --beige:        #D4B8A8;
  --beige-light:  #F5EFE8;
  --bg:           #FAFAF7;
  --white:        #FFFFFF;
  --text-dark:    #2C2C2C;
  --text-mid:     #555555;
  --text-light:   #888888;
  --border:       #E0D8CC;
  --shadow:       rgba(0,0,0,0.08);

  /* 莫蘭迪亮色票 — 14 組 (accent / light) */
  --m01: #D4878B; --m01-lt: #FBE8E8;
  --m02: #DCA898; --m02-lt: #FCE8E0;
  --m03: #D4BB9A; --m03-lt: #F8EAD8;
  --m04: #A8B078; --m04-lt: #EEF2D8;
  --m05: #98C4A0; --m05-lt: #DCEEE0;
  --m06: #78B498; --m06-lt: #D0E8D8;
  --m07a: #98ACC8; --m07a-lt: #D8E4F0;
  --m07b: #BEB0D0; --m07b-lt: #E8E0F0;
  --m07c: #A8A498; --m07c-lt: #EAE8E0;
  --m08: #C8A898; --m08-lt: #F0E0D4;
  --m09: #88BC88; --m09-lt: #D8ECD8;
  --m10: #C47080; --m10-lt: #F8D8D8;
  --m11: #7898B8; --m11-lt: #D8E0F0;
  --m12: #B09878; --m12-lt: #F0E4D0;
}

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

body {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.8;
}

a { color: var(--green-mid); text-decoration: none; }
a:hover { color: var(--green-dark); }

img { max-width: 100%; height: auto; display: block; }

/* ========================================
   TOPBAR
   ======================================== */
.topbar {
  background: var(--green-dark);
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  padding: 6px 0;
  text-align: center;
  letter-spacing: 0.5px;
}

/* ========================================
   HEADER / NAV
   ======================================== */
header {
  background: var(--white);
  border-bottom: 3px solid var(--green-mid);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px var(--shadow);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo-wrap { display: flex; align-items: center; gap: 12px; }

.logo-icon {
  width: 44px; height: 44px;
  background: var(--green-mid);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}

.logo-text { line-height: 1.2; }
.logo-text .site-title { font-size: 23px; font-weight: 700; color: var(--green-dark); }
.logo-text .site-sub   { font-size: 14px; color: var(--text-light); }

nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
}

nav ul li a {
  display: block;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-dark);
  transition: background 0.2s, color 0.2s;
}

nav ul li a:hover,
nav ul li a.active {
  background: var(--green-light);
  color: var(--white);
}

.nav-search {
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 8px 16px 8px 40px;
  font-size: 17px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E") 10px center / 16px no-repeat var(--white);
  outline: none;
  width: 180px;
  transition: border-color 0.2s;
}
.nav-search:focus { border-color: var(--green-mid); }

/* hamburger */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 24px; }

/* ========================================
   HERO
   ======================================== */
.hero {
  background: url('../images/hero-home.png') center/cover no-repeat;
  color: var(--green-dark);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero, .oils-hero, .oil-cover-hero, .compound-hero { font-size: 16px; }

.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: none;
}

.hero-content { position: relative; max-width: 720px; margin: 0 auto; }

.hero-badge {
  display: inline-block;
  background: rgba(61,90,62,0.12);
  border: 1px solid rgba(61,90,62,0.3);
  color: #3D5A3E !important;
  border-radius: 24px;
  padding: 8px 22px;
  font-size: 20px;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 67px);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  text-shadow: none;
  color: #2C2C2C !important;
}

.hero p {
  font-size: 24px;
  opacity: 1;
  color: #444 !important;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }

.btn-white { background: var(--white); color: var(--green-dark); }
.btn-outline { background: transparent; border: 2px solid #3D5A3E; color: #3D5A3E; }

/* ========================================
   CATEGORY STRIP
   ======================================== */
.categories {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.categories-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.cat-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 30px;
  background: var(--beige-light);
  border: 1.5px solid var(--border);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-dark);
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}

.cat-chip:hover,
.cat-chip.active {
  background: var(--green-mid);
  border-color: var(--green-mid);
  color: var(--white);
}

.cat-chip .cat-icon { font-size: 22px; }

/* ========================================
   MAIN LAYOUT
   ======================================== */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 50px 20px;
  max-width: 1180px;
  margin: 0 auto;
}

/* ========================================
   SECTION TITLES
   ======================================== */
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.section-title h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--green-dark);
}

.section-title .title-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--green-light), transparent);
}

/* ========================================
   ARTICLE CARDS
   ======================================== */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

.article-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid var(--border);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.card-img-wrap {
  height: 180px;
  background: var(--beige-light);
  overflow: hidden;
  position: relative;
}

.card-img-wrap .card-emoji {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  opacity: 0.6;
}

.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.card-cat {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--green-mid);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

.card-body { padding: 18px 20px 20px; }

.card-body h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.card-body p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-light);
}

.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--beige-light);
  color: var(--brown);
  font-size: 11px;
  border: 1px solid var(--beige);
}

/* FEATURED card (full width) */
.article-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 340px 1fr;
}

.article-card.featured .card-img-wrap { height: auto; min-height: 220px; }

/* ========================================
   ARTICLE DETAIL PAGE
   ======================================== */
.breadcrumb {
  background: var(--beige-light);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.breadcrumb-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  gap: 6px;
  align-items: center;
}

.breadcrumb-inner a { color: var(--green-mid); }
.breadcrumb-inner .sep { opacity: 0.5; }

.article-header {
  background: var(--white);
  padding: 40px 0 0;
  border-bottom: 1px solid var(--border);
}

.article-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.article-cat-label {
  display: inline-block;
  background: var(--green-mid);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 14px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.article-header-inner h1 {
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1.4;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-light);
  flex-wrap: wrap;
}

.article-meta span { display: flex; align-items: center; gap: 5px; }

.article-cover {
  width: 100%;
  height: 360px;
  background: linear-gradient(135deg, #c8dbbf, #e8d5c4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  margin-top: 30px;
  border-radius: 12px;
  overflow: hidden;
}

/* article body */
.article-body {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-dark);
}

.article-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--green-dark);
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--beige);
}

.article-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--brown);
  margin: 28px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--green-light);
}

.article-body p { margin-bottom: 18px; }

.article-body ul,
.article-body ol {
  margin: 12px 0 18px 24px;
}

.article-body li { margin-bottom: 8px; }

.article-body strong { color: var(--green-dark); }

.info-box {
  background: var(--beige-light);
  border: 1.5px solid var(--beige);
  border-left: 5px solid var(--green-mid);
  border-radius: 0 8px 8px 0;
  padding: 18px 20px;
  margin: 24px 0;
}

.info-box.warning {
  border-left-color: #c0392b;
  background: #fff5f5;
  border-color: #f5c6c6;
}

.info-box p { margin: 0; }
.info-box .box-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--green-dark);
}

.info-box.warning .box-title { color: #c0392b; }

.properties-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.properties-table th {
  background: var(--green-mid);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}

.properties-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.properties-table tr:nth-child(even) td { background: var(--beige-light); }

.tags-section { margin: 32px 0; }
.tags-section h4 { font-size: 13px; color: var(--text-light); margin-bottom: 10px; }
.tags-list { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-btn {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 16px;
  background: var(--beige-light);
  color: var(--brown);
  font-size: 13px;
  border: 1px solid var(--beige);
  cursor: pointer;
  transition: background 0.2s;
}
.tag-btn:hover { background: var(--beige); }

.share-section {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 32px 0;
}

.share-section span { font-size: 13px; color: var(--text-light); }

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}
.share-btn:hover { opacity: 0.85; }
.share-btn.fb  { background: #1877F2; color: #fff; }
.share-btn.line { background: #06C755; color: #fff; }

/* ========================================
   SIDEBAR
   ======================================== */
.sidebar { display: flex; flex-direction: column; gap: 28px; }

.sidebar-widget {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.widget-title {
  background: var(--green-dark);
  color: var(--white);
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-body { padding: 16px 18px; }

/* recent list */
.recent-list { list-style: none; }
.recent-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.recent-list li:last-child { border-bottom: none; }

.recent-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green-mid);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.recent-list a { font-size: 14px; color: var(--text-dark); line-height: 1.5; }
.recent-list a:hover { color: var(--green-mid); }

/* oil cards in sidebar */
.oil-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.oil-mini {
  background: var(--beige-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s;
}
.oil-mini:hover { background: var(--beige); }
.oil-mini .oil-emoji { font-size: 28px; margin-bottom: 4px; }
.oil-mini .oil-name { font-size: 12px; font-weight: 600; color: var(--text-dark); }
.oil-mini .oil-latin { font-size: 10px; color: var(--text-light); }

/* ========================================
   ENCYCLOPEDIA SECTION (homepage)
   ======================================== */
.encyclopedia-section {
  background: var(--beige-light);
  padding: 60px 20px;
}

.encyclopedia-inner { max-width: 1180px; margin: 0 auto; }

.encyclo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.encyclo-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 24px 16px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.encyclo-card:hover {
  border-color: var(--green-mid);
  box-shadow: 0 4px 16px var(--shadow);
  transform: translateY(-2px);
}

.encyclo-icon { font-size: 40px; margin-bottom: 10px; }
.encyclo-name { font-size: 15px; font-weight: 700; color: var(--green-dark); margin-bottom: 4px; }
.encyclo-desc { font-size: 12px; color: var(--text-light); line-height: 1.5; }

/* ========================================
   FOOTER
   ======================================== */
footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.8);
  padding: 50px 20px 24px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

footer h4 { color: var(--white); font-size: 15px; margin-bottom: 14px; }

footer p { font-size: 13px; line-height: 1.8; }

footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
footer ul li a { color: rgba(255,255,255,0.7); font-size: 13px; }
footer ul li a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

/* ========================================
   BACK TO TOP
   ======================================== */
#backToTop {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  background: var(--green-mid);
  color: var(--white);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: none;
  align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 99;
}
#backToTop:hover { background: var(--green-dark); }
#backToTop.show { display: flex; }

/* ========================================
   OIL COVER HERO — 大圖標題區
   ======================================== */
.oil-cover-hero {
  min-height: 480px;
  background: linear-gradient(135deg, var(--c1, var(--green-dark)) 0%, var(--c2, var(--green-mid)) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Large decorative circles */
.oil-cover-hero::before {
  content: "";
  position: absolute;
  top: -140px; right: 18%;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.oil-cover-hero::after {
  content: "";
  position: absolute;
  bottom: -80px; left: 28%;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.oil-cover-bg-emoji {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%) rotate(-6deg);
  font-size: 320px;
  line-height: 1;
  opacity: 0.15;
  filter: drop-shadow(0 30px 80px rgba(0,0,0,0.5));
  pointer-events: none;
  user-select: none;
}

.oil-cover-overlay {
  position: absolute;
  inset: 0;
  background: none;
}

.oil-cover-content {
  position: relative;
  z-index: 2;
  padding: 60px 60px 60px 60px;
  max-width: 700px;
  color: #2C2C2C;
}

.oil-cover-content > * {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(6px);
  padding: 8px 18px;
  border-radius: 10px;
  display: inline-block;
  max-width: fit-content;
}

.oil-cover-cat {
  display: inline-block !important;
  background: #3D5A3E !important;
  border: none !important;
  border-radius: 16px !important;
  padding: 5px 16px !important;
  font-size: 13px;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  color: #fff !important;
  backdrop-filter: none !important;
  max-width: fit-content !important;
}

.oil-cover-content h1 {
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 8px;
  text-shadow: none;
  letter-spacing: -0.5px;
  color: #2C2C2C !important;
}

.oil-cover-latin {
  font-style: italic;
  font-size: 19px;
  opacity: 1;
  margin-bottom: 18px;
  font-weight: 400;
  color: #555 !important;
  border: none;
  padding: 0;
}

.oil-tags-row { display: flex !important; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; background: none !important; padding: 0 !important; max-width: none !important; }
.oil-tag {
  background: rgba(255,255,255,0.6) !important;
  border: 1px solid rgba(61,90,62,0.25) !important;
  border-radius: 14px;
  padding: 4px 13px;
  font-size: 13px;
  color: #3D5A3E !important;
  backdrop-filter: blur(4px);
}

/* Stats bar below cover */
.oil-stats-bar {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}
.oil-stats-bar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: var(--text-mid);
  flex-wrap: wrap;
}
.oil-stats-bar-inner span { display: flex; align-items: center; gap: 5px; }

/* Keep old classes for backward compat */
.oil-profile-hero {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: var(--white);
  padding: 48px 20px;
}
.oil-profile-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 36px; }
.oil-big-emoji { font-size: 96px; line-height: 1; flex-shrink: 0; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3)); }
.oil-profile-meta h1 { font-size: clamp(26px,4vw,42px); font-weight: 800; margin-bottom: 4px; }
.oil-profile-meta .latin { font-style: italic; opacity: 0.8; font-size: 18px; margin-bottom: 14px; }
.oil-stats-row { display: flex; gap: 24px; font-size: 13px; opacity: 0.9; flex-wrap: wrap; }
.oil-stats-row span { display: flex; align-items: center; gap: 5px; }

/* ========================================
   OIL INDEX CARDS — 圖片區
   ======================================== */
.oil-index-card-img {
  height: 160px;
  border-radius: 10px 10px 0 0;
  margin: -24px -20px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  position: relative;
  overflow: hidden;
}
.oil-index-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.10) 100%);
}

/* quick facts */
.oil-quick-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin: 32px 0;
}
.fact-card {
  background: var(--beige-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}
.fact-card .fact-label { font-size: 11px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 4px; }
.fact-card .fact-value { font-size: 14px; font-weight: 600; color: var(--text-dark); }

/* benefits grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin: 20px 0 32px;
}
.benefit-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.benefit-item .b-icon { font-size: 26px; flex-shrink: 0; }
.benefit-item .b-title { font-size: 14px; font-weight: 700; color: var(--green-dark); margin-bottom: 2px; }
.benefit-item .b-desc { font-size: 12px; color: var(--text-mid); line-height: 1.5; }

/* compound bar */
.compound-bar-wrap { margin: 6px 0 14px; }
.compound-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.compound-name { font-size: 13px; min-width: 150px; color: var(--text-dark); }
.compound-bar { flex: 1; height: 10px; background: var(--border); border-radius: 5px; overflow: hidden; }
.compound-fill { height: 100%; background: var(--green-mid); border-radius: 5px; }
.compound-pct { font-size: 12px; color: var(--text-light); min-width: 40px; text-align: right; }

/* oil index page */
.oils-hero {
  background: none;
  color: #2C2C2C !important;
  padding: 64px 20px 52px;
  text-align: center;
}
.oils-hero h1 { font-size: clamp(42px,7vw,67px); font-weight: 800; margin-bottom: 12px; color: #2C2C2C !important; }
.oils-hero p { font-size: 24px; opacity: 1; max-width: 750px; margin: 0 auto 28px; color: #444 !important; }
.oils-hero .hero-badge { background: rgba(61,90,62,0.12); border: 1px solid rgba(61,90,62,0.3); color: #3D5A3E !important; }
.oils-hero a.btn-white, .oils-hero a.btn-outline { color: #3D5A3E !important; border-color: #3D5A3E !important; }
.oils-hero a.btn-white { background: #3D5A3E !important; color: #fff !important; }

.oil-category-section { padding: 48px 0 16px; }
.oil-category-section:first-of-type { padding-top: 60px; }

.category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.category-badge {
  background: var(--green-mid);
  color: var(--white);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.category-header .title-line { flex: 1; height: 1.5px; background: var(--border); }

.oils-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
}
.oil-index-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px 20px;
  text-align: center;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}
.oil-index-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.11);
  border-color: var(--green-mid);
}
.oil-index-card.coming-soon { opacity: 0.55; cursor: default; }
.oil-index-card.coming-soon:hover { transform: none; box-shadow: none; border-color: var(--border); }
.oil-index-emoji { font-size: 52px; margin-bottom: 10px; line-height: 1; }
.oil-index-name { font-size: 17px; font-weight: 800; color: var(--green-dark); margin-bottom: 2px; }
.oil-index-latin { font-size: 11px; color: var(--text-light); font-style: italic; margin-bottom: 10px; }
.oil-index-desc { font-size: 12px; color: var(--text-mid); line-height: 1.6; margin-bottom: 12px; }
.oil-index-pills { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
.oil-index-pill {
  background: var(--beige-light);
  color: var(--brown);
  border: 1px solid var(--beige);
  border-radius: 10px;
  padding: 2px 9px;
  font-size: 11px;
}
.coming-soon-badge {
  display: inline-block;
  background: var(--beige);
  color: var(--text-light);
  border-radius: 10px;
  padding: 3px 10px;
  font-size: 11px;
  margin-top: 6px;
}

/* oil nav strip */
.oil-nav-strip {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
}
.oil-nav-strip-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.oil-nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--green-mid);
  font-weight: 500;
}
.oil-nav-btn:hover { color: var(--green-dark); }

/* encyclopedia page */
.encyclo-page-section { padding: 60px 20px; }
.encyclo-page-section:nth-child(even) { background: var(--beige-light); }
.chem-family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.chem-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.chem-card-head {
  padding: 14px 18px;
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}
.chem-card-body { padding: 14px 18px; font-size: 13px; line-height: 1.8; color: var(--text-mid); }
.chem-card-body strong { color: var(--text-dark); }
.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.region-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
}
.region-flag { font-size: 36px; margin-bottom: 8px; }
.region-name { font-weight: 700; color: var(--green-dark); font-size: 15px; margin-bottom: 4px; }
.region-oils { font-size: 12px; color: var(--text-mid); line-height: 1.7; }

/* ========================================
   MIND-BODY-SPIRIT SECTION — 身心靈療效
   ======================================== */
.mind-spirit-section {
  background: linear-gradient(135deg, #f4f0ff 0%, #fef9f5 100%);
  border: 1.5px solid #e0d4f7;
  border-radius: 16px;
  padding: 28px 32px 32px;
  margin: 36px 0;
}
.mind-spirit-section > h2 {
  font-size: 20px; font-weight: 700; color: var(--green-dark);
  margin-bottom: 20px; padding-bottom: 10px;
  border-bottom: 2px solid var(--beige);
}
.mind-spirit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.mind-spirit-card {
  background: var(--white);
  border-radius: 12px;
  padding: 22px 16px 18px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}
.mind-spirit-card:hover { transform: translateY(-2px); }
.ms-icon { font-size: 38px; margin-bottom: 10px; }
.ms-title { font-size: 15px; font-weight: 700; color: #4a3a78; margin-bottom: 8px; }
.ms-desc { font-size: 13px; color: var(--text-mid); line-height: 1.75; }
.ms-keyword-row { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin-top: 12px; }
.ms-keyword {
  background: #f0ebff; color: #5a3a90;
  border-radius: 10px; padding: 2px 10px;
  font-size: 11px; font-weight: 600;
}

/* ========================================
   DIY RECIPE CARDS — 精油配方
   ======================================== */
.diy-section { margin: 36px 0; }
.diy-section > h2 {
  font-size: 20px; font-weight: 700; color: var(--green-dark);
  margin-bottom: 20px; padding-bottom: 10px;
  border-bottom: 2px solid var(--beige);
}
.diy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.diy-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
}
.diy-card:hover { box-shadow: 0 6px 22px rgba(0,0,0,0.10); }
.diy-card-header {
  background: var(--green-dark);
  color: white;
  padding: 14px 18px;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.diy-card-body { padding: 18px; }
.diy-ingredients { list-style: none; margin-bottom: 14px; }
.diy-ingredients li {
  font-size: 13px; color: var(--text-mid);
  padding: 5px 0;
  border-bottom: 1px dashed var(--border);
  display: flex; align-items: center; gap: 8px;
}
.diy-ingredients li:last-child { border-bottom: none; }
.diy-ingredients li::before { content: "▸"; color: var(--green-mid); font-size: 10px; }
.diy-steps { font-size: 13px; color: var(--text-dark); line-height: 1.8; }
.diy-tips {
  background: var(--beige-light);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px; color: var(--brown);
  margin-top: 12px; line-height: 1.7;
}
.diy-tag {
  display: inline-block;
  background: #e8f5e9; color: var(--green-mid);
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 20px;
  margin-top: 10px;
}

/* ========================================
   RESEARCH HIGHLIGHTS — 科學研究佐證
   ======================================== */
.research-section { margin: 36px 0; }
.research-section > h2 {
  font-size: 20px; font-weight: 700; color: var(--green-dark);
  margin-bottom: 20px; padding-bottom: 10px;
  border-bottom: 2px solid var(--beige);
}
.research-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.research-card {
  background: #f0f8f2;
  border-left: 4px solid var(--green-mid);
  border-radius: 0 12px 12px 0;
  padding: 18px 20px;
  transition: background 0.2s;
}
.research-card:hover { background: #e4f5e7; }
.r-tag {
  display: inline-block;
  background: var(--green-mid); color: white;
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 8px;
  margin-bottom: 8px; letter-spacing: 0.5px;
}
.r-title { font-size: 14px; font-weight: 700; color: var(--green-dark); margin-bottom: 6px; }
.r-desc { font-size: 13px; color: var(--text-mid); line-height: 1.75; }
.r-cite { font-size: 11px; color: var(--text-light); margin-top: 10px; font-style: italic; }

/* ========================================
   THERAPIST TIP — 芳療師筆記
   ======================================== */
.therapist-tip {
  background: linear-gradient(135deg, #fffdf0 0%, #fff8e1 100%);
  border: 1.5px solid #f0c060;
  border-radius: 14px;
  padding: 24px 28px;
  margin: 36px 0;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.tt-icon { font-size: 40px; flex-shrink: 0; margin-top: 2px; }
.tt-content .tt-title {
  font-size: 16px; font-weight: 800;
  color: #7a5000; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.tt-content .tt-body { font-size: 14px; color: #5a4010; line-height: 1.85; }
.tt-content .tt-body strong { color: #3a2800; }

/* ========================================
   USAGE SCENARIOS — 適用情境
   ======================================== */
.scenario-section { margin: 36px 0; }
.scenario-section > h2 {
  font-size: 20px; font-weight: 700; color: var(--green-dark);
  margin-bottom: 20px; padding-bottom: 10px;
  border-bottom: 2px solid var(--beige);
}
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.scenario-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 20px 14px 16px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.scenario-card:hover { border-color: var(--green-mid); transform: translateY(-2px); }
.sc-icon { font-size: 32px; margin-bottom: 10px; }
.sc-title { font-size: 14px; font-weight: 700; color: var(--green-dark); margin-bottom: 6px; }
.sc-desc { font-size: 12px; color: var(--text-light); line-height: 1.65; }

/* ========================================
   COMPOUND CATEGORY PAGES
   ======================================== */
.compound-hero {
  padding: 48px;
  border-radius: 20px;
  margin-bottom: 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.compound-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  z-index: 0;
}
.compound-hero > * { position: relative; z-index: 1; background: rgba(255,255,255,0.6); backdrop-filter: blur(6px); padding: 8px 18px; border-radius: 10px; display: inline-block; max-width: fit-content; margin-bottom: 8px; }
.compound-hero h1 { font-size: 28px; font-weight: 800; margin-bottom: 12px; line-height: 1.4; color: #2C2C2C !important; text-shadow: none; }
.compound-hero .ch-desc { font-size: 14px; color: #333 !important; line-height: 1.7; max-width: 580px; text-shadow: none; }
.compound-hero .ch-badge { display:inline-block !important; background:#3D5A3E !important; color:#fff !important; font-size:12px; font-weight:700; padding:4px 14px !important; border-radius:20px; margin-bottom:12px; letter-spacing:1px; backdrop-filter:none !important; }
.compound-hero .ch-count { font-size:13px; color:#555 !important; margin-top:16px; }

.compound-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.compound-nav a {
  font-size: 12px;
  color: var(--text-mid);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: all 0.2s;
  white-space: nowrap;
}
.compound-nav a:hover, .compound-nav a.active {
  background: var(--green-mid);
  color: #fff;
  border-color: var(--green-mid);
}

.compound-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin: 24px 0 36px;
}

.compound-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.compound-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.cc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.cc-num {
  min-width: 28px;
  height: 28px;
  background: var(--green-mid);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.cc-names { flex: 1; }
.cc-zh { font-weight: 700; color: var(--green-dark); font-size: 15px; }
.cc-latin { font-size: 11px; color: var(--text-mid); font-style: italic; display: block; margin-top: 2px; }
.cc-family { font-size: 11px; color: var(--text-light); display: block; }

.cc-info { margin-bottom: 10px; }
.cc-label { font-size: 11px; font-weight: 700; color: var(--text-mid); letter-spacing: 0.5px; margin-bottom: 4px; }
.cc-value { font-size: 13px; color: var(--text-dark); line-height: 1.65; }

.cc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cc-tag { font-size: 11px; background: #E8F4E8; color: var(--green-dark); padding: 3px 9px; border-radius: 12px; }
.cc-tag.warn { background: #FFF3CD; color: #7D6608; }
.cc-tag.danger { background: #FADBD8; color: #922B21; }

.cc-safety {
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 12px;
  line-height: 1.5;
}
.cc-safety.safe { background: #D5F5E3; color: #1A5C35; }
.cc-safety.caution { background: #FFF3CD; color: #7D6608; }
.cc-safety.danger { background: #FADBD8; color: #922B21; }

/* ========================================
   OILS INDEX — COMPACT CARDS
   ======================================== */
.chem-section { margin-bottom: 36px; }
.chem-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.chem-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-dark);
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  padding: 8px 24px;
  border-radius: 24px;
  white-space: nowrap;
}
.chem-header .title-line { flex: 1; height: 1.5px; background: var(--border); }
.chem-count { font-size: 12px; color: var(--text-light); white-space: nowrap; }

.oil-compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
}
.oil-compact-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.15s;
}
.oil-compact-card:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  transform: translateY(-1px);
  border-color: var(--green-light);
}
.occ-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.occ-num {
  min-width: 24px;
  height: 24px;
  background: var(--green-mid);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.occ-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--green-dark);
  flex: 1;
}
.occ-latin {
  font-size: 11px;
  color: var(--text-light);
  font-style: italic;
  margin-top: 3px;
  margin-left: 32px;
  display: block;
  line-height: 1.3;
}

/* Google-style search results */
.search-results {
  max-width: 100%;
}
.search-result-item {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.search-result-item:hover { background: #F8F7F4; margin: 0 -12px; padding: 16px 12px; border-radius: 10px; }
.sr-title { font-size: 17px; font-weight: 700; margin-bottom: 4px; line-height: 1.4; }
.search-result-item:hover .sr-title { text-decoration: underline; }
.sr-snippet { font-size: 13px; color: var(--text-mid); line-height: 1.65; }
.sr-cat-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: 1px;
}

/* chem filter chips on oils hero */
.chem-filter-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 12px;
}
.chem-chip {
  font-size: 16px;
  padding: 8px 18px;
  border-radius: 20px;
  border: 1.5px solid var(--green-dark);
  background: rgba(255,255,255,0.6);
  color: var(--green-dark);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-weight: 600;
}
.chem-chip:hover, .chem-chip.active {
  background: var(--green-dark);
  color: #fff;
  border-color: var(--green-dark);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .articles-grid { grid-template-columns: 1fr; }
  .article-card.featured { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .mind-spirit-grid { grid-template-columns: 1fr 1fr; }
  .scenario-grid { grid-template-columns: 1fr 1fr; }
  .research-grid { grid-template-columns: 1fr; }
  .compound-grid { grid-template-columns: 1fr 1fr; }
  .compound-hero { padding: 36px 28px; }
  .oil-compact-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

@media (max-width: 640px) {
  nav ul { display: none; }
  header .header-inner { position: relative; }
  nav.open ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 12px 20px;
    z-index: 100;
    gap: 4px;
  }
  nav.open ul li { width: 100%; }
  nav.open ul li a { width: 100%; padding: 12px 14px; border-radius: 8px; }
  .menu-toggle { display: block; }
  .nav-search { display: none; }
  .hero { padding: 50px 20px; }
  .footer-inner { grid-template-columns: 1fr; }
  .encyclo-grid { grid-template-columns: repeat(3, 1fr); }
  .mind-spirit-grid { grid-template-columns: 1fr; }
  .scenario-grid { grid-template-columns: 1fr 1fr; }
  .diy-grid { grid-template-columns: 1fr; }
  .oil-cover-content { padding: 40px 28px; }
  .therapist-tip { flex-direction: column; padding: 20px; }
  .compound-grid { grid-template-columns: 1fr; }
  .compound-hero h1 { font-size: 22px; }
  .compound-nav { gap: 6px; padding: 12px; }
}
