/*
 * [INPUT]: 依赖 index.html 的控制面板示意结构与 styles.css 的近黑页面令牌。
 * [OUTPUT]: 复刻词轮定稿界面的侧栏、账号转轮、共享词典及菜单栏状态，并提供功能区示意。
 * [POS]: 官网专用视觉层；只展示虚构数据，不执行真实账户操作。
 * [PROTOCOL]: 变更时更新此头部，然后检查 CLAUDE.md
 */

/* ── 控制面板：结构遵循产品定稿的侧栏、当前账号、转轮和词典两页 ── */
.product-window {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  min-height: 476px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 14px;
  background: #1b1b1d;
  box-shadow: 0 30px 70px #0009, 0 0 0 1px #fff1;
}
.product-sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px 9px;
  border-right: 1px solid #ffffff0d;
  background: #242427;
}
.traffic { display: flex; gap: 5px; height: 30px; padding-left: 3px; }
.traffic i { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; }
.traffic i:nth-child(2) { background: #febc2e; }
.traffic i:nth-child(3) { background: #28c840; }
.product-brand {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 3px 0 10px;
  padding-left: 4px;
  color: #f0f0f2;
  font-size: .82rem;
  font-weight: 700;
}
.product-brand-mark { font-size: 1rem; line-height: 1; }
.product-tabs { display: grid; gap: 3px; }
.product-tabs button {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 7px 5px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #b2b2b9;
  text-align: left;
  white-space: nowrap;
  font-size: .62rem;
}
.product-tabs button:hover { background: #ffffff0a; }
.product-tabs button.selected { background: #ffffff18; color: #f4f4f6; font-weight: 700; }
.product-tabs button > span { width: 12px; text-align: center; }
.product-tabs em { margin-left: auto; color: #93939b; font-size: .55rem; }
.product-sidebar-foot { display: grid; gap: 8px; margin-top: auto; }
.appearance {
  display: flex;
  justify-content: space-between;
  padding: 3px;
  border-radius: 6px;
  background: #ffffff0d;
  color: #9999a1;
  font-size: .51rem;
}
.appearance b { padding: 1px 3px; border-radius: 3px; background: #47474c; font-weight: 600; }
.appearance span { padding: 1px 2px; }
.ad-mini { padding: 8px 6px; border: 1px solid #ffffff13; border-radius: 8px; background: #303034; }
.ad-mini > div { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.ad-mini b { font-size: .57rem; }
.ad-mini small { display: block; margin-top: 4px; color: #94949b; font-size: .49rem; }
.status-dot { width: 5px; height: 5px; flex: none; border-radius: 50%; background: #30d158; box-shadow: 0 0 6px #30d15888; }
.mini-switch { width: 16px; height: 9px; margin-left: auto; border-radius: 9px; background: #e7e7ea; }
.mini-switch::after { content: ""; display: block; width: 6px; height: 6px; margin: 1.5px 0 0 8px; border-radius: 50%; background: #1b1b1d; }

.product-main { min-width: 0; background: #1b1b1d; }
.demo-panel { min-width: 0; height: 100%; padding: 15px 14px 11px; }
.demo-panel[hidden] { display: none; }
.demo-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid #ffffff12; }
.demo-panel-head > div { display: grid; gap: 2px; }
.demo-panel-head strong { font-size: .84rem; }
.demo-panel-head small { color: #a2a2a9; font-size: .59rem; }
.demo-panel-head > span { padding: 5px 7px; border: 1px solid #ffffff24; border-radius: 5px; color: #eee; white-space: nowrap; font-size: .56rem; }
.current-account { display: flex; align-items: center; gap: 7px; margin-top: 13px; padding: 9px; border: 1px solid #ffffff22; border-radius: 9px; background: #29292d; }
.current-account > span:nth-child(2) { display: grid; min-width: 0; }
.current-account b { font-size: .68rem; }
.current-account small { overflow: hidden; color: #a3a3aa; font-size: .52rem; text-overflow: ellipsis; white-space: nowrap; }
.current-account em { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 3px 5px; border-radius: 99px; background: #30d15822; color: #8adba3; white-space: nowrap; font-size: .48rem; }
.current-account em i { width: 4px; height: 4px; border-radius: 50%; background: #30d158; }
.number-orb {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 26%,#898991,#63636b 50%,#393940);
  box-shadow: 0 2px 4px #0009, inset 0 1px 1px #fff6, inset 0 -2px 2px #0008;
  color: #f4f4f5;
  font: 650 .58rem var(--mono);
}
.number-orb.current { background: radial-gradient(circle at 34% 26%,#fff,#d9d9df 52%,#a9a9b3); color: #202023; }
.wheel-label { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin: 14px 2px 5px; }
.wheel-label b { font-size: .61rem; }
.wheel-label span { color: #9e9ea5; font-size: .52rem; }
.wheel-zone { display: grid; grid-template-columns: 58px minmax(0, 1fr) 58px; align-items: center; gap: 7px; height: 229px; overflow: hidden; }
.wheel-action { display: grid; place-items: center; min-height: 37px; padding: 4px; border-radius: 7px; background: linear-gradient(#fff,#dadae0); box-shadow: 0 3px 8px #0008,inset 0 1px #fff; color: #17171a; text-align: center; font-size: .58rem; font-weight: 700; }
.wheel-stack { display: grid; gap: 5px; min-width: 0; max-height: 229px; overflow: hidden; perspective: 450px; }
.wheel-card { display: flex; align-items: center; gap: 6px; min-width: 0; height: 38px; padding: 5px 7px; border-radius: 7px; background: #343438; box-shadow: 0 2px 5px #0006, inset 0 1px #ffffff1a; transform: rotateX(5deg) scale(.96); }
.wheel-card.dim { opacity: .55; transform: rotateX(12deg) scale(.91); }
.wheel-card.center { background: #4a4a50; box-shadow: 0 3px 9px #000b, inset 0 1px #ffffff28; transform: scale(1); }
.wheel-card > span:nth-child(2) { display: grid; min-width: 0; }
.wheel-card b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .58rem; }
.wheel-card small { overflow: hidden; color: #b1b1b8; text-overflow: ellipsis; white-space: nowrap; font-size: .47rem; }
.wheel-card em { margin-left: auto; color: #bcbcc1; white-space: nowrap; font-size: .48rem; }
.wheel-card em.live { color: #79d799; }
.wheel-card em.exhausted { color: #eeb765; }
.wheel-hint { color: #92929a; text-align: center; font-size: .5rem; }

.dictionary-input { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding: 12px; border: 1px solid #ffffff1a; border-radius: 8px; background: #303034; color: #a6a6ae; font-size: .6rem; }
.dictionary-input span { padding: 5px 8px; border-radius: 5px; background: #ececee; color: #181819; font-size: .56rem; font-weight: 700; }
.dictionary-count { display: flex; justify-content: space-between; margin: 17px 2px 9px; color: #a5a5ab; font-size: .58rem; }
.dictionary-count span { color: #ddd; }
.dictionary-grid { display: flex; flex-wrap: wrap; align-content: start; gap: 7px; min-height: 174px; padding: 15px; border: 1px solid #ffffff16; border-radius: 8px; background: #29292c; }
.dictionary-grid span { height: 23px; padding: 4px 7px; border-radius: 5px; background: #3b3b3f; color: #e2e2e5; font-size: .53rem; }
.dictionary-note { margin-top: 12px; color: #92929a; font-size: .53rem; line-height: 1.5; }

/* ── 功能区插画与巡览卡片 ── */
.feature-wheel,.feature-dictionary,.feature-menu { padding: clamp(1.3rem,3vw,2rem); border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-2); }
.feature-wheel-head { display: flex; justify-content: space-between; padding-bottom: 14px; color: #eee; font-size: .9rem; font-weight: 650; }
.feature-wheel-head span { color: var(--faint); font-size: .72rem; font-weight: 400; }
.feature-wheel-row { display: flex; align-items: center; gap: .75rem; margin-top: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 9px; background: #242427; }
.feature-wheel-row.faint { opacity: .6; transform: scale(.97); }
.feature-wheel-row.chosen { border-color: #77777e; background: #353539; box-shadow: 0 9px 20px #0006; }
.feature-wheel-row i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 30% 20%,#a9a9b0,#55555d); color: #fff; font: 650 .7rem var(--mono); font-style: normal; }
.feature-wheel-row b { font-size: .85rem; }
.feature-wheel-row span { margin-left: auto; color: var(--muted); font-size: .7rem; }
.feature-wheel-bottom { display: flex; justify-content: space-between; gap: 10px; margin-top: 15px; }
.feature-wheel-bottom span,.feature-wheel-bottom strong { flex: 1; padding: 10px; border-radius: 8px; background: #303034; color: #ddd; text-align: center; font-size: .8rem; }
.feature-wheel-bottom strong { background: #e8e8e9; color: #1b1b1d; }
.feature-dictionary-head { display: flex; justify-content: space-between; align-items: center; }
.feature-dictionary-head b { font-size: 1rem; }
.feature-dictionary-head span { color: var(--faint); font-size: .75rem; }
.feature-dictionary-input { display: flex; justify-content: space-between; margin-top: 20px; padding: 12px; border: 1px solid var(--border-strong); border-radius: 8px; color: var(--faint); font-size: .85rem; }
.feature-dictionary-input span { color: #fff; }
.feature-dictionary-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; padding: 18px; border: 1px solid var(--border); border-radius: 9px; background: #222225; }
.feature-dictionary-tags span { padding: 6px 10px; border: 1px solid #ffffff12; border-radius: 6px; background: #343438; font-size: .77rem; }
.feature-dictionary-foot { margin-top: 12px; color: var(--faint); font-size: .76rem; }
.feature-menu { max-width: 490px; margin: auto; }
.feature-menu > div { display: flex; align-items: center; gap: .65rem; padding: 0 3px 14px; border-bottom: 1px solid var(--border); }
.feature-menu > div b { font-size: 1rem; }
.feature-menu small { margin-left: auto; color: var(--faint); }
.menu-icon { color: #eee; font-size: 1.25rem; }
.feature-menu p { display: flex; justify-content: space-between; margin-top: 0; padding: 13px 3px; border-bottom: 1px solid var(--border); color: #e6e6e8; font-size: .87rem; }
.feature-menu p span { color: var(--faint); }
.feature-menu p .menu-on { color: #81d89d; }
.tour-visual { height: 182px; border-bottom: 1px solid var(--border); background: #111113; }
.tour-account { display: flex; align-items: center; gap: 9px; padding: 1.2rem; }
.tour-account .number-orb { width: 40px; height: 40px; font-size: .85rem; }
.tour-account > div { display: grid; }
.tour-account b { font-size: .86rem; }
.tour-account small { color: var(--faint); font-size: .67rem; }
.tour-account em { margin-left: auto; color: #84d99f; white-space: nowrap; font-size: .65rem; }
.tour-words { display: flex; flex-wrap: wrap; align-content: center; gap: 8px; padding: 1.2rem; }
.tour-words span { padding: 6px 9px; border-radius: 6px; background: #303034; color: #ddd; font-size: .7rem; }
.tour-settings { display: grid; align-content: center; gap: 11px; padding: 1.2rem; }
.tour-settings > div { display: flex; justify-content: space-between; padding: 11px; border: 1px solid var(--border); border-radius: 7px; background: #252528; }
.tour-settings b { font-size: .75rem; }
.tour-settings span { color: #aaaab2; font-size: .7rem; }

@media(max-width:560px) {
  .product-window { grid-template-columns: 83px minmax(0,1fr); min-height: 364px; }
  .product-sidebar { padding: 7px 4px; }
  .traffic { height: 20px; gap: 3px; }
  .traffic i { width: 6px; height: 6px; }
  .product-brand { margin: 2px 0 7px; font-size: .64rem; }
  .product-tabs button { padding: 5px 3px; gap: 2px; font-size: .47rem; }
  .product-tabs em { font-size: .43rem; }
  .product-sidebar-foot { gap: 5px; }
  .appearance { font-size: .37rem; }
  .ad-mini { padding: 5px 3px; }
  .ad-mini b { font-size: .4rem; }
  .ad-mini small { font-size: .36rem; }
  .mini-switch { width: 11px; height: 7px; }
  .mini-switch::after { width: 4px; height: 4px; margin: 1.5px 0 0 5px; }
  .demo-panel { padding: 8px 7px; }
  .demo-panel-head { padding-bottom: 7px; }
  .demo-panel-head strong { font-size: .6rem; }
  .demo-panel-head small,.demo-panel-head > span { font-size: .43rem; }
  .current-account { margin-top: 8px; padding: 6px; }
  .current-account b { font-size: .5rem; }
  .current-account small,.current-account em { font-size: .38rem; }
  .number-orb { width: 18px; height: 18px; font-size: .43rem; }
  .wheel-label { margin: 8px 2px 3px; }
  .wheel-label b,.wheel-label span { font-size: .42rem; }
  .wheel-zone { grid-template-columns: 34px minmax(0,1fr) 34px; gap: 3px; height: 182px; }
  .wheel-action { min-height: 32px; padding: 2px; font-size: .42rem; }
  .wheel-stack { gap: 3px; max-height: 182px; }
  .wheel-card { height: 30px; padding: 3px 4px; gap: 3px; }
  .wheel-card b { font-size: .44rem; }
  .wheel-card small,.wheel-card em { font-size: .35rem; }
  .wheel-hint,.dictionary-note { font-size: .39rem; }
  .dictionary-grid { min-height: 115px; padding: 8px; gap: 4px; }
  .dictionary-grid span { height: 20px; font-size: .42rem; }
  .dictionary-input,.dictionary-count { font-size: .47rem; }
  .tour-account { gap: 6px; }
  .tour-account em { font-size: .55rem; }
}
