/* ============================================================
   屿间书吧 · 全站样式
   暖调咖啡色系 · 纸质质感 · 衬线标题
   ============================================================ */

:root {
  --coffee: #6f4e37;
  --coffee-dark: #4a3423;
  --coffee-deep: #2b2118;
  --cream: #faf6ef;
  --paper: #fffdf8;
  --ink: #2b2118;
  --muted: #8a7a6a;
  --gold: #c9a227;
  --line: #e8ddd0;
  --green: #5d7a5d;
  --shadow: 0 10px 30px rgba(74, 52, 35, .10);
  --shadow-lg: 0 20px 50px rgba(74, 52, 35, .16);
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
}

h1, h2, h3, h4, .serif { font-family: "Noto Serif SC", "Songti SC", serif; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 26px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; cursor: pointer; transition: all .25s; font-family: inherit;
}
.btn-primary { background: var(--coffee); color: #fff; }
.btn-primary:hover { background: var(--coffee-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--coffee); border-color: var(--coffee); }
.btn-ghost:hover { background: var(--coffee); color: #fff; }
.btn-light { background: #fff; color: var(--coffee); }
.btn-light:hover { background: var(--cream); transform: translateY(-2px); }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 253, 248, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; gap: 26px; height: 68px; }

.logo { font-family: "Noto Serif SC", serif; font-size: 22px; font-weight: 700; color: var(--coffee-dark); display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.logo small { font-size: 10px; letter-spacing: 3px; color: var(--muted); font-family: sans-serif; font-weight: 400; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px; background: var(--coffee); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 20px;
}

.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  padding: 8px 14px; border-radius: 999px; font-size: 15px; color: var(--ink);
  transition: all .2s;
}
.main-nav a:hover { background: rgba(111, 78, 55, .08); color: var(--coffee); }
.main-nav a.active { background: var(--coffee); color: #fff; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.hello { font-size: 14px; color: var(--muted); }

.cart-link { position: relative; display: inline-flex; align-items: center; color: var(--coffee-dark); }
.cart-link svg { width: 24px; height: 24px; }
.cart-badge {
  position: absolute; top: -7px; right: -11px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--gold); color: #fff; font-size: 11px;
  display: none; align-items: center; justify-content: center; font-weight: 700;
}

.nav-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--coffee-dark); cursor: pointer; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; min-height: 560px; display: flex; align-items: center;
  background-size: cover; background-position: center; color: #fff;
}
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30, 20, 12, .78), rgba(30, 20, 12, .35) 60%, transparent); }
.hero-inner { position: relative; z-index: 1; max-width: 620px; padding: 90px 0; }
.hero .eyebrow { letter-spacing: 5px; font-size: 13px; color: var(--gold); margin-bottom: 18px; }
.hero h1 { font-size: 52px; line-height: 1.25; margin-bottom: 20px; font-weight: 700; }
.hero p { font-size: 17px; opacity: .88; margin-bottom: 34px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------------- 通用区块 ---------------- */
.section { padding: 84px 0; }
.section.alt { background: var(--paper); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .eyebrow { color: var(--gold); letter-spacing: 4px; font-size: 13px; margin-bottom: 10px; }
.section-head h2 { font-size: 36px; color: var(--coffee-dark); margin-bottom: 14px; }
.section-head p { color: var(--muted); }

/* ---------------- 特色卡片 ---------------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature-card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); transition: all .3s; display: flex; flex-direction: column;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-card .f-img { height: 190px; overflow: hidden; }
.feature-card .f-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.feature-card:hover .f-img img { transform: scale(1.06); }
.feature-card .f-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.f-icon {
  width: 44px; height: 44px; border-radius: 12px; background: rgba(111, 78, 55, .1);
  color: var(--coffee); font-family: "Noto Serif SC", serif; font-size: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: -44px; margin-bottom: 14px; border: 3px solid #fff; position: relative; z-index: 1;
}
.feature-card h3 { font-size: 20px; color: var(--coffee-dark); margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--muted); flex: 1; }
.f-link { margin-top: 14px; color: var(--coffee); font-size: 14px; font-weight: 600; }
.f-link:hover { color: var(--gold); }

/* ---------------- 品牌故事 ---------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .s-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.split .s-img img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: 34px; color: var(--coffee-dark); margin-bottom: 18px; }
.split p { color: var(--muted); margin-bottom: 14px; }
.stats { display: flex; gap: 40px; margin-top: 26px; }
.stats .num { font-family: "Noto Serif SC", serif; font-size: 34px; color: var(--coffee); font-weight: 700; }
.stats .lbl { font-size: 13px; color: var(--muted); }

/* ---------------- 电影 / 画展卡片 ---------------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.m-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: all .3s;
}
.m-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.m-card .m-img { height: 170px; overflow: hidden; position: relative; }
.m-card .m-img img { width: 100%; height: 100%; object-fit: cover; }
.m-time {
  position: absolute; left: 12px; bottom: 12px; background: rgba(43, 33, 24, .85); color: #fff;
  font-size: 12px; padding: 4px 12px; border-radius: 999px;
}
.m-card .m-body { padding: 18px; }
.m-card h3 { font-size: 17px; color: var(--coffee-dark); margin-bottom: 6px; }
.m-card p { font-size: 13px; color: var(--muted); }

/* ---------------- 页头横幅 ---------------- */
.page-hero {
  background: linear-gradient(rgba(43, 33, 24, .72), rgba(43, 33, 24, .72)) var(--coffee-dark);
  background-size: cover; background-position: center;
  color: #fff; padding: 72px 0; text-align: center;
}
.page-hero .eyebrow { color: var(--gold); letter-spacing: 4px; font-size: 13px; margin-bottom: 10px; }
.page-hero h1 { font-size: 40px; }
.page-hero p { opacity: .85; margin-top: 10px; }

/* ---------------- 菜单页 ---------------- */
.intro-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-bottom: 48px; }
.intro-card { display: flex; gap: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.intro-card img { width: 170px; object-fit: cover; }
.intro-card .i-body { padding: 22px 22px 22px 0; }
.intro-card h3 { color: var(--coffee-dark); font-size: 20px; margin-bottom: 8px; }
.intro-card p { font-size: 13px; color: var(--muted); }

.tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 38px; flex-wrap: wrap; }
.tab {
  padding: 10px 26px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
  cursor: pointer; font-size: 15px; transition: all .2s; font-family: inherit; color: var(--ink);
}
.tab:hover { border-color: var(--coffee); color: var(--coffee); }
.tab.active { background: var(--coffee); color: #fff; border-color: var(--coffee); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: all .3s; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.p-img { position: relative; height: 180px; overflow: hidden; }
.p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .p-img img { transform: scale(1.06); }
.p-cat {
  position: absolute; top: 12px; left: 12px; background: rgba(255, 253, 248, .92); color: var(--coffee);
  font-size: 12px; padding: 3px 12px; border-radius: 999px; font-weight: 600;
}
.p-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.p-body h3 { font-size: 18px; color: var(--coffee-dark); margin-bottom: 6px; }
.p-desc { font-size: 13px; color: var(--muted); flex: 1; margin-bottom: 14px; }
.p-foot { display: flex; align-items: center; justify-content: space-between; }
.price { font-family: "Noto Serif SC", serif; font-size: 22px; color: var(--coffee); font-weight: 700; }

/* ---------------- 画展页 ---------------- */
.ex-item {
  display: grid; grid-template-columns: 460px 1fr; gap: 44px; align-items: center;
  padding: 44px 0; border-bottom: 1px solid var(--line);
}
.ex-item:last-child { border-bottom: none; }
.ex-item:nth-child(even) .ex-img { order: 2; }
.ex-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); height: 320px; }
.ex-img img { width: 100%; height: 100%; object-fit: cover; }
.ex-tag { display: inline-block; background: var(--gold); color: #fff; font-size: 12px; padding: 4px 14px; border-radius: 999px; margin-bottom: 14px; }
.ex-tag.normal { background: var(--green); }
.ex-info h2 { font-size: 28px; color: var(--coffee-dark); margin-bottom: 10px; }
.ex-meta { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.ex-meta b { color: var(--coffee); }
.ex-info p { color: var(--muted); font-size: 15px; }

.notice { background: rgba(201, 162, 39, .08); border: 1px dashed var(--gold); border-radius: var(--radius); padding: 26px 30px; margin-top: 40px; }
.notice h3 { color: var(--coffee-dark); margin-bottom: 10px; }
.notice li { font-size: 14px; color: var(--muted); padding-left: 18px; position: relative; }
.notice li::before { content: '·'; position: absolute; left: 4px; color: var(--gold); font-weight: 700; }

/* ---------------- 表单 ---------------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; margin-bottom: 7px; color: var(--coffee-dark); font-weight: 600; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: #fff; transition: border .2s; color: var(--ink);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--coffee); box-shadow: 0 0 0 3px rgba(111, 78, 55, .12); }
.form-group textarea { resize: vertical; min-height: 84px; }
.form-tip { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }
.form-tip a { color: var(--coffee); font-weight: 600; }

/* ---------------- 座位图 ---------------- */
.seat-map { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; margin: 18px 0 6px; }
.seat {
  aspect-ratio: 1; border-radius: 10px; border: 2px solid var(--line); background: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .2s; color: var(--coffee-dark);
}
.seat:hover { border-color: var(--coffee); }
.seat.occupied { background: #efe6da; color: #b7a894; border-color: transparent; cursor: not-allowed; text-decoration: line-through; }
.seat.selected { background: var(--coffee); color: #fff; border-color: var(--coffee); transform: scale(1.06); }
.seat-legend { display: flex; gap: 22px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.seat-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 2px solid var(--line); background: #fff; }
.dot.full { background: #efe6da; border-color: transparent; }
.dot.sel { background: var(--coffee); border-color: var(--coffee); }

.area-info { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.area-info h3 { color: var(--coffee-dark); font-size: 19px; }
.area-info p { font-size: 13px; color: var(--muted); }

/* ---------------- 预约记录 ---------------- */
.resv-item, .order-item {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 14px; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
}
.resv-item .r-main h4, .order-item h4 { color: var(--coffee-dark); font-size: 17px; margin-bottom: 4px; }
.r-meta, .o-meta { font-size: 13px; color: var(--muted); }
.badge-status { display: inline-block; font-size: 12px; padding: 3px 12px; border-radius: 999px; background: rgba(93, 122, 93, .12); color: var(--green); font-weight: 600; }

/* ---------------- 购物车 ---------------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 30px; align-items: start; }
.cart-item {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 18px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 14px;
}
.cart-item img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; }
.ci-info h4 { color: var(--coffee-dark); font-size: 17px; }
.ci-cat { font-size: 12px; color: var(--muted); }
.ci-price { color: var(--coffee); font-weight: 700; font-family: "Noto Serif SC", serif; margin-top: 4px; }
.ci-ops { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.qty-ctrl { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty-ctrl button { width: 32px; height: 32px; border: none; background: #fff; font-size: 17px; cursor: pointer; color: var(--coffee); }
.qty-ctrl button:hover { background: var(--cream); }
.qty-ctrl span { min-width: 38px; text-align: center; font-weight: 600; }
.link-del { font-size: 13px; color: var(--muted); background: none; border: none; cursor: pointer; }
.link-del:hover { color: #b3402e; }

.summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: sticky; top: 90px; }
.summary h3 { color: var(--coffee-dark); margin-bottom: 16px; font-size: 20px; }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); padding: 6px 0; }
.sum-total { border-top: 1px dashed var(--line); margin-top: 12px; padding-top: 14px; display: flex; justify-content: space-between; align-items: baseline; }
.sum-total .t-price { font-family: "Noto Serif SC", serif; font-size: 28px; color: var(--coffee); font-weight: 700; }
.summary .form-group { margin-top: 14px; margin-bottom: 12px; }
.radio-row { display: flex; gap: 16px; font-size: 14px; }
.radio-row label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 400; }

.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty .e-icon { font-family: "Noto Serif SC", serif; font-size: 54px; color: var(--line); margin-bottom: 12px; }

/* ---------------- 订单菜品行 ---------------- */
.o-lines { margin-top: 8px; font-size: 13px; color: var(--muted); }
.o-lines span { display: inline-block; background: var(--cream); border-radius: 6px; padding: 2px 10px; margin: 3px 6px 0 0; }

/* ---------------- 登录注册 ---------------- */
.auth-wrap { max-width: 440px; margin: 0 auto; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.auth-tab { flex: 1; text-align: center; padding: 14px; font-size: 17px; cursor: pointer; color: var(--muted); border-bottom: 3px solid transparent; font-family: "Noto Serif SC", serif; }
.auth-tab.active { color: var(--coffee); border-color: var(--coffee); font-weight: 700; }
.auth-illust { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); height: 100%; min-height: 420px; }
.auth-illust img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- 留言墙 ---------------- */
.msg-input-card { max-width: 720px; margin: 0 auto 46px; }
.note-grid { columns: 4 240px; column-gap: 20px; }
.note {
  break-inside: avoid; border-radius: 6px 18px 6px 6px; padding: 20px 22px; margin-bottom: 20px;
  box-shadow: var(--shadow); position: relative; transform: rotate(var(--rot, 0deg));
  transition: transform .25s;
}
.note:hover { transform: rotate(0deg) scale(1.03); }
.note::before {
  content: ''; position: absolute; top: -9px; left: 50%; transform: translateX(-50%) rotate(-3deg);
  width: 74px; height: 20px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(0, 0, 0, .05);
}
.note .n-text { font-size: 15px; line-height: 1.8; margin-bottom: 14px; }
.note .n-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; opacity: .75; }
.note .n-like { background: none; border: none; cursor: pointer; font-size: 13px; color: inherit; font-family: inherit; }
.note .n-like:hover { transform: scale(1.1); }
.note.yellow { background: #fff3c4; color: #6b5b1e; }
.note.pink { background: #ffdfe0; color: #7c4044; }
.note.blue { background: #dceefb; color: #35566b; }
.note.green { background: #e0f1de; color: #42603f; }
.note.purple { background: #ece4f7; color: #55437a; }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; left: 50%; top: 84px; transform: translate(-50%, -16px);
  background: var(--coffee-deep); color: #fff; padding: 12px 28px; border-radius: 999px;
  font-size: 14px; opacity: 0; transition: all .3s; z-index: 999; box-shadow: var(--shadow-lg);
  pointer-events: none; max-width: 80vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 页脚 ---------------- */
.site-footer { background: var(--coffee-deep); color: #cdbfae; padding: 56px 0 26px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.site-footer h4 { color: #fff; font-size: 17px; margin-bottom: 16px; }
.site-footer .f-logo { font-family: "Noto Serif SC", serif; font-size: 24px; color: #fff; margin-bottom: 12px; }
.site-footer p, .site-footer li { font-size: 14px; margin-bottom: 8px; }
.site-footer a:hover { color: var(--gold); }
.copyright { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 22px; text-align: center; font-size: 13px; color: #8f8172; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .ex-item { grid-template-columns: 1fr; gap: 22px; }
  .ex-item:nth-child(even) .ex-img { order: 0; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .intro-duo { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 34px; }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 28px; }
  .feature-grid, .card-grid, .product-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--paper); flex-direction: column; padding: 14px; gap: 4px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .hello { display: none; }
  .seat-map { grid-template-columns: repeat(4, 1fr); }
  .intro-card img { width: 120px; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item img { width: 72px; height: 72px; }
  .ci-ops { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}
