/* ============================================================
   叶公馆 YE'S MANSION · 企业官网全局样式
   配色规范：松叶绿 #2A4A2E / 墨黑 #1F1F1F / 宣纸米白 #F5F0E4
   ============================================================ */
:root {
  --green: #2A4A2E;
  --green-deep: #1E3621;
  --green-soft: #6B8E5A;
  --green-tint: #EAF0E6;
  --ink: #1F1F1F;
  --ink-soft: #5A5A52;
  --paper: #F5F0E4;
  --paper-deep: #EFE8D8;
  --white: #FFFFFF;
  --line: #E3DCCB;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 31, 31, 0.08);
  --shadow-lg: 0 18px 50px rgba(42, 74, 46, 0.16);
  --font-serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  --font-sans: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 240, 228, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b {
  font-family: var(--font-serif); font-size: 22px; letter-spacing: 6px; color: var(--ink);
}
.brand-text small { font-size: 10px; letter-spacing: 3.5px; color: var(--green); font-weight: 600; }
.nav-links { display: flex; gap: 34px; list-style: none; }
.nav-links a {
  font-size: 15.5px; color: var(--ink-soft); padding: 6px 2px; position: relative; transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 0; height: 2px;
  background: var(--green); transition: all .25s; transform: translateX(-50%); border-radius: 2px;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after, .nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-user { display: flex; align-items: center; gap: 10px; }
.nav-user .avatar-sm {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--green-tint);
}
.nav-user .uname { font-size: 14px; color: var(--ink); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--ink); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: 999px; font-size: 15px; font-weight: 600;
  border: 1.5px solid transparent; transition: all .25s; line-height: 1.2;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { border-color: var(--green); color: var(--green); background: transparent; }
.btn-ghost:hover { background: var(--green); color: #fff; }
.btn-white { background: rgba(255,255,255,.92); color: var(--green); }
.btn-white:hover { background: #fff; }
.btn-sm { padding: 8px 18px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn-danger { border-color: #C4453B; color: #C4453B; background: transparent; }
.btn-danger:hover { background: #C4453B; color: #fff; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 640px; display: flex; align-items: center;
  background: var(--green-deep); overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(30,54,33,.72) 0%, rgba(30,54,33,.25) 45%, rgba(30,54,33,.05) 75%);
}
.hero-inner { position: relative; z-index: 2; color: #fff; padding: 96px 0; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 4px;
  color: #DCE7D4; margin-bottom: 22px; text-transform: uppercase;
}
.hero-eyebrow::before { content: ""; width: 36px; height: 1px; background: #A8C096; }
.hero h1 {
  font-family: var(--font-serif); font-size: clamp(38px, 5.2vw, 62px); line-height: 1.28;
  letter-spacing: 4px; font-weight: 700; margin-bottom: 20px; max-width: 640px;
}
.hero h1 em { font-style: normal; color: #C9DCB8; }
.hero p { font-size: 17px; color: #E7EDE0; max-width: 520px; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- 统计条 ---------- */
.stats-band { background: var(--green); color: #fff; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 30px 0;
}
.stat { text-align: center; }
.stat b { display: block; font-size: 34px; font-family: var(--font-serif); letter-spacing: 1px; }
.stat b sup { font-size: 16px; margin-left: 2px; }
.stat span { font-size: 13px; color: #C9D6BE; letter-spacing: 2px; }

/* ---------- 通用 Section ---------- */
.section { padding: 92px 0; }
.section.tint { background: var(--paper-deep); }
.section-head { text-align: center; margin-bottom: 54px; }
.section-head .eyebrow {
  font-size: 12.5px; letter-spacing: 5px; color: var(--green-soft); font-weight: 700;
  text-transform: uppercase; display: block; margin-bottom: 12px;
}
.section-head h2 {
  font-family: var(--font-serif); font-size: clamp(28px, 3.4vw, 40px); letter-spacing: 3px; color: var(--ink);
}
.section-head .sub { margin-top: 14px; color: var(--ink-soft); font-size: 15.5px; }
.deco-line { width: 56px; height: 3px; background: var(--green); margin: 18px auto 0; border-radius: 2px; }

/* ---------- 房源卡片 ---------- */
.room-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.room-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column;
  border: 1px solid rgba(227,220,203,.6);
}
.room-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.room-cover { position: relative; aspect-ratio: 3/2; overflow: hidden; }
.room-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.room-card:hover .room-cover img { transform: scale(1.05); }
.room-badge {
  position: absolute; top: 14px; left: 14px; padding: 5px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 1px; color: #fff; background: rgba(42,74,46,.92);
}
.room-badge.rent { background: rgba(158,104,42,.94); }
.room-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.room-body h3 { font-size: 18.5px; font-family: var(--font-serif); letter-spacing: 1px; margin-bottom: 4px; }
.room-meta { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 12px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  font-size: 12px; padding: 4px 12px; border-radius: 999px;
  background: var(--green-tint); color: var(--green);
}
.room-foot { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; }
.room-price { color: #B4542E; font-weight: 700; font-size: 15px; }
.room-price b { font-size: 26px; font-family: var(--font-serif); }
.room-link { font-size: 13.5px; color: var(--green); font-weight: 600; }
.room-link:hover { text-decoration: underline; }

/* ---------- 业务入口卡片 ---------- */
.biz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.biz-card {
  position: relative; border-radius: 18px; overflow: hidden; min-height: 380px;
  display: flex; align-items: flex-end; color: #fff; box-shadow: var(--shadow);
}
.biz-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.biz-card:hover img { transform: scale(1.04); }
.biz-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,36,22,.85) 0%, rgba(20,36,22,.15) 55%);
}
.biz-body { position: relative; z-index: 2; padding: 34px; }
.biz-body small { letter-spacing: 3px; font-size: 12px; color: #C9DCB8; text-transform: uppercase; }
.biz-body h3 { font-family: var(--font-serif); font-size: 30px; letter-spacing: 3px; margin: 8px 0 10px; }
.biz-body p { font-size: 14.5px; color: #E4EBDC; margin-bottom: 20px; max-width: 380px; }

/* ---------- 理念/特色三栏 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature {
  background: var(--white); border-radius: var(--radius); padding: 36px 30px;
  box-shadow: var(--shadow); border-top: 3px solid var(--green);
}
.feature .f-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--green-tint);
  display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 18px;
}
.feature h3 { font-family: var(--font-serif); font-size: 19px; letter-spacing: 1px; margin-bottom: 10px; }
.feature p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- 品牌故事（关于页） ---------- */
.story-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.story-wrap img { border-radius: 18px; box-shadow: var(--shadow-lg); }
.story-text .eyebrow { font-size: 12.5px; letter-spacing: 5px; color: var(--green-soft); font-weight: 700; display: block; margin-bottom: 12px; }
.story-text h2 { font-family: var(--font-serif); font-size: 34px; letter-spacing: 2px; line-height: 1.4; margin-bottom: 22px; }
.story-text p { color: var(--ink-soft); margin-bottom: 16px; font-size: 15.5px; }
.kv-row { display: flex; gap: 40px; margin-top: 28px; }
.kv b { font-size: 30px; font-family: var(--font-serif); color: var(--green); }
.kv span { display: block; font-size: 13px; color: var(--ink-soft); }

/* ---------- 表单 ---------- */
.form-card {
  background: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); letter-spacing: .5px; }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px;
  background: #FDFBF6; transition: border .2s, box-shadow .2s; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-soft); box-shadow: 0 0 0 3px rgba(107,142,90,.15);
}
.form-hint { font-size: 12.5px; color: var(--ink-soft); }
.form-ok {
  background: var(--green-tint); border: 1px solid #BFD3B2; color: var(--green);
  border-radius: 10px; padding: 12px 16px; font-size: 14px; margin-top: 14px; display: none;
}
.form-ok.show { display: block; }

/* ---------- 登录页 ---------- */
.auth-wrap { min-height: calc(100vh - 72px); display: flex; align-items: center; padding: 60px 0; }
.auth-card {
  width: min(440px, 100%); margin: 0 auto; background: var(--white);
  border-radius: 20px; padding: 42px 40px; box-shadow: var(--shadow-lg);
}
.auth-brand { text-align: center; margin-bottom: 26px; }
.auth-brand img { width: 64px; height: 64px; margin: 0 auto 12px; }
.auth-brand h2 { font-family: var(--font-serif); letter-spacing: 4px; font-size: 24px; }
.auth-brand small { color: var(--ink-soft); font-size: 12.5px; letter-spacing: 2px; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.auth-tab {
  flex: 1; background: none; border: none; padding: 12px 4px; font-size: 15px;
  color: var(--ink-soft); border-bottom: 2.5px solid transparent; transition: all .2s; font-weight: 600;
}
.auth-tab.active { color: var(--green); border-bottom-color: var(--green); }
.auth-pane { display: none; }
.auth-pane.active { display: block; }
.auth-pane .field { margin-bottom: 16px; }
.auth-extra { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 18px; font-size: 13px; }
.auth-extra a { color: var(--green); }
.auth-extra a:hover { text-decoration: underline; }
.auth-msg { border-radius: 10px; padding: 11px 14px; font-size: 13.5px; margin-bottom: 16px; display: none; }
.auth-msg.show { display: block; }
.auth-msg.err { background: #FBEBE9; border: 1px solid #EBC5C0; color: #A93B32; }
.auth-msg.ok { background: var(--green-tint); border: 1px solid #BFD3B2; color: var(--green); }
.auth-alt { margin-top: 20px; text-align: center; font-size: 13.5px; color: var(--ink-soft); }
.auth-alt a { color: var(--green); font-weight: 600; }
.forgot-pane { display: none; }
.forgot-pane.show { display: block; }

/* ---------- 用户中心 ---------- */
.account-grid { display: grid; grid-template-columns: 340px 1fr; gap: 30px; align-items: start; }
.profile-card { text-align: center; padding: 36px 28px; }
.avatar-big {
  width: 110px; height: 110px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 16px; border: 4px solid var(--green-tint); background: var(--green-tint);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: var(--green); font-family: var(--font-serif); overflow: hidden;
}
.avatar-big img { width: 100%; height: 100%; object-fit: cover; }
.profile-card h3 { font-family: var(--font-serif); font-size: 22px; letter-spacing: 2px; }
.profile-card .email { font-size: 13px; color: var(--ink-soft); word-break: break-all; margin: 4px 0 18px; }
.upload-btn { font-size: 13px; color: var(--green); background: none; border: none; text-decoration: underline; }
.panel { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.panel + .panel { margin-top: 26px; }
.panel-head {
  padding: 20px 28px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.panel-head h3 { font-family: var(--font-serif); font-size: 18px; letter-spacing: 2px; }
.panel-body { padding: 26px 28px; }
.booking-item {
  display: flex; justify-content: space-between; gap: 18px; padding: 16px 0;
  border-bottom: 1px dashed var(--line); align-items: flex-start;
}
.booking-item:last-child { border-bottom: none; }
.booking-item .b-main b { font-size: 15.5px; }
.booking-item .b-main p { font-size: 13px; color: var(--ink-soft); margin-top: 3px; }
.b-status {
  font-size: 12px; padding: 4px 12px; border-radius: 999px; white-space: nowrap; font-weight: 600;
}
.b-status.pending { background: #FDF3E4; color: #A3691F; }
.b-status.done { background: var(--green-tint); color: var(--green); }
.b-status.cancelled { background: #F2F2F0; color: #8A8A80; }
.empty-tip { text-align: center; color: var(--ink-soft); padding: 34px 0; font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { background: var(--white); border-radius: 12px; margin-bottom: 14px; border: 1px solid var(--line); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; padding: 18px 24px;
  font-size: 15.5px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; align-items: center;
}
.faq-q::after { content: "+"; font-size: 20px; color: var(--green); transition: transform .25s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 24px 20px; color: var(--ink-soft); font-size: 14.5px; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(20,30,20,.55); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 24px;
  backdrop-filter: blur(3px);
}
.modal-mask.show { display: flex; }
.modal {
  background: var(--white); border-radius: 18px; width: min(720px, 100%);
  max-height: 88vh; overflow: auto; box-shadow: var(--shadow-lg); position: relative;
  animation: pop .25s ease;
}
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close {
  position: absolute; top: 14px; right: 16px; z-index: 5; width: 36px; height: 36px;
  border-radius: 50%; border: none; background: rgba(255,255,255,.92); font-size: 18px; color: var(--ink);
  box-shadow: var(--shadow);
}
.modal img.hero-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.modal-body { padding: 28px 32px 34px; }
.modal-body h3 { font-family: var(--font-serif); font-size: 26px; letter-spacing: 2px; margin-bottom: 6px; }
.modal-body .m-meta { color: var(--ink-soft); font-size: 14px; margin-bottom: 16px; }
.modal-body .m-price { color: #B4542E; font-size: 15px; font-weight: 700; margin-bottom: 18px; }
.modal-body .m-price b { font-size: 30px; font-family: var(--font-serif); }
.modal-body .m-desc { color: var(--ink-soft); font-size: 15px; margin-bottom: 22px; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: start; }
.contact-cards { display: flex; flex-direction: column; gap: 18px; }
.contact-card {
  background: var(--white); border-radius: var(--radius); padding: 26px 28px;
  box-shadow: var(--shadow); display: flex; gap: 18px; align-items: flex-start; border: 1px solid var(--line);
}
.contact-card .c-icon {
  width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--green-tint);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.contact-card h4 { font-size: 16px; margin-bottom: 4px; letter-spacing: 1px; }
.contact-card p { font-size: 14px; color: var(--ink-soft); }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--green-deep); color: #B9C8AE; margin-top: 40px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; padding: 60px 0 44px;
}
.footer-brand img { width: 54px; height: 54px; border-radius: 12px; margin-bottom: 14px; }
.footer-brand .fb-name { font-family: var(--font-serif); color: #fff; font-size: 22px; letter-spacing: 5px; }
.footer-brand .fb-en { font-size: 11px; letter-spacing: 3px; color: #8FA883; margin-bottom: 14px; }
.footer-brand p { font-size: 13.5px; line-height: 1.9; max-width: 320px; }
.site-footer h5 { color: #fff; font-size: 15px; letter-spacing: 2px; margin-bottom: 16px; font-weight: 600; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; font-size: 13.5px; }
.site-footer a:hover { color: #fff; }
.footer-bar {
  border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: 12.5px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #7E9673;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 42px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 26px; border-radius: 999px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: all .3s; z-index: 300;
  box-shadow: var(--shadow-lg); max-width: 86vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 页面头图（内页） ---------- */
.page-hero {
  background: linear-gradient(115deg, var(--green-deep), var(--green)); color: #fff;
  padding: 74px 0; text-align: center;
}
.page-hero h1 { font-family: var(--font-serif); font-size: clamp(30px, 4vw, 44px); letter-spacing: 6px; }
.page-hero .crumb { font-size: 12.5px; letter-spacing: 3px; color: #B9CDA9; margin-top: 10px; text-transform: uppercase; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .room-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .story-wrap, .contact-grid, .account-grid { grid-template-columns: 1fr; }
  .biz-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-user .uname { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 18px 6%; gap: 18px;
    box-shadow: var(--shadow);
  }
}
@media (max-width: 620px) {
  .room-grid, .feature-grid, .form-grid, .stats-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { min-height: 540px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .auth-card { padding: 32px 24px; }
}
