/* 龍鹤堂 Vue rebuild — styles copied from live site's visual design */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Red Hat Display", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", 微软雅黑, sans-serif;
  color: #222453;
  background: #fff;
  font-size: 16px;
  line-height: 1.75;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; cursor: pointer; }
button { font-family: inherit; cursor: pointer; }

/* ---------- sidebar ---------- */
.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: 253px;
  background: #fff; z-index: 100; overflow: visible;
  padding: 60px 24px 40px;
}
.side-logo { display: block; margin: 30px auto 60px; width: 170px; }
.side-nav { list-style: none; text-align: center; }
.side-nav > li { margin: 26px 0; position: relative; }
.side-nav a { color: #070812; font-size: 16px; }
.side-nav a:hover, .side-nav a.active { opacity: .65; }
.folder-label { color: #070812; font-size: 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.folder-arrow { font-size: 12px; transition: transform .2s; display: inline-block; }
.folder-arrow.open { transform: rotate(90deg); }
.folder:hover .folder-arrow, .folder-label:hover .folder-arrow { transform: rotate(90deg); }
/* 原站同款：悬停弹出白色下拉面板；点击后锁定展开 */
.folder-menu {
  display: none;
  position: absolute; left: calc(100% + 6px); top: -16px; z-index: 300;
  background: #fff; border: 1px solid #eee; box-shadow: 0 3px 14px rgba(0,0,0,.12);
  list-style: none; padding: 14px 0; margin: 0; min-width: 132px; text-align: left;
}
.folder:hover .folder-menu, .folder-menu.force-open { display: block; }
.folder-menu li { margin: 0; padding: 12px 26px; }
.folder-menu a { font-size: 15px; color: #070812; white-space: nowrap; }
.folder-menu a:hover { opacity: .6; }
.side-utils { margin-top: 70px; text-align: center; }
.side-utils .util {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin: 24px 0; color: #070812; font-size: 16px; cursor: pointer;
}
.side-utils .util:hover { opacity: .65; }
.side-utils svg { width: 17px; height: 17px; fill: #070812; }

/* ---------- main ---------- */
.main { margin-left: 253px; min-height: 100vh; display: flex; flex-direction: column; }
.page-body { flex: 1; }

/* ---------- home slider ---------- */
.slider { position: relative; height: 440px; overflow: hidden; background: #111; }
.slider .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.slider .slide.on { opacity: 1; }
.slider .slide img { width: 100%; height: 100%; object-fit: cover; }
.slider .arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: #fff; font-size: 46px; line-height: 1;
  padding: 10px 14px; opacity: .85; text-shadow: 0 1px 6px rgba(0,0,0,.5); z-index: 5;
}
.slider .arrow:hover { opacity: 1; }
.slider .arrow.prev { left: 6px; }
.slider .arrow.next { right: 6px; }
.slider .dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; z-index: 5; }
.slider .dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; }
.slider .dots i.on { background: #fff; }

/* ---------- generic content sections ---------- */
.content-wrap { max-width: 1010px; margin: 0 auto; padding: 45px 40px 60px; width: 100%; }
.sec-white { background: #fff; }
.sec-gray { background: #f5f5f5; }
.bordered-img { border: 1px solid #e5e5e5; padding: 8px; background: #fff; }
.bordered-img img { width: 100%; }

.blk-h1 { font-size: 30px; color: #222453; margin: 30px 0 14px; font-weight: 700; }
.blk-h2 { font-size: 26px; color: #222453; margin: 28px 0 12px; font-weight: 700; }
.blk-h3 { font-size: 21px; color: #222453; margin: 26px 0 10px; font-weight: 700; }
.blk-h4 { font-size: 18px; color: #222453; margin: 20px 0 8px; font-weight: 700; }
.blk-p { font-size: 16px; color: #222453; margin: 10px 0; }
.blk-img { margin: 22px auto; }

/* ---------- home ---------- */
.home-intro { padding: 55px 0 10px; }
.home-intro .frame { border: 1px solid #e5e5e5; padding: 8px; background: #fff; }
.home-intro p { margin-top: 34px; font-size: 16px; text-align: justify; }
.profile { display: flex; gap: 34px; margin: 60px 0 30px; align-items: stretch; }
.profile img { width: 300px; object-fit: cover; align-self: flex-start; }
.profile .card { background: #f7f7f7; padding: 40px 44px; flex: 1; }
.profile .card h3 { font-size: 20px; margin-bottom: 22px; }
.profile .card p { font-size: 16px; text-align: justify; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 40px 0 20px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.sec-title { text-align: center; font-size: 25px; color: #222453; margin: 60px 0 4px; font-weight: 700; }
.sec-sub { text-align: center; font-size: 18px; color: #8a8fa8; margin-bottom: 30px; }
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-top: 20px; }
.service { background: #fff; }
.service img { width: 100%; }
.service h4.zh { font-size: 18px; text-align: center; margin: 20px 0 2px; color: #1d2023; font-weight: 700; }
.service h4.en { font-size: 15px; text-align: center; margin: 0 0 12px; color: #1d2023; font-weight: 400; opacity: .85; }
.service p.desc { font-size: 15px; text-align: center; padding: 0 12px; }
.service p.price { text-align: center; font-size: 18px; margin-top: 14px; }
.service p.note { text-align: center; font-size: 14px; margin-bottom: 8px; }
.process { max-width: 760px; margin: 20px auto 30px; }
.process h4 { font-size: 18px; margin: 24px 0 6px; }
.process p { font-size: 15px; }

/* ---------- footer ---------- */
.footer { background: #f5f5f5; text-align: center; padding: 34px 20px; margin-top: 60px; }
.footer p { font-size: 15px; color: #222453; line-height: 1.9; }

/* ---------- shop (dark) ---------- */
.dark-page { background: #0d0d0d; min-height: 100vh; padding: 50px 0 70px; }
.shop-inner { max-width: 880px; margin: 0 auto; padding: 0 34px; }
.product { display: flex; gap: 30px; margin-bottom: 58px; }
.product .p-img { width: 135px; flex-shrink: 0; align-self: flex-start; }
.product .p-img img { width: 135px; height: 135px; object-fit: cover; }
.product .p-body { flex: 1; }
.product h3 { font-size: 17px; font-weight: 400; color: #2b3d6b; margin-bottom: 8px; }
.product .p-price { color: #4054b2; font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.product .p-note { color: #2b3d6b; font-size: 15px; margin-bottom: 20px; }
.product .p-row { border-bottom: 1px solid #cfcfcf; padding: 10px 2px; display: flex; justify-content: space-between; align-items: center; color: #e8e8e8; font-size: 15px; }
.product select {
  background: transparent; color: #ddd; border: none; font-size: 15px;
  padding: 4px 6px; min-width: 160px; outline: none;
}
.product select option { color: #222; background: #fff; }
.qty { display: flex; align-items: center; gap: 26px; }
.qty button { background: none; border: none; color: #fff; font-size: 22px; padding: 0 6px; }
.add-cart-btn {
  width: 100%; margin-top: 26px; background: #3b4a8c; color: #fff; border: none;
  font-size: 17px; font-weight: 700; padding: 13px 0; letter-spacing: 2px;
}
.add-cart-btn:hover { background: #46589f; }

/* ---------- member (dark) ---------- */
.member-tabs { display: flex; justify-content: center; gap: 34px; border-bottom: 1px solid #444; margin: 10px auto 40px; max-width: 880px; }
.member-tabs span { color: #999; font-size: 16px; padding: 10px 2px 12px; cursor: pointer; }
.member-tabs span.on { color: #4054b2; border-bottom: 2px solid #4054b2; }
.post-grid { max-width: 880px; margin: 0 auto; padding: 0 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 34px 40px; }
.post-card { cursor: pointer; text-align: center; }
.post-card img { width: 100%; aspect-ratio: 1.05; object-fit: cover; background: #fff; }
.post-card h4 { color: #2b3d6b; font-size: 16px; font-weight: 400; margin-top: 16px; }
.post-card .date { color: #4054b2; font-size: 15px; margin-top: 4px; }

/* ---------- cart ---------- */
.cart-wrap { max-width: 760px; margin: 0 auto; padding: 60px 30px; }
.cart-wrap h2 { font-size: 24px; margin-bottom: 30px; }
.cart-item { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e5e5e5; padding: 16px 0; gap: 16px; }
.cart-item .ci-name { flex: 1; }
.cart-item .ci-name small { color: #888; margin-left: 8px; }
.cart-item .remove { background: none; border: none; color: #b33; font-size: 14px; }
.cart-empty { color: #888; text-align: center; padding: 60px 0; }
.checkout-btn {
  width: 100%; margin-top: 34px; background: #3b4a8c; color: #fff; border: none;
  font-size: 17px; font-weight: 700; padding: 13px 0; letter-spacing: 2px;
}

/* ---------- login ---------- */
.login-wrap { max-width: 400px; margin: 80px auto; padding: 0 20px; }
.login-card { border: 1px solid #e5e5e5; padding: 44px 40px; background: #fff; }
.login-card h2 { text-align: center; font-size: 22px; margin-bottom: 8px; }
.login-card .hint { text-align: center; color: #b33; font-size: 14px; min-height: 22px; margin-bottom: 14px; }
.login-card .hint.info { color: #3b4a8c; }
.login-card input {
  width: 100%; border: 1px solid #ddd; padding: 11px 12px; font-size: 15px;
  margin-bottom: 16px; outline: none; font-family: inherit;
}
.login-card input:focus { border-color: #3b4a8c; }
.login-btn {
  width: 100%; background: #3b4a8c; color: #fff; border: none;
  font-size: 16px; font-weight: 700; padding: 12px 0; letter-spacing: 4px;
}

/* ---------- toast ---------- */
.toast {
  position: fixed; top: 34px; left: 50%; transform: translateX(-50%);
  background: rgba(20, 22, 40, .92); color: #fff; padding: 12px 26px;
  border-radius: 4px; font-size: 15px; z-index: 999; letter-spacing: 1px;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .sidebar { position: static; width: 100%; padding: 24px 16px; }
  .side-logo { margin: 0 auto 20px; width: 140px; }
  .main { margin-left: 0; }
  .folder-menu { position: static; box-shadow: none; border: none; text-align: center; padding: 4px 0; }
  .folder-menu li { padding: 8px 0; }
  .profile { flex-direction: column; }
  .services { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: 1fr; }
  .product { flex-direction: column; }
}
