/* ==========================================================================
   美乐普建站 mieleap.com - 全站主样式表
   风格：轻奢商务高级灰 + 哑光金点缀
   布局：圆形与方形模块嵌套布局（方圆嵌套，层次清晰）
   纯原生 CSS3，无任何框架依赖
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
  /* 主色：高级灰系（轻奢商务质感） */
  --gray-50:  #F8F8FA;
  --gray-100: #F0F0F3;
  --gray-200: #E4E4E9;
  --gray-300: #D1D1D9;
  --gray-400: #A8A8B2;
  --gray-500: #7E7E8A;
  --gray-600: #5A5A66;
  --gray-700: #3E3E48;
  --gray-800: #282830;
  --gray-900: #16161C;

  /* 强调色：哑光金系（轻奢点缀） */
  --gold-50:  #FBF6EA;
  --gold-100: #F5EBD0;
  --gold-200: #EBD9A6;
  --gold-300: #DEC478;
  --gold-400: #C9A961;
  --gold-500: #B8944F;
  --gold-600: #A6823E;
  --gold-700: #8A6A2E;

  /* 中性：雾白与深炭 */
  --mist:     #FCFCFD;
  --fog:      #F7F7F9;
  --smoke:    #EFEFF2;
  --charcoal: #1E1E24;
  --graphite: #2A2A32;

  /* 文字 */
  --ink-900:  #1E1E24;
  --ink-700:  #3A3A44;
  --ink-500:  #62626E;
  --ink-300:  #9A9AA6;
  --line:     #E2E2E8;
  --line-soft:#EDEDF1;

  /* 功能 */
  --radius-sm: 6px;
  --radius:    14px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --circle:    50%;
  --shadow-sm: 0 2px 12px rgba(30, 30, 36, 0.04);
  --shadow:    0 12px 40px rgba(30, 30, 36, 0.08);
  --shadow-lg: 0 24px 60px rgba(30, 30, 36, 0.12);
  --shadow-gold: 0 8px 30px rgba(201, 169, 97, 0.18);
  --container: 1240px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-700);
  background: var(--mist);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: var(--gold-500); }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5 {
  color: var(--ink-900);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p  { color: var(--ink-500); }

/* ---------- 容器 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.container-narrow { max-width: 880px; }
.container-wide   { max-width: 1440px; }
section { position: relative; }

/* ==========================================================================
   方圆嵌套布局系统（核心骨架）
   圆形与方形模块交错嵌套，层次清晰，独一无二
   ========================================================================== */

/* 方圆嵌套背景层 */
.nest-bg {
  position: relative;
  overflow: hidden;
}
.nest-bg::before {
  content: "";
  position: absolute;
  top: -15%; right: -8%;
  width: 480px; height: 480px;
  border-radius: var(--circle);
  background: radial-gradient(circle, rgba(201, 169, 97, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.nest-bg::after {
  content: "";
  position: absolute;
  bottom: -20%; left: -5%;
  width: 360px; height: 360px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(240, 240, 243, 0.6) 0%, transparent 70%);
  transform: rotate(15deg);
  pointer-events: none;
  z-index: 0;
}
.nest-bg > * { position: relative; z-index: 1; }

/* 方圆渐变区块 */
.nest-section {
  position: relative;
  padding: 96px 0;
  background: linear-gradient(160deg, var(--mist) 0%, var(--fog) 50%, var(--gray-50) 100%);
}
.nest-section.warm {
  background: linear-gradient(160deg, var(--gold-50) 0%, var(--fog) 50%, var(--gray-100) 100%);
}
.nest-section.dark {
  background: linear-gradient(160deg, var(--charcoal) 0%, var(--graphite) 50%, var(--gray-800) 100%);
  color: #D8D8DE;
}
.nest-section.dark h2, .nest-section.dark h3 { color: var(--mist); }
.nest-section.dark p { color: rgba(216, 216, 222, 0.7); }

/* 圆形装饰元素 */
.circle-accent {
  position: absolute;
  border-radius: var(--circle);
  pointer-events: none;
}
.circle-accent.gold {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  opacity: 0.08;
}
.circle-accent.gray {
  background: var(--gray-200);
  opacity: 0.4;
}

/* 方圆嵌套卡片 */
.nest-card {
  position: relative;
  background: var(--mist);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: all .4s var(--ease);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.nest-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-500), var(--gray-300));
}
.nest-card::after {
  content: "";
  position: absolute;
  top: -40%; right: -20%;
  width: 160px; height: 160px;
  border-radius: var(--circle);
  background: radial-gradient(circle, rgba(201, 169, 97, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.nest-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--gold-200);
}

/* 圆形图片容器 */
.circle-frame {
  border-radius: var(--circle);
  overflow: hidden;
  position: relative;
}
.circle-frame img { width: 100%; height: 100%; object-fit: cover; }

/* 方圆交错网格 */
.nest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.nest-grid .nest-card:nth-child(odd) { border-radius: var(--radius-lg); }
.nest-grid .nest-card:nth-child(even) { border-radius: var(--circle) var(--radius) var(--circle) var(--radius); }

/* ==========================================================================
   通用组件
   ========================================================================== */

/* 区块标题 */
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-head.mb-0 { margin-bottom: 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 16px;
}
.eyebrow.warm { color: var(--gold-500); }
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: var(--circle);
  background: var(--gold-400);
}
.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: 1.02rem; line-height: 1.8; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all .3s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-lg { padding: 16px 36px; font-size: 1.02rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: #fff;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(201, 169, 97, 0.28);
}
.btn-outline {
  background: transparent;
  border-color: var(--gray-300);
  color: var(--ink-700);
}
.btn-outline:hover {
  border-color: var(--gold-400);
  color: var(--gold-600);
  background: var(--gold-50);
}
.btn-dark {
  background: var(--charcoal);
  color: #fff;
}
.btn-dark:hover { background: var(--gray-700); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink-700);
  border-color: var(--line);
}
.btn-gold {
  background: var(--gold-500);
  color: #fff;
}
.btn-gold:hover { background: var(--gold-600); color: #fff; }

/* 文字链接 */
.txt-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-600);
  font-weight: 600;
  font-size: 0.92rem;
}
.txt-link:hover { color: var(--gold-700); }
.txt-link::after { content: "→"; transition: transform .3s var(--ease); }
.txt-link:hover::after { transform: translateX(4px); }

/* 工具类 */
.text-center { text-align: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex { display: flex; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }

/* 标签 */
.tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--gray-100);
  color: var(--gray-600);
}
.tag.warm { background: var(--gold-50); color: var(--gold-600); }
.tag.gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: #fff; }

/* 表单 */
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--mist);
  font-size: 0.95rem;
  transition: all .3s var(--ease);
  outline: none;
}
.form-control:focus {
  border-color: var(--gold-400);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}
textarea.form-control { resize: vertical; min-height: 120px; }

/* ==========================================================================
   顶部导航
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(252, 252, 253, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(252, 252, 253, 0.96);
  border-bottom-color: var(--line-soft);
  box-shadow: var(--shadow-sm);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand img { width: 40px; height: 40px; border-radius: var(--circle); }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-text { font-size: 1.1rem; font-weight: 700; color: var(--ink-900); }
.brand-text small {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-300);
  text-transform: uppercase;
  margin-top: 2px;
}

/* 主导航 */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.main-nav > li { position: relative; }
.main-nav > li > a {
  display: block;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-700);
  border-radius: var(--radius-sm);
  transition: all .25s var(--ease);
}
.main-nav > li > a:hover,
.main-nav > li.active > a {
  color: var(--gold-600);
  background: var(--gold-50);
}
.main-nav > li.has-sub > a::after {
  content: "";
  display: inline-block;
  width: 0; height: 0;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  vertical-align: middle;
}

/* 下拉菜单 */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 240px;
  background: var(--mist);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: all .3s var(--ease);
  z-index: 100;
}
.main-nav > li.has-sub:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu li a {
  display: block;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--ink-700);
  border-radius: var(--radius-sm);
  transition: all .2s var(--ease);
}
.dropdown-menu li a:hover {
  background: var(--gold-50);
  color: var(--gold-600);
}

.nav-cta {
  flex-shrink: 0;
  margin-left: 8px;
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink-700);
  border-radius: 2px;
  transition: all .3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 移动端抽屉 */
.mobile-drawer {
  position: fixed;
  top: 0; right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--mist);
  box-shadow: var(--shadow-lg);
  z-index: 1100;
  padding: 80px 20px 20px;
  overflow-y: auto;
  transition: right .35s var(--ease);
}
.mobile-drawer.open { right: 0; }
.mobile-drawer li a {
  display: block;
  padding: 12px 14px;
  font-size: 0.95rem;
  color: var(--ink-700);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-drawer li a:hover { color: var(--gold-600); }
.mobile-sub { padding-left: 16px; }
.mobile-sub li a { font-size: 0.88rem; color: var(--ink-500); }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 22, 28, 0.5);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all .3s var(--ease);
}
.overlay.show { opacity: 1; visibility: visible; }

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  background: var(--charcoal);
  color: rgba(216, 216, 222, 0.7);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-col h4 {
  color: var(--mist);
  font-size: 0.98rem;
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(216, 216, 222, 0.6);
  transition: color .25s var(--ease);
}
.footer-col ul li a:hover { color: var(--gold-400); }
.footer-brand .brand { color: var(--mist); margin-bottom: 16px; }
.footer-brand .brand-text { color: var(--mist); }
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(216, 216, 222, 0.55);
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: var(--circle);
  background: rgba(255,255,255,0.06);
  display: grid;
  place-items: center;
  color: rgba(216, 216, 222, 0.7);
  transition: all .3s var(--ease);
}
.footer-social a:hover {
  background: var(--gold-500);
  color: #fff;
}
.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.86rem;
  margin-bottom: 14px;
  line-height: 1.6;
}
.footer-contact .ic {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: var(--circle);
  background: rgba(201, 169, 97, 0.12);
  color: var(--gold-400);
  display: grid;
  place-items: center;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
}
.footer-bottom p { color: rgba(216, 216, 222, 0.5); }
.footer-icp a {
  color: rgba(216, 216, 222, 0.5);
  transition: color .25s var(--ease);
}
.footer-icp a:hover { color: var(--gold-400); }

/* ==========================================================================
   滚动渐入动画
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ==========================================================================
   页面通用英雄区
   ========================================================================== */
.page-hero {
  padding: 140px 0 64px;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(201, 169, 97, 0.06) 0%, transparent 50%),
    linear-gradient(160deg, var(--mist) 0%, var(--fog) 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: 60px; right: 8%;
  width: 200px; height: 200px;
  border-radius: var(--circle);
  border: 1px solid var(--gold-200);
  opacity: 0.3;
}
.page-hero::after {
  content: "";
  position: absolute;
  bottom: -40px; left: 10%;
  width: 120px; height: 120px;
  border-radius: var(--radius-lg);
  background: var(--gold-50);
  opacity: 0.5;
  transform: rotate(20deg);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--ink-300);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--ink-500); }
.breadcrumb a:hover { color: var(--gold-500); }
.breadcrumb .sep { color: var(--gray-300); }
.page-hero h1 {
  margin-bottom: 16px;
  max-width: 720px;
}
.page-hero p {
  font-size: 1.05rem;
  max-width: 640px;
  line-height: 1.8;
}

/* 区块间距 */
.section { padding: 96px 0; }
.section-tight { padding: 56px 0; }
.section-warm { background: var(--gold-50); }
.section-gray { background: var(--fog); }
.section-dark { background: var(--charcoal); }

/* CTA横幅 */
.cta-banner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, var(--charcoal), var(--gray-800));
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: -50%; right: -10%;
  width: 300px; height: 300px;
  border-radius: var(--circle);
  background: radial-gradient(circle, rgba(201, 169, 97, 0.12) 0%, transparent 70%);
}
.cta-banner h2 { color: var(--mist); margin-bottom: 10px; }
.cta-banner h3 { color: var(--mist); }
.cta-banner p { color: rgba(216, 216, 222, 0.7); }
