:root {
  color-scheme: light;
  --text: #313233;
  --muted: rgba(32, 33, 38, 0.56);
  --panel: #fff;
  --page: #f1f2f6;
  --gold: #a77a00;
  --blue: #2f6fea;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #8b8b8b transparent; }
html::-webkit-scrollbar { width: 6px; }
html::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb { border-radius: 3px; background: #8b8b8b; }
body {
  margin: 0;
  min-width: 1180px;
  color: var(--text);
  font: 14px/20px -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  background: var(--page);
}
button, a { font: inherit; }
button { color: inherit; }
site-header, site-sidebar, site-footer { display: contents; }

.topbar {
  position: sticky;
  z-index: 100;
  top: 0;
  height: 72px;
  display: flex;
  align-items: stretch;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.025);
}
.brand {
  width: 319px;
  padding: 0 0 0 24px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
.brand-mark { position: relative; width: 34px; height: 34px; flex: none; }
.brand-mark i { position: absolute; width: 8px; height: 8px; border-radius: 50%; }
.brand-mark i:nth-child(1) { left: 0; top: 13px; background: #f9a23b; }
.brand-mark i:nth-child(2) { left: 8px; top: 4px; background: #26b4e6; }
.brand-mark i:nth-child(3) { left: 19px; top: 1px; background: #36b45e; }
.brand-mark i:nth-child(4) { left: 24px; top: 12px; background: #20bdd0; }
.brand-mark i:nth-child(5) { left: 16px; top: 15px; background: #2f7ddd; }
.brand-mark i:nth-child(6) { left: 5px; top: 24px; background: #f1ba35; }
.brand-mark i:nth-child(7) { left: 18px; top: 26px; background: #ef744d; }

.primary-nav { display: flex; height: 72px; flex: 1; align-items: stretch; gap: 34px; white-space: nowrap; }
.primary-nav a {
  position: relative;
  display: flex;
  align-items: center;
  color: #313233;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}
.primary-nav a:hover { color: var(--gold); }
.primary-nav a.active { color: var(--gold); }
.primary-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #e2ad12; }
.top-actions { height: 72px; display: flex; align-items: center; gap: 8px; padding-right: 20px; white-space: nowrap; }
.top-button { height: 38px; min-width: 100px; padding: 0 18px; border: 1px solid #dde0e7; border-radius: 5px; background: #fff; cursor: pointer; }
.top-button:hover, .outline-button:hover { border-color: #96b7ff; color: #2a69db; }
.icon-button { width: 30px; height: 38px; border: 0; background: transparent; font-size: 21px; cursor: pointer; }
.grid-icon { font-size: 18px; }
.top-divider { width: 1px; height: 26px; background: #e8e9ed; margin: 0 10px; }
.user-button { height: 54px; min-width: 127px; border: 0; background: transparent; display: flex; align-items: center; justify-content: space-between; text-align: left; cursor: pointer; }
.user-button span { display: grid; gap: 1px; }
.user-button strong { font-weight: 400; line-height: 22px; }
.user-button small { color: rgba(32, 33, 38, 0.4); }
.user-button b { margin-left: 12px; color: #9399a6; }

.capsule-nav {
  position: fixed;
  z-index: 90;
  right: calc(100vw - max(190px, calc((100vw - 1400px) / 2)) + 12px);
  top: 198px;
  width: 82px;
  padding: 4px 6px 8px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .88);
  box-shadow: none;
  backdrop-filter: blur(8px);
  transition: width .25s ease, box-shadow .25s ease;
}
.capsule-toggle { position: absolute; right: -7px; top: -7px; z-index: 2; width: 20px; height: 20px; padding: 0; border: 1px solid #e4e5e8; border-radius: 50%; display: grid; place-items: center; color: #72757b; background: #fff; box-shadow: 0 2px 7px rgba(0,0,0,.08); cursor: pointer; }
.toggle-arrow { font-size: 15px; line-height: 1; transition: transform .25s ease; }
.toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.capsule-links { display: grid; gap: 3px; }
.capsule-link { position: relative; width: 70px; height: 58px; margin: 0 auto; padding: 5px 2px; border: 0; border-radius: 9px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #33363b; background: transparent; cursor: pointer; white-space: nowrap; font-size: 12px; line-height: 17px; transition: color .18s ease, background .18s ease; }
.capsule-link i { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; color: #202329; font-style: normal; }
.capsule-icon { grid-area: 1 / 1; width: 23px; height: 23px; display: block; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.capsule-icon.icon-solid { display: none; fill: currentColor; stroke: none; }
.capsule-link:hover { color: #16181c; background: #f7f7f7; }
.capsule-link.active { color: #111318; background: #f2f2f2; font-weight: 500; }
.capsule-link.active .icon-outline { display: none; }
.capsule-link.active .icon-solid { display: block; }
.capsule-link:nth-child(5) { margin-top: 12px; }
.capsule-link:nth-child(5)::before { content: ""; position: absolute; left: 10px; right: 10px; top: -8px; height: 1px; background: #ececec; }
.capsule-nav.collapsed { width: 42px; padding-inline: 3px; }
.capsule-nav.collapsed .capsule-link { width: 36px; height: 42px; padding: 0; }
.capsule-nav.collapsed .toggle-arrow { transform: rotate(180deg); }
.capsule-nav.collapsed .toggle-label, .capsule-nav.collapsed .capsule-link span { display: none; }
.capsule-nav.collapsed .capsule-link:nth-child(5) { margin-top: 10px; }

main {
  min-height: 1174px;
  background: url("../public/assets/campaign-bg.png") center top / 100% auto no-repeat, var(--page);
}
.blank-main { min-height: calc(100vh - 85px); }
.blank-page { min-width: 0; }
.business-shell {
  width: min(1400px, calc(100vw - 210px));
  margin-left: max(190px, calc((100vw - 1400px) / 2));
  margin-right: 20px;
  padding: 72px 0 100px;
}
.business-shell h1 { margin: 0 0 34px; color: #1f2228; font-size: 28px; line-height: 38px; font-weight: 500; }
.collection-shell { width: min(1400px, calc(100vw - 210px)); min-height: calc(100vh - 229px); margin-left: max(190px, calc((100vw - 1400px) / 2)); margin-right: 20px; padding: 72px 0 32px; display: flex; flex-direction: column; align-items: flex-start; }
.collection-shell h1 { margin: 0 0 26px; color: #1f2228; font-size: 28px; line-height: 38px; font-weight: 500; }
.create-collection { min-width: 126px; height: 42px; padding: 0 20px; border: 0; border-radius: 7px; color: #fff; background: #2f6fea; font-weight: 500; cursor: pointer; box-shadow: 0 7px 16px rgba(47,111,234,.2); transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.create-collection:hover { transform: translateY(-2px); background: #245fd1; box-shadow: 0 11px 22px rgba(47,111,234,.26); }
.create-collection:active { transform: translateY(0); }
.collection-tip { margin: 14px 0 0; padding: 10px 14px; border-left: 3px solid rgba(47,111,234,.38); border-radius: 0 6px 6px 0; color: #858a94; background: rgba(255,255,255,.44); font-size: 12px; line-height: 20px; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service-card {
  position: relative;
  height: 130px;
  padding: 20px 20px 20px 32px;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow: hidden;
  color: #24272c;
  background: rgba(255,255,255,.94);
  box-shadow: 0 7px 22px rgba(47, 59, 82, .065);
  text-align: left;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.service-card:hover { transform: translateY(-5px); border-color: rgba(47,111,234,.16); box-shadow: 0 16px 32px rgba(47, 59, 82, .13); }
.service-card.selected { border-color: rgba(47,111,234,.42); box-shadow: 0 14px 32px rgba(47,111,234,.16); }
.service-card:active { transform: translateY(-2px); }
.service-card:focus-visible { outline: 3px solid rgba(47,111,234,.22); outline-offset: 2px; }
.service-copy { min-width: 0; display: grid; gap: 14px; }
.service-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 19px; line-height: 26px; font-weight: 500; }
.service-copy small { color: #696d75; font-size: 14px; line-height: 20px; }
.service-visual { width: 122px; flex: 0 0 122px; display: grid; place-items: center; overflow: hidden; border-radius: 11px; background: linear-gradient(135deg, rgba(240,245,255,.84), rgba(255,255,255,.95)); }
.service-visual img { width: 100%; height: 100%; display: block; object-fit: cover; }
.service-collage { padding: 6px; background: linear-gradient(135deg, #f5f8ff, #fff); box-shadow: inset 0 0 0 1px rgba(47,111,234,.06); }
.service-collage img { border-radius: 7px; }
.page-shell {
  position: relative;
  width: min(1400px, calc(100vw - 210px));
  margin-left: max(190px, calc((100vw - 1400px) / 2));
  margin-right: 20px;
  padding-top: 64px;
}
.audit-alert {
  height: 36px;
  padding: 0 12px;
  border: 1px solid #f2d6d8;
  border-radius: 4px;
  background: #fff6f6;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-icon { width: 17px; height: 17px; display: inline-grid; place-items: center; border-radius: 50%; color: #fff; background: #e64646; font-weight: 700; line-height: 17px; }
.link-button { padding: 0; border: 0; color: #3879db; background: transparent; cursor: pointer; }

.campaign { display: flex; align-items: center; padding: 15px 65px; gap: 20px; cursor: pointer; }
.campaign > img { width: 96px; height: 72px; object-fit: contain; }
.campaign-copy h1 { margin: 0 0 14px; color: #a77a00; font-size: 30px; line-height: 38px; font-weight: 600; }
.campaign-copy h1 span { font-weight: 500; }
.campaign-copy p { margin: 0; color: #9d7714; font-size: 18px; line-height: 24px; }
.campaign-copy p i { display: inline-block; width: 1px; height: 16px; margin: 0 11px -2px; background: rgba(142, 104, 0, 0.45); }

.overview-grid { display: grid; grid-template-columns: 745px 635px; gap: 20px; height: 184px; }
.account-card, .news-card, .panel { border-radius: 12px; background: #fff; overflow: hidden; }
.account-card { position: relative; padding: 18px; }
.account-card h2 { margin: 0 0 7px; font-size: 24px; line-height: 30px; font-weight: 400; }
.account-id { display: inline-block; padding: 2px 7px; background: #f4f5f7; color: #555; font-size: 14px; line-height: 20px; }
.account-card h3 { margin: 6px 0; color: #5f6774; font-size: 14px; line-height: 24px; font-weight: 500; }
.account-card p { margin: 0; padding-right: 158px; line-height: 22px; }
.outline-button { position: absolute; right: 18px; bottom: 26px; width: 129px; height: 38px; display: flex; align-items: center; justify-content: center; box-sizing: border-box; border: 1px solid #d8dbe2; border-radius: 5px; background: #fff; color: inherit; text-decoration: none; cursor: pointer; }
.news-card { position: relative; background: #2862c9; color: #fff; }
.carousel { position: absolute; inset: 0; overflow: hidden; background: #2d70ec; cursor: pointer; }
.slides { position: absolute; inset: 0; }
.slides img { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: 0; transition: opacity 420ms ease; }
.slides img.active { opacity: 1; }
.carousel-dots { position: absolute; z-index: 2; left: 50%; bottom: 12px; display: flex; gap: 5px; transform: translateX(-50%); }
.carousel-dots button { width: 11px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(255,255,255,.3); cursor: pointer; transition: width .2s, background .2s; }
.carousel-dots button.active { width: 16px; background: #fff; }
.latest-news { position: absolute; z-index: 3; top: 0; right: 0; bottom: 0; width: 220px; padding: 13px 13px 10px; background: rgba(35, 83, 179, .94); }
.latest-news h2 { margin: 0 0 9px; font-size: 18px; line-height: 26px; color: #fff; }
.news-item { width: 100%; height: 28px; padding: 0; border: 0; display: grid; grid-template-columns: 18px 1fr 42px; align-items: center; gap: 2px; color: #fff; background: transparent; text-align: left; cursor: pointer; }
.news-item span { font-size: 11px; }
.news-item b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.news-item time { color: rgba(255,255,255,.72); text-align: right; }

.panel { margin-top: 20px; padding: 20px 24px 50px; }
.guide-panel { height: 190px; }
.panel-heading { height: 24px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.panel-heading h2 { margin: 0; font-size: 18px; line-height: 24px; color: #1f1f1f; }
.plain-action { border: 0; background: transparent; cursor: pointer; }
.plain-action b { margin-left: 8px; font-size: 20px; font-weight: 400; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(280px, 420px)); justify-content: start; gap: 16px; }
.guide-card { height: 102px; padding: 15px 20px; border-radius: 8px; }
.guide-card h3 { margin: 0 0 10px; font-size: 20px; line-height: 26px; font-weight: 600; }
.guide-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.guide-card-label { color: #303236; white-space: nowrap; }
.recharge-actions { display: flex; align-items: center; gap: 8px; }
.mini-action { display: inline-flex; align-items: center; justify-content: center; height: 30px; text-decoration: none; padding: 0 13px; border: 1px solid rgba(47, 111, 234, .3); border-radius: 5px; color: #2767c7; background: rgba(255,255,255,.72); cursor: pointer; white-space: nowrap; transition: border-color .18s ease, color .18s ease, background .18s ease; }
.mini-action:hover { border-color: #2f6fea; color: #1557bd; background: #fff; }
.recharge-action { border-color: #2f6fea; color: #fff; background: #2f6fea; }
.recharge-action:hover { color: #fff; background: #245fd1; }
.invite-action { min-width: 116px; }
.guide-link { padding: 0; border: 0; color: #303236; background: transparent; text-align: left; cursor: pointer; }
.guide-card > div .guide-link:last-child { text-align: center; }
.guide-link:hover { color: #2775de; }
.guide-blue { background: linear-gradient(105deg, #d8e5ff, #edf3ff); }
.guide-blue h3 { color: #2467c9; }
.guide-cyan { background: linear-gradient(105deg, #ddf5fb, #f0faff); }
.guide-cyan h3 { color: #168eb0; }
.guide-yellow { background: linear-gradient(105deg, #fff4ce, #fffbea); }
.guide-yellow h3 { color: #b28500; }
.guide-green { background: linear-gradient(105deg, #d6f6e7, #edfbf5); }
.guide-green h3 { color: #119065; }

.cases-panel { min-height: 490px; }
.transaction-filter { min-height: 78px; padding: 16px 20px; display: flex; align-items: flex-end; gap: 28px; border-radius: 6px; background: #f7f8fa; }
.transaction-filter label { display: grid; gap: 8px; color: #4a4d54; }
.transaction-filter label > span:first-child { font-weight: 500; }
.date-range { display: flex; align-items: center; gap: 10px; }
.date-range b { color: #8b9099; font-weight: 400; }
.transaction-filter input, .transaction-filter select { height: 36px; padding: 0 12px; border: 1px solid #d8dce5; border-radius: 4px; color: #31343a; background: #fff; outline: none; }
.transaction-filter input { width: 168px; }
.transaction-filter select { width: 160px; }
.transaction-filter input:focus, .transaction-filter select:focus { border-color: #4d86e8; box-shadow: 0 0 0 2px rgba(77, 134, 232, .12); }
.filter-actions { display: flex; gap: 10px; }
.filter-actions button { width: 76px; height: 36px; border-radius: 4px; cursor: pointer; }
.query-button { border: 1px solid #3475df; color: #fff; background: #3475df; }
.query-button:hover { background: #2868d4; }
.reset-button { border: 1px solid #d8dce5; color: #42464d; background: #fff; }
.reset-button:hover { border-color: #8eb0ea; color: #2868d4; }
.transaction-table-wrap { position: relative; margin-top: 20px; overflow-x: auto; border: 1px solid #e7e9ee; border-radius: 6px; }
.transaction-table { width: 100%; min-width: 920px; border-collapse: collapse; table-layout: fixed; }
.transaction-table th { height: 46px; padding: 0 20px; color: #5f6570; background: #f7f8fa; text-align: left; font-weight: 500; }
.transaction-table td { height: 54px; padding: 0 20px; border-top: 1px solid #eceef2; color: #34373d; }
.transaction-table th:nth-child(1), .transaction-table td:nth-child(1) { width: 23%; }
.transaction-table th:nth-child(2), .transaction-table td:nth-child(2) { width: 16%; }
.transaction-table th:nth-child(3), .transaction-table td:nth-child(3), .transaction-table th:nth-child(4), .transaction-table td:nth-child(4) { width: 16%; }
.transaction-table th:nth-child(5), .transaction-table td:nth-child(5) { width: 29%; }
.transaction-table tbody tr:hover { background: #f8fbff; }
.type-tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 13px; }
.type-tag.income { color: #169362; background: #e9f8f1; }
.type-tag.expense { color: #d36b22; background: #fff2e7; }
.transaction-empty { height: 216px; display: grid; place-items: center; color: #9298a3; background: #fff; }
.transaction-empty[hidden] { display: none; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-card { position: relative; min-width: 0; height: 383px; overflow: hidden; border-radius: 8px; background: #f2f5fa; cursor: pointer; outline: none; }
.case-cover { position: relative; height: 219px; overflow: hidden; background: #ddd; }
.case-cover > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.case-cover ul { position: absolute; left: 12px; bottom: 10px; display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.case-cover li { padding: 2px 7px; border-radius: 3px; color: #fff; background: rgba(77, 93, 106, .56); font-size: 12px; line-height: 20px; backdrop-filter: blur(3px); }
.case-card:nth-child(3) .case-cover li { background: rgba(39, 157, 166, .62); }
.case-content { padding: 12px 20px 10px; }
.case-content h3 { height: 50px; margin: 0 0 9px; overflow: hidden; font-size: 16px; line-height: 25px; font-weight: 600; }
.case-content dl { margin: 0 0 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.case-content dl div { min-width: 0; }
.case-content dt { overflow: hidden; color: #3e4450; font-size: 12px; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; }
.case-content dd { margin: 0; color: #17191d; font-size: 16px; line-height: 24px; font-weight: 600; }
.brand-row { height: 25px; display: flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; }
.brand-row > img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.brand-row b { color: #707782; }
.avatar-stack { display: flex; margin-right: 1px; }
.avatar-stack i { width: 20px; height: 20px; margin-left: -5px; border: 1px solid #fff; border-radius: 50%; background: linear-gradient(135deg, #6c9df0, #233c66); }
.avatar-stack i:first-child { margin-left: 0; background: url("../public/assets/avatar.jpg") center/cover; }
.avatar-stack i:nth-child(2) { background: linear-gradient(135deg, #f1c550, #dd5660); }
.avatar-stack i:nth-child(3) { background: linear-gradient(135deg, #70c3aa, #845eb1); }
.avatar-stack.orange i { background: linear-gradient(135deg, #f4933d, #d63c4e); }
.avatar-stack.teal i { background: linear-gradient(135deg, #1f9c9c, #2b3a6a); }
.charity-logo { display: inline-grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; color: #ff4c66; background: #fff; font-size: 20px; }
.case-detail { position: absolute; inset: 0; padding: 34px 28px; color: #fff; background: linear-gradient(160deg, rgba(24,44,71,.94), rgba(16,27,43,.96)); opacity: 0; transform: translateY(9px); transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.case-detail h3 { margin: 0 0 22px; font-size: 19px; line-height: 29px; }
.case-detail p { margin: 0; color: rgba(255,255,255,.84); line-height: 26px; }
.case-card:hover .case-cover > img, .case-card:focus .case-cover > img { transform: scale(1.025); }
.case-card:hover .case-detail, .case-card:focus .case-detail { opacity: 1; transform: translateY(0); }

.floating-tools { position: fixed; z-index: 50; right: -6px; top: 498px; width: 55px; overflow: hidden; border-radius: 7px 0 0 7px; background: #fff; box-shadow: 0 2px 10px rgba(20, 31, 47, .12); }
.floating-tools button { width: 55px; height: 98px; padding: 8px 0; border: 0; border-bottom: 1px solid #edf0f4; background: #fff; cursor: pointer; line-height: 22px; }
.floating-tools button:hover { color: #266bd4; background: #f7f9fc; }
.floating-tools span { display: block; margin: 0 auto 3px; font-size: 21px; line-height: 24px; }

footer { height: 100px; background: var(--page); }
.footer-inner { width: calc(100% - 104px); height: 85px; margin: 0 auto; border-top: 1px solid #e2e4e9; display: flex; align-items: center; justify-content: center; gap: 120px; color: rgba(32,33,38,.36); }
.footer-inner nav { display: flex; gap: 26px; }
.footer-inner button { padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; }
.footer-inner button:hover { color: #657185; }
.footer-inner p { margin: 0; }

.modal-backdrop { position: fixed; z-index: 300; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(18, 23, 33, .42); backdrop-filter: blur(2px); }
.modal-backdrop[hidden] { display: none; }
.recharge-modal { width: min(420px, 100%); overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 18px 54px rgba(17, 27, 46, .22); }
.recharge-modal-header { height: 60px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #edf0f4; }
.recharge-modal-header h2 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; }
.modal-close { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px; color: #7a808b; background: transparent; font-size: 24px; line-height: 30px; cursor: pointer; }
.modal-close:hover { color: #252a32; background: #f4f5f7; }
.card-code-form { padding: 22px 20px 24px; }
.card-code-form > label { display: block; margin-bottom: 8px; color: #31343a; font-weight: 500; }
.card-code-form > input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #d8dce4; border-radius: 6px; outline: none; color: #24272c; background: #fff; transition: border-color .18s ease, box-shadow .18s ease; }
.card-code-form > input:focus { border-color: #2f6fea; box-shadow: 0 0 0 3px rgba(47,111,234,.12); }
.card-code-form > input.invalid { border-color: #e24b4b; box-shadow: 0 0 0 3px rgba(226,75,75,.1); }
.card-code-helper { min-height: 34px; padding-top: 8px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.buy-card-link { color: #2f6fea; text-decoration: none; }
.buy-card-link:hover { text-decoration: underline; }
.card-code-error { margin: 0; color: #d83b3b; }
.confirm-recharge { width: 100%; height: 42px; border: 0; border-radius: 6px; color: #fff; background: #2f6fea; font-weight: 500; cursor: pointer; }
.confirm-recharge:hover { background: #245fd1; }
.order-modal { width: min(780px, 100%); max-height: calc(100vh - 40px); overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 22px 64px rgba(17,27,46,.26); }
.order-modal-header { min-height: 82px; padding: 16px 24px 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid #edf0f4; background: linear-gradient(100deg, #fff, #f8fbff); text-align: left; }
.order-modal-header h2 { margin: 0 0 5px; color: #20242b; font-size: 22px; line-height: 30px; font-weight: 600; }
.order-modal-header p { margin: 0; color: #737985; }
.order-modal-header strong { color: #2f6fea; font-size: 15px; }
.order-form { max-height: calc(100vh - 122px); padding: 20px 26px 0; overflow-y: auto; }
.order-notice { margin-bottom: 20px; padding: 16px 18px; border: 1px solid rgba(219,174,49,.22); border-radius: 9px; background: linear-gradient(100deg, #fffaf0, #fffdf8); }
.order-notice h3 { margin: 0 0 9px; color: #6f550d; font-size: 16px; line-height: 22px; font-weight: 600; }
.order-notice h4 { margin: 0 0 7px; color: #3b3e45; font-size: 14px; line-height: 20px; font-weight: 600; }
.order-notice ul { margin: 0; padding-left: 19px; color: #676b73; line-height: 23px; }
.order-field { margin-bottom: 18px; }
.order-field > label { display: block; margin-bottom: 8px; color: #2f3238; font-weight: 600; }
.field-with-action { display: grid; grid-template-columns: 116px minmax(0, 1fr); align-items: stretch; }
.field-with-action input, .field-with-action textarea, #schedule-time { width: 100%; border: 1px solid #d8dce4; outline: none; color: #24272c; background: #fff; transition: border-color .18s ease, box-shadow .18s ease; }
.field-with-action input { height: 42px; padding: 0 12px; border-radius: 0 6px 6px 0; }
.field-with-action textarea { min-height: 128px; padding: 11px 12px; border-radius: 0 6px 6px 0; resize: vertical; line-height: 22px; }
.field-with-action input:focus, .field-with-action textarea:focus, #schedule-time:focus { z-index: 1; border-color: #2f6fea; box-shadow: 0 0 0 3px rgba(47,111,234,.11); }
.field-with-action input.invalid, .field-with-action textarea.invalid, #schedule-time.invalid { border-color: #df4d4d; box-shadow: 0 0 0 3px rgba(223,77,77,.09); }
.field-action { min-width: 116px; padding: 0 15px; border: 1px solid #cbd8ee; border-right: 0; border-radius: 6px 0 0 6px; color: #2d68c8; background: #f2f7ff; cursor: pointer; white-space: nowrap; }
.field-action:hover { color: #1f58b6; background: #e8f1ff; }
.comment-field-control { align-items: start; }
.comment-field-control .field-action { height: 42px; }
.field-message { min-height: 20px; margin: 6px 0 0 116px; color: #8a8f99; font-size: 12px; }
.field-message.success { color: #17835d; }
.field-message.error { color: #d64040; }
.schedule-control { margin: 2px 0 22px; padding: 14px 16px; border-radius: 8px; background: #f7f8fa; }
.schedule-toggle { display: inline-flex; align-items: center; gap: 9px; color: #33363d; font-weight: 500; cursor: pointer; }
.schedule-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.schedule-toggle span { position: relative; width: 38px; height: 21px; border-radius: 11px; background: #c8cbd1; transition: background .2s ease; }
.schedule-toggle span::after { content: ""; position: absolute; left: 2px; top: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.18); transition: transform .2s ease; }
.schedule-toggle input:checked + span { background: #2f6fea; }
.schedule-toggle input:checked + span::after { transform: translateX(17px); }
#schedule-time { height: 42px; margin-top: 12px; padding: 0 12px; border-radius: 6px; }
.order-field-heading { min-height: 34px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.order-field-heading label { color: #2f3238; font-weight: 600; }
.choose-comments { height: 28px; padding: 0 11px; border: 1px solid rgba(47,111,234,.3); border-radius: 5px; color: #2d68c8; background: #f2f7ff; font-size: 12px; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.choose-comments:hover { border-color: #2f6fea; background: #e8f1ff; }
.comment-field-control textarea { width: 100%; min-height: 128px; padding: 11px 12px; border: 1px solid #d8dce4; border-radius: 6px; outline: none; color: #24272c; background: #fff; resize: vertical; line-height: 22px; transition: border-color .18s ease, box-shadow .18s ease; }
.comment-field-control textarea:focus { border-color: #2f6fea; box-shadow: 0 0 0 3px rgba(47,111,234,.11); }
.comment-field-control textarea.invalid { border-color: #df4d4d; box-shadow: 0 0 0 3px rgba(223,77,77,.09); }
.comment-count { margin-left: 0; }
.spacing-picker { margin-top: 12px; }
.spacing-picker-trigger { width: 100%; height: 42px; padding: 0 13px; border: 1px solid #d5dbe6; border-radius: 7px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #5f6570; background: linear-gradient(180deg, #fff, #fbfcff); text-align: left; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.spacing-picker-trigger:hover { border-color: #9eb7e5; background: #fff; }
.spacing-picker-trigger.open { border-color: #2f6fea; box-shadow: 0 0 0 3px rgba(47,111,234,.1); }
.spacing-picker-trigger.invalid { border-color: #df4d4d; box-shadow: 0 0 0 3px rgba(223,77,77,.09); }
.spacing-picker-trigger.has-value { color: #252931; font-weight: 500; }
.spacing-picker-trigger b { color: #7a8494; font-size: 17px; font-weight: 400; transition: transform .18s ease; }
.spacing-picker-trigger.open b { transform: rotate(180deg); }
.spacing-options { max-height: 172px; margin-top: 8px; padding: 10px; border: 1px solid #e0e5ed; border-radius: 9px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; overflow-y: auto; background: #fff; box-shadow: 0 12px 28px rgba(40,55,80,.13); }
.spacing-options[hidden] { display: none; }
.spacing-option { height: 32px; border: 1px solid transparent; border-radius: 6px; color: #4d535e; background: #f5f7fa; cursor: pointer; transition: color .16s ease, border-color .16s ease, background .16s ease; }
.spacing-option:hover { border-color: #b8caec; color: #245fc2; background: #edf4ff; }
.spacing-option.selected { border-color: #2f6fea; color: #fff; background: #2f6fea; }
.schedule-picker { margin-top: 12px; }
.schedule-picker-trigger { width: 100%; height: 42px; padding: 0 13px; border: 1px solid #d5dbe6; border-radius: 7px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #5f6570; background: linear-gradient(180deg, #fff, #fbfcff); text-align: left; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.schedule-picker-trigger:hover { border-color: #9eb7e5; background: #fff; }
.schedule-picker-trigger.open { border-color: #2f6fea; box-shadow: 0 0 0 3px rgba(47,111,234,.1); }
.schedule-picker-trigger.invalid { border-color: #df4d4d; box-shadow: 0 0 0 3px rgba(223,77,77,.09); }
.schedule-picker-trigger.has-value { color: #252931; font-weight: 500; }
.schedule-picker-trigger b { color: #7a8494; font-size: 17px; font-weight: 400; transition: transform .18s ease; }
.schedule-picker-trigger.open b { transform: rotate(180deg); }
.schedule-options { max-height: 172px; margin-top: 8px; padding: 10px; border: 1px solid #e0e5ed; border-radius: 9px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; overflow-y: auto; background: #fff; box-shadow: 0 12px 28px rgba(40,55,80,.13); }
.schedule-options[hidden] { display: none; }
.schedule-option { height: 32px; border: 1px solid transparent; border-radius: 6px; color: #4d535e; background: #f5f7fa; cursor: pointer; transition: color .16s ease, border-color .16s ease, background .16s ease; }
.schedule-option:hover { border-color: #b8caec; color: #245fc2; background: #edf4ff; }
.schedule-option.selected { border-color: #2f6fea; color: #fff; background: #2f6fea; }
.order-summary { position: sticky; bottom: 0; z-index: 2; height: auto; margin: 0 -26px; padding: 15px 26px 18px; display: grid; grid-template-columns: 1fr 1fr 148px; align-items: center; gap: 20px; border-top: 1px solid #edf0f4; background: rgba(255,255,255,.97); box-shadow: 0 -8px 22px rgba(35,45,65,.045); }
.order-summary > div { display: grid; gap: 3px; }
.order-summary span { color: #7c818a; font-size: 12px; }
.order-summary strong { color: #272a30; font-size: 17px; }
#order-total { color: #d28100; }
.confirm-order { height: 42px; border: 0; border-radius: 6px; color: #fff; background: #2f6fea; font-weight: 600; cursor: pointer; box-shadow: 0 6px 14px rgba(47,111,234,.2); }
.confirm-order:hover { background: #245fd1; }
.business-toast { z-index: 999999; }
body.modal-open { overflow: hidden; }

.toast { position: fixed; z-index: 999999; left: 50%; top: 88px; max-width: 420px; padding: 10px 18px; border-radius: 6px; color: #fff; background: rgba(27,31,40,.9); box-shadow: 0 4px 18px rgba(0,0,0,.14); opacity: 0; transform: translate(-50%, -12px); transition: .22s ease; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1320px) {
  .primary-nav { gap: 16px; }
  .brand { width: 260px; }
  .top-actions { gap: 4px; }
  .top-button { min-width: 84px; padding: 0 12px; }
  .overview-grid { grid-template-columns: 1fr 1fr; }
  .latest-news { width: 210px; }
  .campaign-copy h1 { font-size: 27px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1180px) {
  body { min-width: 0; }
  .topbar { overflow-x: auto; }
  .brand { min-width: 248px; }
  .primary-nav { min-width: 700px; }
  .top-actions { min-width: 160px; }
  .capsule-nav {
    position: sticky;
    top: 0px;
    right: auto;
    width: 100%;
    margin: 12px auto 0;
    padding: 6px;
    border-radius: 12px;
  }
  .capsule-links { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .capsule-link { width: 70px; justify-content: center; }
  .capsule-link:nth-child(5) { margin-top: 0; }
  .capsule-link:nth-child(5)::before { display: none; }
  .capsule-nav.collapsed { width: calc(100% - 40px); }
  .capsule-nav.collapsed .capsule-links { display: none; }
  .page-shell { width: calc(100% - 40px); margin: 0 auto; padding-top: 30px; }
  .business-shell { width: calc(100% - 40px); margin: 0 auto; padding-top: 48px; }
  .campaign { padding: 15px 0px; overflow: hidden; }
  .campaign-copy h1 { font-size: 22px; }
  .overview-grid { grid-template-columns: 1fr; height: auto; }
  .account-card, .news-card { height: 184px; }
  .guide-panel, .cases-panel { height: auto; }
  .guide-grid { grid-template-columns: repeat(2, minmax(280px, 420px)); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .case-card { margin-bottom: 20px; }
  .transaction-filter { align-items: stretch; flex-wrap: wrap; }
  .filter-actions { align-items: flex-end; }
  .floating-tools { top: auto; bottom: 90px; }
}

@media (max-width: 720px) {
  .capsule-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guide-grid { grid-template-columns: minmax(280px, 420px); }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { padding-left: 20px; }
  .modal-backdrop { padding: 10px; }
  .order-modal { max-height: calc(100vh - 20px); }
  .order-form { max-height: calc(100vh - 102px); padding-inline: 16px; }
  .field-with-action { grid-template-columns: 1fr; gap: 8px; }
  .field-action { height: 38px; border-right: 1px solid #cbd8ee; border-radius: 6px; }
  .field-with-action input, .field-with-action textarea { border-radius: 6px; }
  .field-message { margin-left: 0; }
  .order-summary { margin-inline: -16px; padding-inline: 16px; grid-template-columns: 1fr 1fr; }
  .confirm-order { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .order-field-heading { justify-content: space-between; }
  .schedule-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .collection-shell { width: calc(100% - 40px); margin: 0 auto; padding-top: 48px; }
}
/* 评论集创建弹窗 */
.collection-list-wrap { width: 100%; margin-top: 34px; }
.collection-list-wrap h2 { margin: 0 0 14px; color: #252932; font-size: 18px; line-height: 26px; font-weight: 600; }
.collection-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 16px; }
.collection-record { padding: 17px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid rgba(255,255,255,.92); border-radius: 11px; background: rgba(255,255,255,.86); box-shadow: 0 8px 24px rgba(36,53,82,.08); animation: collectionRecordIn .36s ease both; }
.collection-record h3 { margin: 0 0 5px; color: #282c34; font-size: 16px; line-height: 23px; }
.collection-record p { margin: 0; color: #858b96; font-size: 12px; }
.collection-record-count { flex: 0 0 auto; padding: 5px 10px; border-radius: 13px; color: #2f6fea; background: #eef4ff; font-weight: 600; }
.collection-modal { width: min(620px, 100%); max-height: calc(100vh - 40px); overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 24px 70px rgba(18,27,45,.26); }
.collection-modal-header { min-height: 84px; padding: 18px 24px 15px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid #edf0f4; background: linear-gradient(105deg,#fff,#f7faff); text-align: left; }
.collection-modal-header h2 { margin: 0 0 4px; color: #20242b; font-size: 22px; line-height: 30px; font-weight: 600; }
.collection-modal-header p { margin: 0; color: #868c97; font-size: 13px; }
.collection-form { max-height: calc(100vh - 124px); overflow-y: auto; }
.collection-form-body { padding: 22px 24px 8px; }
.collection-form-notice { margin: 0 0 22px; padding: 12px 14px; display: flex; align-items: flex-start; gap: 10px; border: 1px solid rgba(218,167,38,.22); border-radius: 8px; color: #755b18; background: linear-gradient(100deg,#fffaf0,#fffdf7); font-size: 13px; line-height: 21px; }
.collection-form-notice span { width: 18px; height: 18px; margin-top: 1px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #d5a426; font-size: 12px; font-weight: 700; }
.collection-form-field { margin-bottom: 18px; }
.collection-form-field > label { display: block; margin-bottom: 8px; color: #2f333a; font-weight: 600; }
.collection-form-field input,.collection-form-field textarea { width: 100%; border: 1px solid #d8dce4; border-radius: 7px; outline: none; color: #24272c; background: #fff; font: inherit; transition: border-color .18s ease,box-shadow .18s ease; }
.collection-form-field input { height: 43px; padding: 0 13px; }
.collection-form-field textarea { min-height: 166px; padding: 11px 13px; resize: vertical; line-height: 23px; }
.collection-form-field input:focus,.collection-form-field textarea:focus { border-color: #2f6fea; box-shadow: 0 0 0 3px rgba(47,111,234,.11); }
.collection-form-field input.invalid,.collection-form-field textarea.invalid { border-color: #df4d4d; box-shadow: 0 0 0 3px rgba(223,77,77,.08); }
.collection-textarea-meta { min-height: 24px; padding-top: 7px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.collection-field-error { min-height: 18px; margin: 0; color: #d64040; font-size: 12px; line-height: 18px; }
.collection-line-count { flex: 0 0 auto; color: #8b9099; font-size: 12px; line-height: 18px; }
.collection-form-actions { padding: 15px 24px 18px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid #edf0f4; background: #fbfcfe; }
.collection-cancel,.collection-submit,.collection-success-done { min-width: 94px; height: 40px; padding: 0 20px; border-radius: 6px; font-weight: 500; cursor: pointer; }
.collection-cancel { border: 1px solid #d8dce4; color: #555b66; background: #fff; }
.collection-cancel:hover { color: #2f6fea; border-color: #9db9ec; background: #f8fbff; }
.collection-submit,.collection-success-done { border: 0; color: #fff; background: #2f6fea; box-shadow: 0 6px 14px rgba(47,111,234,.2); }
.collection-submit:hover,.collection-success-done:hover { background: #245fd1; }
.collection-submit.loading { pointer-events: none; opacity: .72; }
.collection-submit.loading span::after { content: ''; width: 12px; height: 12px; margin-left: 8px; display: inline-block; vertical-align: -2px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: collectionSpin .7s linear infinite; }
.collection-success-panel { padding: 52px 28px 46px; text-align: center; }
.collection-success-icon { width: 62px; height: 62px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg,#48c890,#20a66f); box-shadow: 0 10px 25px rgba(32,166,111,.22); font-size: 32px; animation: collectionSuccessPop .42s cubic-bezier(.2,.9,.3,1.25) both; }
.collection-success-panel h3 { margin: 0 0 10px; color: #252932; font-size: 21px; }
.collection-success-panel p { margin: 0 0 25px; color: #7d838e; line-height: 22px; }
.collection-success-panel strong { color: #2f6fea; }
.collection-success-done { min-width: 120px; }
.collection-toast { z-index: 400; }
@keyframes collectionSpin { to { transform: rotate(360deg); } }
@keyframes collectionSuccessPop { from { opacity: 0; transform: scale(.65); } to { opacity: 1; transform: scale(1); } }
@keyframes collectionRecordIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 640px) {
  .collection-modal-backdrop { padding: 10px; }
  .collection-modal { max-height: calc(100vh - 20px); }
  .collection-modal-header { padding-inline: 18px; }
  .collection-form-body { padding: 18px 18px 6px; }
  .collection-form-actions { padding-inline: 18px; }
  .collection-textarea-meta { display: block; }
  .collection-line-count { display: block; margin-top: 2px; }
}

/* 评论集详情与内容预览 */
.collection-record { min-width: 0; height: 100%; padding: 0; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; overflow: hidden; }
.collection-record-main { flex: 1; padding: 15px 15px 12px; }
.collection-record-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.collection-record-preview { min-height: 118px; margin: 12px 0 0; padding: 10px 11px; display: grid; align-content: start; gap: 4px; list-style: none; border-radius: 8px; color: #555b66; background: rgba(246,249,253,.9); font-size: 12px; line-height: 18px; }
.collection-record-preview li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.collection-record-footer { padding: 10px 14px; display: flex; justify-content: flex-end; gap: 7px; border-top: 1px solid #edf1f6; background: rgba(250,252,255,.84); }
.view-all-comments { height: 32px; padding: 0 14px; border: 1px solid #cbd8ee; border-radius: 6px; color: #2f6fea; background: #fff; cursor: pointer; transition: .18s ease; }
.view-all-comments:hover { color: #fff; border-color: #2f6fea; background: #2f6fea; box-shadow: 0 5px 12px rgba(47,111,234,.18); }
.collection-record.deleting { animation: collectionRecordDelete .26s ease both; }
.collection-detail-modal { width: min(680px,100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 24px 70px rgba(18,27,45,.26); }
.collection-detail-header { min-height: 78px; padding: 16px 20px 14px 24px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; border-bottom: 1px solid #edf0f4; background: linear-gradient(105deg,#fff,#f7faff); }
.collection-detail-header h2 { margin: 0 0 5px; color: #20242b; font-size: 21px; line-height: 29px; }
.collection-detail-header p { margin: 0; color: #8a909a; font-size: 12px; }
.collection-detail-actions { display: flex; align-items: center; gap: 7px; }
.collection-edit,.collection-delete { height: 32px; padding: 0 13px; border-radius: 6px; background: #fff; cursor: pointer; }
.collection-edit { color: #2f6fea; border: 1px solid #cbd8ee; }
.collection-edit:hover { background: #eef4ff; }
.collection-delete { color: #d84a4a; border: 1px solid #efcaca; }
.collection-delete:hover { background: #fff3f3; }
.collection-detail-body { padding: 21px 24px 24px; overflow-y: auto; }
.collection-detail-body h3 { margin: 0 0 13px; color: #30343b; font-size: 15px; }
.collection-detail-list { margin: 0; padding: 15px 17px; display: grid; gap: 10px; list-style: none; border: 1px solid #e7ebf1; border-radius: 9px; color: #4f5560; background: #fafcff; line-height: 22px; }
.collection-detail-list li { padding-bottom: 10px; border-bottom: 1px dashed #e3e8ef; white-space: pre-wrap; overflow-wrap: anywhere; }
.collection-detail-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.collection-delete-confirm { margin: 0 24px 22px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid #f0caca; border-radius: 8px; background: #fff7f7; animation: collectionConfirmIn .2s ease both; }
.collection-delete-confirm[hidden] { display: none; }
.collection-delete-confirm strong { color: #3c4048; }
.collection-delete-confirm p { margin: 3px 0 0; color: #9196a0; font-size: 12px; }
.collection-delete-confirm > div:last-child { display: flex; gap: 8px; flex: 0 0 auto; }
.collection-delete-cancel,.collection-delete-confirm-button { height: 34px; padding: 0 13px; border-radius: 6px; cursor: pointer; }
.collection-delete-cancel { color: #5f6570; border: 1px solid #d8dce4; background: #fff; }
.collection-delete-confirm-button { color: #fff; border: 0; background: #dc4b4b; }
.collection-delete-confirm-button:hover { background: #c93c3c; }
@keyframes collectionConfirmIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes collectionRecordDelete { to { opacity: 0; transform: scale(.97) translateY(-8px); } }
@media (max-width: 640px) {
  .collection-detail-backdrop { padding: 10px; }
  .collection-detail-modal { max-height: calc(100vh - 20px); }
  .collection-detail-header { padding-inline: 16px 12px; }
  .collection-detail-actions { gap: 4px; }
  .collection-edit,.collection-delete { padding-inline: 9px; }
  .collection-detail-body { padding: 18px 16px; }
  .collection-delete-confirm { margin-inline: 16px; align-items: flex-start; flex-direction: column; }
}
/* 评论集卡片操作与三列布局 */
.record-edit-action,.record-delete-action { height: 32px; padding: 0 12px; border-radius: 6px; background: #fff; cursor: pointer; transition: .18s ease; }
.record-edit-action { color: #5d6673; border: 1px solid #d6dce5; }
.record-edit-action:hover { color: #2f6fea; border-color: #9eb9eb; background: #f5f9ff; }
.record-delete-action { color: #d84a4a; border: 1px solid #efcaca; }
.record-delete-action:hover { color: #fff; border-color: #d84a4a; background: #d84a4a; }
@media (max-width: 1100px) { .collection-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .collection-list { grid-template-columns: 1fr; } }
/* 订单中心筛选区 */
.order-center-shell { width: min(1400px,calc(100vw - 210px)); min-height: calc(100vh - 229px); margin-left: max(190px,calc((100vw - 1400px) / 2)); margin-right: 20px; padding: 68px 0 34px; }
.order-center-heading { margin-bottom: 28px; }
.order-center-heading h1 { margin: 0 0 8px; color: #1f2228; font-size: 28px; line-height: 38px; font-weight: 500; }
.order-center-heading p { margin: 0; color: #7d838e; font-size: 14px; line-height: 22px; }
.order-filter { padding: 22px 24px; display: grid; grid-template-columns: minmax(260px,1.35fr) 220px minmax(340px,1.15fr) auto; align-items: end; gap: 20px; border: 1px solid rgba(255,255,255,.92); border-radius: 12px; background: rgba(255,255,255,.88); box-shadow: 0 10px 30px rgba(38,52,80,.08); backdrop-filter: blur(5px); }
.order-filter-field { min-width: 0; }
.order-filter-field label { display: block; margin-bottom: 8px; color: #343840; font-size: 13px; font-weight: 600; }
.order-filter-field input,.order-filter-field select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #d8dce4; border-radius: 7px; outline: none; color: #30343b; background: #fff; font: inherit; transition: border-color .18s ease,box-shadow .18s ease; }
.order-filter-field select { padding-right: 34px; cursor: pointer; }
.order-filter-field input:focus,.order-filter-field select:focus { border-color: #2f6fea; box-shadow: 0 0 0 3px rgba(47,111,234,.11); }
.order-filter-field input::placeholder { color: #a3a8b1; }
.order-date-range { display: grid; grid-template-columns: minmax(0,1fr) 22px minmax(0,1fr); align-items: center; gap: 7px; }
.order-date-range span { color: #9398a1; text-align: center; }
.order-filter-actions { display: flex; gap: 9px; }
.order-query-button,.order-reset-button { min-width: 76px; height: 42px; padding: 0 18px; border-radius: 7px; font-weight: 500; cursor: pointer; transition: .18s ease; }
.order-query-button { border: 0; color: #fff; background: #2f6fea; box-shadow: 0 6px 14px rgba(47,111,234,.2); }
.order-query-button:hover { background: #245fd1; transform: translateY(-1px); }
.order-reset-button { color: #5d6470; border: 1px solid #d7dce4; background: #fff; }
.order-reset-button:hover { color: #2f6fea; border-color: #9eb9eb; background: #f7faff; }
.order-center-toast { z-index: 400; }
@media (max-width: 1280px) {
  .order-filter { grid-template-columns: minmax(240px,1fr) 210px minmax(320px,1fr); }
  .order-filter-actions { grid-column: 1 / -1; justify-content: flex-end; }
}
@media (max-width: 900px) {
  .order-center-shell { width: calc(100% - 40px); margin: 0 auto; padding-top: 48px; }
  .order-filter { grid-template-columns: 1fr 1fr; }
  .order-link-filter,.order-date-filter { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .order-filter { padding: 18px; grid-template-columns: 1fr; gap: 16px; }
  .order-link-filter,.order-date-filter,.order-filter-actions { grid-column: auto; }
  .order-date-range { grid-template-columns: 1fr; }
  .order-date-range span { line-height: 14px; }
  .order-filter-actions { justify-content: stretch; }
  .order-query-button,.order-reset-button { flex: 1; }
}
/* 订单中心自定义下拉与日历 */
.order-custom-select,.order-date-picker { position: relative; min-width: 0; }
.order-select-trigger,.order-date-trigger { width: 100%; height: 42px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #d8dce4; border-radius: 7px; outline: none; color: #30343b; background: #fff; font: inherit; cursor: pointer; transition: border-color .18s ease,box-shadow .18s ease; }
.order-select-trigger:hover,.order-date-trigger:hover { border-color: #b9c7dc; }
.order-select-trigger.open,.order-date-trigger.open { border-color: #2f6fea; box-shadow: 0 0 0 3px rgba(47,111,234,.11); }
.order-select-trigger b { color: #7e8590; font-size: 15px; transition: transform .18s ease; }
.order-select-trigger.open b { transform: rotate(180deg); }
.order-date-trigger span { color: #727985; }
.order-date-trigger.has-value span { color: #30343b; }
.order-date-trigger b { position: relative; width: 16px; height: 15px; flex: 0 0 auto; border: 1.5px solid currentColor; border-radius: 3px; color: #697281; font-size: 0; }
.order-date-trigger b::before { content: ''; position: absolute; top: 3px; right: 2px; left: 2px; border-top: 1.5px solid currentColor; }
.order-date-trigger b::after { content: ''; position: absolute; top: -3px; left: 3px; width: 2px; height: 5px; border-radius: 1px; background: currentColor; box-shadow: 6px 0 0 currentColor; }
.order-select-options { position: absolute; z-index: 40; top: calc(100% + 7px); left: 0; width: max(100%,260px); padding: 6px; border: 1px solid #e0e5ed; border-radius: 9px; background: #fff; box-shadow: 0 14px 35px rgba(28,42,66,.16); animation: orderPopupIn .16s ease both; }
.order-select-options[hidden],.order-calendar[hidden] { display: none; }
.order-select-options button { width: 100%; min-height: 36px; padding: 8px 10px; border: 0; border-radius: 6px; color: #4b515c; background: transparent; text-align: left; cursor: pointer; }
.order-select-options button:hover { color: #245fd1; background: #f0f5ff; }
.order-select-options button.selected { color: #245fd1; background: #eaf2ff; font-weight: 600; }
.order-calendar { position: absolute; z-index: 45; top: calc(100% + 7px); left: 0; width: 280px; padding: 12px; border: 1px solid #dfe5ee; border-radius: 11px; background: #fff; box-shadow: 0 16px 40px rgba(28,42,66,.18); animation: orderPopupIn .16s ease both; }
.order-date-picker:last-child .order-calendar { right: 0; left: auto; }
.order-calendar-header { margin-bottom: 8px; display: grid; grid-template-columns: 30px 1fr 30px; align-items: center; }
.order-calendar-header strong { color: #2d323a; text-align: center; font-size: 15px; }
.order-calendar-header button { width: 28px; height: 28px; border: 0; border-radius: 6px; color: #667080; background: #f5f7fa; font-size: 21px; cursor: pointer; }
.order-calendar-header button:hover { color: #2f6fea; background: #eaf2ff; }
.order-calendar-weekdays,.order-calendar-days { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; }
.order-calendar-weekdays { margin-bottom: 4px; color: #9a9fa8; font-size: 11px; text-align: center; }
.order-calendar-weekdays span { height: 22px; display: grid; place-items: center; }
.order-calendar-day { height: 30px; aspect-ratio: auto; border: 0; border-radius: 7px; color: #434a55; background: transparent; cursor: pointer; }
.order-calendar-day:hover { color: #245fd1; background: #eef4ff; }
.order-calendar-day.today { color: #2f6fea; box-shadow: inset 0 0 0 1px #9cb9ee; }
.order-calendar-day.selected { color: #fff; background: #2f6fea; box-shadow: 0 5px 12px rgba(47,111,234,.2); }
.order-calendar-day.empty { pointer-events: none; }
.order-calendar-footer { height: 38px; margin-top: 8px; padding-top: 7px; display: flex; justify-content: space-between; border-top: 1px solid #edf0f4; }
.order-calendar-footer button { height: 28px; padding: 0 10px; border: 0; border-radius: 6px; color: #2f6fea; background: transparent; cursor: pointer; }
.order-calendar-footer button:hover { background: #eef4ff; }
@keyframes orderPopupIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 620px) {
  .order-select-options { width: 100%; }
  .order-calendar,.order-date-picker:last-child .order-calendar { right: auto; left: 0; width: min(280px,calc(100vw - 76px)); }
}
/* 订单中心订单表 */
.order-table-panel { margin-top: 24px; overflow: hidden; border: 1px solid rgba(255,255,255,.94); border-radius: 12px; background: rgba(255,255,255,.9); box-shadow: 0 10px 30px rgba(38,52,80,.07); }
.order-table-heading { height: 58px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #edf0f4; }
.order-table-heading h2 { margin: 0; color: #292d34; font-size: 18px; font-weight: 600; }
.order-result-count { color: #8b919b; font-size: 13px; }
.order-table-scroll { overflow-x: auto; scrollbar-color: #cbd4e2 transparent; scrollbar-width: thin; }
.order-table { width: 100%; min-width: 1320px; border-collapse: separate; border-spacing: 0; color: #505660; font-size: 13px; }
.order-table th { padding: 13px 12px; color: #6f7681; background: #f7f9fc; text-align: left; font-weight: 600; white-space: nowrap; }
.order-table td { height: 58px; padding: 10px 12px; border-top: 1px solid #eef1f5; white-space: nowrap; }
.order-table tbody tr:first-child td { border-top: 0; }
.order-table tbody tr:hover td { background: #fbfdff; }
.order-table th:nth-child(n+4):nth-child(-n+8),.order-table td:nth-child(n+4):nth-child(-n+8) { text-align: center; }
.order-table td strong { color: #d98400; font-weight: 600; }
.order-link-text { max-width: 205px; display: block; overflow: hidden; color: #2f6fea; text-overflow: ellipsis; }
.view-order-comments,.no-order-action { min-width: 78px; height: 32px; padding: 0 12px; border-radius: 6px; font-size: 12px; }
.view-order-comments { color: #2f6fea; border: 1px solid #b9cbed; background: #fff; cursor: pointer; transition: .18s ease; }
.view-order-comments:hover { color: #fff; border-color: #2f6fea; background: #2f6fea; box-shadow: 0 5px 12px rgba(47,111,234,.18); }
.no-order-action { color: #a2a7af; border: 1px solid #e0e3e8; background: #f4f5f7; cursor: not-allowed; }
.order-table-empty { margin: 0; padding: 48px 20px; color: #949aa4; text-align: center; }
.order-comments-modal { width: min(620px,100%); max-height: calc(100vh - 40px); overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 24px 70px rgba(18,27,45,.26); }
.order-comments-header { min-height: 82px; padding: 16px 22px 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; border-bottom: 1px solid #edf0f4; background: linear-gradient(105deg,#fff,#f7faff); }
.order-comments-header h2 { margin: 0 0 5px; color: #22262d; font-size: 21px; }
.order-comments-header p { margin: 0; color: #858b96; font-size: 12px; }
.order-comments-header strong { color: #2f6fea; }
.order-comments-body { max-height: calc(100vh - 142px); padding: 20px 22px 24px; overflow-y: auto; }
.order-comments-body h3 { margin: 0 0 12px; color: #343840; font-size: 15px; }
.order-comments-list { margin: 0; padding: 14px 16px; display: grid; gap: 10px; list-style: none; border: 1px solid #e6ebf2; border-radius: 9px; background: #fafcff; }
.order-comments-list li { padding-bottom: 10px; color: #505762; border-bottom: 1px dashed #e0e6ee; line-height: 22px; overflow-wrap: anywhere; }
.order-comments-list li:last-child { padding-bottom: 0; border-bottom: 0; }
@media (max-width: 620px) { .order-comments-backdrop { padding: 10px; } .order-comments-modal { max-height: calc(100vh - 20px); } }
/* 订单中心分页 */
.order-pagination { min-height: 62px; padding: 20px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid #edf0f4; background: #fbfcfe; }
.order-pagination-summary { color: #858b95; font-size: 13px; }
.order-pagination-summary strong { color: #3d444f; }
.order-pagination-controls { display: flex; align-items: center; gap: 9px; color: #858b95; font-size: 13px; }
.order-page-size-select { position: relative; }
.order-page-size-trigger { min-width: 76px; height: 34px; padding: 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid #d7dce5; border-radius: 6px; color: #4f5661; background: #fff; cursor: pointer; }
.order-page-size-trigger.open { border-color: #2f6fea; box-shadow: 0 0 0 3px rgba(47,111,234,.1); }
.order-page-size-trigger b { color: #808792; transition: transform .18s ease; }
.order-page-size-trigger.open b { transform: rotate(180deg); }
.order-page-size-options { position: absolute; z-index: 50; right: 0; bottom: calc(100% + 6px); width: 88px; padding: 5px; border: 1px solid #dfe5ed; border-radius: 8px; background: #fff; box-shadow: 0 12px 30px rgba(28,42,66,.16); animation: orderPopupIn .16s ease both; }
.order-page-size-options[hidden] { display: none; }
.order-page-size-options button { width: 100%; height: 32px; border: 0; border-radius: 5px; color: #59606b; background: transparent; cursor: pointer; }
.order-page-size-options button:hover,.order-page-size-options button.selected { color: #2f6fea; background: #edf4ff; }
.order-page-nav { display: flex; align-items: center; gap: 5px; }
.order-page-numbers { display: flex; gap: 5px; }
.order-page-nav button { min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid #d8dde5; border-radius: 6px; color: #5b6370; background: #fff; cursor: pointer; }
.order-page-nav button:hover:not(:disabled) { color: #2f6fea; border-color: #9eb9eb; background: #f4f8ff; }
.order-page-nav button.active { color: #fff; border-color: #2f6fea; background: #2f6fea; box-shadow: 0 4px 10px rgba(47,111,234,.18); }
.order-page-nav button:disabled { color: #b5bac2; background: #f4f5f7; cursor: not-allowed; }
@media (max-width: 760px) { .order-pagination { align-items: flex-start; flex-direction: column; } .order-pagination-controls { width: 100%; flex-wrap: wrap; } .order-page-nav { margin-left: auto; } }
/* 我的账户页面 */
.account-page-shell { width: min(1400px,calc(100vw - 210px)); min-height: calc(100vh - 229px); margin-left: max(190px,calc((100vw - 1400px) / 2)); margin-right: 20px; padding: 68px 0 34px; }
.account-page-heading { margin-bottom: 28px; }
.account-page-heading h1 { margin: 0 0 8px; color: #1f2228; font-size: 28px; line-height: 38px; font-weight: 500; }
.account-page-heading p { margin: 0; color: #7d838e; font-size: 14px; line-height: 22px; }
.account-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.account-summary-card { min-width: 0; min-height: 228px; padding: 22px 22px 20px; border: 1px solid rgba(255,255,255,.94); border-radius: 14px; background: rgba(255,255,255,.91); box-shadow: 0 11px 30px rgba(36,52,82,.08); }
.account-summary-card > header { margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; }
.account-summary-card > header span { color: #2b3038; font-size: 17px; font-weight: 600; }
.account-summary-card > header i { padding: 4px 8px; border-radius: 11px; color: #2f6fea; background: #edf4ff; font-size: 11px; font-style: normal; }
.account-profile-card { background: linear-gradient(145deg,rgba(255,255,255,.96),rgba(244,248,255,.92)); }
.account-info-list { margin: 0; display: grid; gap: 12px; }
.account-info-list div { display: grid; grid-template-columns: 92px minmax(0,1fr); align-items: center; gap: 12px; }
.account-info-list dt { color: #8b919b; }
.account-info-list dd { margin: 0; overflow: hidden; color: #414751; text-overflow: ellipsis; white-space: nowrap; }
.account-balance-card { background: linear-gradient(145deg,rgba(255,255,255,.97),rgba(239,245,255,.94)); }
.account-balance-value { display: block; color: #2365df; font-size: 32px; line-height: 42px; }
.account-balance-value small,.account-invite-stats small { margin-left: 3px; font-size: 14px; }
.account-balance-card > p,.account-invite-card > p { margin: 3px 0 19px; color: #888f99; font-size: 12px; }
.account-card-actions { display: flex; gap: 9px; }
.account-outline-button,.account-primary-button { min-width: 90px; height: 36px; padding: 0 15px; border-radius: 6px; font-weight: 500; cursor: pointer; transition: .18s ease; }
.account-outline-button { color: #2f6fea; border: 1px solid #b9caea; background: #fff; }
.account-outline-button:hover { background: #edf4ff; }
.account-primary-button { color: #fff; border: 0; background: #2f6fea; box-shadow: 0 5px 12px rgba(47,111,234,.2); }
.account-primary-button:hover { background: #245fd1; transform: translateY(-1px); }
.account-invite-card { background: linear-gradient(145deg,rgba(255,255,255,.97),rgba(239,252,249,.94)); }
.account-invite-card > header i { color: #168b75; background: #e7f7f3; }
.account-invite-stats { display: grid; grid-template-columns: .8fr 1.2fr; gap: 12px; }
.account-invite-stats > div { padding: 13px 14px; border-radius: 9px; background: rgba(255,255,255,.7); }
.account-invite-stats strong { display: block; color: #168b75; font-size: 26px; line-height: 34px; }
.account-invite-stats span { display: block; color: #7f8791; font-size: 12px; }
.my-account-toast { z-index: 400; }
@media (max-width: 1100px) { .account-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 900px) { .account-page-shell { width: calc(100% - 40px); margin: 0 auto; padding-top: 48px; } }
@media (max-width: 680px) { .account-card-grid { grid-template-columns: 1fr; } }
/* 修改密码与邀请按钮 */
.change-password-action { margin-top: 18px; }
.account-invite-button { width: fit-content; height: 36px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #9fd6ca; border-radius: 6px; color: #168b75; background: #fff; font-weight: 500; text-decoration: none; transition: .18s ease; }
.account-invite-button:hover { color: #fff; border-color: #168b75; background: #168b75; box-shadow: 0 5px 12px rgba(22,139,117,.18); }
.password-modal { width: min(470px,100%); max-height: calc(100vh - 40px); overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 20px 58px rgba(17,27,46,.24); }
.password-form { max-height: calc(100vh - 100px); padding: 22px 22px 24px; overflow-y: auto; }
.password-field { margin-bottom: 16px; }
.password-field label { display: block; margin-bottom: 7px; color: #343840; font-weight: 500; }
.password-field input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #d8dce4; border-radius: 7px; outline: none; color: #2f333a; background: #fff; font: inherit; transition: border-color .18s ease,box-shadow .18s ease; }
.password-field input:focus { border-color: #2f6fea; box-shadow: 0 0 0 3px rgba(47,111,234,.11); }
.password-field input.invalid { border-color: #df4d4d; box-shadow: 0 0 0 3px rgba(223,77,77,.08); }
.password-field input:disabled { color: #7d838d; border-color: #e1e4e9; background: #f4f5f7; cursor: not-allowed; }
.password-field small { margin-top: 6px; display: block; color: #9a9fa8; font-size: 11px; }
.password-form-message { min-height: 20px; margin: -2px 0 10px; color: #d64040; font-size: 12px; line-height: 20px; }
.confirm-password-change { width: 100%; height: 42px; border: 0; border-radius: 7px; color: #fff; background: #2f6fea; font-weight: 500; cursor: pointer; box-shadow: 0 6px 14px rgba(47,111,234,.2); }
.confirm-password-change:hover { background: #245fd1; }
@media (max-width: 520px) { .password-modal { max-height: calc(100vh - 20px); } .password-form { padding-inline: 18px; } }
.account-transactions-panel { margin-top: 24px; min-height: 0; }

/* 生成邀请码页面 */
.invite-page-shell { width: min(1400px,calc(100vw - 210px)); min-height: calc(100vh - 229px); margin-left: max(190px,calc((100vw - 1400px) / 2)); margin-right: 20px; padding: 68px 0 34px; }
.invite-page-heading { margin-bottom: 28px; }
.invite-page-heading h1 { margin: 0 0 8px; color: #1f2228; font-size: 28px; line-height: 38px; font-weight: 500; }
.invite-page-heading p { margin: 0; color: #7d838e; font-size: 14px; line-height: 22px; }
.invite-benefit-card { position: relative; height: 270px; overflow: hidden; border-radius: 26px; background: #dce9ff; box-shadow: 0 18px 40px rgba(44,87,160,.12); isolation: isolate; }
.invite-card-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.invite-card-content { position: relative; z-index: 2; width: 62%; height: 100%; padding: 0 0 0 64px; display: flex; align-items: center; gap: 30px; }
.invite-gift-icon { position: relative; width: 70px; height: 70px; flex: 0 0 70px; filter: drop-shadow(0 8px 12px rgba(43,91,226,.22)); }
.invite-gift-icon .gift-box { position: absolute; left: 10px; top: 26px; width: 50px; height: 39px; border-radius: 5px 5px 10px 10px; background: linear-gradient(135deg,#8caeff,#3c68f0); }
.invite-gift-icon .gift-lid { position: absolute; left: 5px; top: 18px; width: 60px; height: 14px; border-radius: 6px; background: linear-gradient(135deg,#abc1ff,#537cf2); z-index: 2; }
.invite-gift-icon::before,.invite-gift-icon::after { content:""; position: absolute; top: 3px; width: 27px; height: 23px; border: 7px solid #8eabff; z-index: 1; }
.invite-gift-icon::before { left: 9px; border-radius: 18px 18px 2px 18px; transform: rotate(20deg); }
.invite-gift-icon::after { right: 9px; border-radius: 18px 18px 18px 2px; transform: rotate(-20deg); }
.invite-gift-icon i { position: absolute; left: 31px; top: 18px; width: 9px; height: 47px; background: rgba(216,228,255,.86); z-index: 3; }
.invite-card-copy { min-width: 0; }
.invite-card-copy h2 { margin: 0 0 13px; color: #111820; font-size: 29px; line-height: 40px; font-weight: 700; letter-spacing: -.5px; }
.invite-card-copy > p { margin: 0; color: #576477; font-size: 15px; line-height: 25px; }
.invite-card-copy ul { margin: 28px 0 0; padding: 0; display: flex; align-items: center; gap: 28px; list-style: none; color: #28384e; font-size: 14px; white-space: nowrap; }
.invite-card-copy li { display: inline-flex; align-items: center; gap: 7px; }
.invite-card-copy li b { color: #2872f7; font-size: 14px; }
.invite-card-person { position: absolute; right: 0; bottom: -140px; width: 510px; height: 440px; object-fit: contain; object-position: center bottom; mix-blend-mode: multiply; z-index: 1; }
@media (max-width: 1180px) { .invite-card-content { width: 68%; padding-left: 42px; gap: 20px; } .invite-card-copy ul { gap: 15px; font-size: 12px; } .invite-card-person { right: -55px; } }
@media (max-width: 900px) { .invite-page-shell { width: calc(100% - 40px); margin: 0 auto; padding-top: 48px; } .invite-benefit-card { height: 320px; } .invite-card-content { width: 100%; padding: 34px; align-items: flex-start; } .invite-card-person { right: -115px; bottom: -190px; opacity: .76; } .invite-card-copy ul { flex-wrap: wrap; max-width: 470px; white-space: normal; } }
@media (max-width: 620px) { .invite-benefit-card { height: 390px; border-radius: 20px; } .invite-card-content { padding: 28px 22px; display: block; } .invite-gift-icon { width: 56px; height: 56px; margin-bottom: 16px; transform: scale(.8); transform-origin: left top; } .invite-card-copy h2 { font-size: 23px; line-height: 32px; } .invite-card-copy ul { margin-top: 20px; display: grid; gap: 10px; } .invite-card-person { width: 390px; right: -105px; bottom: -180px; opacity: .56; } }
/* 邀请卡片尺寸与人物叠加修正 */
.invite-benefit-card { height: 220px; margin-inline: auto; overflow: visible; border-radius: 22px; }
.invite-card-background { border-radius: inherit; }
.invite-card-content { width: 66%; padding-left: 44px; gap: 22px; }
.invite-card-copy h2 { font-size: 26px; line-height: 36px; }
.invite-card-copy ul { margin-top: 22px; gap: 20px; }
.invite-card-person { top: -24px; right: 0; bottom: auto; width: 410px; height: 244px; object-fit: cover; object-position: 58% 0; opacity: 1; mix-blend-mode: normal; z-index: 3; border-radius: 0 22px 22px 0; -webkit-mask-image: linear-gradient(to right,transparent 0,#000 18%,#000 100%); mask-image: linear-gradient(to right,transparent 0,#000 18%,#000 100%); }
@media (max-width: 1180px) { .invite-card-content { width: 68%; padding-left: 34px; } .invite-card-person { top: -20px; right: -20px; width: 370px; height: 240px; } }
@media (max-width: 900px) { .invite-benefit-card { height: 280px; } .invite-card-content { width: 100%; padding: 30px; } .invite-card-person { top: -18px; right: -75px; bottom: auto; width: 350px; height: 298px; opacity: 1; } }
@media (max-width: 620px) { .invite-benefit-card { height: 360px; overflow: hidden; } .invite-card-content { position: relative; z-index: 4; padding: 26px 22px; } .invite-card-person { top: 130px; right: -82px; bottom: auto; width: 320px; height: 230px; opacity: 1; } }
/* 邀请码与返利数据卡片 */
.invite-stats-grid { margin: 24px auto 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.invite-stat-card { min-height: 148px; padding: 24px 28px; border: 1px solid rgba(255,255,255,.95); border-radius: 16px; background: rgba(255,255,255,.9); box-shadow: 0 12px 30px rgba(44,70,112,.08); }
.invite-stat-card h2 { margin: 0; color: #272d36; font-size: 17px; line-height: 26px; font-weight: 600; }
.invite-code-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; background: linear-gradient(145deg,rgba(255,255,255,.96),rgba(238,245,255,.95)); }
.invite-generate-button { min-width: 118px; height: 38px; padding: 0 18px; border: 0; border-radius: 7px; color: #fff; background: #2f6fea; box-shadow: 0 6px 15px rgba(47,111,234,.24); font-weight: 500; cursor: pointer; transition: transform .18s ease,background .18s ease,box-shadow .18s ease; }
.invite-generate-button:hover { background: #245fd1; box-shadow: 0 8px 18px rgba(47,111,234,.3); transform: translateY(-1px); }
.invite-reward-card { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; background: linear-gradient(145deg,rgba(255,255,255,.96),rgba(239,252,249,.95)); }
.invite-reward-card > div { padding: 3px 18px; display: flex; flex-direction: column; justify-content: space-between; }
.invite-reward-card > div + div { border-left: 1px solid #e2ecea; }
.invite-reward-card strong { color: #138c75; font-size: 30px; line-height: 42px; }
.invite-reward-card small { margin-left: 3px; font-size: 13px; }
@media (max-width: 760px) { .invite-stats-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .invite-stat-card { padding: 22px; } .invite-reward-card { gap: 8px; } .invite-reward-card > div { padding-inline: 10px; } }
/* 邀请码与返利记录 */
.invite-records-panel { margin: 24px auto 0; overflow: hidden; border: 1px solid rgba(255,255,255,.95); border-radius: 14px; background: rgba(255,255,255,.92); box-shadow: 0 12px 32px rgba(38,52,80,.08); }
.invite-record-tabs { height: 58px; padding: 0 20px; display: flex; align-items: center; gap: 28px; border-bottom: 1px solid #edf0f4; }
.invite-record-tabs button { position: relative; height: 100%; padding: 0 2px; border: 0; color: #727985; background: transparent; font-size: 15px; font-weight: 500; cursor: pointer; }
.invite-record-tabs button::after { content:""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: #2f6fea; transition: left .18s ease,right .18s ease; }
.invite-record-tabs button:hover,.invite-record-tabs button.active { color: #2464db; }
.invite-record-tabs button.active::after { left: 0; right: 0; }
.invite-record-count { margin-left: auto; color: #8b919b; font-size: 13px; }
.invite-record-table-wrap { min-height: 461px; overflow-x: auto; scrollbar-color: #cbd4e2 transparent; scrollbar-width: thin; }
.invite-record-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; color: #505660; font-size: 13px; }
.invite-record-table th { height: 44px; padding: 0 20px; color: #6f7681; background: #f7f9fc; text-align: left; font-weight: 600; white-space: nowrap; }
.invite-record-table td { height: 42px; padding: 0 20px; border-top: 1px solid #eef1f5; white-space: nowrap; }
.invite-record-table tbody tr:first-child td { border-top: 0; }
.invite-record-table tbody tr:hover { background: #f8fbff; }
.invite-record-table .invite-code-value { color: #246ee8; font-family: Consolas,"SFMono-Regular",monospace; letter-spacing: .4px; }
.invite-status { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 12px; font-size: 12px; }
.invite-status.used { color: #168b75; background: #e8f7f2; }
.invite-status.unused { color: #8a919c; background: #f0f2f5; }
.invite-rebate-value { color: #dd7600; font-weight: 600; }
.invite-record-empty { min-height: 260px; place-items: center; color: #979da7; }
.invite-record-empty:not([hidden]) { display: grid; }
.invite-record-pagination { min-height: 62px; }
@media (max-width: 760px) { .invite-record-tabs { gap: 18px; padding-inline: 16px; } .invite-record-count { display: none; } .invite-record-table-wrap { min-height: 0; } }
/* 生成邀请码弹窗 */
.invite-generate-modal { width: min(610px,100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 15px; background: #fff; box-shadow: 0 24px 70px rgba(17,27,46,.25); }
.invite-generate-modal-header { height: 64px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #edf0f4; }
.invite-generate-modal-header h2 { margin: 0; color: #242932; font-size: 21px; font-weight: 600; }
.invite-generate-form-view { padding: 22px 24px 26px; }
.invite-generate-description { margin: 0 0 22px; padding: 14px 16px; border: 1px solid #f2dfb7; border-radius: 9px; color: #75592f; background: #fffaf1; font-size: 13px; line-height: 23px; }
.invite-generate-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.invite-quantity-field,.invite-cost-preview { min-height: 136px; padding: 18px; border: 1px solid #e4e8ef; border-radius: 11px; background: #fafbfd; }
.invite-quantity-field label,.invite-cost-preview > span { display: block; margin-bottom: 14px; color: #4b515b; font-size: 14px; font-weight: 600; }
.invite-quantity-stepper { width: 100%; height: 44px; display: grid; grid-template-columns: 44px 1fr 44px; overflow: hidden; border: 1px solid #d6dce6; border-radius: 7px; background: #fff; }
.invite-quantity-stepper button { border: 0; color: #2f6fea; background: #f3f7ff; font-size: 20px; cursor: pointer; }
.invite-quantity-stepper button:hover { background: #e8f0ff; }
.invite-quantity-stepper input { width: 100%; min-width: 0; border: 0; border-inline: 1px solid #dfe4ec; color: #2d333d; background: #fff; text-align: center; font-size: 16px; font-weight: 600; outline: none; appearance: textfield; }
.invite-quantity-stepper input::-webkit-inner-spin-button { appearance: none; }
.invite-cost-preview strong { display: block; color: #e57900; font-size: 30px; line-height: 37px; }
.invite-cost-preview strong b { font-weight: 700; }
.invite-cost-preview strong small { margin-left: 3px; font-size: 14px; }
.invite-cost-preview p { margin: 4px 0 0; color: #969ca6; font-size: 12px; }
.invite-confirm-generate { width: 100%; height: 44px; margin-top: 22px; border: 0; border-radius: 8px; color: #fff; background: #2f6fea; box-shadow: 0 7px 18px rgba(47,111,234,.24); font-size: 15px; font-weight: 600; cursor: pointer; }
.invite-confirm-generate:hover { background: #245fd1; }
.invite-generate-result-view { padding: 26px 24px 24px; text-align: center; }
.invite-generate-result-view[hidden] { display: none; }
.invite-result-icon { width: 52px; height: 52px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg,#49c39b,#168b75); box-shadow: 0 8px 20px rgba(22,139,117,.2); font-size: 25px; font-weight: 700; }
.invite-generate-result-view h3 { margin: 0; color: #252b34; font-size: 20px; }
.invite-result-summary { margin: 7px 0 18px; color: #7d848f; font-size: 13px; }
.invite-generated-list { max-height: 224px; overflow-y: auto; display: grid; gap: 8px; text-align: left; }
.invite-generated-item { min-height: 42px; padding: 0 8px 0 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #e1e7f0; border-radius: 7px; background: #f8fbff; }
.invite-generated-item code { overflow: hidden; color: #2367df; font-family: Consolas,"SFMono-Regular",monospace; text-overflow: ellipsis; white-space: nowrap; }
.invite-generated-item button { flex: 0 0 auto; height: 28px; padding: 0 10px; border: 1px solid #bcd0f3; border-radius: 5px; color: #2f6fea; background: #fff; cursor: pointer; }
.invite-generated-item button:hover { background: #edf4ff; }
.invite-copy-status { min-height: 20px; margin: 10px 0 0; color: #168b75; font-size: 12px; }
.invite-result-actions { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.invite-result-actions button { height: 42px; border-radius: 7px; font-weight: 600; cursor: pointer; }
.invite-copy-all { border: 0; color: #fff; background: #2f6fea; }
.invite-copy-all:hover { background: #245fd1; }
.invite-result-finish { border: 1px solid #d5dbe5; color: #515863; background: #fff; }
.invite-result-finish:hover { color: #2f6fea; border-color: #aac0e8; background: #f7faff; }
@media (max-width: 560px) { .invite-generate-settings { grid-template-columns: 1fr; } .invite-generate-modal { max-height: calc(100vh - 20px); } .invite-generate-form-view,.invite-generate-result-view { padding-inline: 18px; } }

/* 共享客服组件与侧栏细节修正 */
.capsule-link,
.capsule-link:hover,
.capsule-link:focus,
.capsule-link:visited {
  text-decoration: none;
}

/* 礼包图标比例修正 */
.invite-gift-icon {
  position: relative;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  transform: none;
  filter: drop-shadow(0 8px 12px rgba(43, 91, 226, .22));
}
.invite-gift-icon .gift-box {
  left: 10px;
  top: 25px;
  width: 44px;
  height: 34px;
  border-radius: 5px 5px 9px 9px;
}
.invite-gift-icon .gift-lid {
  left: 6px;
  top: 19px;
  width: 52px;
  height: 12px;
  border-radius: 5px;
}
.invite-gift-icon::before,
.invite-gift-icon::after {
  top: 5px;
  width: 20px;
  height: 16px;
  border-width: 6px;
}
.invite-gift-icon::before { left: 11px; }
.invite-gift-icon::after { right: 11px; }
.invite-gift-icon i {
  left: 28px;
  top: 19px;
  width: 8px;
  height: 40px;
}

site-customer-service { display: contents; }
.customer-service-tools { //*top: 476px;*/ }
.customer-service-tools button { border-bottom: 0; }
.customer-service-icon {
  position: relative;
  display: block;
  width: 26px;
  height: 25px;
  margin: 0 auto 4px;
  font-size: 0;
}
.customer-service-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 2px;
  width: 18px;
  height: 15px;
  border: 1.8px solid currentColor;
  border-radius: 5px;
  background: #fff;
}
.customer-service-icon::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 15px;
  width: 6px;
  height: 6px;
  border-left: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  background: #fff;
  transform: skewY(-32deg);
}
.customer-service-icon i,
.customer-service-icon i::before,
.customer-service-icon i::after {
  position: absolute;
  z-index: 2;
  top: 9px;
  width: 2.5px;
  height: 2.5px;
  border-radius: 50%;
  background: currentColor;
}
.customer-service-icon i { left: 8px; }
.customer-service-icon i::before,
.customer-service-icon i::after {
  content: "";
  top: 0;
}
.customer-service-icon i::before { left: 4px; }
.customer-service-icon i::after { left: 8px; }

.customer-service-backdrop {
  z-index: 1000;
  opacity: 0;
  transition: opacity .18s ease;
}
.customer-service-backdrop.visible { opacity: 1; }
.customer-service-modal {
  width: min(410px, calc(100vw - 32px));
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(27, 48, 83, .22);
  transform: translateY(10px) scale(.98);
  transition: transform .18s ease;
}
.customer-service-backdrop.visible .customer-service-modal {
  transform: translateY(0) scale(1);
}
.customer-service-modal-header {
  position: relative;
  padding: 22px 24px 14px;
  border-bottom: 1px solid #edf1f7;
}
.customer-service-modal-header h2 {
  margin: 0;
  color: #1e2736;
  font-size: 20px;
  line-height: 28px;
}
.customer-service-close {
  position: absolute;
  right: 18px;
  top: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  color: #687386;
  background: transparent;
  cursor: pointer;
  font-size: 24px;
  line-height: 34px;
}
.customer-service-close:hover {
  color: #2567d9;
  background: #f2f6fd;
}
.customer-service-modal-body {
  padding: 20px 24px 26px;
  text-align: center;
}
.customer-service-modal-body p {
  margin: 0 0 18px;
  color: #5e6879;
  font-size: 14px;
  line-height: 22px;
}
.customer-qr-frame {
  display: grid;
  place-items: center;
  /*width: 226px;
  height: 226px;*/
  margin: 0 auto;
  padding: 12px;
  border: 1px solid #dce5f3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(36, 91, 183, .11);
}
.customer-qr-code {
  display: grid;
  grid-template-columns: repeat(29, 1fr);
  grid-template-rows: repeat(29, 1fr);
  width: 200px;
  height: 200px;
  padding: 5px;
  background: #fff;
}
.customer-qr-module { display: block; background: #fff; }
.customer-qr-module.dark { background: #1f2734; }
.customer-service-modal-body small {
  display: block;
  margin-top: 14px;
  color: #9aa3b2;
  font-size: 12px;
}

@media (max-width: 620px) {
  .invite-gift-icon {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
    margin-bottom: 16px;
    transform: scale(.875);
    transform-origin: left top;
  }
  .customer-service-tools {
    top: auto;
    bottom: 90px;
  }
  .customer-qr-frame {
    /*width: 206px;
    height: 206px;*/
  }
  .customer-qr-code {
    width: 180px;
    height: 180px;
  }
}

/* 首页余额筛选与分页增强 */
.campaign {
  color: inherit;
  text-decoration: none;
}
.plain-action {
  display: inline-flex;
  align-items: center;
  color: #2f333a;
  text-decoration: none;
}
.plain-action:hover { color: #2f6fea; }
.transaction-filter-field {
  display: grid;
  gap: 8px;
  color: #4a4d54;
}
.transaction-filter-field > span:first-child { font-weight: 500; }
.transaction-filter .date-range {
  display: flex;
  align-items: center;
  gap: 10px;
}
.transaction-filter .date-range > strong {
  color: #9298a3;
  font-weight: 400;
}
.transaction-filter .order-date-picker { width: 168px; }
.transaction-filter .order-date-trigger {
  width: 168px;
  height: 36px;
  border-radius: 4px;
}
.transaction-filter .transaction-type-select { width: 160px; }
.transaction-filter .order-select-trigger {
  width: 160px;
  height: 36px;
  border-radius: 4px;
}
.transaction-filter .order-select-options {
  width: 160px;
  min-width: 160px;
}
.transaction-filter .order-calendar { width: 280px; }
.transaction-table-shell {
  margin-top: 20px;
  overflow: visible;
  border: 1px solid #e7e9ee;
  border-radius: 8px;
  background: #fff;
}
.transaction-table-shell .transaction-table-wrap {
  margin-top: 0;
  overflow-x: auto;
  border: 0;
  border-radius: 8px 8px 0 0;
}
.transaction-table-shell .transaction-pagination {
  border-radius: 0 0 8px 8px;
}
.transaction-table tbody tr[hidden] { display: none; }
.transaction-pagination .order-page-size-options { z-index: 60; }

@media (max-width: 900px) {
  .transaction-filter {
    align-items: stretch;
    flex-wrap: wrap;
  }
  .transaction-filter .filter-actions { align-self: flex-end; }
}
@media (max-width: 620px) {
  .transaction-filter .date-range {
    align-items: stretch;
    flex-direction: column;
  }
  .transaction-filter .date-range > strong { text-align: center; }
  .transaction-filter .order-date-picker,
  .transaction-filter .order-date-trigger,
  .transaction-filter .transaction-type-select,
  .transaction-filter .order-select-trigger {
    width: 100%;
  }
  .transaction-filter .order-calendar,
  .transaction-filter .order-date-picker:last-child .order-calendar {
    right: auto;
    left: 0;
    width: min(280px, calc(100vw - 76px));
  }
}

/* 邀请码使用状态筛选 */
.invite-record-filter-bar {
  min-height: 58px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  border-bottom: 1px solid #edf0f4;
  background: #fbfcfe;
}
.invite-record-filter-bar[hidden] { display: none; }
.invite-record-filter-bar > label {
  color: #69717d;
  font-size: 13px;
  font-weight: 500;
}
.invite-use-select { width: 138px; }
.invite-use-trigger {
  height: 36px;
  border-radius: 7px;
  font-size: 13px;
}
.invite-use-options {
  width: 138px;
  min-width: 138px;
}
.invite-use-options button {
  min-height: 34px;
  font-size: 13px;
}
@media (max-width: 620px) {
  .invite-record-filter-bar {
    padding-inline: 16px;
    //*justify-content: space-between;*/
  }
  .invite-use-select { width: 150px; }
  .invite-use-options {
    right: 0;
    left: auto;
    width: 150px;
  }
}

/* 评论集卡片分页 */
.collection-pagination {
  margin-top: 18px;
  overflow: visible;
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 11px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 8px 24px rgba(36,53,82,.06);
}
.collection-pagination[hidden] { display: none; }
.collection-page-size-options { z-index: 60; }
@media (max-width: 760px) {
  .collection-pagination {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* D抖业务首屏加载优化 */
.deferred-service-image {
  opacity: 0;
  transition: opacity .24s ease;
}
.deferred-service-image.loaded { opacity: 1; }
.service-visual:has(.deferred-service-image:not(.loaded)) {
  background:
    linear-gradient(100deg, transparent 20%, rgba(255,255,255,.72) 48%, transparent 76%) -140px 0 / 140px 100% no-repeat,
    linear-gradient(135deg, rgba(234,241,255,.94), rgba(255,255,255,.98));
  animation: serviceImagePlaceholder 1.15s ease-in-out infinite;
}
@keyframes serviceImagePlaceholder {
  to { background-position: 180px 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .deferred-service-image { transition: none; }
  .service-visual:has(.deferred-service-image:not(.loaded)) { animation: none; }
}

/* 生成邀请码页首屏加载优化 */
.deferred-invite-image {
  opacity: 0;
  transition: opacity .3s ease;
}
.deferred-invite-image.loaded { opacity: 1; }
.invite-benefit-card:has(.invite-card-background:not(.loaded)) {
  background:
    linear-gradient(100deg, transparent 18%, rgba(255,255,255,.42) 48%, transparent 78%) -280px 0 / 280px 100% no-repeat,
    linear-gradient(105deg, #cfe0ff 0%, #e6f0ff 58%, #d7e7ff 100%);
  animation: inviteImagePlaceholder 1.25s ease-in-out infinite;
}
@keyframes inviteImagePlaceholder {
  to { background-position: 1250px 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .deferred-invite-image { transition: none; }
  .invite-benefit-card:has(.invite-card-background:not(.loaded)) { animation: none; }
}
/* D抖业务批量下单与评论集选择 */
.batch-order-toggle { height: 28px; padding: 0 11px; border: 1px solid rgba(47,111,234,.3); border-radius: 5px; color: #2d68c8; background: #f2f7ff; font-size: 12px; cursor: pointer; transition: border-color .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease; }
.batch-order-toggle:hover { border-color: #2f6fea; background: #e8f1ff; }
.batch-order-toggle.active { color: #fff; border-color: #2f6fea; background: #2f6fea; box-shadow: 0 4px 10px rgba(47,111,234,.2); }
.batch-video-field textarea { min-height: 92px; }
.comment-library-backdrop { z-index: 320; background: rgba(18,23,33,.5); }
.comment-library-modal { width: min(760px,100%); max-height: calc(100vh - 40px); overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 24px 70px rgba(17,27,46,.3); }
.comment-library-header { min-height: 82px; padding: 16px 22px 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid #edf0f4; background: linear-gradient(105deg,#fff,#f6f9ff); }
.comment-library-header h2 { margin: 0 0 5px; color: #20242b; font-size: 21px; line-height: 30px; }
.comment-library-header p { margin: 0; color: #7a818d; font-size: 13px; }
.comment-library-list { max-height: min(600px,calc(100vh - 142px)); padding: 18px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; overflow-y: auto; background: #f7f9fc; }
.comment-library-item { position: relative; min-height: 116px; padding: 15px 16px; border: 1px solid #e1e7f0; border-radius: 10px; display: flex; flex-direction: column; align-items: stretch; gap: 9px; color: #343943; background: #fff; text-align: left; cursor: pointer; box-shadow: 0 4px 14px rgba(42,61,91,.05); transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.comment-library-item:hover,.comment-library-item:focus-visible { border-color: #8eb0ed; outline: none; transform: translateY(-2px); box-shadow: 0 9px 22px rgba(42,78,140,.12); }
.comment-library-item-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.comment-library-item-heading strong { color: #252932; font-size: 15px; }
.comment-library-item-heading b { padding: 3px 8px; border-radius: 10px; color: #2f6fea; background: #edf4ff; font-size: 12px; font-weight: 500; }
.comment-library-item-preview { min-height: 38px; display: -webkit-box; overflow: hidden; color: #777e89; font-size: 12px; line-height: 19px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.comment-library-item-action { align-self: flex-end; color: #2f6fea; font-size: 12px; font-weight: 500; }
@media (max-width:720px) {
  .comment-library-backdrop { padding: 10px; }
  .comment-library-modal { max-height: calc(100vh - 20px); }
  .comment-library-list { grid-template-columns: 1fr; max-height: calc(100vh - 122px); padding: 12px; }
  .batch-video-field textarea { min-height: 112px; }
}
/* 自动检测抖音地址 */
.batch-video-field { grid-template-columns: minmax(0,1fr); }
.batch-video-field input,
.batch-video-field textarea { border-radius: 6px; }
/* 下单弹窗实时提示对齐 */
.video-order-field .video-status {
  width: 100%;
  margin-left: 0;
  text-align: left;
}
/* 移动端共享页脚安全区 */
@media (max-width: 720px) {
  site-footer {
    position: relative;
    z-index: 0;
    display: block;
    clear: both;
    margin-top: 76px;
  }
  site-footer > footer {
    position: static;
    width: 100%;
    height: auto;
    min-height: 112px;
    margin: 0;
  }
  site-footer .footer-inner {
    width: calc(100% - 32px);
    height: auto;
    min-height: 112px;
    padding: 26px 16px 34px;
    text-align: center;
  }
  site-footer .footer-inner p {
    max-width: 100%;
    line-height: 22px;
    overflow-wrap: anywhere;
  }
}
/* 共享侧栏退出账号与确认弹窗 */
.capsule-logout { font-family: inherit; }
.capsule-logout:hover { color: #c84545; background: #fff3f3; }
.logout-confirm-backdrop { position: fixed; z-index: 520; inset: 0; padding: 20px; display: grid; place-items: center; background: rgba(18,23,33,.46); backdrop-filter: blur(3px); opacity: 0; transition: opacity .16s ease; }
.logout-confirm-backdrop[hidden] { display: none; }
.logout-confirm-backdrop.visible { opacity: 1; }
.logout-confirm-modal { width: min(390px,100%); padding: 28px 28px 24px; border-radius: 14px; background: #fff; box-shadow: 0 24px 70px rgba(17,27,46,.26); text-align: center; transform: translateY(8px) scale(.98); transition: transform .16s ease; }
.logout-confirm-backdrop.visible .logout-confirm-modal { transform: translateY(0) scale(1); }
.logout-confirm-icon { width: 48px; height: 48px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; color: #d45a53; background: #fff0ef; font-size: 24px; font-weight: 700; }
.logout-confirm-modal h2 { margin: 0; color: #242932; font-size: 21px; line-height: 30px; }
.logout-confirm-modal p { margin: 9px 0 24px; color: #7d838d; font-size: 14px; line-height: 22px; }
.logout-confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.logout-confirm-actions button { height: 40px; border-radius: 7px; font: inherit; font-weight: 500; cursor: pointer; }
.logout-confirm-cancel { border: 1px solid #d6dbe4; color: #555c66; background: #fff; }
.logout-confirm-cancel:hover { color: #2f6fea; border-color: #aebfdf; background: #f7faff; }
.logout-confirm-submit { border: 0; color: #fff; background: #d9534f; box-shadow: 0 6px 14px rgba(217,83,79,.2); }
.logout-confirm-submit:hover { background: #c74743; }
@media (max-width: 520px) { .logout-confirm-backdrop { padding: 14px; } .logout-confirm-modal { padding: 24px 20px 20px; } }
