/* ============================================
   CiCiLaLang - 企业官网样式
   印尼传统小吃 麻枣 Kue Manco
   ============================================ */

/* ---------- CSS 变量 ---------- */
:root {
  --color-primary: #1a4d3a;        /* 深森林绿 - 主色 */
  --color-primary-dark: #0f3326;
  --color-primary-light: #2d6b53;
  --color-accent: #b8924d;         /* 暖金棕 - 强调色 */
  --color-accent-light: #d4af6e;
  --color-cream: #f8f3e9;          /* 奶油米色 */
  --color-cream-dark: #ede4d3;
  --color-white: #ffffff;
  --color-text: #1f2421;           /* 主文字色 */
  --color-text-light: #5a605a;     /* 次文字色 */
  --color-border: #e5dfd2;
  --color-red: #c83a2e;            /* 包装红色 */

  --font-display: "Playfair Display", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-sm: 0 2px 8px rgba(26, 77, 58, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 77, 58, 0.10);
  --shadow-lg: 0 20px 50px rgba(26, 77, 58, 0.15);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-cream);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- 容器 ---------- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

/* ---------- 导航栏 ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(248, 243, 233, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(248, 243, 233, 0.95);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: var(--color-cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-body);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text small {
  font-size: 10px;
  font-weight: 500;
  color: var(--color-text-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-body);
}

.logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--color-primary);
  font-weight: 600;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--color-primary);
  color: var(--color-cream);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-menu {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--color-cream);
    flex-direction: column;
    padding: 40px 32px;
    gap: 24px;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-120%);
    transition: var(--transition);
  }
  .nav-menu.open { transform: translateY(0); }
  .menu-toggle { display: flex; }
  .nav-cta { padding: 12px 24px; }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 100px;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-cream);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-cream);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-arrow {
  display: inline-block;
  transition: var(--transition);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ---------- Section 通用 ---------- */
section {
  padding: 120px 0;
}

@media (max-width: 768px) {
  section { padding: 80px 0; }
}

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.section-title em {
  color: var(--color-primary);
  font-style: italic;
}

.section-subtitle {
  font-size: 18px;
  color: var(--color-text-light);
  max-width: 640px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* ---------- 页脚 ---------- */
.footer {
  background: var(--color-primary-dark);
  color: rgba(248, 243, 233, 0.7);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-cream);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-brand .logo-mark {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}

.footer-logo-img {
  height: 64px;
  width: auto;
  display: block;
  background: var(--color-cream);
  padding: 6px 12px;
  border-radius: 6px;
}

.footer-text {
  font-size: 14px;
  line-height: 1.8;
  max-width: 320px;
}

.footer-title {
  color: var(--color-cream);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-list li {
  margin-bottom: 12px;
  font-size: 14px;
}

.footer-list a:hover {
  color: var(--color-accent-light);
}

.footer-bottom {
  border-top: 1px solid rgba(248, 243, 233, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 243, 233, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* ---------- 动画 ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 工具类 ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* ---------- 内页 Hero ---------- */
.page-hero {
  padding: 200px 0 100px;
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-cream-dark) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(184, 146, 77, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.page-hero::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(26, 77, 58, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .sep { opacity: 0.5; }

/* LOGO 移动端适配 */
@media (max-width: 768px) {
  .logo-img { height: 40px; }
  .footer-logo-img { height: 52px; padding: 4px 10px; }
}

/* ===== 语言切换器（下拉） ===== */
.lang-switch {
  position: relative;
  margin-left: 10px;
}
.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1;
  padding: 7px 14px;
  border: 1px solid var(--color-border, rgba(0, 0, 0, 0.15));
  background: #fff;
  color: var(--color-text);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.lang-current:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.lang-flag {
  font-size: 14px;
  line-height: 1;
}
.lang-caret {
  font-size: 10px;
  transition: transform 0.2s ease;
}
.lang-switch.open .lang-caret {
  transform: rotate(180deg);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 158px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--color-border, rgba(0, 0, 0, 0.1));
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  display: none;
  z-index: 100;
}
.lang-switch.open .lang-menu {
  display: block;
}
.lang-menu li {
  list-style: none;
}
.lang-menu button {
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: 14px;
  padding: 9px 12px;
  border: none;
  background: transparent;
  color: var(--color-text);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}
.lang-menu button:hover {
  background: rgba(0, 0, 0, 0.05);
}
.lang-menu button.active {
  color: var(--color-primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .lang-switch {
    margin: 14px 0 4px;
    align-self: flex-start;
  }
  .lang-menu {
    right: auto;
    left: 0;
  }
}
