/* ==========================================================================
   Senflare 用户中心样式表
   版本: 3.2.21 | 更新: 2026-01-17
   ========================================================================== */

:root {
    /* 色彩系统 */
    --c-primary: #FF6901;
    --c-success: #2cc76a;
    --c-warning: #f59e0b;
    --c-danger: #ef4444;
    --c-info: #3b82f6;

    /* 全局主题变量 (默认浅色) */
    --primary-color: #FF6901;
    --primary-bg: rgba(255, 105, 1, 0.1);

    /* 侧边栏相关 */
    --sidebar-bg: rgba(255, 255, 255, 0.90);
    --sidebar-text: #555;
    --sidebar-active-bg: rgba(255, 105, 1, 0.08);
    --sidebar-active-text: #FF6901;
    --sidebar-width: 60px;
    --sidebar-expanded-width: 220px;
    --sidebar-shadow: 1px 0 20px rgba(0, 0, 0, 0.03);

    /* 头部高度 */
    --header-height: 64px;

    /* 卡片与布局 */
    --card-bg: rgba(255, 255, 255, 0.82);
    --bg-color: #fcfcfc;
    --text-color: #333;
    --text-muted: #666;
    --text-muted-light: #999;
    --bg-secondary: rgba(0, 0, 0, 0.03);
    --border-color: rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.04);

    /* 动态背景 Orb 颜色 */
    --orb-1: #fff5e6;
    --orb-2: #fff0e0;
    --orb-3: #ffeadd;
}

/* 深色模式 */
[data-theme="dark"] {
    --sidebar-bg: rgba(20, 20, 20, 0.6);
    --sidebar-text: rgba(255, 255, 255, 0.8);
    --sidebar-active-bg: rgba(255, 255, 255, 0.1);
    --sidebar-active-text: #FF6901;
    --card-bg: rgba(30, 30, 30, 0.4);
    --bg-color: #050505;
    --text-color: #f7fafc;
    --text-muted: rgba(255, 255, 255, 0.6);
    --text-muted-light: rgba(255, 255, 255, 0.4);
    --bg-secondary: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.05);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --sidebar-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
    --orb-1: #4a1c03;
    --orb-2: #2c1e0b;
    --orb-3: #662200;
}

/* ==================== 全局基础样式 ==================== */
@font-face {
    font-family: 'Alibaba PuHuiTi';
    src: url('../assets/fonts/AlibabaPuHuiTi-3-55-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Alibaba PuHuiTi", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
}

html { font-size: 14px; }

body {
    background-color: var(--bg-color);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--text-color);
    transition: color 0.3s, background-color 0.3s;
}

/* 通用工具类 */
.hidden {
    display: none !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-muted-light {
    color: var(--text-muted-light) !important;
}

.text-sm {
    font-size: 0.85rem !important;
}

.text-xs {
    font-size: 0.75rem !important;
}

.font-normal {
    font-weight: 400 !important;
}

.desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hint {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 滚动条美化 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.2); }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); }

/* ==================== 动态背景 ==================== */
.bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-color);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.orb-1 { width: 500px; height: 500px; background: var(--orb-1); top: -100px; left: -100px; animation-delay: 0s; }
.orb-2 { width: 400px; height: 400px; background: var(--orb-2); top: 50%; right: -100px; animation-delay: -5s; }
.orb-3 { width: 350px; height: 350px; background: var(--orb-3); bottom: -50px; left: 30%; animation-delay: -10s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

/* ==================== 顶部导航栏 ==================== */
.header {
    height: var(--header-height);
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 20px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    z-index: 200;
    flex-shrink: 0;
    position: relative;
    gap: 15px;
}

.header-title {
    font-size: 1rem;
    font-weight: 700;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--sidebar-expanded-width);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.3s;
    gap: 6px;
}

.header-title .title-Hong {
    color: var(--text-color);
}

.header-title .title-link {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px;
    color: var(--text-muted);
    border-radius: 8px;
    transition: all 0.2s;
}

.mobile-menu-btn:hover {
    color: var(--primary-color);
}

/* ==================== 主体布局 ==================== */
.app-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* ==================== 侧边栏 ==================== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--card-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    z-index: 100;
    box-shadow: var(--sidebar-shadow);
    overflow: hidden;
    white-space: nowrap;
    height: 100%;
}

.sidebar.expanded { width: var(--sidebar-expanded-width); }

.nav-menu { flex: 1; padding: 15px 10px; overflow-y: auto; overflow-x: hidden; }

.nav-item {
    display: flex;
    align-items: center;
    padding: 0 14px;
    height: 46px;
    margin: 2px 0;
    border-radius: 8px;
    color: var(--sidebar-text);
    text-decoration: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 400;
    transition: background 0.2s ease;
    justify-content: center;
}

.sidebar.expanded .nav-item {
    justify-content: flex-start;
}

.nav-item i {
    width: 20px;
    font-style: normal;
    text-align: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.nav-text {
    display: none;
    margin-left: 10px;
    white-space: nowrap;
}

.sidebar.expanded .nav-text {
    display: inline;
}

.nav-item:hover {
    background: var(--primary-bg);
}

.nav-item.active {
    background: var(--primary-bg);
    color: var(--primary-color);
    font-weight: 500;
}

.sidebar-footer {
    padding: 10px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
    margin-top: auto;
}

.sidebar.expanded .sidebar-footer {
    align-items: stretch;
}

/* 底部操作栏 */
.footer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

.sidebar:not(.expanded) .footer-actions {
    flex-direction: column;
}

/* 底部右侧按钮组 */
.footer-right {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.sidebar:not(.expanded) .footer-right {
    flex-direction: column;
}

.theme-toggle, .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    color: var(--text-muted);
    border-radius: 8px;
    transition: all 0.2s;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
}

.theme-toggle:hover, .menu-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

/* 用户信息区域 */
.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 8px 10px;
    color: var(--text-muted);
    border-radius: 8px;
    transition: all 0.2s;
    flex: 1;
    min-width: 0;
}

.user-info:hover {
    color: var(--primary-color);
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(180deg, #FF6901, #FF8534);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.2s;
    position: relative;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 105, 1, 0.4);
}

/* 用户头像状态点 */
.user-avatar::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid var(--card-bg);
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.user-details {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: none;
}

.sidebar.expanded .user-details {
    display: block;
}

/* 展开时隐藏头像，显示用户名 */
.sidebar.expanded .user-avatar {
    display: none;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-icon {
    margin-right: 4px;
}

[data-theme="dark"] .user-name {
    color: rgba(255, 255, 255, 0.85);
}

/* 折叠时居中显示头像 */
.sidebar:not(.expanded) .user-info {
    padding: 8px;
    justify-content: center;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 99;
}

.sidebar-overlay.show {
    display: block;
}

/* ==================== 主内容区域 ==================== */
.content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.container {
    width: 100%;
    margin: 0 auto;
    max-width: none;
}

/* ==================== 卡片组件 ==================== */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow);
}

.card-header {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

.card-body {
    padding: 1.5rem;
    overflow-x: auto;
    transition: all 0.3s ease;
}

/* 卡片折叠按钮 */
.card-toggle-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.2rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    padding: 0;
    line-height: 1;
}

.card-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

/* ==================== 个人中心样式 ==================== */
.profile-info { display: flex; flex-direction: column; gap: 16px; }

.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.profile-row:last-child { border-bottom: none; }

.profile-label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.profile-value {
    font-weight: 500;
    color: var(--text-color);
}

/* 状态徽章 */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-active { background: rgba(44, 199, 106, 0.15); color: var(--c-success); }
.status-expired { background: rgba(239, 68, 68, 0.15); color: var(--c-danger); }
.status-banned { background: rgba(107, 114, 128, 0.15); color: #6b7280; }

/* 文本颜色辅助类 */
.text-success { color: var(--c-success); }
.text-warning { color: var(--c-warning); }
.text-danger { color: var(--c-danger); }
.text-muted { color: var(--text-muted); }

/* UUID管理区域 */
.uuid-section { display: flex; flex-direction: column; gap: 16px; }

.uuid-display { display: flex; flex-direction: column; gap: 8px; }

.uuid-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.uuid-value-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.uuid-value {
    background: var(--bg-secondary);
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.95rem;
    color: var(--text-color);
    word-break: break-all;
    flex: 1;
    min-width: 200px;
}

.uuid-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
}

.uuid-warning p {
    color: var(--c-warning);
    font-size: 0.9rem;
    margin: 0;
}

.uuid-actions { display: flex; gap: 12px; }

/* ==================== 表单组件 (Forms) ==================== */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s;
    height: 40px;
}

textarea.form-control {
    height: auto;
    min-height: 80px;
    resize: vertical;
}

.form-control:focus {
    outline: 0;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 105, 1, .15);
    background-color: #fff;
}

/* 小尺寸表单控件 */
.form-control-sm {
    height: 30px;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
}

/* 表单 - 深色模式覆盖 */
[data-theme="dark"] .form-control {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

[data-theme="dark"] .form-control:focus {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 105, 1, 0.2);
}

/* 下拉菜单 - 深色模式（统一所有 select 样式） */
[data-theme="dark"] select.form-control,
[data-theme="dark"] select.filter-select,
[data-theme="dark"] .form-control-sm {
    color-scheme: dark;
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] select.form-control option,
[data-theme="dark"] select.filter-select option,
[data-theme="dark"] .form-control-sm option {
    background: #2a2a2a !important;
    color: #fff !important;
}

[data-theme="dark"] select.form-control option:checked,
[data-theme="dark"] select.filter-select option:checked,
[data-theme="dark"] .form-control-sm option:checked {
    background: #3a3a3a !important;
    color: #fff !important;
}

/* ==================== 按钮组件 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    padding: 0 1.25rem;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.3s;
    letter-spacing: 0.5px;
    line-height: 1;
}

.btn-primary {
    background: #FF6901;
    color: #fff;
}

.btn-primary:hover {
    background: #f3690d;
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(255, 105, 1, 0.05);
    border: 1px solid rgba(255, 105, 1, 0.5);
    color: #FF6901;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 10px rgba(255, 105, 1, 0.1), inset 0 0 5px rgba(255, 105, 1, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-sm {
    padding: 0 1rem;
    font-size: 0.85rem;
    min-width: 40px;
}

.btn-xs {
    height: 30px;
    padding: 0 0.75rem;
    font-size: 0.8rem;
    min-width: 30px;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-danger {
    background: rgba(220, 53, 69, .1);
    color: #ef4444;
    border: 1px solid rgba(220, 53, 69, .4);
}

.btn-danger:hover {
    background: rgba(220, 53, 69, .2);
}

.btn-danger-solid {
    background: #ef4444;
    color: #fff;
    border: 1px solid #ef4444;
}

.btn-danger-solid:hover {
    background: #dc2626;
}

/* ==================== 弹窗组件 ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: 8px;
    transition: all 0.2s;
}

.modal-close:hover { background: var(--bg-secondary); }

.modal-body { padding: 20px; }
.modal-body p { color: var(--text-muted); line-height: 1.6; }

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
}

.modal-footer .btn {
    flex: 1;
    position: relative;
    z-index: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* 弹窗按钮样式 - 与后台一致 */
.modal-footer .btn-outline {
    background: rgba(255, 105, 1, 0.05);
    border: 1px solid rgba(255, 105, 1, 0.5);
    color: #FF6901;
}

.modal-footer .btn-outline:hover {
    background: #FF6901;
    color: #fff;
}

.modal-footer .btn-danger,
.modal-footer .btn-primary {
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.modal-footer .btn-danger:hover,
.modal-footer .btn-primary:hover {
    background: #f3690d;
    border-color: #f3690d;
}

/* ==================== Toast提示 ==================== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(39, 201, 63, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 24px;
    border-radius: 10px;
    border: 1px solid rgba(39, 201, 63, 0.3);
    font-size: 0.95rem;
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.error {
    background: rgba(239, 68, 68, 0.95);
    color: white;
    border-color: transparent;
}

/* ==================== CDK兑换模块 ==================== */
.cdk-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cdk-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cdk-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
}

.cdk-input-box {
    display: flex;
    gap: 12px;
    align-items: center;
}

.cdk-input {
    flex: 1;
    padding: 0 16px;
    height: 40px;
    min-height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-color);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.2s;
    box-sizing: border-box;
}

.cdk-input-box .btn {
    flex-shrink: 0;
}

.cdk-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.cdk-input::placeholder {
    color: var(--text-muted-light);
    letter-spacing: 1px;
}

.cdk-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* CDK兑换结果 */
.cdk-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 24px 20px;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    animation: resultFadeIn 0.3s ease;
}

@keyframes resultFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.cdk-result.success {
    background: rgba(44, 199, 106, 0.1);
    border-color: rgba(44, 199, 106, 0.3);
}

.cdk-result.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

/* 动画图标容器 */
.result-icon-wrapper {
    width: 56px;
    height: 56px;
}

.result-circle {
    width: 56px;
    height: 56px;
}

.result-circle-bg {
    fill: none;
    stroke: rgba(0, 0, 0, 0.1);
    stroke-width: 2;
}

.result-circle-fill {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
}

.cdk-result.success .result-circle-fill {
    stroke: #2cc76a;
    animation: circleDrawSuccess 0.4s ease forwards;
}

.cdk-result.error .result-circle-fill {
    stroke: #ef4444;
    animation: circleDrawError 0.4s ease forwards;
}

@keyframes circleDrawSuccess {
    to { stroke-dashoffset: 0; }
}

@keyframes circleDrawError {
    to { stroke-dashoffset: 0; }
}

/* 对勾动画 */
.result-check {
    fill: none;
    stroke: #2cc76a;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 36;
    stroke-dashoffset: 36;
    opacity: 0;
}

.cdk-result.success .result-check {
    opacity: 1;
    animation: checkDraw 0.3s ease 0.3s forwards;
}

@keyframes checkDraw {
    to { stroke-dashoffset: 0; }
}

/* X号动画 */
.result-cross-1,
.result-cross-2 {
    fill: none;
    stroke: #ef4444;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 28;
    stroke-dashoffset: 28;
    opacity: 0;
}

.cdk-result.error .result-cross-1 {
    opacity: 1;
    animation: crossDraw 0.2s ease 0.3s forwards;
}

.cdk-result.error .result-cross-2 {
    opacity: 1;
    animation: crossDraw 0.2s ease 0.4s forwards;
}

@keyframes crossDraw {
    to { stroke-dashoffset: 0; }
}

/* 隐藏不需要的图标 */
.cdk-result.success .result-cross-1,
.cdk-result.success .result-cross-2 {
    display: none;
}

.cdk-result.error .result-check {
    display: none;
}

.result-message {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    animation: textFadeIn 0.3s ease 0.4s both;
}

.result-detail {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    animation: textFadeIn 0.3s ease 0.5s both;
}

@keyframes textFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== 响应式适配 ==================== */
@media (max-width: 768px) {
    .header {
        justify-content: flex-start;
    }
    
    .header-title {
        position: static;
        width: auto;
    }
    
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .sidebar {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        bottom: 0;
        height: auto;
        width: var(--sidebar-expanded-width);
        transition: left 0.3s ease;
        display: flex;
        flex-direction: column;
    }
    
    .sidebar.mobile-open { left: 0; }
    
    .sidebar .nav-menu {
        flex: 1;
        overflow-y: auto;
    }
    
    .sidebar .nav-text { display: block; }
    
    /* 移动端始终显示用户名，隐藏头像 */
    .sidebar .user-details { display: block; }
    .sidebar .user-avatar { display: none; }
    
    /* 移动端侧边栏底部控件 */
    .sidebar .sidebar-footer { display: flex; }
    .sidebar .footer-actions { display: flex; width: 100%; }
    .sidebar .footer-right { display: flex; flex-direction: row; }
    .sidebar .theme-toggle { display: flex; }
    .sidebar .menu-toggle { display: flex; } /* 移动端显示关闭按钮 */
    
    .content { padding: 16px; }
    
    .uuid-value-wrapper { flex-direction: column; align-items: stretch; }
    .uuid-value { min-width: auto; }
    
    .profile-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}


/* ==================== 订阅管理样式 ==================== */
.subscription-status:empty {
    display: none;
}

.subscription-status {
    margin-bottom: 16px;
}

.subscription-status.expired,
.subscription-status.banned {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--c-danger);
    font-size: 0.9rem;
}

.subscription-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.subscription-url-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.subscription-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.subscription-url-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.subscription-url-input {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    color: var(--text-color);
    outline: none;
    transition: border-color 0.2s;
}

.subscription-url-input:focus {
    border-color: var(--primary-color);
}

.subscription-formats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.format-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.format-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-color);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.format-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-bg);
}

.format-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

/* 二维码区域 */
.qrcode-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.qrcode-container,
#user-qrcode-container {
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    width: fit-content;
    margin: 0 auto;
}

.qrcode-container canvas,
.qrcode-container img {
    display: block;
}

.qrcode-tip {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

.qrcode-actions {
    display: flex;
    gap: 12px;
}

/* 使用说明 */
.usage-guide {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guide-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 10px;
}

.guide-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.guide-content {
    flex: 1;
}

.guide-content strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-color);
}

.guide-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .subscription-url-box {
        flex-direction: column;
        align-items: stretch;
    }
    
    .subscription-url-box .btn {
        width: 100%;
        justify-content: center;
    }
    
    .format-buttons {
        flex-direction: column;
    }
    
    .format-btn {
        width: 100%;
        text-align: center;
    }
    
    /* CDK兑换移动端适配 */
    .cdk-input-box {
        flex-direction: row;
        gap: 8px;
    }
    
    .cdk-input-box .btn {
        flex-shrink: 0;
        padding: 10px 16px;
    }
    
    .cdk-input {
        flex: 1;
        min-width: 0;
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    .cdk-result {
        flex-direction: column;
        text-align: center;
    }
    
    /* UUID管理移动端适配 */
    .uuid-display-row {
        flex-direction: row;
        gap: 8px;
    }
    
    .uuid-code {
        flex: 1;
        min-width: 0;
        font-size: 0.75rem;
    }
    
    .uuid-display-row .btn {
        flex-shrink: 0;
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}


/* ==================== 数据看板样式 ==================== */

/* 网络状态/会员状态 */
.network-status,
.member-status {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.status-item:last-child {
    border-bottom: none;
}

.status-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.status-value {
    font-weight: 500;
    color: var(--text-color);
}

/* ==================== 节点状态样式 ==================== */

.node-list-container {
    overflow-x: auto;
}

.node-table {
    width: auto;
    min-width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    white-space: nowrap;
}

.node-table th,
.node-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.node-table th:first-child,
.node-table td:first-child {
    padding-left: 20px;
}

.node-table th:last-child,
.node-table td:last-child {
    padding-right: 20px;
}

.node-table th {
    background: rgba(0, 0, 0, 0.02);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.node-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

.node-table .ping-good {
    color: #22c55e;
    font-weight: 600;
}

.node-table .ping-medium {
    color: #f59e0b;
    font-weight: 600;
}

.node-table .ping-bad {
    color: #ef4444;
    font-weight: 600;
}

.node-table .ping-fail {
    color: var(--text-muted);
}

.node-table .ping-testing {
    color: var(--c-info);
}

.table-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 30px !important;
}

[data-theme="dark"] .node-table th {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .node-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.node-hint {
    padding: 12px 16px;
    margin: 15px;
    background: rgba(255, 105, 1, 0.05);
    border-radius: 8px;
}

[data-theme="dark"] .node-hint {
    background: rgba(255, 105, 1, 0.1);
}

.node-hint p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

[data-theme="dark"] .node-hint p {
    color: var(--text-muted);
}


/* ==================== 公告模块样式 ==================== */

/* 公告列表 */
.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.loading-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-placeholder .empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* 公告项 */
.announcement-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
}

.announcement-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.announcement-item.pinned {
    background: linear-gradient(135deg, rgba(255, 105, 1, 0.05), rgba(255, 105, 1, 0.02));
    border-color: rgba(255, 105, 1, 0.3);
}

/* 公告类型徽章 */
.announcement-type {
    flex-shrink: 0;
}

.announcement-type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.announcement-type-badge.info {
    background: rgba(59, 130, 246, 0.15);
    color: var(--c-info);
}

.announcement-type-badge.warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--c-warning);
}

.announcement-type-badge.urgent {
    background: rgba(239, 68, 68, 0.15);
    color: var(--c-danger);
}

/* 公告内容区 */
.announcement-info {
    flex: 1;
    min-width: 0;
}

.announcement-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.announcement-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.announcement-pin {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.announcement-preview {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.announcement-time {
    font-size: 0.8rem;
    color: var(--text-muted-light);
    margin-top: 8px;
}

/* 公告详情弹窗 */
.announcement-modal {
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.announcement-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.announcement-modal-title h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.announcement-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.announcement-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-color);
    white-space: pre-wrap;
    word-break: break-word;
    overflow-y: auto;
    max-height: 400px;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .announcement-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .announcement-header {
        flex-wrap: wrap;
    }
    
    .announcement-modal {
        max-height: 90vh;
        margin: 10px;
    }
    
    .announcement-content {
        max-height: 300px;
    }
}


/* ==================== 网络检测卡片 (Latency Cards) ==================== */
.latency-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.latency-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.latency-card:hover {
    box-shadow: 0 8px 24px rgba(255, 105, 1, 0.1);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.latency-card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.latency-card-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.latency-card-icon svg {
    width: 100%;
    height: 100%;
}

.latency-card-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
}

.latency-value {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 600;
}

.latency-card-region {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.latency-card-region-domestic {
    background: rgba(255, 105, 1, 0.1);
    color: var(--primary-color);
}

.latency-card-region-international {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.latency-card-content {
    margin-top: 1rem;
}

.latency-bars {
    display: flex;
    gap: 3px;
    height: 6px;
    align-items: flex-end;
}

.latency-bar {
    flex: 1;
    height: 100%;
    border-radius: 2px;
    background: var(--border-color);
    transition: background-color 0.3s;
}

.latency-bar.loading {
    animation: latencyPulse 1s ease-in-out infinite;
    background: rgba(250, 171, 65, 0.4);
}

@keyframes latencyPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

@media (max-width: 900px) {
    .latency-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .latency-card {
        padding: 0.85rem;
    }
    .latency-card-title {
        gap: 0.4rem;
        margin-bottom: 0.5rem;
    }
    .latency-card-icon {
        width: 18px;
        height: 18px;
    }
    .latency-card-name {
        font-size: 0.8rem;
    }
    .latency-value {
        font-size: 0.7rem;
    }
    .latency-card-region {
        font-size: 0.6rem;
        padding: 1px 5px;
    }
}

@media (max-width: 600px) {
    .latency-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    .latency-card {
        padding: 0.65rem;
        border-radius: 8px;
    }
    .latency-card-title {
        gap: 0.35rem;
        margin-bottom: 0.4rem;
    }
    .latency-card-icon {
        width: 16px;
        height: 16px;
    }
    .latency-card-name {
        font-size: 0.72rem;
    }
    .latency-value {
        font-size: 0.65rem;
    }
    .latency-card-region {
        font-size: 0.55rem;
        padding: 1px 4px;
    }
    .latency-card-content {
        margin-top: 0.35rem;
    }
    .latency-bars {
        height: 4px;
        gap: 2px;
    }
}

@media (max-width: 400px) {
    .latency-cards {
        gap: 0.5rem;
    }
    .latency-card {
        padding: 0.5rem;
    }
    .latency-card-icon {
        width: 14px;
        height: 14px;
    }
    .latency-card-name {
        font-size: 0.65rem;
    }
    .latency-value {
        font-size: 0.6rem;
    }
    .latency-card-region {
        font-size: 0.5rem;
    }
}


/* ==================== IP 详情弹窗 ==================== */
.ip-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.ip-detail-content {
    background: var(--card-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 24px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.ip-detail-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-secondary);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
}

.ip-detail-close:hover {
    background: var(--primary-color);
    color: white;
}

.ip-detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.ip-detail-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
}

.ip-detail-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.ip-detail-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.ip-detail-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
}

.ip-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    gap: 12px;
}

.ip-detail-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.ip-detail-value {
    font-size: 0.85rem;
    color: var(--text-color);
    text-align: right;
    word-break: break-all;
}

.ip-detail-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.ip-detail-source {
    font-size: 0.7rem;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
}

.badge-info { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.badge-verylow { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.badge-low { background: rgba(132, 204, 22, 0.15); color: #84cc16; }
.badge-elevated { background: rgba(234, 179, 8, 0.15); color: #eab308; }
.badge-high { background: rgba(249, 115, 22, 0.15); color: #f97316; }
.badge-critical { background: rgba(220, 38, 38, 0.2); color: #dc2626; }

/* IP 类型标签 */
.ip-type-residential { color: #22c55e; }
.ip-type-hosting { color: #f59e0b; }
.ip-type-business { color: #3b82f6; }
.ip-type-unknown { color: var(--text-muted); }

/* ==================== 会员状态面板（高级版） ==================== */
.member-status-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 顶部状态区 */
.member-status-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.member-avatar-box {
    position: relative;
    flex-shrink: 0;
}

.member-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #ff9a44);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 105, 1, 0.3);
}

.member-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #9ca3af;
    border: 2px solid var(--card-bg);
}

.member-status-dot.active {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.member-status-dot.expired {
    background: #ef4444;
}

.member-info-box {
    flex: 1;
    min-width: 0;
}

.member-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.member-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.member-type-badge,
.member-type-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid;
}

/* 用户端会员标签 - 默认灰色样式 */
.member-type-badge.tag-member-default,
.member-type-badge.tag-member-inactive {
    background: rgba(156, 163, 175, 0.15);
    color: #9ca3af;
    border-color: rgba(156, 163, 175, 0.3);
}

.member-status-tag {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.member-status-tag.expired {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

/* 会员类型标签颜色 */
.tag {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
    min-width: 60px;
    text-align: center;
    border: 1px solid;
}

.tag-member-permanent {
    background: rgba(255, 105, 1, 0.15);
    color: #ff6901;
    border-color: rgba(255, 105, 1, 0.3);
}

.tag-member-yearly {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.3);
}

.tag-member-quarterly {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
}

.tag-member-monthly {
    background: rgba(255, 0, 0, 0.15);
    color: #ff0000;
    border-color: rgba(255, 0, 0, 0.3);
}

.tag-member-weekly {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
}

.tag-member-daily {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
}

.tag-member-temp {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
    border-color: rgba(236, 72, 153, 0.3);
}

.tag-member-default {
    background: rgba(156, 163, 175, 0.15);
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

.tag-member-inactive {
    background: rgba(156, 163, 175, 0.15);
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

/* 会员时长进度条 */
.member-progress-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 16px;
}

.member-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.member-progress-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.member-progress-days {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

.member-progress-track {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.member-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #ff9a44);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.member-progress-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* 底部统计 */
.member-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.member-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 10px;
    transition: all 0.2s;
}

.member-stat-item:hover {
    background: rgba(255, 105, 1, 0.05);
}

.member-stat-icon {
    font-size: 1.2rem;
}

.member-stat-content {
    display: flex;
    flex-direction: column;
}

.member-stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
}

.member-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* 响应式 */
@media (max-width: 600px) {
    .member-status-header {
        flex-wrap: wrap;
    }
    
    .member-stats-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .member-stat-item {
        flex-direction: column;
        text-align: center;
        padding: 10px 8px;
        gap: 6px;
    }
    
    .member-stat-content {
        align-items: center;
    }
    
    .member-avatar {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
}

/* ==================== 使用说明步骤（高级版） ==================== */
.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
}

.guide-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
}

.guide-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #ff9a44);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 105, 1, 0.25);
}

.guide-step-content {
    flex: 1;
    padding-top: 4px;
}

.guide-step-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.guide-step-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.guide-step-line {
    width: 2px;
    height: 20px;
    background: linear-gradient(180deg, var(--primary-color), rgba(255, 105, 1, 0.2));
    margin-left: 15px;
    border-radius: 1px;
}

/* 推荐客户端 */
.guide-clients {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 16px;
}

.guide-clients-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.guide-clients-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.guide-client-tag {
    padding: 6px 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-color);
    transition: all 0.2s;
}

.guide-client-tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(255, 105, 1, 0.05);
}

@media (max-width: 600px) {
    .guide-step {
        gap: 12px;
        padding: 12px 0;
    }
    
    .guide-step-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .guide-step-line {
        margin-left: 13px;
        height: 16px;
    }
    
    .guide-client-tag {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
}

/* CDK注意事项 */
.cdk-notice-box {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    padding: 16px;
}

.cdk-notice-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f59e0b;
    margin-bottom: 12px;
}

.cdk-notice-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cdk-notice-item {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-left: 16px;
    position: relative;
}

.cdk-notice-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #f59e0b;
    font-weight: bold;
}

/* ==================== 个人中心面板（高级版） ==================== */
.profile-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 用户头像区 */
.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar-box {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #ff9a44);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 105, 1, 0.3);
}

.profile-status-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #9ca3af;
    border: 3px solid var(--card-bg);
}

.profile-status-dot.active {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.profile-header-info {
    flex: 1;
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.profile-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-type-tag {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid;
}

.profile-status-tag {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.profile-status-tag.expired {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

/* 信息列表 */
.profile-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: 10px;
}

.profile-detail-icon {
    font-size: 1.1rem;
}

.profile-detail-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    min-width: 70px;
}

.profile-detail-value {
    flex: 1;
    text-align: right;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

/* UUID管理面板 */
.uuid-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.uuid-display-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.uuid-code {
    flex: 1;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    color: var(--primary-color);
    background: var(--bg-secondary);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    word-break: break-all;
}

.uuid-warning-box {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 10px;
}

.uuid-warning-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.uuid-warning-text {
    flex: 1;
}

.uuid-warning-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #f59e0b;
    margin-bottom: 4px;
}

.uuid-warning-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.uuid-reset-btn {
    width: 100%;
}

@media (max-width: 600px) {
    .profile-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .profile-name {
        font-size: 1.1rem;
    }
    
    .profile-detail-item {
        padding: 10px 12px;
    }
}

/* ==================== 修改密码面板 ==================== */
.password-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.password-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.password-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.password-input {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-color);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.password-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 105, 1, 0.1);
}

.password-input::placeholder {
    color: var(--text-muted);
}

.password-submit-btn {
    width: 100%;
    height: 44px;
}

.password-actions {
    display: flex;
    justify-content: flex-start;
}


/* 公告展开/收起按钮 */
.announcement-toggle {
    display: block;
    text-align: center;
    padding: 10px 16px;
    margin-top: 12px;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.announcement-toggle:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}


/* ==================== 签到功能样式 ==================== */

/* 导航栏右侧 */
.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkin-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 105, 1, 0.1);
    border: none;
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.checkin-trigger:hover {
    background: rgba(255, 105, 1, 0.2);
    transform: translateY(-1px);
}

.checkin-trigger.checked {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.checkin-icon {
    font-size: 1rem;
}

/* 签到弹窗 */
.checkin-modal {
    width: 100%;
    max-width: 320px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.checkin-header {
    background: #ffffff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: none;
}

.checkin-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #444;
}

.checkin-close {
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkin-close:hover {
    background: rgba(0, 0, 0, 0.15);
}

.checkin-body {
    padding: 16px;
    background: #fff;
}

/* 统计区域 */
.checkin-stats {
    background: linear-gradient(180deg, #fff5eb 0%, #ffecdb 100%);
    border-radius: 12px;
    padding: 20px 16px;
    display: flex;
    margin-bottom: 12px;
    position: relative;
}

.checkin-stats::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 150, 100, 0.3);
}

.checkin-stat-item {
    flex: 1;
    text-align: center;
}

.checkin-stat-value {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    color: #ff6b35;
}

.checkin-stat-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

/* 奖励信息 */
.checkin-reward {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 12px;
}

.checkin-reward-icon {
    font-size: 24px;
}

.checkin-reward-info {
    flex: 1;
}

.checkin-reward-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.checkin-reward-desc {
    font-size: 11px;
    color: #aaa;
    margin-top: 2px;
}

.checkin-reward-value {
    font-size: 20px;
    font-weight: 700;
    color: #22c55e;
}

/* 签到按钮 */
.checkin-btn {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(90deg, #ff8c00 0%, #ffb347 100%);
    color: #fff;
    transition: all 0.2s;
}

.checkin-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.checkin-btn.success {
    background: #22c55e;
}

.checkin-btn.success:hover {
    transform: none;
    box-shadow: none;
}

.checkin-btn.checked {
    background: #22c55e;
    cursor: default;
}

.checkin-btn.checked:hover {
    transform: none;
    box-shadow: none;
}

.checkin-hint {
    text-align: center;
    font-size: 11px;
    color: #ccc;
    margin-top: 12px;
}

/* 深色模式适配 */
[data-theme="dark"] .checkin-modal {
    background: var(--card-bg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .checkin-header {
    background: #2a2a2a;
}

[data-theme="dark"] .checkin-title {
    color: #fff;
}

[data-theme="dark"] .checkin-close {
    background: var(--bg-secondary);
    color: var(--text-muted);
}

[data-theme="dark"] .checkin-body {
    background: #2a2a2a;
}

[data-theme="dark"] .checkin-stats {
    background: linear-gradient(180deg, rgba(255, 140, 0, 0.15) 0%, rgba(255, 140, 0, 0.08) 100%);
}

[data-theme="dark"] .checkin-stats::after {
    background: rgba(255, 150, 100, 0.2);
}

[data-theme="dark"] .checkin-reward {
    background: var(--bg-secondary);
}

[data-theme="dark"] .checkin-reward-title {
    color: var(--text-color);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .checkin-text {
        display: none;
    }
    
    .checkin-trigger {
        padding: 8px 10px;
    }
}
