/* roulang page: index */
:root {
  --c-bg: #F6F0E6; --c-surface: #FFFFFF; --c-ink: #261C14; --c-brand: #2E2018;
  --c-brand-2: #3C2A1F; --c-accent: #B8894E; --c-accent-deep: #966C3A; --c-muted: #80705F;
  --c-line: #E3D8C6; --c-olive: #5E7452; --c-danger: #B4552D;
  --r-card: 16px; --r-btn: 10px;
  --shadow-1: 0 6px 24px rgba(44,28,15,0.08); --shadow-2: 0 18px 48px rgba(44,28,15,0.14);
  --font-body: "PingFang SC","Microsoft YaHei","Noto Sans SC",sans-serif;
  --font-serif: "Songti SC","STSong","SimSun",serif;
  --font-mono: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--font-body);font-size:16px;line-height:1.75;color:var(--c-ink);background:var(--c-bg);-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button,input,select,textarea{font:inherit;color:inherit}
ul,ol{list-style:none}
.container{max-width:1200px;margin:0 auto;padding-left:24px;padding-right:24px}
@media(max-width:640px){.container{padding-left:16px;padding-right:16px}}
.eyebrow{font-family:var(--font-mono);font-size:12px;letter-spacing:0.18em;color:var(--c-accent);font-weight:600}
.section-title{font-family:var(--font-serif);font-size:clamp(28px,4vw,38px);font-weight:700;line-height:1.2;letter-spacing:-0.02em;color:var(--c-ink)}
.section-desc{font-size:15px;line-height:1.8;color:var(--c-muted);max-width:520px}
.btn{display:inline-flex;align-items:center;justify-content:center;height:48px;padding:0 28px;border-radius:10px;font-size:15px;font-weight:600;transition:all .25s ease;cursor:pointer;border:none;outline:none;white-space:nowrap}
.btn:focus-visible{outline:3px solid rgba(184,137,78,0.4);outline-offset:2px}
.btn-primary{background:var(--c-accent);color:#fff}
.btn-primary:hover{background:var(--c-accent-deep);transform:translateY(-1px);box-shadow:0 6px 20px rgba(150,108,58,0.3)}
.btn-primary:active{transform:translateY(0)}
.btn-outline{background:transparent;border:1.5px solid var(--c-ink);color:var(--c-ink)}
.btn-outline:hover{background:rgba(46,32,24,0.06);transform:translateY(-1px)}
.btn-outline-light{background:transparent;border:1.5px solid rgba(255,255,255,0.6);color:#fff}
.btn-outline-light:hover{background:rgba(255,255,255,0.1);border-color:#fff}
.card{background:var(--c-surface);border-radius:var(--r-card);box-shadow:var(--shadow-1);transition:box-shadow .3s ease,transform .3s ease}
.card:hover{box-shadow:var(--shadow-2);transform:translateY(-2px)}
.badge{display:inline-flex;align-items:center;padding:3px 12px;border-radius:8px;font-size:12px;font-weight:500;background:rgba(184,137,78,0.12);color:#8A6434}
.tag{display:inline-block;padding:2px 12px;border-radius:999px;background:var(--c-surface);border:1px solid var(--c-line);font-size:12px;color:var(--c-muted)}
a:focus-visible{outline:3px solid rgba(184,137,78,0.35);outline-offset:2px;border-radius:4px}
.section{padding:96px 0}
@media(max-width:768px){.section{padding:64px 0}}
input,select,textarea{width:100%;height:48px;border:1px solid var(--c-line);border-radius:10px;background:var(--c-bg);padding:0 16px;font-size:15px;transition:border-color .2s,box-shadow .2s;outline:none}
textarea{height:auto;padding:12px 16px;resize:vertical}
input:focus,select:focus,textarea:focus{border-color:var(--c-accent);box-shadow:0 0 0 3px rgba(184,137,78,0.15)}
label{display:block;font-size:13px;font-weight:600;letter-spacing:0.05em;margin-bottom:8px;color:var(--c-ink)}
.header-nav a.active{color:var(--c-accent);position:relative}
.header-nav a.active::after{content:'';position:absolute;bottom:-4px;left:0;width:100%;height:2px;border-radius:2px;background:var(--c-accent)}
.lang-switch{display:flex;background:transparent;border:1px solid #D8CCBB;border-radius:999px;padding:2px;height:32px;position:relative}
.lang-switch button{width:60px;height:26px;border:none;background:transparent;border-radius:999px;font-size:13px;font-weight:500;color:var(--c-muted);cursor:pointer;transition:color .2s;position:relative;z-index:2}
.lang-switch .lang-thumb{position:absolute;top:2px;left:2px;width:60px;height:26px;background:var(--c-brand);border-radius:999px;transition:transform 120ms ease;z-index:1}
.lang-switch button.lang-active{color:#fff}
.lang-switch button.lang-en-active{color:#fff}
.lang-switch.lang-en .lang-thumb{transform:translateX(60px)}
.hero-grid-bg{background-image:linear-gradient(rgba(255,255,255,0.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,0.04) 1px,transparent 1px);background-size:60px 60px}
.reveal{opacity:0;transform:translateY(16px);transition:opacity .6s ease,transform .6s ease}
.reveal.visible{opacity:1;transform:translateY(0)}
@keyframes progressGrow{from{width:0}to{width:86%}}
@keyframes fadeUp{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.reveal,.animate-pulse{transition:none!important;animation:none!important}.hero-badge,.progress-bar{animation:none!important}}
.faq-item .faq-answer{max-height:0;opacity:0;overflow:hidden;transition:max-height .24s ease,opacity .24s ease}
.faq-item.active .faq-answer{max-height:600px;opacity:1}
.faq-item .faq-icon{transition:transform .24s ease}
.faq-item.active .faq-icon{transform:rotate(45deg)}
.cta-line{border-bottom:1px solid rgba(255,255,255,0.12)}
#mobile-menu{transition:transform .24s ease-out}
.mobile-nav a{font-size:24px;line-height:48px;display:block;font-weight:600;color:var(--c-ink)}
.mobile-nav a:hover{color:var(--c-accent)}
.journal-item:hover .journal-arrow{transform:translateX(4px)}
.journal-arrow{transition:transform .2s}
.hero-badge{display:inline-flex;align-items:center;gap:6px;border:1px solid rgba(255,255,255,0.18);border-radius:999px;padding:4px 14px;font-family:var(--font-mono);font-size:12px;color:rgba(255,255,255,0.85);background:rgba(255,255,255,0.06);backdrop-filter:blur(6px)}
@media(max-width:768px){.header-nav,.desktop-cta{display:none}}
.mobile-menu-btn{display:none}
@media(max-width:768px){.mobile-menu-btn{display:flex}}
form .form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media(max-width:640px){form .form-row{grid-template-columns:1fr}}

/* roulang page: article */
:root {
  --c-bg: #F6F0E6;
  --c-surface: #FFFFFF;
  --c-ink: #261C14;
  --c-brand: #2E2018;
  --c-brand-2: #3C2A1F;
  --c-accent: #B8894E;
  --c-accent-deep: #966C3A;
  --c-muted: #80705F;
  --c-line: #E3D8C6;
  --c-olive: #5E7452;
  --r-card: 16px;
  --r-btn: 10px;
  --shadow-1: 0 6px 24px rgba(44, 28, 15, 0.08);
  --shadow-2: 0 18px 48px rgba(44, 28, 15, 0.14);
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-serif: "Songti SC", "STSong", "SimSun", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 640px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  height: 48px;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--c-accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(184, 137, 78, 0.3);
}

.btn-primary:hover {
  background: var(--c-accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(184, 137, 78, 0.38);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(184, 137, 78, 0.25);
}

.btn-outline {
  border: 1.5px solid var(--c-ink);
  color: var(--c-ink);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(46, 32, 24, 0.06);
  border-color: var(--c-ink);
}

.btn-white {
  background: #fff;
  color: var(--c-brand);
}

.btn-white:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(184, 137, 78, 0.45), 0 0 0 5px rgba(184, 137, 78, 0.15);
}

.header-nav a {
  position: relative;
  padding-bottom: 4px;
}

.header-nav a.active {
  color: var(--c-accent);
}

.header-nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-accent);
}

.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 1px solid #D8CCBB;
  border-radius: 999px;
  height: 32px;
  padding: 3px;
  width: 124px;
  background: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.lang-switch .lang-thumb {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 57px;
  height: 24px;
  border-radius: 999px;
  background: var(--c-brand);
  transition: transform 0.2s ease;
  z-index: 1;
}

.lang-switch button {
  position: relative;
  z-index: 2;
  width: 57px;
  height: 24px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-brand);
  background: transparent;
  transition: color 0.2s ease;
}

.lang-switch button.lang-active {
  color: #fff;
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-brand);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(246, 240, 230, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 24px;
  transform: translateY(-16px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.24s ease;
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-size: 24px;
  line-height: 48px;
  font-weight: 600;
  color: var(--c-brand);
  display: block;
  transition: color 0.2s;
}

.mobile-menu a:hover {
  color: var(--c-accent);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--c-muted);
}

.breadcrumb a {
  color: var(--c-muted);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--c-accent);
}

.breadcrumb .sep {
  color: rgba(128, 112, 95, 0.6);
}

.breadcrumb .current {
  color: var(--c-ink);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px;
}

.article-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(184, 137, 78, 0.14);
  color: var(--c-accent-deep);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 8px;
  letter-spacing: 0.04em;
}

.article-content {
  font-size: 17px;
  line-height: 1.9;
  color: var(--c-ink);
  word-wrap: break-word;
}

.article-content p {
  margin-bottom: 28px;
}

.article-content h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--c-ink);
}

.article-content h3 {
  font-size: 19px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--c-ink);
}

.article-content blockquote {
  border-left: 3px solid var(--c-accent);
  padding: 16px 0 16px 24px;
  color: var(--c-muted);
  font-weight: 500;
  margin-bottom: 28px;
  background: rgba(184, 137, 78, 0.05);
  border-radius: 0 8px 8px 0;
}

.article-content img {
  width: 100%;
  border-radius: 12px;
  margin: 32px 0;
}

.article-content a {
  color: var(--c-accent-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s;
}

.article-content a:hover {
  text-decoration-color: var(--c-accent);
}

.article-content ul,
.article-content ol {
  margin: 20px 0 28px;
  padding-left: 1.5em;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content ul li {
  list-style: disc;
}

.article-content ol li {
  list-style: decimal;
}

.article-content hr {
  border: none;
  border-top: 1px solid var(--c-line);
  margin: 40px 0;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 15px;
}

.article-content th,
.article-content td {
  border: 1px solid var(--c-line);
  padding: 10px 14px;
  text-align: left;
}

.article-content th {
  background: rgba(184, 137, 78, 0.08);
  font-weight: 600;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(46, 32, 24, 0.05);
  border: 1px solid rgba(46, 32, 24, 0.08);
  font-size: 13px;
  color: var(--c-muted);
  transition: all 0.2s ease;
}

.tag-chip:hover {
  background: rgba(184, 137, 78, 0.12);
  border-color: rgba(184, 137, 78, 0.25);
  color: var(--c-accent-deep);
}

.related-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  padding: 14px;
  transition: all 0.25s ease;
}

.related-card:hover {
  box-shadow: var(--shadow-1);
  transform: translateY(-2px);
  border-color: rgba(184, 137, 78, 0.25);
}

.related-card:hover .related-arrow {
  transform: translateX(4px);
  color: var(--c-accent);
}

.related-arrow {
  transition: all 0.25s ease;
  color: var(--c-muted);
  flex-shrink: 0;
}

.not-found-wrap {
  border: 2px dashed var(--c-line);
  border-radius: 16px;
  padding: 56px 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 767px) {
  .header-nav {
    display: none;
  }
  .desktop-cta {
    display: none;
  }
  .article-content {
    font-size: 16px;
    line-height: 1.85;
  }
  .article-content p {
    margin-bottom: 24px;
  }
  .breadcrumb .current {
    max-width: 180px;
  }
}

@media (min-width: 768px) {
  .mobile-only-btn {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* roulang page: category1 */
:root {
  --c-bg: #F6F0E6;
  --c-surface: #FFFFFF;
  --c-ink: #261C14;
  --c-brand: #2E2018;
  --c-brand-2: #3C2A1F;
  --c-accent: #B8894E;
  --c-accent-deep: #966C3A;
  --c-muted: #80705F;
  --c-line: #E3D8C6;
  --c-olive: #5E7452;
  --r-card: 16px;
  --r-btn: 10px;
  --shadow-1: 0 6px 24px rgba(44, 28, 15, 0.08);
  --shadow-2: 0 18px 48px rgba(44, 28, 15, 0.14);
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-serif: "Songti SC", "STSong", "SimSun", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

.container {
  max-width: 1200px !important;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
@media (max-width: 520px) {
  .container { padding-left: 16px; padding-right: 16px; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-btn); font-weight: 600;
  transition: all 0.25s ease; line-height: 1; white-space: nowrap;
}
.btn-primary {
  background: var(--c-accent); color: #fff;
  box-shadow: 0 4px 14px rgba(184,137,78,0.25);
}
.btn-primary:hover { background: var(--c-accent-deep); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(184,137,78,0.3); }
.btn-outline {
  border: 1.5px solid var(--c-ink); color: var(--c-ink);
}
.btn-outline:hover { background: rgba(46,32,24,0.06); }
.btn-outline-light { border: 1.5px solid rgba(255,255,255,0.7); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); }
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(184,137,78,0.4); outline-offset: 2px;
}

.lang-switch {
  position: relative; display: inline-flex; align-items: center;
  height: 32px; border-radius: 999px; border: 1px solid #D8CCBB;
  background: rgba(255,255,255,0.4); padding: 2px;
}
.lang-switch button {
  position: relative; z-index: 2; width: 56px; height: 26px;
  font-size: 12px; font-weight: 600; color: var(--c-muted);
  border-radius: 999px; transition: color 0.2s ease;
}
.lang-switch button.lang-active { color: #fff; }
.lang-switch .lang-thumb {
  position: absolute; top: 2px; left: 2px; z-index: 1;
  width: 56px; height: 26px; border-radius: 999px;
  background: var(--c-brand); transition: left 0.12s ease;
}
.lang-switch.thumb-right .lang-thumb { left: 58px; }

.header-nav a.active {
  position: relative; color: var(--c-accent);
}
.header-nav a.active::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px; border-radius: 2px; background: var(--c-accent);
}

.mobile-menu-btn { display: none; }
@media (max-width: 1023px) {
  .header-nav { display: none; }
  .desktop-cta { display: none; }
  .mobile-menu-btn { display: flex; }
}

.mobile-menu-btn.active span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu-panel {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(246,240,230,0.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transform: translateX(100%);
  transition: transform 0.24s ease-out;
  display: flex; flex-direction: column; padding: 24px;
}
.mobile-menu-panel.open { transform: translateX(0); }

.eyebrow {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.18em; color: var(--c-accent);
  text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--c-accent); }

.card {
  background: var(--c-surface); border-radius: var(--r-card);
  box-shadow: var(--shadow-1); transition: all 0.3s ease;
  overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }

.tag {
  display: inline-flex; padding: 6px 14px; border-radius: 999px;
  background: rgba(184,137,78,0.1); color: var(--c-accent-deep);
  font-size: 13px; font-weight: 500; border: 1px solid rgba(184,137,78,0.2);
  transition: background 0.2s ease;
}
.tag:hover { background: rgba(184,137,78,0.18); }

.grid-overlay {
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

.timeline-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--c-accent); box-shadow: 0 0 0 4px rgba(184,137,78,0.2);
}

.section-divider { border-top: 1px solid var(--c-line); }

.faq-answer { transition: max-height 0.24s ease, opacity 0.24s ease; }
.faq-icon { transition: transform 0.24s ease; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.stat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 28px 24px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.stat-card:hover { background: rgba(255,255,255,0.09); transform: translateY(-2px); }

.formula-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 0; border-bottom: 1px solid var(--c-line);
}
.formula-item:last-child { border-bottom: none; }
.formula-num {
  font-family: var(--font-mono); font-size: 14px;
  color: var(--c-accent); font-weight: 700;
  flex-shrink: 0; padding-top: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .card:hover { transform: none; }
  .btn-primary:hover { transform: none; }
}

@media (max-width: 767px) {
  .formula-item { padding: 16px 0; }
  .stat-card { padding: 20px 16px; }
}
