/* ============================================================
   主播工作台 - 新中式·暖金轻奢 样式表
   颜色体系：暖金 + 深棕 + 奶油白
   ============================================================ */

/* ---------- CSS 变量 ---------- */
:root {
    --gold: #D4A574;
    --gold-light: #F0D7A8;
    --gold-deep: #B88642;
    --gold-shine: #FFE4B5;
    --gold-glow: rgba(212, 165, 116, .35);
    --gold-gradient: linear-gradient(135deg, #F0D7A8 0%, #D4A574 50%, #B88642 100%);
    --gold-gradient-shine: linear-gradient(135deg, #FFE4B5 0%, #D4A574 40%, #B88642 100%);
    --red: #C73E48;
    --red-light: #E8646E;
    --red-deep: #A52E36;
    --cream: #FEFDFB;
    --warm: #F8F3E8;
    --warm-light: #FAF7F0;
    --brown: #2D1F14;
    --brown-mid: #6B523A;
    --brown-light: #9A7B5E;
    --brown-soft: #C4B298;
    --accent-blue: #5B8DEF;
    --accent-green: #5CB87A;
    --accent-purple: #9B6BCC;
    --font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    --shadow-xs: 0 1px 2px rgba(45, 31, 20, .05);
    --shadow-sm: 0 2px 8px rgba(45, 31, 20, .07);
    --shadow-md: 0 6px 20px rgba(45, 31, 20, .1);
    --shadow-lg: 0 12px 32px rgba(45, 31, 20, .15);
    --shadow-xl: 0 20px 60px rgba(45, 31, 20, .22);
    --shadow-gold: 0 4px 20px rgba(212, 165, 116, .3);
    --shadow-gold-strong: 0 8px 30px rgba(212, 165, 116, .45);
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --transition: .3s cubic-bezier(.4,0,.2,1);
    --transition-fast: .15s ease;
    --transition-slow: .5s cubic-bezier(.4,0,.2,1);
}

/* 暗黑模式变量 */
body.dark-mode {
    --gold: #E5B86C;
    --gold-light: #F0D7A8;
    --gold-deep: #C99742;
    --gold-shine: #FFE4B5;
    --gold-glow: rgba(229, 184, 108, .3);
    --red: #E8646E;
    --red-light: #F58B93;
    --red-deep: #C73E48;
    --cream: #120E0B;
    --warm: #1A1410;
    --warm-light: #221A14;
    --brown: #F8F0E6;
    --brown-mid: #D4C4A8;
    --brown-light: #A89878;
    --brown-soft: #7A6A58;
    --accent-blue: #7BAEF5;
    --accent-green: #7DCE94;
    --accent-purple: #B58AE6;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .6);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, .7);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, .8);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, .9);
    --shadow-gold: 0 4px 20px rgba(229, 184, 108, .25);
    --shadow-gold-strong: 0 8px 30px rgba(229, 184, 108, .4);
    color-scheme: dark;
}

body.dark-mode .anchor-topnav {
    background: linear-gradient(135deg, #1A1410 0%, #0D0906 50%, #1A1410 100%);
    border-bottom-color: rgba(229, 184, 108, .25);
}

body.dark-mode .main-flow-bar {
    background: linear-gradient(135deg, rgba(18,14,11,.98) 0%, #1A1410 50%, rgba(18,14,11,.95) 100%);
    border-bottom-color: rgba(229,184,108,.2);
}

body.dark-mode .flow-step-detail {
    background: linear-gradient(180deg, #120E0B 0%, #1A1410 100%);
    border-bottom-color: rgba(229,184,108,.18);
}

body.dark-mode .anchor-sidebar {
    background: linear-gradient(180deg, #120E0B 0%, #0D0906 100%);
    border-right-color: rgba(229,184,108,.15);
}

body.dark-mode .member-card {
    background: linear-gradient(135deg, rgba(30,24,18,.7) 0%, rgba(18,14,11,.85) 100%);
    border-color: rgba(229,184,108,.15);
}

body.dark-mode .drawer-panel {
    background: linear-gradient(180deg, #120E0B 0%, #0D0906 100%);
    border-left-color: rgba(229,184,108,.18);
}

body.dark-mode .drawer-section {
    background: rgba(30,24,18,.5);
    border-color: rgba(229,184,108,.12);
}

body.dark-mode .drawer-header {
    background: linear-gradient(180deg, #120E0B 0%, #0D0906 100%);
    border-bottom-color: rgba(229,184,108,.18);
}

body.dark-mode .drawer-title {
    color: var(--brown);
}

body.dark-mode .drawer-close {
    background: rgba(30,24,18,.5);
    border-color: rgba(229,184,108,.2);
    color: var(--brown-light);
}

body.dark-mode .drawer-close:hover {
    background: rgba(199,62,72,.15);
    color: #F58B93;
    border-color: rgba(199,62,72,.25);
}

body.dark-mode .drawer-font-switch {
    background: rgba(30,24,18,.7);
    border-color: rgba(229,184,108,.2);
}

body.dark-mode .drawer-font-switch button {
    color: var(--brown-mid);
}

body.dark-mode .drawer-font-switch button:hover {
    color: var(--gold);
    background: rgba(229,184,108,.12);
}

body.dark-mode .drawer-font-switch button.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    color: #fff;
}

body.dark-mode .drawer-footer {
    background: #0D0906;
    border-top-color: rgba(229,184,108,.12);
}

body.dark-mode .btn-prev,
body.dark-mode .btn-next {
    background: rgba(30,24,18,.6);
    color: var(--brown-mid);
    border-color: rgba(229,184,108,.18);
}

body.dark-mode .btn-prev:hover,
body.dark-mode .btn-next:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(229,184,108,.08);
}

body.dark-mode .btn-copy-intro {
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    color: #fff;
}

body.dark-mode .drawer-overlay {
    background: rgba(0,0,0,.85);
}

body.dark-mode .filter-bar,
body.dark-mode .region-sidebar,
body.dark-mode .sidebar-tab-content {
    background: rgba(30,24,18,.5);
    border-color: rgba(229,184,108,.12);
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background: rgba(18,14,11,.9);
    color: var(--brown);
    border-color: rgba(229,184,108,.2);
}

body.dark-mode input::placeholder,
body.dark-mode select::placeholder,
body.dark-mode textarea::placeholder {
    color: var(--brown-soft);
}

body.dark-mode .anchor-footer {
    background: #0D0906;
    border-top-color: rgba(229,184,108,.12);
}

body.dark-mode::before {
    background: radial-gradient(ellipse at top, rgba(229,184,108,.1) 0%, transparent 60%);
}

body.dark-mode .compliance-item {
    background: rgba(0,0,0,.3);
    border-color: rgba(229,184,108,.25);
}

body.dark-mode .compliance-item:hover {
    background: rgba(229,184,108,.1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    color: var(--brown);
    background: var(--cream);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--gold-deep);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--gold); }

img { max-width: 100%; display: block; }

ul, ol { list-style: none; }

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

button { cursor: pointer; }

/* ---------- 焦点可见样式（无障碍） ---------- */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}
:focus:not(:focus-visible) {
    outline: none;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--warm); border-radius: 3px; }
::-webkit-scrollbar-thumb {
    background: rgba(212, 165, 116, .5);
    border-radius: 3px;
    transition: background var(--transition);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ---------- 工具类 ---------- */
.text-gold { color: var(--gold); }
.text-gold-deep { color: var(--gold-deep); }
.text-red { color: var(--red); }
.text-brown { color: var(--brown); }
.text-brown-mid { color: var(--brown-mid); }
.bg-cream { background: var(--cream); }
.bg-warm { background: var(--warm); }
.text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.text-ellipsis-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.text-center { text-align: center; }
.hidden { display: none !important; }

/* ---------- 选中文字样式 ---------- */
::selection {
    background: var(--gold);
    color: #fff;
}
::-moz-selection {
    background: var(--gold);
    color: #fff;
}

/* ---------- 字体大小切换 ---------- */
.font-size-default { font-size: 14px; }
.font-size-medium { font-size: 16px; }
.font-size-large { font-size: 18px; }
.font-size-xlarge { font-size: 20px; }

.drawer-panel.font-size-medium { font-size: 15px; }
.drawer-panel.font-size-medium .drawer-name { font-size: 24px; }
.drawer-panel.font-size-medium .drawer-no { font-size: 14px; }
.drawer-panel.font-size-medium .cell-value { font-size: 16px; }
.drawer-panel.font-size-medium .drawer-text-content { font-size: 15px; }
.drawer-panel.font-size-medium .contact-value { font-size: 16px; }

.drawer-panel.font-size-large { font-size: 16px; }
.drawer-panel.font-size-large .drawer-name { font-size: 26px; }
.drawer-panel.font-size-large .drawer-no { font-size: 15px; }
.drawer-panel.font-size-large .cell-value { font-size: 17px; }
.drawer-panel.font-size-large .drawer-text-content { font-size: 16px; }
.drawer-panel.font-size-large .contact-value { font-size: 17px; }

.drawer-panel.font-size-xlarge { font-size: 18px; }
.drawer-panel.font-size-xlarge .drawer-name { font-size: 28px; }
.drawer-panel.font-size-xlarge .drawer-no { font-size: 16px; }
.drawer-panel.font-size-xlarge .cell-value { font-size: 19px; }
.drawer-panel.font-size-xlarge .drawer-text-content { font-size: 18px; }
.drawer-panel.font-size-xlarge .contact-value { font-size: 19px; }

/* ---------- 顶部导航栏 ---------- */
.anchor-topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: linear-gradient(135deg, var(--brown) 0%, #3E2518 50%, var(--brown-mid) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,.22);
    border-bottom: 1px solid rgba(212, 165, 116, .12);
}

.anchor-topnav .nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.anchor-topnav .nav-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 12px;
}
.anchor-topnav .nav-center::-webkit-scrollbar {
    display: none;
}

.anchor-topnav .nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.anchor-topnav .nav-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,.2);
    box-shadow: 0 2px 8px rgba(212, 165, 116, .3);
}

.anchor-topnav .nav-title {
    color: var(--gold-light);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,.2);
}

.anchor-topnav .nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.anchor-topnav .nav-link {
    color: var(--gold-light);
    font-size: 13px;
    padding: 4px 12px;
    border-radius: var(--radius);
    transition: all var(--transition);
    border: 1px solid transparent;
}
.anchor-topnav .nav-link:hover {
    background: rgba(212, 165, 116, .15);
    border-color: rgba(212, 165, 116, .3);
}

.anchor-topnav .btn-logout {
    background: rgba(181, 32, 42, .2);
    color: #E8A0A5;
    border: 1px solid rgba(181, 32, 42, .3);
    padding: 4px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    transition: all var(--transition);
}
.anchor-topnav .btn-logout:hover {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

/* 主题切换按钮 */
.anchor-topnav .theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(212, 165, 116, .15);
    border: 1px solid rgba(212, 165, 116, .3);
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.anchor-topnav .theme-toggle:hover {
    background: rgba(212, 165, 116, .25);
    border-color: rgba(212, 165, 116, .5);
    transform: rotate(15deg);
    box-shadow: 0 0 12px rgba(212, 165, 116, .3);
}
.anchor-topnav .theme-toggle svg {
    width: 18px;
    height: 18px;
    position: absolute;
    transition: all .4s cubic-bezier(.4,0,.2,1);
}
.anchor-topnav .theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}
.anchor-topnav .theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}
.anchor-topnav .theme-toggle.dark .icon-sun {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}
.anchor-topnav .theme-toggle.dark .icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* 手机端汉堡按钮 */
.anchor-topnav .hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 6px;
}
.anchor-topnav .hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gold-light);
    border-radius: 1px;
    transition: all var(--transition);
}

/* ---------- 左侧边栏 ---------- */
.anchor-sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 0;
    width: 280px;
    background: linear-gradient(180deg, var(--cream) 0%, #FDF9F2 100%);
    border-right: 1px solid var(--warm);
    display: flex;
    flex-direction: column;
    z-index: 900;
    overflow: hidden;
    transition: transform var(--transition);
    box-shadow: 2px 0 12px rgba(44, 26, 14, .06);
}

/* 品牌区域 */
.sidebar-brand {
    padding: 20px 16px 12px;
    border-bottom: 1px solid var(--warm);
    text-align: center;
    flex-shrink: 0;
}
.sidebar-brand .brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 8px;
    box-shadow: 0 4px 12px rgba(212, 165, 116, .3);
}
.sidebar-brand .brand-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--brown);
    margin-bottom: 2px;
}
.sidebar-brand .brand-version {
    font-size: 11px;
    color: var(--brown-light);
}

/* 侧边栏搜索 */
.sidebar-search {
    padding: 12px 12px 8px;
    flex-shrink: 0;
}
.sidebar-search input {
    width: 100%;
    height: 36px;
    background: #fff;
    border: 1px solid var(--warm);
    border-radius: var(--radius);
    padding: 0 12px 0 34px;
    font-size: 13px;
    color: var(--brown);
    transition: all var(--transition);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%237A5C3A' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.156a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 11px center;
    box-shadow: inset 0 1px 2px rgba(44, 26, 14, .04);
}
.sidebar-search input:focus {
    border-color: var(--gold);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(212, 165, 116, .12);
}
.sidebar-search input::placeholder {
    color: var(--brown-light);
    opacity: .7;
}

/* 地区树 */
.sidebar-tree {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0;
}

.tree-node {
    user-select: none;
}

.tree-label {
    display: flex;
    align-items: center;
    padding: 6px 12px 6px 16px;
    cursor: pointer;
    transition: background var(--transition);
    font-size: 13px;
    color: var(--brown-mid);
    gap: 6px;
}
.tree-label:hover {
    background: var(--warm);
    color: var(--brown);
}
.tree-label.active {
    background: linear-gradient(90deg, rgba(212, 165, 116, .12), transparent);
    color: var(--gold-deep);
    font-weight: 600;
    border-right: 3px solid var(--gold);
}

.tree-arrow {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--transition);
    color: var(--brown-light);
    font-size: 10px;
}
.tree-arrow.expanded { transform: rotate(90deg); }
.tree-arrow.leaf { visibility: hidden; }

.tree-children {
    display: none;
}
.tree-children.open {
    display: block;
}

/* 省级缩进 */
.tree-level-0 > .tree-label { padding-left: 16px; font-weight: 600; }
.tree-level-1 > .tree-label { padding-left: 32px; }
.tree-level-2 > .tree-label { padding-left: 48px; font-size: 12px; }

/* ---------- 省份列表（地区查询） ---------- */
.province-list {
    padding: 8px;
}

.hot-city-empty {
    padding: 28px 16px;
    text-align: center;
    color: var(--brown-light);
    font-size: 13px;
}

/* 省份可展开（点击展开显示地级市） */
.province-row {
    margin-bottom: 4px;
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    border: 1px solid transparent;
}
.province-row:hover {
    background: rgba(245, 237, 216, .5);
    border-color: rgba(208, 184, 140, .25);
}
.province-row.matched {
    background: rgba(212, 165, 116, .08);
    border-color: rgba(212, 165, 116, .2);
}
.province-item.province-toggle {
    position: relative;
    padding: 11px 14px 11px 32px;
    cursor: pointer;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition);
    font-size: 14px;
}
.province-item.province-toggle:hover {
    background: rgba(212, 165, 116, .08);
}
.province-item.province-toggle.active {
    background: linear-gradient(90deg, rgba(212, 165, 116, .15), rgba(212, 165, 116, .03));
    color: var(--gold-deep);
    font-weight: 600;
}
.province-item.province-toggle .city-name {
    flex: 1;
    font-weight: 500;
}
.province-item.province-toggle .city-count {
    font-size: 12px;
    color: var(--brown-light);
    background: rgba(255,255,255,.5);
    padding: 0 6px;
    border-radius: 10px;
    min-width: 24px;
    text-align: center;
}
.province-arrow {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: var(--brown-light);
    transition: all var(--transition);
    display: inline-block;
    width: 12px;
    text-align: center;
}
.province-arrow.expanded {
    color: var(--gold);
    transform: translateY(-50%) rotate(90deg);
}
.province-cities {
    padding: 6px 10px 10px 34px;
    background: rgba(245, 237, 216, .35);
    border-top: 1px solid rgba(208, 184, 140, .12);
    margin-top: 2px;
}
.city-child-item {
    padding: 8px 12px;
    font-size: 13px;
    color: var(--brown-mid);
    cursor: pointer;
    border-radius: 6px;
    transition: all var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}
.city-child-item:hover {
    background: rgba(212, 165, 116, .15);
    color: var(--gold-deep);
    transform: translateX(3px);
}
.city-child-item.active {
    background: linear-gradient(90deg, var(--gold), var(--gold-deep));
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(212, 165, 116, .3);
}
.city-child-item.matched {
    background: rgba(212, 165, 116, .12);
    color: var(--gold-deep);
    font-weight: 500;
}
.city-child-item .city-count {
    font-size: 11px;
    color: var(--brown-light);
    background: rgba(255,255,255,.4);
    padding: 0 5px;
    border-radius: 8px;
}

/* 底部用户信息 */
.sidebar-user {
    padding: 12px 16px;
    border-top: 1px solid var(--warm);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    background: rgba(245, 237, 216, .5);
}

.sidebar-user .user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
}

.sidebar-user .user-info {
    flex: 1;
    min-width: 0;
}
.sidebar-user .user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--brown);
}
.sidebar-user .user-city {
    font-size: 11px;
    color: var(--brown-light);
}
.sidebar-user .user-status {
    font-size: 11px;
    color: #4CAF50;
}
.sidebar-user .user-status.offline {
    color: var(--red);
}

/* ---------- 主内容区 ---------- */
.anchor-main {
    margin-top: 112px;
    margin-left: 280px;
    min-height: calc(100vh - 112px);
    padding-top: 8px;
    display: flex;
    flex-direction: column;
}

.anchor-content {
    flex: 1;
    padding: 24px;
}

/* ---------- 底部性能信息 ---------- */
.anchor-footer {
    padding: 12px 20px;
    text-align: center;
    font-size: 12px;
    color: var(--brown-light);
    border-top: 1px solid var(--warm);
    background: linear-gradient(180deg, var(--cream) 0%, rgba(253,250,245,.8) 100%);
    box-shadow: 0 -2px 10px rgba(44,26,14,.03);
}
.anchor-footer .footer-meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--brown-mid);
    font-weight: 500;
    letter-spacing: 0.3px;
}
.anchor-footer .footer-meta span {
    padding: 2px 8px;
    background: rgba(255,255,255,.7);
    border-radius: 10px;
    border: 1px solid rgba(212, 165, 116,.12);
    transition: all var(--transition);
}
.anchor-footer .footer-meta span:hover {
    background: var(--warm);
    border-color: rgba(212, 165, 116,.25);
}

/* ---------- 侧边栏遮罩（手机端） ---------- */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 54px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 26, 14, .4);
    z-index: 899;
}

/* ============================================================
   登录页面
   ============================================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2C1A0E 0%, #5C3A1E 50%, #7A5C3A 100%);
    position: relative;
    overflow: hidden;
}

/* 光晕效果 */
.login-page::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 165, 116, .15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
}
.login-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 165, 116, .1) 0%, transparent 70%);
    bottom: -80px;
    left: -80px;
    pointer-events: none;
}

.login-card {
    width: 400px;
    max-width: 92vw;
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(212, 165, 116, .08);
    position: relative;
    z-index: 1;
}

.login-logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 6px 20px rgba(212, 165, 116, .35);
}

.login-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--brown);
    margin-bottom: 6px;
}

.login-subtitle {
    text-align: center;
    font-size: 13px;
    color: var(--brown-light);
    margin-bottom: 28px;
}

/* 表单 */
.login-form .form-group {
    margin-bottom: 16px;
}

.login-form .form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--brown-mid);
    margin-bottom: 6px;
}

.login-form .form-input {
    width: 100%;
    height: 42px;
    background: #fff;
    border: 1px solid var(--warm);
    border-radius: var(--radius);
    padding: 0 14px;
    font-size: 14px;
    color: var(--brown);
    transition: all var(--transition);
}
.login-form .form-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, .12);
}
.login-form .form-input::placeholder {
    color: var(--brown-light);
    opacity: .6;
}

/* 验证码行 */
.sms-row {
    display: flex;
    gap: 10px;
}
.sms-row .form-input { flex: 1; }

.btn-sms {
    height: 42px;
    padding: 0 14px;
    background: var(--warm);
    color: var(--gold-deep);
    border: 1px solid var(--gold-light);
    border-radius: var(--radius);
    font-size: 13px;
    white-space: nowrap;
    transition: all var(--transition);
    flex-shrink: 0;
}
.btn-sms:hover:not(:disabled) {
    background: var(--gold-light);
    color: var(--brown);
}
.btn-sms:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* 登录按钮 */
.btn-login {
    width: 100%;
    height: 44px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-deep));
    color: #fff;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    transition: all var(--transition);
    box-shadow: 0 4px 12px rgba(212, 165, 116, .3);
    margin-top: 24px;
}
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, .45);
}
.btn-login:active {
    transform: translateY(0);
}

/* 协议提示 */
.login-agreement {
    margin-top: 14px;
    font-size: 12px;
    color: var(--brown-light);
    text-align: center;
    line-height: 1.5;
}
.login-agreement a {
    color: var(--gold-deep);
    text-decoration: underline;
}

/* 联系客服 */
.login-contact {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--brown-light);
}
.login-contact a {
    color: var(--gold);
    text-decoration: underline;
}

/* ============================================================
   工作台首页 - 筛选栏
   ============================================================ */
.filter-bar {
    background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
    border: 1px solid var(--warm);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(44, 26, 14, .06);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.filter-row .filter-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-row .filter-label {
    font-size: 13px;
    color: var(--brown-mid);
    font-weight: 500;
    white-space: nowrap;
}

.filter-select, .filter-input {
    height: 36px;
    background: #fff;
    border: 1px solid #E8DFC8;
    border-radius: var(--radius);
    padding: 0 12px;
    font-size: 13px;
    color: var(--brown);
    transition: all var(--transition);
    min-width: 100px;
    box-shadow: inset 0 1px 2px rgba(44, 26, 14, .04);
}
.filter-select:focus, .filter-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, .12);
}

.filter-input {
    min-width: 200px;
    padding-left: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%237A5C3A' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.156a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 11px center;
}

.btn-filter {
    height: 36px;
    padding: 0 18px;
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    color: #fff;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition);
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(212, 165, 116, .25);
}
.btn-filter:hover {
    box-shadow: 0 4px 12px rgba(212, 165, 116, .35);
    transform: translateY(-2px);
}

.btn-reset {
    height: 36px;
    padding: 0 18px;
    background: #fff;
    color: var(--brown-mid);
    border: 1px solid #E8DFC8;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn-reset:hover {
    border-color: var(--gold-light);
    color: var(--gold-deep);
    background: var(--warm);
}

/* ---------- 快捷标签行 ---------- */
.quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.quick-tag {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--brown-mid);
    background: #fff;
    border: 1px solid var(--warm);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(44, 26, 14, .04);
}
.quick-tag:hover {
    border-color: var(--gold-light);
    color: var(--gold-deep);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(212, 165, 116, .12);
}
.quick-tag.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    color: #fff;
    border-color: var(--gold);
    box-shadow: 0 3px 10px rgba(212, 165, 116, .3);
    font-weight: 500;
}

/* ---------- 统计条 ---------- */
.stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.stat-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.stat-number {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
}

.stat-label {
    font-size: 13px;
    color: var(--brown-light);
}

/* ---------- 分页和排序控件（隐藏） ---------- */
.page-controls {
    display: none;
}

/* ---------- 合规红线提醒栏（内嵌在导航栏中间） ---------- */
.compliance-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}
.compliance-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: rgba(255,255,255,.12);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.2);
    transition: all var(--transition);
    cursor: default;
    flex-shrink: 0;
}
.compliance-item:hover {
    background: rgba(255,255,255,.2);
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.compliance-icon {
    font-size: 12px;
    line-height: 1;
}
.compliance-text {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0,0,0,.2);
}

body.dark-mode .compliance-item {
    background: rgba(0,0,0,.2);
    border-color: rgba(212, 165, 116,.3);
}
body.dark-mode .compliance-item:hover {
    background: rgba(212, 165, 116,.15);
}

/* ---------- 直播流程引导图（顶部固定） ---------- */
.main-flow-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
    padding: 10px 16px 10px 296px;
    background: linear-gradient(135deg, rgba(255,255,255,.98) 0%, var(--warm) 50%, rgba(255,255,255,.9) 100%);
    border-bottom: 1px solid rgba(212, 165, 116,.2);
    box-shadow: 0 2px 8px rgba(44,26,14,.06);
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 900;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: 52px;
}
.main-flow-bar::-webkit-scrollbar {
    display: none;
}

/* 流程步骤展开内容区 */
.flow-step-detail {
    position: fixed;
    top: 108px;
    left: 280px;
    right: 0;
    z-index: 899;
    box-sizing: border-box;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s cubic-bezier(.4,0,.2,1), opacity .3s ease;
    opacity: 0;
    background: linear-gradient(180deg, var(--cream) 0%, #fff 100%);
    border-bottom: 1px solid rgba(212, 165, 116,.2);
    box-shadow: 0 4px 12px rgba(44,26,14,.08);
}
.flow-step-detail.open {
    max-height: 320px;
    opacity: 1;
}
.flow-step-detail-inner {
    padding: 18px 32px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.flow-step-detail-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(212, 165, 116,.3);
}
.flow-step-detail-content {
    flex: 1;
}
.flow-step-detail-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--brown);
    margin-bottom: 8px;
}
.flow-step-detail-desc {
    font-size: 14px;
    color: var(--brown-mid);
    line-height: 1.8;
}
.flow-step-detail-tips {
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(212, 165, 116,.1);
    border-radius: 8px;
    border-left: 3px solid var(--gold);
    font-size: 13px;
    color: var(--brown-mid);
    line-height: 1.7;
}

.main-flow-bar .flow-step {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition);
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(212, 165, 116,.15);
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.main-flow-bar .flow-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116,.2);
    background: rgba(255,255,255,.95);
}

.main-flow-bar .flow-step.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    border-color: var(--gold-deep);
    box-shadow: 0 4px 14px rgba(212, 165, 116,.35);
    transform: translateY(-1px);
}

.main-flow-bar .flow-step.active .flow-step-title,
.main-flow-bar .flow-step.active .flow-step-dur {
    color: #fff;
}

.main-flow-bar .flow-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brown-light);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition);
    box-shadow: 0 2px 4px rgba(44,26,14,.12);
}

.main-flow-bar .flow-step.active .flow-step-num {
    background: rgba(255,255,255,.25);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 0 2px rgba(255,255,255,.2);
}

.main-flow-bar .flow-step-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.main-flow-bar .flow-step-title {
    font-size: 13px;
    color: var(--brown);
    font-weight: 700;
    white-space: nowrap;
}

.main-flow-bar .flow-step-dur {
    font-size: 11px;
    color: var(--brown-light);
    white-space: nowrap;
    font-weight: 500;
}

.main-flow-bar .flow-connector {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    position: relative;
    flex-shrink: 0;
}

.main-flow-bar .flow-connector-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(212, 165, 116,.4), rgba(212, 165, 116,.6), rgba(212, 165, 116,.4));
    border-radius: 1px;
    position: relative;
}

.main-flow-bar .flow-connector-line::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid rgba(212, 165, 116,.6);
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
}

/* ---------- 会员卡片网格 ---------- */
.member-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.member-card {
    background: linear-gradient(180deg, #ffffff 0%, #FEF9F2 50%, #FDF5EC 100%);
    border: 1px solid rgba(212, 165, 116, .15);
    border-radius: var(--radius-lg);
    padding: 22px 20px;
    transition: all var(--transition);
    cursor: default;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}
.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold-gradient);
    opacity: 0;
    transition: opacity var(--transition);
}
.member-card::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition);
    transform: scale(0.8);
}
.member-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-gold);
    border-color: rgba(212, 165, 116, .4);
}
.member-card:hover::before {
    opacity: 1;
}
.member-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* 卡片头部 */
.card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.card-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 14px var(--shadow-gold);
    position: relative;
}
.card-avatar::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-shine), transparent 50%);
    opacity: 0;
    transition: opacity var(--transition);
}
.member-card:hover .card-avatar::after {
    opacity: 1;
}

.card-name-row {
    flex: 1;
    min-width: 0;
}

.card-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--brown);
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-quality-tag {
    display: inline-block;
    padding: 2px 7px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: #fff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.card-star-tag {
    display: inline-block;
    color: #FFD700;
    font-size: 16px;
    margin-left: 2px;
    text-shadow: 0 0 3px rgba(255, 215, 0, 0.5);
}

/* 卡片基本信息 */
.card-info {
    font-size: 12px;
    color: var(--brown-mid);
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.card-info span {
    white-space: nowrap;
}

/* 卡片信息行（3列详细信息） */
.card-info-row {
    display: flex;
    gap: 10px;
    margin-bottom: 7px;
    font-size: 13px;
    color: var(--brown-mid);
}
.card-info-row .info-item {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-info-row .info-label {
    color: var(--brown-light);
    margin-right: 4px;
    font-size: 12px;
}

/* 会员号 */
.card-member-no {
    font-size: 13px;
    color: var(--brown-light);
    margin-top: 4px;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}
.card-member-no .member-no-num {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold-deep);
    text-shadow: 0 1px 2px rgba(212, 165, 116,0.3);
    letter-spacing: 2px;
}

/* 资料完善度 */
.card-quality-score {
    font-size: 12px;
    color: var(--gold-deep);
    font-weight: 500;
}

.card-location {
    font-size: 13px;
    color: var(--brown-light);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 标签行 */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.card-tag {
    padding: 3px 10px;
    background: var(--warm);
    color: var(--brown-mid);
    border-radius: 4px;
    font-size: 12px;
    transition: all var(--transition);
}
.member-card:hover .card-tag {
    background: #F7F0E0;
}

/* 自我介绍 */
.card-intro {
    font-size: 13px;
    color: var(--brown-mid);
    line-height: 1.7;
    margin-bottom: 14px;
    flex: 1;
}

/* 底部 */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--warm);
    padding-top: 12px;
    margin-top: auto;
}

.card-views {
    font-size: 12px;
    color: var(--brown-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-detail {
    height: 34px;
    padding: 0 20px;
    background: var(--gold-gradient);
    color: #fff;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition);
    white-space: nowrap;
    box-shadow: 0 3px 10px var(--shadow-gold);
    position: relative;
    overflow: hidden;
}
.btn-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
    transition: left .6s ease;
}
.btn-detail:hover {
    box-shadow: 0 5px 16px var(--shadow-gold-strong);
    transform: translateY(-2px);
}
.btn-detail:hover::before {
    left: 100%;
}

/* ---------- 分页导航 ---------- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px 0 24px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 46px;
    height: 46px;
    padding: 0 18px;
    border: 1px solid rgba(212, 165, 116, .15);
    background: linear-gradient(180deg, #ffffff 0%, #FEF9F2 100%);
    color: var(--brown-mid);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    position: relative;
    overflow: hidden;
}
.page-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
    transition: left .5s ease;
}
.page-btn:hover:not(.active):not(.disabled) {
    border-color: var(--gold);
    color: var(--gold-deep);
    background: linear-gradient(180deg, #FFF8EF 0%, var(--warm) 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md), var(--shadow-gold);
}
.page-btn:hover:not(.active):not(.disabled)::before {
    left: 100%;
}
.page-btn.active {
    background: var(--gold-gradient);
    color: #fff;
    border-color: var(--gold);
    box-shadow: var(--shadow-gold-strong);
    font-weight: 700;
}
.page-btn.active::before {
    display: none;
}
.page-btn.disabled {
    opacity: .4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.page-ellipsis {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brown-light);
    font-size: 14px;
    font-weight: 500;
}

/* ---------- 加载中 ---------- */
.loading-mask {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    color: var(--brown-light);
}
.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--warm);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin .8s linear infinite;
    margin-bottom: 12px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 空状态 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--brown-light);
}
.empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: .4;
}
.empty-state .empty-text {
    font-size: 14px;
}

/* ============================================================
   会员详情抽屉
   ============================================================ */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 26, 14, .15);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}
.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.drawer-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    min-width: 480px;
    max-width: 900px;
    background: var(--cream);
    z-index: 2001;
    transform: translateX(100%);
    transition: transform var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 30px rgba(0,0,0,.18);
}
.drawer-panel.open {
    transform: translateX(0);
}

.script-category {
    margin-bottom: 20px;
}

.script-category-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gold-deep);
    margin-bottom: 10px;
    padding-left: 8px;
    border-left: 3px solid var(--gold);
}

.script-item {
    background: var(--cream);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all var(--transition);
}
.script-item:hover {
    background: var(--gold-light);
    transform: translateX(4px);
}

.script-item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--brown);
    margin-bottom: 4px;
}

.script-item-content {
    font-size: 12px;
    color: var(--brown-mid);
    line-height: 1.6;
    white-space: pre-wrap;
}

/* 抽屉头部 */
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(212, 165, 116,.15);
    flex-shrink: 0;
    background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
    box-shadow: 0 2px 8px rgba(44,26,14,.04);
}

.drawer-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--brown);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--gold), var(--gold-deep));
    border-radius: 2px;
}

.drawer-close {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--brown-mid);
    font-size: 24px;
    transition: all var(--transition);
    background: rgba(245,237,216,.5);
    border: 1px solid rgba(212, 165, 116,.15);
}
.drawer-close:hover {
    background: var(--warm);
    color: var(--red);
    transform: rotate(90deg);
    border-color: rgba(181,32,42,.2);
}

/* 字体大小切换按钮 */
.drawer-font-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--warm);
    border-radius: 20px;
    padding: 3px;
    border: 1px solid rgba(212, 165, 116,.2);
}

.drawer-font-switch button {
    min-width: 32px;
    height: 28px;
    padding: 0 8px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--brown-mid);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-font-switch button:hover {
    color: var(--gold-deep);
    background: rgba(255,255,255,.6);
}

.drawer-font-switch button.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    color: #fff;
    box-shadow: 0 2px 6px rgba(212, 165, 116,.3);
}

/* 抽屉内容 */
.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* 头部大头像区 */
.drawer-profile {
    text-align: center;
    margin-bottom: 28px;
    padding: 24px 20px;
    background: linear-gradient(180deg, rgba(212, 165, 116,.04) 0%, transparent 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(212, 165, 116,.1);
    position: relative;
    overflow: hidden;
}

.drawer-profile::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(212, 165, 116,.1) 0%, transparent 70%);
    border-radius: 50%;
}

.drawer-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 40px;
    font-weight: 700;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(212, 165, 116, .35);
    border: 4px solid rgba(255,255,255,.8);
    position: relative;
    z-index: 1;
    transition: transform var(--transition);
}

.drawer-avatar:hover {
    transform: scale(1.05);
}

.drawer-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--brown);
    margin-bottom: 8px;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.drawer-no {
    font-size: 13px;
    color: var(--brown-light);
    margin-bottom: 14px;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.drawer-no .member-no-num {
    font-size: 20px;
    font-weight: 700;
    color: var(--gold-deep);
    text-shadow: 0 2px 4px rgba(212, 165, 116,0.4);
    letter-spacing: 3px;
    margin-left: 4px;
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, rgba(212, 165, 116,.1), rgba(212, 165, 116,.05));
    border-radius: 4px;
}

.drawer-brief-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.drawer-brief-tag {
    padding: 5px 14px;
    background: rgba(255,255,255,.7);
    color: var(--brown-mid);
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(212, 165, 116,.15);
    transition: all var(--transition);
    white-space: nowrap;
}

.drawer-brief-tag:hover {
    background: var(--warm);
    border-color: rgba(212, 165, 116,.3);
    transform: translateY(-1px);
}

/* 照片展示区 */
.drawer-photos {
    margin-bottom: 24px;
}

.drawer-photos .photos-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--brown);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold-light);
}

.photos-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.photo-item {
    width: 130px;
    height: 130px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--warm);
}
.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.photo-item .photo-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44, 26, 14, .6);
    color: #fff;
    font-size: 12px;
    padding: 3px 8px;
    text-align: center;
}
.photo-item {
    position: relative;
}

/* 基本信息网格 */
.drawer-section {
    margin-bottom: 28px;
}

.drawer-section .section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--brown);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(212, 165, 116,.2);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.drawer-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-deep));
    border-radius: 1px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.info-cell {
    background: linear-gradient(180deg, rgba(255,255,255,.8) 0%, rgba(255,255,255,.4) 100%);
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    border: 1px solid rgba(212, 165, 116,.12);
    box-shadow: 0 1px 3px rgba(44,26,14,.04);
}
.info-cell:hover {
    background: var(--warm);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44,26,14,.08);
    border-color: rgba(212, 165, 116,.25);
}

.info-cell .cell-label {
    font-size: 12px;
    color: var(--brown-light);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-cell .cell-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--brown);
    line-height: 1.4;
}

.info-cell .cell-value.text-red {
    color: var(--red);
    font-weight: 700;
}

/* 自我介绍 / 择偶要求 */
.drawer-text-content {
    font-size: 14px;
    color: var(--brown-mid);
    line-height: 1.9;
    background: linear-gradient(180deg, rgba(255,255,255,.8) 0%, rgba(255,255,255,.4) 100%);
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    white-space: pre-wrap;
    border: 1px solid rgba(212, 165, 116,.12);
    box-shadow: 0 1px 3px rgba(44,26,14,.04);
    position: relative;
}

.drawer-text-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--gold), var(--gold-deep));
    border-radius: 2px 0 0 2px;
}

/* 联系方式 */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(255,255,255,.8) 0%, rgba(255,255,255,.4) 100%);
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(212, 165, 116,.12);
    box-shadow: 0 1px 3px rgba(44,26,14,.04);
    transition: all var(--transition);
}

.contact-item:hover {
    background: var(--warm);
    box-shadow: 0 4px 12px rgba(44,26,14,.08);
    border-color: rgba(212, 165, 116,.25);
}

.contact-item .contact-type {
    font-size: 13px;
    color: var(--brown-light);
    font-weight: 500;
}

.contact-item .contact-value {
    font-size: 15px;
    color: var(--brown);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    font-weight: 600;
}

.contact-notice {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--red);
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(181,32,42,.06);
    border-radius: 6px;
    border-left: 3px solid var(--red);
}

/* 详情页底部 8环节流程图 */
.drawer-flow-section {
    background: linear-gradient(135deg, rgba(255,255,255,.5) 0%, var(--warm) 100%);
    border-radius: 10px;
    padding: 16px;
    border: 1px solid rgba(212, 165, 116,.2);
}

.drawer-flow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.drawer-flow-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(212, 165, 116,.15);
    border-radius: 8px;
    transition: all var(--transition);
    cursor: default;
}

.drawer-flow-step:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--gold-light), rgba(255,255,255,.95));
    box-shadow: 0 4px 12px rgba(212, 165, 116,.2);
}

.drawer-flow-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(212, 165, 116,.3);
}

.drawer-flow-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.drawer-flow-title {
    font-size: 13px;
    color: var(--brown);
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drawer-flow-dur {
    font-size: 11px;
    color: var(--brown-light);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .drawer-flow-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 抽屉底部操作栏 */
.drawer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-top: 1px solid var(--warm);
    flex-shrink: 0;
    background: var(--cream);
    gap: 12px;
}

.btn-drawer {
    height: 42px;
    padding: 0 22px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-prev, .btn-next {
    background: #fff;
    color: var(--brown-mid);
    border: 1px solid #E8DFC8;
    flex-shrink: 0;
}
.btn-prev:hover, .btn-next:hover {
    border-color: var(--gold-light);
    color: var(--gold-deep);
    background: var(--warm);
    transform: translateY(-2px);
}

.btn-copy-intro {
    flex: 1;
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    color: #fff;
    border: none;
    box-shadow: 0 3px 10px rgba(212, 165, 116, .28);
}
.btn-copy-intro:hover {
    box-shadow: 0 5px 16px rgba(212, 165, 116, .38);
    transform: translateY(-2px);
}

/* ============================================================
   成功案例页
   ============================================================ */
.stories-page {
    margin-top: 54px;
    min-height: calc(100vh - 54px);
    padding: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.stories-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.stories-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--brown);
}

.btn-back {
    height: 36px;
    padding: 0 16px;
    background: var(--warm);
    color: var(--brown-mid);
    border: 1px solid var(--warm);
    border-radius: var(--radius);
    font-size: 13px;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
}
.btn-back:hover {
    border-color: var(--gold-light);
    color: var(--gold-deep);
}

/* 案例卡片 */
.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.story-card {
    background: #fff;
    border: 1px solid var(--warm);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    cursor: pointer;
}
.story-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.story-cover {
    height: 180px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--warm), #EDE0C8);
}
.story-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px);
}
.story-cover .cover-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, var(--red), #D43040);
    color: #fff;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
}

.story-body {
    padding: 16px;
}

.story-names {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--brown);
}

.story-heart {
    color: var(--red);
    font-size: 18px;
}

.story-basic {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--brown-light);
}

.story-summary {
    font-size: 13px;
    color: var(--brown-mid);
    line-height: 1.7;
}

/* 案例详情弹窗 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 26, 14, .5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}
.modal-overlay.open {
    display: flex;
}

.modal-content {
    width: 680px;
    max-width: 94vw;
    max-height: 85vh;
    background: var(--cream);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--warm);
    flex-shrink: 0;
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--brown);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--brown-mid);
    font-size: 20px;
    transition: all var(--transition);
    background: transparent;
}
.modal-close:hover {
    background: var(--warm);
    color: var(--brown);
}

/* ============================================================
   Toast 提示
   ============================================================ */
.toast-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 10px 18px;
    border-radius: var(--radius);
    font-size: 13px;
    color: #fff;
    box-shadow: var(--shadow-md);
    animation: toastIn .3s ease;
    max-width: 300px;
}
.toast.success { background: #4CAF50; }
.toast.error { background: var(--red); }
.toast.info { background: var(--gold); }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   响应式布局
   ============================================================ */

/* 大屏 3列 */
@media (min-width: 1400px) {
    .member-grid { grid-template-columns: repeat(3, 1fr); }
    .story-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 中屏 3列 */
@media (max-width: 1399px) and (min-width: 1024px) {
    .member-grid { grid-template-columns: repeat(3, 1fr); }
    .story-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 小屏 2列 */
@media (max-width: 1023px) and (min-width: 768px) {
    .member-grid { grid-template-columns: repeat(2, 1fr); }
    .story-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 手机端 */
@media (max-width: 767px) {
    /* 手机端隐藏侧边栏，用汉堡按钮触发 */
    .anchor-topnav .hamburger { display: flex; }

    .anchor-sidebar {
        transform: translateX(-100%);
        width: 280px;
        z-index: 950;
    }
    .anchor-sidebar.open {
        transform: translateX(0);
    }
    .sidebar-overlay.show {
        display: block;
    }

    .anchor-main {
        margin-left: 0;
    }

    /* 手机端1列 */
    .member-grid { grid-template-columns: 1fr; }
    .story-grid { grid-template-columns: 1fr; }

    /* 筛选栏 */
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-row .filter-item {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    .filter-select, .filter-input {
        width: 100%;
        min-width: 0;
    }
    .filter-input {
        padding-left: 32px;
    }
    .sms-row {
        flex-direction: column;
    }
    .sms-row .form-input { flex: none; width: 100%; }
    .btn-sms { width: 100%; }

    .filter-row .filter-actions {
        display: flex;
        gap: 8px;
    }
    .filter-row .filter-actions .btn-filter,
    .filter-row .filter-actions .btn-reset {
        flex: 1;
        text-align: center;
        justify-content: center;
    }

    /* 详情抽屉全屏 */
    .drawer-panel {
        width: 100vw;
    }

    /* 统计条 */
    .stats-bar {
        gap: 10px;
    }

    /* 分页控件 */
    .page-controls {
        flex-direction: column;
        align-items: stretch;
    }

    /* 抽屉底部 */
    .drawer-footer {
        flex-wrap: wrap;
        justify-content: center;
    }
    .btn-prev, .btn-next {
        flex: 1;
    }
    .btn-copy-intro {
        order: -1;
        width: 100%;
    }

    /* 案例 */
    .stories-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    .btn-back {
        justify-content: center;
    }

    /* 导航栏 */
    .anchor-topnav .nav-title {
        font-size: 14px;
    }

    /* Toast */
    .toast-container {
        right: 10px;
        left: 10px;
    }
    .toast {
        max-width: 100%;
    }
}

/* 平板适配 */
@media (max-width: 1023px) and (min-width: 768px) {
    .anchor-topnav .hamburger { display: flex; }

    .anchor-sidebar {
        transform: translateX(-100%);
        width: 280px;
        z-index: 950;
    }
    .anchor-sidebar.open {
        transform: translateX(0);
    }
    .sidebar-overlay.show {
        display: block;
    }
    .anchor-main {
        margin-left: 0;
    }
}

/* ============================================================
   动画 & 过渡增强
   ============================================================ */
.fade-in {
    animation: fadeIn .3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 卡片加载动画 */
.member-card {
    animation: fadeIn .3s ease;
    animation-fill-mode: both;
}
.member-card:nth-child(1) { animation-delay: .02s; }
.member-card:nth-child(2) { animation-delay: .04s; }
.member-card:nth-child(3) { animation-delay: .06s; }
.member-card:nth-child(4) { animation-delay: .08s; }
.member-card:nth-child(5) { animation-delay: .10s; }
.member-card:nth-child(6) { animation-delay: .12s; }
.member-card:nth-child(7) { animation-delay: .14s; }
.member-card:nth-child(8) { animation-delay: .16s; }
.member-card:nth-child(9) { animation-delay: .18s; }
.member-card:nth-child(10) { animation-delay: .20s; }
.member-card:nth-child(n+11) { animation-delay: .22s; }

/* ============================================================
   侧边栏Tab切换
   ============================================================ */
.sidebar-tabs {
    display: flex;
    border-bottom: 1px solid var(--warm);
    flex-shrink: 0;
    background: linear-gradient(180deg, #F7F0E0 0%, var(--cream) 100%);
    padding: 8px;
    gap: 6px;
}

.sidebar-tab {
    flex: 1;
    height: 42px;
    font-size: 14px;
    font-weight: 600;
    color: var(--brown-mid);
    background: rgba(255, 255, 255, .7);
    border: 1px solid rgba(208, 184, 140, .3);
    border-radius: var(--radius);
    transition: all var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    letter-spacing: 1px;
    box-shadow: 0 1px 2px rgba(44, 26, 14, .04);
}
.sidebar-tab .tab-icon {
    font-size: 16px;
    line-height: 1;
}
.sidebar-tab .tab-text {
    font-size: 14px;
}
.sidebar-tab:hover {
    color: var(--gold-deep);
    background: #fff;
    border-color: rgba(212, 165, 116, .45);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(212, 165, 116, .15);
}
.sidebar-tab.active {
    color: #fff;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-deep) 100%);
    border-color: var(--gold-deep);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(212, 165, 116, .38);
}

.sidebar-tab-content {
    display: none;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}
.sidebar-tab-content.active {
    display: flex;
}

/* 侧边栏展开按钮 */
.sidebar-expand-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    border: 1px solid rgba(212, 165, 116,.3);
    background: rgba(255,255,255,.7);
    color: var(--brown-mid);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
    font-size: 18px;
}
.sidebar-expand-btn:hover {
    background: rgba(212, 165, 116,.15);
    color: var(--gold-deep);
    border-color: rgba(212, 165, 116,.5);
    transform: rotate(90deg);
    box-shadow: 0 2px 8px rgba(212, 165, 116,.15);
}
.sidebar-expand-btn.expanded {
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    color: #fff;
    border-color: var(--gold-deep);
    transform: rotate(180deg);
}

/* 侧边栏展开模式 */
.anchor-sidebar.expanded {
    width: 50%;
    max-width: 720px;
    z-index: 1050;
    box-shadow: 8px 0 30px rgba(0,0,0,.2);
}
.anchor-sidebar.expanded .sidebar-tabs {
    justify-content: flex-start;
    gap: 8px;
}
.anchor-sidebar.expanded .sidebar-tab {
    flex: 0 0 auto;
    padding: 0 16px;
}
.anchor-sidebar.expanded .anchor-main {
    margin-left: 50%;
}

/* 提词搜索框 */
.scripts-search-bar {
    padding: 10px 12px 0;
    flex-shrink: 0;
}
.scripts-search-input {
    width: 100%;
    padding: 8px 14px;
    background: rgba(255,255,255,.8);
    border: 1px solid rgba(212, 165, 116,.2);
    border-radius: 20px;
    font-size: 13px;
    color: var(--brown);
    outline: none;
    transition: all var(--transition);
    box-sizing: border-box;
}
.scripts-search-input:focus {
    border-color: var(--gold);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212, 165, 116,.1);
}
.scripts-search-input::placeholder {
    color: var(--brown-light);
}

/* 提词手册容器 */
.scripts-container {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

/* ============================================================
   提词手册卡片样式
   ============================================================ */

/* 合规红线区域 */
.scripts-compliance-box {
    margin: 0 8px 8px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(181, 32, 42, .3);
}
.compliance-header {
    background: linear-gradient(90deg, rgba(181, 32, 42, .12), rgba(181, 32, 42, .05)) !important;
}
.compliance-header .scripts-section-icon {
    background: var(--red) !important;
    color: #fff !important;
}

/* 侧边栏流程步骤条 - 已移到主区域，隐藏 */
.scripts-flow-bar {
    display: none;
}

.flow-step {
    flex: 1;
    text-align: center;
    padding: 6px 4px;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition);
    min-width: 0;
}
.flow-step.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
}
.flow-step.active .flow-step-num,
.flow-step.active .flow-step-title,
.flow-step.active .flow-step-dur {
    color: #fff;
}

.flow-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--brown-light);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 4px;
}
.flow-step-title {
    font-size: 13px;
    color: var(--brown-mid);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.flow-step-dur {
    font-size: 11px;
    color: var(--brown-light);
    white-space: nowrap;
}

.flow-arrow {
    color: var(--gold);
    font-size: 14px;
    flex-shrink: 0;
}

/* 分类折叠区 */
.scripts-category,
.scripts-quickref {
    margin: 0 10px 8px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--warm);
}

.scripts-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--warm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--brown);
    transition: background var(--transition);
    user-select: none;
}
.scripts-section-header:hover {
    background: rgba(212, 165, 116, .12);
}

.scripts-section-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gold);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.scripts-section-icon.warn-icon {
    background: var(--red);
}
.scripts-section-icon.interact-icon {
    background: #E67E22;
}

.scripts-section-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gold);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.scripts-toggle-arrow {
    margin-left: auto;
    font-size: 12px;
    color: var(--brown-light);
    transition: transform .2s ease;
}

.scripts-section-body {
    padding: 8px;
}

/* 话术卡片 */
.script-card {
    padding: 12px 14px;
    margin-bottom: 8px;
    border-radius: 8px;
    border-left: 4px solid transparent;
    font-size: 14px;
    line-height: 1.6;
    cursor: pointer;
    transition: all var(--transition);
}

.script-card:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(44,26,14,.08);
}

.script-card.script-card-copied {
    animation: scriptCardCopied .3s ease;
}

@keyframes scriptCardCopied {
    0% { transform: scale(1); }
    50% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

.script-card:last-child {
    margin-bottom: 0;
}

/* 类型颜色 */
.script-type-script {
    background: rgba(52, 152, 219, .06);
    border-left-color: #3498DB;
}
.script-type-action {
    background: rgba(39, 174, 96, .06);
    border-left-color: #27AE60;
}
.script-type-interact {
    background: rgba(230, 126, 34, .06);
    border-left-color: #E67E22;
}
.script-type-warn {
    background: rgba(181, 32, 42, .06);
    border-left-color: #B5202A;
}
.script-type-tip {
    background: rgba(142, 68, 173, .06);
    border-left-color: #8E44AD;
}

.script-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.script-card-title {
    font-weight: 600;
    color: var(--brown);
    font-size: 15px;
}
.script-card-dur {
    font-size: 12px;
    color: var(--brown-light);
    background: var(--warm);
    padding: 2px 6px;
    border-radius: 4px;
}
.script-card-type {
    font-size: 12px;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
}
.script-type-warn .script-card-type { background: #B5202A; }
.script-type-script .script-card-type { background: #3498DB; }
.script-type-action .script-card-type { background: #27AE60; }
.script-type-interact .script-card-type { background: #E67E22; }
.script-type-tip .script-card-type { background: #8E44AD; }

.script-card-content {
    color: var(--brown);
    font-size: 15px;
    line-height: 1.7;
    font-weight: 400;
}

.script-card-cmds {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.script-cmd-tag {
    font-size: 12px;
    color: #E67E22;
    background: rgba(230, 126, 34, .1);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(230, 126, 34, .2);
}

.script-card-scene {
    font-size: 12px;
    color: var(--brown-light);
    font-style: italic;
    margin-top: 8px;
}

.scripts-more {
    padding: 4px 0;
    border-top: 1px dashed var(--warm);
    margin-top: 4px;
}

/* 互动指令速查 */
.quickref-item {
    padding: 4px 0;
    border-bottom: 1px dashed var(--warm);
}
.quickref-item:last-child {
    border-bottom: none;
}
.quickref-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--brown-mid);
    margin-bottom: 3px;
}
.quickref-cmds {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.quickref-cmd {
    font-size: 11px;
    color: #E67E22;
    background: rgba(230, 126, 34, .1);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(230, 126, 34, .2);
    cursor: pointer;
    transition: all var(--transition);
}
.quickref-cmd:hover {
    background: #E67E22;
    color: #fff;
}

/* ============================================================
   详情抽屉 - 推荐播报话术区
   ============================================================ */
.script-recommend-box {
    background: rgba(52, 152, 219, .06);
    border: 1px solid rgba(52, 152, 219, .2);
    border-radius: var(--radius);
    padding: 14px;
}

.script-recommend-content {
    font-size: 13px;
    color: var(--brown);
    line-height: 1.8;
    background: rgba(52, 152, 219, .06);
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid rgba(52, 152, 219, .15);
    white-space: pre-wrap;
    word-break: break-all;
}

.script-recommend-cmds {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.script-recommend-tips {
    margin-top: 8px;
}
.script-tip-item {
    font-size: 12px;
    color: var(--brown-mid);
    padding: 2px 0;
    position: relative;
    padding-left: 12px;
}
.script-tip-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}

.btn-copy-script {
    height: 32px;
    padding: 0 16px;
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-copy-script:hover {
    box-shadow: 0 2px 8px rgba(212, 165, 116, .3);
    transform: translateY(-1px);
}

.script-compliance-notice {
    margin-top: 8px;
    font-size: 11px;
    color: var(--red);
    padding: 4px 8px;
    background: rgba(181, 32, 42, .06);
    border-radius: 4px;
}
