:root {
  --paper: #f6f1e9;
  --paper-deep: #eee5d8;
  --ink: #28231f;
  --muted: #746b63;
  --accent: #8a3f35;
  --white: #fffdf9;
  --line: rgba(40,35,31,.12);
  --shadow: 0 7px 20px rgba(55,42,34,.055);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: -apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1280px, calc(100% - 28px)); margin: 0 auto; }

/* v1.0.3: 少内容页面，核心是紧凑连续，不用大留白。 */
.site-header { width: min(1280px, calc(100% - 28px)); height: 62px; margin: 0 auto; display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; display: grid; place-items: center; color: var(--white); background: var(--accent); font-family: serif; font-size: 18px; }
.brand-copy h1 { font-family: "Songti SC","STSong",serif; font-weight: 600; margin: 0 0 1px; font-size: 21px; letter-spacing: .055em; }
.brand-copy p { margin: 0; color: var(--muted); font-size: 11px; letter-spacing: .055em; }

/* 活动图不再做巨型 hero。桌面上与联系入口并排，整体只占一个紧凑横条。 */
.top-strip { display: grid; grid-template-columns: minmax(0, 4.3fr) minmax(230px, 1fr); gap: 10px; align-items: stretch; margin: 0 0 14px; }
.activity-card { min-width: 0; height: 160px; overflow: hidden; border-radius: 14px; background: var(--paper-deep); box-shadow: var(--shadow); }
.activity-card img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.quick-contact { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,253,249,.7); padding: 15px 14px; overflow: hidden; }
.quick-contact-title { font-family: "Songti SC","STSong",serif; font-size: 20px; font-weight: 600; margin-bottom: 3px; }
.quick-contact-note { color: var(--muted); font-size: 11px; line-height: 1.5; margin-bottom: 11px; }
.quick-contact-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.contact-pill { min-width: 66px; height: 30px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: 11px; white-space: nowrap; }
.contact-pill.primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.wechat-qr { position: absolute; right: 12px; bottom: 12px; width: 56px; height: 56px; object-fit: cover; padding: 3px; border-radius: 8px; background: #fff; }

.styles-section { padding: 0 0 14px; }
.section-heading { height: 44px; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 8px; }
.section-heading > div { display: flex; align-items: baseline; gap: 10px; }
.section-heading h2 { font-family: "Songti SC","STSong",serif; font-weight: 600; font-size: 24px; margin: 0; }
.section-heading span { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .09em; }
.section-heading b { color: var(--muted); font-size: 11px; font-weight: 500; }

.style-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.style-card { min-width: 0; background: var(--white); border: 1px solid rgba(255,255,255,.78); border-radius: 13px; overflow: hidden; box-shadow: var(--shadow); }
.carousel { position: relative; background: var(--paper-deep); }
.carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track img, .empty-image { flex: 0 0 100%; width: 100%; height: 250px; object-fit: cover; object-position: center; scroll-snap-align: start; }
.empty-image { display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.carousel-dots { position: absolute; left: 0; right: 0; bottom: 7px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.carousel-dots button { pointer-events: auto; border: 0; width: 5px; height: 5px; border-radius: 50%; padding: 0; background: rgba(255,255,255,.58); }
.carousel-dots button.active { width: 15px; border-radius: 10px; background: #fff; }
.style-info { height: 48px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.style-info h3 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: "Songti SC","STSong",serif; font-size: 16px; margin: 0; font-weight: 600; }
.price { flex: 0 0 auto; white-space: nowrap; color: var(--accent); font-size: 14px; font-weight: 700; }
footer { text-align: center; color: var(--muted); font-size: 10px; height: 32px; line-height: 32px; letter-spacing: .07em; }

/* admin：沿用 v1.0.1 功能与布局 */
.admin-body { background: #f4f2ef; }
.admin-topbar { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.9); backdrop-filter: blur(14px); border-bottom: 1px solid #e8e2db; display: flex; justify-content: space-between; gap: 16px; padding: 16px max(20px, calc((100% - 1000px)/2)); }
.admin-topbar > div { display: flex; gap: 14px; align-items: center; }
.admin-topbar a { font-size: 13px; color: var(--accent); }
.muted { color: #888078; font-size: 13px; }
.admin-shell { width: min(1000px, calc(100% - 28px)); margin: 26px auto 60px; display: grid; gap: 20px; }
.admin-panel { background: #fff; border: 1px solid #ebe6df; border-radius: 18px; padding: 22px; box-shadow: 0 10px 30px rgba(60,50,40,.05); }
.admin-section-title { display: flex; justify-content: space-between; gap: 14px; align-items: start; margin-bottom: 18px; }
.admin-section-title > div { display: flex; align-items: center; gap: 10px; }
.admin-section-title span { font-size: 11px; color: var(--accent); font-weight: 800; }
.admin-section-title h2 { margin: 0; font-size: 19px; }
.admin-section-title p { margin: 2px 0 0; color: #8a837c; font-size: 12px; }
label { display: grid; gap: 7px; font-size: 13px; font-weight: 600; color: #4b4641; }
input[type="text"], input[type="password"], input[type="number"], input[type="url"], input:not([type]) { width: 100%; min-height: 42px; border: 1px solid #ddd6ce; border-radius: 10px; padding: 9px 11px; font: inherit; background: #fff; outline: none; }
input:focus { border-color: #ad786f; box-shadow: 0 0 0 3px rgba(138,63,53,.08); }
input[type="file"] { font-size: 12px; font-weight: 400; }
.form-grid { display: grid; gap: 15px; }
.form-two { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.check-label { display: flex; flex-direction: row; align-items: center; gap: 8px; align-self: end; min-height: 42px; }
.primary-btn, .danger-btn { border: 0; border-radius: 10px; padding: 11px 16px; font-weight: 700; cursor: pointer; width: fit-content; }
.primary-btn { color: white; background: var(--accent); }
.danger-btn { color: #9c392f; background: #fff0ed; margin-top: 12px; }
.text-link { color: var(--accent); font-size: 13px; }
.admin-preview { object-fit: cover; border-radius: 12px; border: 1px solid #e5ded6; }
.banner-preview { width: min(440px,100%); aspect-ratio: 16/5; }
.qr-preview { width: 130px; height: 130px; margin: 14px 0; }
.style-editor { border: 1px solid #e8e2dc; border-radius: 14px; padding: 0 15px; background: #fdfcfb; }
.style-editor + .style-editor { margin-top: 10px; }
.style-editor summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; padding: 15px 0; font-weight: 700; }
.style-editor summary::-webkit-details-marker { display: none; }
.style-editor summary small { color: #8a837c; font-weight: 500; }
.style-edit-form { display: grid; gap: 14px; padding-bottom: 2px; }
.image-manager { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; }
.image-tile { display: block; font-weight: 500; font-size: 11px; }
.image-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; margin-bottom: 6px; }
.new-style-box { margin-top: 18px; padding: 18px; border-radius: 14px; background: #f7f3ee; }
.new-style-box h3 { margin: 0 0 15px; font-size: 16px; }
.new-style-box form { display: grid; gap: 14px; }
.flash { padding: 11px 13px; border-radius: 10px; font-size: 13px; }
.flash.success { background: #e9f6ee; color: #28613b; }
.flash.error { background: #fff0ed; color: #9c392f; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(420px,100%); display: grid; gap: 16px; }
.login-card h1 { margin: 0; font-size: 23px; }
.login-card p { margin: -8px 0 2px; }

@media (max-width: 900px) {
  .top-strip { grid-template-columns: minmax(0, 3fr) minmax(205px, 1fr); }
  .activity-card { height: 145px; }
  .carousel-track img, .empty-image { height: 220px; }
}
@media (max-width: 640px) {
  .container, .site-header { width: calc(100% - 16px); }
  .site-header { height: 54px; }
  .brand-mark { width: 32px; height: 32px; flex-basis: 32px; font-size: 16px; }
  .brand-copy h1 { font-size: 18px; }
  .brand-copy p { font-size: 10px; }
  .top-strip { display: block; margin-bottom: 9px; }
  .activity-card { height: 112px; border-radius: 11px; margin-bottom: 7px; }
  .quick-contact { border-radius: 11px; padding: 9px 10px; display: flex; align-items: center; gap: 8px; }
  .quick-contact-title { font-size: 16px; margin: 0; white-space: nowrap; }
  .quick-contact-note { display: none; }
  .quick-contact-actions { flex: 1; justify-content: flex-end; gap: 4px; }
  .contact-pill { min-width: 0; height: 27px; padding: 0 8px; font-size: 10px; }
  .wechat-qr { display: none; }
  .section-heading { height: 36px; margin-bottom: 6px; }
  .section-heading h2 { font-size: 20px; }
  .section-heading span, .section-heading b { font-size: 10px; }
  .style-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; }
  .style-card { border-radius: 10px; }
  .carousel-track img, .empty-image { height: 190px; }
  .style-info { height: 43px; padding: 0 9px; }
  .style-info h3 { font-size: 13px; }
  .price { font-size: 12px; }
  footer { height: 28px; line-height: 28px; }
  .form-two { grid-template-columns: 1fr; }
  .image-manager { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .admin-section-title { display: block; }
  .admin-section-title p { margin-top: 8px; }
}
