/* === main-app.css全局样式重置 === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* === 现代毛玻璃效果 === */
.glass-effect {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-effect-light {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* === 登录页面 === */
.login-container {
    max-width: 420px;
    margin: 80px auto;
    padding: 40px 30px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
}

.login-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(30, 41, 59, 0.7);
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    color: #f1f5f9;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background: rgba(30, 41, 59, 0.9);
}

.form-input::placeholder {
    color: #64748b;
}

.login-btn {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 25px rgba(59, 130, 246, 0.4),
        0 0 15px rgba(59, 130, 246, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

/* === 主布局 === */
#mainLayout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* === 侧边栏 === */
.sidebar {
    width: 70px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    position: relative;
}

.sidebar.expanded {
    width: 260px;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.sidebar.expanded .logo-text {
    opacity: 1;
}

.sidebar-nav {
    flex: 1;
    padding: 0 15px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #3b82f6, #8b5cf6);
    transform: translateX(-10px);
    transition: transform 0.3s ease;
}

.nav-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #e2e8f0;
    transform: translateX(5px);
}

.nav-item:hover::before {
    transform: translateX(0);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    color: #60a5fa;
}

.nav-item.active::before {
    transform: translateX(0);
}

.nav-icon {
    font-size: 20px;
    min-width: 24px;
    text-align: center;
}

.nav-text {
    font-size: 15px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.sidebar.expanded .nav-text {
    opacity: 1;
}

.sidebar-toggle {
    position: absolute;
    top: 20px;
    right: -12px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    transform: scale(1.1);
}

.toggle-icon {
    color: white;
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* === 主内容区 === */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
}

/* === 顶部导航 === */
.header {
    padding: 20px 30px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 200;
}

.header-title {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(30, 41, 59, 0.7);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-profile:hover {
    background: rgba(59, 130, 246, 0.1);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3b82f6;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
}

.user-status {
    font-size: 12px;
    color: #60a5fa;
}

/* === 页面容器 === */
.page-container {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    position: relative;
}

.page-container::-webkit-scrollbar {
    width: 8px;
}

.page-container::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 4px;
}

.page-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 4px;
}

/* === 首页样式 === */
#home-page {
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-card {
    text-align: center;
    padding: 40px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.welcome-icon {
    font-size: 60px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-subtitle {
    color: #94a3b8;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 30px;
}

.stat-card {
    padding: 20px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.3);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: #94a3b8;
}

/* === 账号管理页面 === */
.accounts-grid {
     display: grid; 
    gap: 24px;
    padding: 10px 0;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
}

@media (min-width: 1200px) {
    .accounts-grid {
        /* grid-template-columns: repeat(3, 1fr); */
    }
}

@media (min-width: 1600px) {
    .accounts-grid {
        grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    }
}

/* 账号卡片优化 */
.account-card {
    background: rgba(15, 23, 42, 0.85);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.account-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(59, 130, 246, 0.2);
}

.account-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.account-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.account-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) border-box;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    flex-shrink: 0;
}

.account-info {
    flex: 1;
    min-width: 0;
}

.account-name {
    font-size: 18px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-id {
    font-size: 13px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.account-details {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
    flex: 1;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    min-height: 24px;
}

.detail-label {
    color: #94a3b8;
    font-weight: 500;
}

.detail-value {
    color: #e2e8f0;
    font-weight: 600;
}

.expire-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.status-valid {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.status-expired {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.account-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.action-btn {
    padding: 10px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
}

.action-btn i {
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: rgba(30, 41, 59, 0.8);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border-color: #3b82f6;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: #94a3b8;
}

.empty-description {
    color: #64748b;
    line-height: 1.6;
}

/* === 存档列表页面优化 === */
.save-slots-container {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 24px;
    /* grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); */
}

.save-slots-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.save-slots-title {
    font-size: 20px;
    font-weight: 600;
    color: #e2e8f0;
}

.save-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

@media (min-width: 1200px) {
    .save-slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1600px) {
    .save-slots-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.save-slot-card {
    background: rgba(30, 41, 59, 0.6);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.save-slot-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.save-slot-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.save-slot-title {
    font-size: 18px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 6px;
}

.save-slot-time {
    font-size: 12px;
    color: #94a3b8;
}

.save-slot-number {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.save-slot-characters {
    flex: 1;
    margin-bottom: 20px;
}

.character-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.character-row:last-child {
    margin-bottom: 0;
}

.character-avatar {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.character-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
}

.character-p1 .character-img {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) border-box;
}

.character-p2 .character-img {
    background: linear-gradient(135deg, #8b5cf6, #ec4899) border-box;
}

.character-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    z-index: 1;
}

.character-p1 .character-badge {
    background: #3b82f6;
    color: white;
}

.character-p2 .character-badge {
    background: #8b5cf6;
    color: white;
}

.character-info {
    flex: 1;
    min-width: 0;
}

.character-name {
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.character-level {
    font-size: 14px;
    color: #94a3b8;
}

.empty-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    height: 100%;
    opacity: 0.6;
}

.empty-slot-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-slot-text {
    text-align: center;
}

.empty-slot-title {
    font-size: 16px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 4px;
}

.empty-slot-desc {
    font-size: 12px;
    color: #64748b;
}

/* ================================================================
   游戏存档列表头部响应式优化
   针对手机端等小屏幕设备的存档列表头部布局优化
================================================================ */

/* === 存档列表头部基础样式 === */
.save-slots-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.save-slots-header:hover {
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.save-slots-title {
    font-size: 20px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.save-slots-title::before {
    content: '💾';
    font-size: 24px;
}

/* === 返回按钮优化 === */
.save-slots-header .back-btn {
    padding: 10px 20px;
    background: rgba(30, 41, 59, 0.8);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
}

.save-slots-header .back-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border-color: #3b82f6;
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.save-slots-header .back-btn span {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.save-slots-header .back-btn:hover span {
    transform: translateX(-2px);
}

/* === 平板设备优化 (768px以下) === */
@media (max-width: 768px) {
    .save-slots-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 16px;
        margin-bottom: 20px;
        border-radius: 14px;
    }
    
    .save-slots-title {
        font-size: 18px;
        margin-bottom: 8px;
        gap: 8px;
    }
    
    .save-slots-title::before {
        font-size: 20px;
    }
    
    .save-slots-header .back-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
    }
    
    /* 添加返回按钮容器 */
    .save-slots-header > div {
        width: 100%;
    }
}

/* === 手机设备优化 (480px以下) === */
@media (max-width: 480px) {
    .save-slots-header {
        padding: 14px;
        margin-bottom: 16px;
        border-radius: 12px;
        gap: 12px;
    }
    
    .save-slots-title {
        font-size: 16px;
        margin-bottom: 6px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .save-slots-title::before {
        font-size: 18px;
        align-self: flex-start;
    }
    
    .save-slots-header .back-btn {
        padding: 10px 16px;
        font-size: 13px;
        min-height: 40px;
        gap: 6px;
    }
    
    .save-slots-header .back-btn span {
        font-size: 16px;
    }
    
    /* 添加背景动画效果 */
    .save-slots-header {
        position: relative;
        overflow: hidden;
    }
    
    .save-slots-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
        transition: left 0.5s ease;
    }
    
    .save-slots-header:hover::before {
        left: 100%;
    }
}

/* === 超小屏幕优化 (360px以下) === */
@media (max-width: 360px) {
    .save-slots-header {
        padding: 12px;
        margin-bottom: 12px;
        border-radius: 10px;
    }
    
    .save-slots-title {
        font-size: 15px;
    }
    
    .save-slots-title::before {
        font-size: 16px;
    }
    
    .save-slots-header .back-btn {
        padding: 8px 14px;
        font-size: 12px;
        min-height: 36px;
        gap: 4px;
    }
    
    .save-slots-header .back-btn span {
        font-size: 14px;
    }
    
    /* 压缩布局，保持简洁 */
    .save-slots-header .back-btn .btn-text {
        display: inline-block;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* === 横屏模式优化 === */
@media (max-width: 768px) and (orientation: landscape) {
    .save-slots-header {
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }
    
    .save-slots-header > div {
        flex: 1;
    }
    
    .save-slots-header .back-btn {
        width: auto;
        min-width: 120px;
        flex-shrink: 0;
    }
    
    .save-slots-title {
        flex-direction: row;
        align-items: center;
        margin-bottom: 0;
    }
}

/* === 触摸设备优化 === */
@media (hover: none) and (pointer: coarse) {
    .save-slots-header .back-btn {
        min-height: 44px; /* iOS推荐的最小触摸尺寸 */
    }
    
    /* 增加触摸反馈 */
    .save-slots-header .back-btn:active {
        transform: scale(0.95);
        background: rgba(59, 130, 246, 0.2);
        transition: transform 0.1s ease;
    }
    
    /* 标题触摸区域 */
    .save-slots-title {
        padding: 4px 0;
    }
}

/* === 暗色模式优化 === */
@media (prefers-color-scheme: dark) {
    .save-slots-header {
        background: rgba(15, 23, 42, 0.9);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .save-slots-header:hover {
        border-color: rgba(59, 130, 246, 0.3);
    }
    
    .save-slots-header .back-btn {
        background: rgba(30, 41, 59, 0.9);
        border-color: rgba(148, 163, 184, 0.3);
    }
    
    .save-slots-header .back-btn:hover {
        background: rgba(59, 130, 246, 0.2);
    }
}

/* === 加载状态优化 === */
.save-slots-header.loading {
    opacity: 0.7;
    pointer-events: none;
}

.save-slots-header.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    animation: loadingShimmer 2s infinite;
}

@keyframes loadingShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* === 空状态样式 === */
.save-slots-header:empty {
    display: none;
}

/* === 高对比度模式 === */
@media (prefers-contrast: high) {
    .save-slots-header {
        border-width: 2px;
        border-color: #3b82f6;
    }
    
    .save-slots-title {
        color: #e2e8f0;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }
    
    .save-slots-header .back-btn {
        border-width: 2px;
        border-color: #60a5fa;
    }
}

/* === 动画过渡 === */
.save-slots-header {
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === 焦点状态（无障碍支持） === */
.save-slots-header .back-btn:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

/* === 打印模式优化 === */
@media print {
    .save-slots-header {
        background: none;
        border: 1px solid #ccc;
        box-shadow: none;
    }
    
    .save-slots-header .back-btn {
        display: none;
    }
    
    .save-slots-title::before {
        content: '📁';
        color: #333;
    }
}

/* 游戏进入按钮优化 */
.enter-game-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
}

.enter-game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

/* 返回按钮优化 */
.back-btn {
    padding: 10px 20px;
    background: rgba(30, 41, 59, 0.8);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border-color: #3b82f6;
}

/* === 账号信息展示优化 === */
.account-info-container {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 24px;
}

.account-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.account-info-title {
    font-size: 20px;
    font-weight: 600;
    color: #e2e8f0;
}

.account-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.account-stat-item {
    background: rgba(30, 41, 59, 0.6);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.account-stat-item:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.stat-value.gems {
    color: #60a5fa;
}

.stat-value.vip {
    color: #c084fc;
}

.stat-value.coin {
    color: #f59e0b;
}

/* === 副本页面样式 === */
.copy-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    height: 100%;
}

@media (max-width: 1024px) {
    .copy-dashboard {
        grid-template-columns: 1fr;
    }
}

.panel {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-title {
    font-size: 20px;
    font-weight: 600;
    color: #e2e8f0;
}

.form-grid {
    display: grid;
    gap: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.stat-box {
    background: rgba(30, 41, 59, 0.6);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-total {
    color: #60a5fa;
}

.stat-success {
    color: #4ade80;
}

.stat-failed {
    color: #f87171;
}

.stat-items {
    color: #c084fc;
}

.progress-container {
    margin: 24px 0;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.progress-bar {
    height: 10px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-lg {
    flex: 1;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-start {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-start:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(16, 185, 129, 0.4);
}

.btn-stop {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.btn-stop:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(239, 68, 68, 0.4);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* === 日志页面样式 === */
.logs-container {
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.logs-header {
    padding: 20px 24px;
    background: rgba(30, 41, 59, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logs-content {
    height: calc(100% - 80px);
    padding: 20px;
    overflow-y: auto;
}

.log-entry {
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.4);
    border-left: 4px solid #3b82f6;
    animation: slideIn 0.3s ease;
}

.log-entry.info {
    border-left-color: #3b82f6;
}

.log-entry.success {
    border-left-color: #10b981;
}

.log-entry.warning {
    border-left-color: #f59e0b;
}

.log-entry.error {
    border-left-color: #ef4444;
}

.log-time {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.log-message {
    color: #e2e8f0;
    line-height: 1.5;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === 背包页面完整重写 === */
#inventory-page {
    height: calc(100vh - 80px);
    padding: 0 !important;
    display: flex;
    flex-direction: column;
}

.inventory-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin: 0;
}

.inventory-header {
    padding: 24px 24px 0 24px;
    background: rgba(30, 41, 59, 0.6);
    flex-shrink: 0;
}

.inventory-tabs {
    display: flex;
    gap: 8px;
    margin: 24px 0 0 0;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.tab-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    color: #60a5fa;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.tab-btn.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

.tab-badge {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
    font-weight: 700;
    min-width: 40px;
    text-align: center;
    font-family: 'Monaco', 'Consolas', monospace;
}

.tab-content-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.tab-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    scroll-behavior: smooth;
    position: relative;
}

.tab-content::-webkit-scrollbar {
    width: 8px;
}

.tab-content::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.3);
    border-radius: 4px;
    margin: 4px;
}

.tab-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 4px;
}

.tab-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #60a5fa, #c084fc);
}

.tab-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-pane.active {
    display: block !important;
    opacity: 1;
    animation: fadeIn 0.3s ease;
}

.items-grid, .equipments-grid, .pets-grid, .mounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    flex: 1;
    align-content: start;
}

.item-card {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.item-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(59, 130, 246, 0.1);
}

.item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.item-card:hover::before {
    opacity: 1;
}

.item-quality-1 { border-left: 4px solid #94a3b8; }
.item-quality-2 { border-left: 4px solid #22c55e; }
.item-quality-3 { border-left: 4px solid #3b82f6; }
.item-quality-4 { border-left: 4px solid #a855f7; }
.item-quality-5 { border-left: 4px solid #f59e0b; }

.item-icon-container {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.item-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.item-icon:hover {
    transform: scale(1.1);
}

.item-icon-border {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 14px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6, #ec4899);
    z-index: -1;
    opacity: 0.5;
}

.item-info {
    flex: 1;
    min-width: 0;
    padding: 0 12px;
}

.item-name {
    font-size: 16px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 6px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.item-id {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 8px;
    font-family: monospace;
}

.item-quantity {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    display: inline-block;
    border: 1px solid rgba(59, 130, 246, 0.3);
    min-width: 60px;
    text-align: center;
}

.item-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 16px 0;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    max-height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.item-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    flex-wrap: wrap;
}

.inventory-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    min-width: 80px;
    flex: 1;
    white-space: nowrap;
}

.inventory-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.inventory-btn:active {
    transform: translateY(0);
}

.btn-use {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-use:hover {
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.btn-sell {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.btn-sell:hover {
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.btn-release {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.btn-release:hover {
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.btn-detail {
    background: rgba(30, 41, 59, 0.8);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.btn-detail:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border-color: #3b82f6;
}

.btn-equip {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.btn-equip:hover {
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

.empty-inventory {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    height: 100%;
    color: #64748b;
}

.empty-inventory-icon {
    font-size: 72px;
    margin-bottom: 24px;
    opacity: 0.3;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

.empty-inventory-title {
    font-size: 20px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 12px;
}

.empty-inventory-desc {
    color: #64748b;
    line-height: 1.6;
    max-width: 400px;
    font-size: 14px;
}

.pet-attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}

.pet-attr-tag {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pet-attr-capacity {
    background: rgba(233, 30, 99, 0.15);
    color: #e91e63;
}

.pet-attr-bone {
    background: rgba(33, 150, 243, 0.15);
    color: #2196f3;
}

.pet-attr-wakan {
    background: rgba(156, 39, 176, 0.15);
    color: #9c27b0;
}

.pet-attr-hp {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.pet-attr-atk {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
}

.pet-attr-def {
    background: rgba(121, 85, 72, 0.15);
    color: #795548;
}

.equip-stats {
    margin: 12px 0;
    padding: 12px;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.equip-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.equip-stat-item:last-child {
    border-bottom: none;
}

.stat-value.positive {
    color: #4ade80;
}

.stat-value.negative {
    color: #f87171;
}

.inventory-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    height: 100%;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    border-top-color: #3b82f6;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: #94a3b8;
    font-size: 14px;
}

.items-grid::after, 
.equipments-grid::after, 
.pets-grid::after, 
.mounts-grid::after {
    content: '';
    height: 20px;
    display: block;
    grid-column: 1 / -1;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 1400px) {
    .items-grid, .equipments-grid, .pets-grid, .mounts-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 1024px) {
    .items-grid, .equipments-grid, .pets-grid, .mounts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .item-card {
        padding: 16px;
    }
    
    .inventory-btn {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 70px;
    }
}

@media (max-width: 768px) {
    #inventory-page {
        height: calc(100vh - 60px);
    }
    
    .inventory-header {
        padding: 16px 16px 0 16px;
    }
    
    .tab-content {
        padding: 16px;
    }
    
    .items-grid, .equipments-grid, .pets-grid, .mounts-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .item-icon-container {
        width: 56px;
        height: 56px;
    }
    
    .item-name {
        font-size: 15px;
    }
    
    .empty-inventory-icon {
        font-size: 56px;
    }
    
    .empty-inventory-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .inventory-tabs {
        gap: 4px;
    }
    
    .tab-btn {
        padding: 8px 12px;
        font-size: 12px;
        flex: 1;
        justify-content: center;
    }
    
    .tab-content {
        padding: 12px;
    }
    
    .item-actions {
        flex-direction: column;
    }
    
    .inventory-btn {
        width: 100%;
    }
    
    .empty-inventory {
        padding: 40px 16px;
    }
    
    .empty-inventory-icon {
        font-size: 48px;
    }
    
    .empty-inventory-title {
        font-size: 16px;
    }
}

@media (prefers-color-scheme: dark) {
    .item-card {
        background: rgba(30, 41, 59, 0.9);
    }
    
    .inventory-btn {
        opacity: 0.95;
    }
    
    .inventory-btn:hover {
        opacity: 1;
    }
}

@media print {
    #inventory-page {
        height: auto;
    }
    
    .inventory-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .inventory-tabs,
    .inventory-btn {
        display: none;
    }
}

/* 加载指示器 */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loader.show {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    border-top-color: #3b82f6;
    animation: spin 1s linear infinite;
}

/* === 响应式设计 === */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 280px;
        transform: translateX(-100%);
        z-index: 2000;
        transition: transform 0.3s ease;
    }
    
    .sidebar-open {
        transform: translateX(0);
    }
    
    /* 当侧边栏打开时，添加遮罩层 */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1999; /* 低于侧边栏但高于其他内容 */
        display: none;
    }
    
    .sidebar-open + .sidebar-overlay {
        display: block;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-100%);
        z-index: 2000;
    }

    .sidebar.expanded {
        transform: translateX(0);
        width: 280px;
    }

    .sidebar-toggle {
        display: none;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(30, 41, 59, 0.8);
        border-radius: 10px;
        cursor: pointer;
        margin-right: 16px;
    }

    .header {
        padding: 16px 20px;
    }

    .header-title {
        font-size: 18px;
    }

    .page-container {
        padding: 16px;
    }

    .accounts-grid {
        grid-template-columns: 1fr;
    }

    .copy-dashboard {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .panel {
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .button-group {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .login-container {
        margin: 40px 20px;
        padding: 30px 20px;
    }

    .welcome-card {
        padding: 24px;
    }

    .quick-stats {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 16px;
    }

    .account-actions {
        flex-wrap: wrap;
    }

    .action-btn {
        flex: 1 0 calc(50% - 5px);
        min-width: 0;
    }

    .inventory-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
}

/* === 动画效果 === */
.fade-in {
    animation: fadeIn 0.5s ease;
}

.slide-up {
    animation: slideUp 0.4s ease;
}

/* === 游戏风格装饰 === */
.game-border {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #0f172a, #1e293b) padding-box,
              linear-gradient(135deg, #3b82f6, #8b5cf6) border-box;
}

.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6, #ec4899, #3b82f6);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-effect:hover::after {
    opacity: 0.3;
}

/* === 选择框美化 === */
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 48px;
}

/* === 复选框美化 === */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #475569;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-input:checked + .checkbox-custom {
    background: #3b82f6;
    border-color: #3b82f6;
}

.checkbox-input:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label {
    color: #cbd5e1;
    font-size: 14px;
}

.checkbox-container.no-materials-mode .checkbox-custom {
    border-color: #8b5cf6;
    background-color: rgba(139, 92, 246, 0.1);
}

.checkbox-container.no-materials-mode .checkbox-custom:after {
    border-color: #8b5cf6;
}

/* 提示信息样式 */
.no-materials-tooltip {
    font-size: 12px;
    color: #8b5cf6;
    margin-left: 8px;
    background: rgba(139, 92, 246, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}


/* === 分割线 === */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 24px 0;
}

/* === 弹窗基础样式 === */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(30, 41, 59, 0.6);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #e2e8f0;
}

.modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 28px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

.modal-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

/* 通用弹窗样式 */
.universal-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
    overflow-y: auto;
}

.universal-modal.show {
    display: flex;
    opacity: 1;
}

.universal-modal-content {
    width: 100%;
    max-width: 500px;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transform: translateY(20px) scale(0.98);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.universal-modal.show .universal-modal-content {
    transform: translateY(0) scale(1);
}

.universal-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(30, 41, 59, 0.6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.universal-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.universal-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.universal-modal-close {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.universal-modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border-color: #ef4444;
    transform: rotate(90deg);
}

.universal-modal-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
    color: #e2e8f0;
}

.universal-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(30, 41, 59, 0.6);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* 弹窗按钮样式 */
.universal-modal-btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    justify-content: center;
}

.universal-modal-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
}

.universal-modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.universal-modal-btn-secondary {
    background: rgba(30, 41, 59, 0.8);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.universal-modal-btn-secondary:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border-color: #3b82f6;
}

.universal-modal-btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.universal-modal-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

/* 不同尺寸的弹窗 */
.universal-modal.small .universal-modal-content {
    max-width: 400px;
}

.universal-modal.medium .universal-modal-content {
    max-width: 600px;
}

.universal-modal.large .universal-modal-content {
    max-width: 800px;
}

.universal-modal.fullscreen .universal-modal-content {
    max-width: 95%;
    max-height: 95vh;
}

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

.universal-modal.show .universal-modal-content {
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
    .universal-modal {
        padding: 10px;
    }
    
    .universal-modal-content {
        max-width: 100%;
        border-radius: 16px;
    }
    
    .universal-modal-header {
        padding: 16px 20px;
    }
    
    .universal-modal-body {
        padding: 20px;
    }
    
    .universal-modal-footer {
        padding: 16px 20px;
        flex-wrap: wrap;
    }
    
    .universal-modal-btn {
        flex: 1;
        min-width: 0;
    }
}

/* 添加一些奖励显示的动画效果 */
@keyframes rewardPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.reward-item-added {
    animation: rewardPulse 0.5s ease;
}

.reward-quantity-updated {
    animation: quantityBounce 0.3s ease;
}

@keyframes quantityBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* === 4399登录弹窗优化 === */
#loginSuccessTip {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(21, 128, 61, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: none;
    animation: fadeIn 0.3s ease;
    position: relative;
}

#loginSuccessTip::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #10b981, #059669);
    border-radius: 2px;
}

/* 输入框组美化 */
#loginFormItem, #passwordFormItem, #captchaFormItem {
    margin-bottom: 20px;
    animation: slideUp 0.3s ease;
}

/* 验证码区域美化 */
#captchaFormItem .form-input {
    border-right: none;
}

#captchaFormItem img {
    border-radius: 0 12px 12px 0;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: rgba(30, 41, 59, 0.7);
}

#captchaFormItem img:hover {
    border-color: #3b82f6;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* 按钮组动画 */
.button-group {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    animation: fadeIn 0.4s ease;
}

.button-group .btn-lg {
    flex: 1;
    min-height: 52px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.button-group .btn-lg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.button-group .btn-lg:hover::before {
    left: 100%;
}

.button-group .btn-lg:active {
    transform: translateY(2px);
}

/* 登录按钮 */
.button-group .btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 
        0 4px 6px rgba(59, 130, 246, 0.25),
        0 10px 40px rgba(59, 130, 246, 0.3);
}

.button-group .btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-3px);
    box-shadow: 
        0 6px 8px rgba(59, 130, 246, 0.35),
        0 15px 50px rgba(59, 130, 246, 0.4);
}

/* 取消按钮 */
.button-group .btn-secondary {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
    color: #94a3b8;
    border: 2px solid rgba(148, 163, 184, 0.3);
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.button-group .btn-secondary:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.1));
    color: #60a5fa;
    border-color: #3b82f6;
    transform: translateY(-3px);
    box-shadow: 
        0 6px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* 保存按钮特殊样式 */
#saveBtnGroup .btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 
        0 4px 6px rgba(16, 185, 129, 0.25),
        0 10px 40px rgba(16, 185, 129, 0.3);
}

#saveBtnGroup .btn-primary:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-3px);
    box-shadow: 
        0 6px 8px rgba(16, 185, 129, 0.35),
        0 15px 50px rgba(16, 185, 129, 0.4);
}

.updated {
    animation: countUpdate 0.5s ease;
}

@keyframes countUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); color: #ef4444; }
    100% { transform: scale(1); color: inherit; }
}

.item-card.removing {
    opacity: 0.5;
    transform: translateY(-20px);
    transition: opacity 0.3s, transform 0.3s;
}

/* 更新模式的特殊样式 */
#updateModeTip {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* 添加模式按钮样式 */
#confirmSaveBtn[data-mode="add"] {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

#confirmSaveBtn[data-mode="update"] {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #64748b;
}

.loading-text {
    color: #94a3b8;
    font-size: 14px;
}

.mount-battling {
    border-left: 4px solid #10b981;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.8));
}

.mount-idle {
    border-left: 4px solid #a855f7;
}

.mount-battling .item-name {
    color: #10b981;
    font-weight: 700;
}

/* 背包统计面板样式 */
.inventory-stats-panel {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.stats-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #94a3b8;
    font-size: 14px;
    padding: 20px;
}

.stats-loading .loading-spinner.small {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.stat-item {
    background: rgba(30, 41, 59, 0.6);
    padding: 12px;
    border-radius: 10px;
    border-left: 4px solid;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.stat-name {
    font-size: 13px;
    color: #94a3b8;
}

.stat-count {
    font-size: 14px;
    font-weight: 600;
}

.stat-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.stat-progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.stat-percent {
    font-size: 11px;
    color: #64748b;
    text-align: right;
}

.stats-summary {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
}

/* 背包状态警告 */
.inventory-status {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 16px 0;
    color: #f59e0b;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: pulse 2s infinite;
}

.inventory-status.warning {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* 宠物背包的样式 */
/* 复选框容器 */
.cfg-check label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    position: relative;
}

/* 隐藏原生复选框 */
.checkbox-input {
    display: none;
}

/* 自定义复选框外观 */
.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #475569;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* 复选框选中状态 */
.checkbox-input:checked + .checkbox-custom {
    background: #3b82f6;
    border-color: #3b82f6;
}

.checkbox-input:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* 复选框悬停效果 */
.checkbox-input:not(:disabled):hover + .checkbox-custom {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 禁用状态 */
.checkbox-input:disabled + .checkbox-custom {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 复选框标签文字 */
.checkbox-label {
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.material-stock-count.updated {
    animation: countUpdate 0.5s ease;
    color: #ef4444 !important;
}

.item-quantity.updated {
    animation: countUpdate 0.5s ease;
    color: #ef4444 !important;
}

.item-card.removing {
    opacity: 0.5;
    transform: translateY(-20px);
    transition: opacity 0.3s, transform 0.3s;
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

/* 材料高亮动画 */
.material-item.updated {
    animation: highlightMaterial 0.5s ease;
    border-color: #3b82f6 !important;
}

@keyframes highlightMaterial {
    0% { background: rgba(30, 41, 59, 0.4); }
    50% { background: rgba(59, 130, 246, 0.1); }
    100% { background: rgba(30, 41, 59, 0.4); }
}

/* === 日常活跃模块样式 === */
.daily-active-container {
    /* background: rgba(30, 41, 59, 0.6); */
    /* border-radius: 16px; */
    /* overflow: hidden; */
    /* min-height: 500px; */
}

/* 顶部标题栏 */
.daily-active-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: rgba(30, 41, 59, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.back-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.back-btn:hover {
    color: #e2e8f0;
}

.header-title {
    font-size: 18px;
    font-weight: 700;
    color: #e2e8f0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.more-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #94a3b8;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.more-btn:hover {
    color: #e2e8f0;
}

.more-dots {
    letter-spacing: 2px;
}

/* 功能卡片列表 */
.function-cards {
    /* padding: 15px; */
    /* max-height: 500px; */
    /* overflow-y: auto; */
}

.function-card {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.function-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

.function-card.expanded {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.card-header {
    display: flex;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.card-header:hover {
    background: rgba(59, 130, 246, 0.1);
}

.card-icon {
    font-size: 28px;
    margin-right: 15px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
}

.card-info {
    flex: 1;
}

.card-name {
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 4px;
}

.card-desc {
    font-size: 13px;
    color: #94a3b8;
}

.card-arrow {
    font-size: 14px;
    color: #94a3b8;
    transition: transform 0.3s ease;
    margin-left: 10px;
    min-width: 20px;
    text-align: center;
}

/* 卡片内容区域 */
.card-content {
    display: none;
    padding: 0 15px 15px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-expanded-content {
    padding-top: 15px;
}

/* 信息展示区域 */
.luck-info,
.arena-info,
.pet-battle-info,
.quest-info,
.boss-info {
    margin-bottom: 15px;
}

.luck-item,
.stat-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 8px;
}

.luck-icon {
    font-size: 20px;
    margin-right: 12px;
    color: #fbbf24;
}

.luck-details {
    flex: 1;
}

.luck-name,
.stat-label {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 2px;
}

.luck-status,
.stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
}

.luck-count {
    font-size: 14px;
    color: #10b981;
    font-weight: 600;
}

.stat-label {
    min-width: 100px;
}

/* 操作按钮 */
.action-buttons {
    text-align: center;
    padding-top: 10px;
}

.start-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
}

.start-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* 底部统计 */
.daily-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(30, 41, 59, 0.8);
}

.daily-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
}

.daily-tips {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
}

.tips-icon {
    color: #fbbf24;
    font-size: 16px;
}

.tips-text {
    font-size: 13px;
    color: #94a3b8;
}

/* 滚动条样式 */
.function-cards::-webkit-scrollbar {
    width: 6px;
}

.function-cards::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.3);
    border-radius: 3px;
}

.function-cards::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.5);
    border-radius: 3px;
}

.function-cards::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.7);
}

/* 在 daily-active.css 中添加 */
.loading-spinner-small {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

/* 修改开始按钮的禁用状态 */
.start-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: linear-gradient(135deg, #6b7280, #4b5563) !important;
}

.start-btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* 福禄寿样式 */
.luck-description {
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 8px;
    border-left: 3px solid #f59e0b;
}

.desc-text {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
}

.luck-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.luck-btn {
    padding: 12px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.luck-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.luck-single-buttons {
    display: flex;
    gap: 8px;
}

.luck-single-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.luck-fu-btn {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.luck-lu-btn {
    background: rgba(34, 197, 94, 0.2);
    color: #10b981;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.luck-shou-btn {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.luck-single-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.luck-single-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.luck-help-section {
    text-align: center;
}

.luck-help-btn {
    padding: 6px 12px;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 20px;
    color: #94a3b8;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.luck-help-btn:hover {
    background: rgba(148, 163, 184, 0.2);
    border-color: rgba(148, 163, 184, 0.3);
}

/* 福禄寿升级按钮样式 */
.luck-upgrade-section {
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 10px;
    border-left: 3px solid #f59e0b;
}

.luck-upgrade-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.luck-upgrade-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
}

.luck-upgrade-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.upgrade-icon {
    font-size: 16px;
}

.upgrade-text {
    font-weight: 600;
}

.upgrade-hint {
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

/* 竞技场剩余次数提示 */
.arena-remaining-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    margin-bottom: 15px;
    background-color: #1d283a;
    border-radius: 8px;
}

.hint-icon {
    font-size: 18px;
}

.hint-text {
    color: #555;
    font-size: 14px;
}

.hint-count {
    color: #1890ff;
    font-weight: bold;
    font-size: 16px;
}

/* 执行次数输入框样式 */
.arena-execute-section {
    margin: 20px 0;
}

.arena-execute-section .form-group {
    margin-bottom: 0;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-group .form-input {
    flex: 1;
    min-width: 0;
    text-align: center;
    font-size: 16px;
    padding: 10px;
}

.form-hint {
    color: #6c757d;
    font-size: 12px;
    margin-top: 5px;
    text-align: center;
}

/* 执行按钮 */
#arena-execute-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
}

.theme-action-buttons .button-row.equal-width {
    display: flex;
    gap: 10px;
}

.theme-action-buttons .button-row.equal-width button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
}

.adventure-button-group {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.adventure-button-group button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
}

.adventure-result {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
    margin-top: 10px;
    animation: fadeIn 0.5s ease-in-out;
}

.adventure-result .result-icon {
    font-size: 20px;
}

.adventure-result .result-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.adventure-loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-top: 10px;
}

/* ========== 生存大冒险CSS样式 ========== */

/* 星期选择区域 */
.survival-adventure-content .form-group {
    margin-bottom: 15px;
}

.survival-adventure-content .form-label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.survival-adventure-content .form-hint {
    margin-top: 4px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* 按钮组 - 适配4399大冒险样式 */
.survival-button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.survival-button-group .button-row {
    display: flex;
    gap: 8px;
    width: 100%;
}

.survival-button-group button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 14px;
    border-radius: 12px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 40px;
}

/* 主按钮样式（适配4399的渐变色） */
.survival-button-group .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.survival-button-group .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.survival-button-group .btn-primary:active {
    transform: translateY(0);
}

.survival-button-group .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* 次要按钮样式 */
.survival-button-group .btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.survival-button-group .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

/* 加载状态 - 适配4399样式 */
.survival-loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    border-radius: 12px;
    margin-top: 10px;
    border: 2px solid #e0e0e0;
}

.survival-loading-state .loading-spinner-small {
    width: 20px;
    height: 20px;
    border: 3px solid #667eea;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.survival-loading-state span {
    color: #667eea;
    font-size: 14px;
    font-weight: 500;
}

/* 结果展示区域 - 适配4399渐变色 */
.result-display {
    margin-top: 15px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
    border: 2px solid #667eea;
    animation: fadeIn 0.5s ease-in-out;
}

.result-display .result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.result-display .result-title {
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-display .result-icon {
    font-size: 16px;
}

.result-display .result-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.result-display .result-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.result-display .result-content {
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
}

/* 属性展示区域 */
.current-attributes {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
    border-radius: 12px;
    border: 2px solid #e0e0e0;
}

.current-attributes .attributes-title {
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-attributes .attributes-title::before {
    content: "📊";
    font-size: 16px;
}

.current-attributes .attributes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}

.current-attributes .attribute-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.current-attributes .attribute-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.current-attributes .attribute-name {
    font-weight: 600;
    color: #333;
    font-size: 12px;
}

.current-attributes .attribute-value {
    color: #667eea;
    font-weight: bold;
    font-size: 14px;
}

/* 计算结果显示 */
.result-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    border: 2px solid #e0e0e0;
}

.score-display, .algorithm-info, .state-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f5f5f5;
    border-radius: 6px;
}

.score-display .score-label,
.algorithm-info .algorithm-label,
.state-info .state-label {
    color: #666;
    font-size: 12px;
}

.score-display .score-value {
    font-size: 20px;
    font-weight: bold;
    color: #667eea;
}

.algorithm-info .algorithm-value,
.state-info .state-value {
    font-weight: bold;
    color: #333;
    font-size: 13px;
}

/* 警告信息 */
.warning-info {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffecb5;
    border-radius: 6px;
    font-size: 12px;
    color: #856404;
}

.warning-info .warning-icon {
    font-size: 14px;
}

/* 答案列表 */
.answers-detail {
    margin-top: 15px;
}

.answers-detail .detail-title {
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
    font-size: 14px;
    padding-bottom: 5px;
    border-bottom: 2px solid #667eea;
}

.answers-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.answer-item {
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    background: white;
    transition: all 0.3s ease;
}

.answer-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.answer-success {
    border-left: 4px solid #40c057;
}

.answer-fail {
    border-left: 4px solid #fa5252;
}

.answer-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.answer-index {
    font-weight: bold;
    color: #495057;
    font-size: 13px;
}

.answer-id, .answer-option, .answer-score {
    color: #6c757d;
    font-size: 12px;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
}

.answer-status {
    font-weight: bold;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: auto;
}

.answer-success .answer-status {
    background: #d3f9d8;
    color: #2b8a3e;
}

.answer-fail .answer-status {
    background: #ffe3e3;
    color: #c92a2a;
}

.answer-title {
    font-size: 13px;
    color: #333;
    margin-bottom: 6px;
    font-weight: 500;
    line-height: 1.4;
}

.answer-result {
    font-size: 12px;
    color: #666;
    font-style: italic;
    line-height: 1.4;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .survival-button-group .button-row {
        flex-direction: column;
    }
    
    .survival-button-group button {
        max-width: 100%;
    }
    
    .current-attributes .attributes-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .result-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .answer-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .answer-status {
        margin-left: 0;
    }
}

/* 按钮图标 */
.survival-button-group button span:first-child {
    font-size: 16px;
}

/* 禁用状态按钮图标 */
.survival-button-group button:disabled span:first-child {
    opacity: 0.6;
}

/* 表单组间距 */
.survival-adventure-content > * {
    margin-bottom: 15px;
}

.survival-adventure-content > *:last-child {
    margin-bottom: 0;
}

/* ========== 神秘商店卡片样式 ========== */

/* 卡片头部执行按钮样式 */
.function-card .card-execute-btn {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.function-card .btn-execute {
    padding: 6px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(50, 50, 93, 0.1);
}

.function-card .btn-execute:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(50, 50, 93, 0.2);
}

.function-card .btn-execute:active {
    transform: translateY(0);
}

.function-card .btn-execute:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* 神秘商店内容样式 */
.mystery-store-content {
    padding: 15px;
}

.mystery-store-description {
    background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
}

.mystery-store-description .desc-title {
    font-weight: bold;
    color: #667eea;
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mystery-store-description .desc-text {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}

/* 物品列表 */
.mystery-store-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.mystery-store-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s ease;
}

.mystery-store-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.mystery-store-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mystery-store-item-icon {
    font-size: 20px;
}

.mystery-store-item-name {
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.mystery-store-item-price {
    margin-left: auto;
    font-weight: bold;
    color: #fa5252;
    font-size: 14px;
}

.mystery-store-item-price .price-unit {
    font-size: 12px;
    color: #666;
}

.mystery-store-item-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* 购买选项 */
.mystery-store-options {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.mystery-store-option {
    flex: 1;
    text-align: center;
    padding: 6px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    color: #495057;
}

.mystery-store-option:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.mystery-store-option.selected {
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    border-color: #667eea;
    color: #667eea;
    font-weight: 600;
}

/* 状态信息 */
.mystery-store-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
}

.mystery-store-status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.mystery-store-status-label {
    font-size: 12px;
    color: #666;
}

.mystery-store-status-value {
    font-weight: bold;
    color: #667eea;
    font-size: 16px;
}

/* 执行按钮组 */
.mystery-store-actions {
    display: flex;
    gap: 10px;
}

.mystery-store-btn {
    flex: 1;
    padding: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.mystery-store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(50, 50, 93, 0.2);
}

.mystery-store-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.mystery-store-btn.refresh {
    background: linear-gradient(135deg, #4cd964 0%, #5ac8fa 100%);
}

.mystery-store-btn.buy {
    background: linear-gradient(135deg, #ff9500 0%, #ff5e3a 100%);
}

/* 结果展示 */
.mystery-store-result {
    margin-top: 15px;
    padding: 12px;
    background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
    border-radius: 8px;
    border: 2px solid #667eea;
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.mystery-store-result.show {
    display: block;
}

.mystery-store-result-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mystery-store-result-icon {
    font-size: 20px;
}

.mystery-store-result-text {
    flex: 1;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* 加载状态 */
.mystery-store-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
    border-radius: 8px;
    margin-top: 15px;
}

.mystery-store-loading.show {
    display: flex;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .mystery-store-items {
        grid-template-columns: 1fr;
    }
    
    .mystery-store-actions {
        flex-direction: column;
    }
    
    .mystery-store-status {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .mystery-store-status-item {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }
}

/* 添加动画效果 */
.tab-btn.active {
    position: relative;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 3px;
    animation: tabActive 0.3s ease;
}

@keyframes tabActive {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 80%;
        opacity: 1;
    }
}

.sub-tab-btn.active {
    background: rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
}

/* 过渡动画 */
.tab-pane {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 加载状态 */
.refresh-btn.loading span:first-child {
    animation: spin 1s linear infinite;
}

/* 键盘快捷键提示 */
.keyboard-hint {
    font-size: 12px;
    color: #94a3b8;
    margin-left: 8px;
    opacity: 0.7;
}

.tab-btn[data-shortcut]::before {
    content: attr(data-shortcut);
    font-size: 10px;
    padding: 2px 4px;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 4px;
    margin-right: 6px;
    color: #94a3b8;
}

/* === 浮动按钮容器 === */
.fab-container {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

/* === 浮动按钮基础样式 === */
.fab {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 
        0 8px 25px rgba(59, 130, 246, 0.4),
        0 0 20px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}

.fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 
        0 12px 30px rgba(59, 130, 246, 0.5),
        0 0 30px rgba(139, 92, 246, 0.4);
}

.fab-icon {
    color: white;
    font-size: 24px;
}

/* === 侧边栏浮动按钮样式 === */
.fab-sidebar {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 
        0 8px 25px rgba(139, 92, 246, 0.4),
        0 0 20px rgba(115, 67, 219, 0.3);
}

.fab-sidebar:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    box-shadow: 
        0 12px 30px rgba(139, 92, 246, 0.5),
        0 0 30px rgba(115, 67, 219, 0.4);
}

/* === 添加账号浮动按钮样式 === */
.fab-add-account {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
}

.fab-add-account:hover {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    box-shadow: 
        0 12px 30px rgba(37, 99, 235, 0.5),
        0 0 30px rgba(79, 70, 229, 0.4);
}

/* === 移动端调整 === */
@media (max-width: 768px) {
    .fab-container {
        right: 20px;
        bottom: 20px;
        gap: 12px;
    }
    
    .fab {
        width: 56px;
        height: 56px;
    }
    
    .fab-icon {
        font-size: 22px;
    }
}

/* === 超小屏幕调整 === */
@media (max-width: 480px) {
    .fab-container {
        right: 16px;
        bottom: 16px;
        gap: 10px;
    }
    
    .fab {
        width: 52px;
        height: 52px;
    }
    
    .fab-icon {
        font-size: 15px;
    }
}


/* ===================== 副本管理页面响应式修复 ===================== */

/* 修复页面容器 */
#copy-page .page-container {
    padding: 0 !important;
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* 允许垂直滚动 */
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
}

/* 副本仪表板布局 - 关键修复 */
.copy-dashboard {
    display: grid;
    grid-template-columns: 1fr 400px; /* 默认：左侧配置 右侧统计 */
    gap: 24px;
    height: auto;
    min-height: 0;
    padding: 24px;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 16px;
}

/* 🔴 关键修复：小屏幕时重新排列顺序 */
@media (max-width: 1024px) {
    .copy-dashboard {
        grid-template-columns: 1fr !important; /* 单列布局 */
        grid-template-rows: auto auto;
        gap: 20px;
        padding: 20px;
        display: flex !important; /* 使用flex布局 */
        flex-direction: column; /* 垂直排列 */
    }
    
    /* 确保配置面板在上，统计面板在下 */
    .copy-dashboard .panel:first-child {
        order: 1 !important; /* 配置面板排在第一 */
    }
    
    .copy-dashboard .panel:last-child {
        order: 2 !important; /* 统计面板排在第二 */
        margin-top: 0 !important;
    }
}

/* 手机端优化 */
@media (max-width: 768px) {
    #copy-page .page-container {
        height: auto;
        min-height: calc(100vh - 80px);
        padding: 0; /* 移除内边距 */
    }
    
    .copy-dashboard {
        padding: 16px;
        gap: 16px;
        border-radius: 0; /* 移除圆角 */
        min-height: 0;
        background: transparent; /* 透明背景 */
    }
    
    /* 配置面板优化 */
    .copy-dashboard .panel:first-child {
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 12px;
        border: 1px solid rgba(59, 130, 246, 0.2);
        margin-bottom: 0;
    }
    
    /* 统计面板优化 */
    .copy-dashboard .panel:last-child {
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 12px;
        border: 1px solid rgba(59, 130, 246, 0.2);
    }
    
    /* 表单网格调整为单列 */
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    /* 复选框组垂直排列 */
    .checkbox-group {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
    
    /* 按钮组垂直排列 */
    .button-group {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* 统计网格调整为2列 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    /* 面板内边距优化 */
    .panel {
        padding: 20px !important;
    }
    
    /* 隐藏不必要的装饰 */
    .panel::before {
        height: 3px;
    }
}

/* 超小屏幕优化（手机竖屏） */
@media (max-width: 480px) {
    .copy-dashboard {
        padding: 12px;
        gap: 12px;
    }
    
    .panel {
        padding: 16px !important;
    }
    
    .panel-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .panel-title {
        font-size: 18px;
    }
    
    .form-grid .form-input {
        padding: 12px 14px;
        font-size: 14px;
        min-height: 44px;
    }
    
    .checkbox-container {
        padding: 12px;
        min-height: 52px;
    }
    
    .btn-lg {
        height: 52px;
        font-size: 15px;
        gap: 10px;
    }
    
    .stat-value {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    /* 物品和执行记录区域优化 */
    .items-details,
    .recent-executions {
        max-height: 150px;
        padding: 12px;
    }
}

/* 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .copy-dashboard {
        display: grid;
        grid-template-columns: 1fr 1fr !important;
        gap: 16px;
    }
    
    .copy-dashboard .panel:first-child {
        order: 1;
    }
    
    .copy-dashboard .panel:last-child {
        order: 2;
    }
    
    /* 限制高度并允许滚动 */
    .copy-dashboard .panel {
        max-height: 70vh;
        overflow-y: auto;
    }
}

/* 滚动条优化 */
#copy-page .page-container::-webkit-scrollbar {
    width: 6px;
}

#copy-page .page-container::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.2);
    border-radius: 3px;
}

#copy-page .page-container::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.5);
    border-radius: 3px;
}

/* 确保内容不会被浮动按钮遮挡 */
@media (max-width: 768px) {
    #fabContainer {
        bottom: 20px !important;
        z-index: 1000;
    }
    
    /* 给浮动按钮留出空间 */
    .copy-dashboard {
        padding-bottom: 80px;
    }
}

/* 修复子元素溢出问题 */
.copy-dashboard .panel {
    min-width: 0; /* 防止内容溢出 */
    word-break: break-word; /* 长文本换行 */
}

/* 优化选择框在小屏幕的显示 */
@media (max-width: 480px) {
    select.form-input {
        font-size: 14px;
        padding-right: 40px;
        background-position: right 12px center;
    }
    
    /* 隐藏非关键元素 */
    .panel-subtitle {
        font-size: 12px;
        padding: 10px;
    }
    
    .option-hint {
        font-size: 10px;
    }
}

/* 修复状态指示器在小屏幕的显示 */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

@media (max-width: 480px) {
    .status-indicator {
        font-size: 11px;
    }
    
    .status-indicator .dot {
        width: 6px;
        height: 6px;
    }
}

/* 修复进度条在小屏幕的显示 */
@media (max-width: 480px) {
    .progress-container {
        padding: 16px;
    }
    
    .progress-header .stat-label {
        font-size: 13px;
    }
    
    .progress-header #progressText {
        font-size: 16px;
        padding: 3px 10px;
    }
    
    .progress-bar {
        height: 8px;
    }
}

/* ===================== 开关按钮样式 ===================== */

/* 开关按钮容器 */
.switch-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
    padding: 20px;
    background: rgba(30, 41, 59, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

/* 单个开关项 */
.switch-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.switch-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.switch-item.active {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

/* 开关左侧信息 */
.switch-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.switch-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.switch-item:nth-child(1) .switch-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
    color: #3b82f6;
}

.switch-item:nth-child(2) .switch-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    color: #f59e0b;
}

.switch-item:nth-child(3) .switch-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1));
    color: #8b5cf6;
}

.switch-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.switch-title {
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
}

.switch-desc {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.4;
}

/* 开关按钮 */
.switch-toggle {
    position: relative;
    width: 52px;
    height: 26px;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 13px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.switch-toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.switch-item.active .switch-toggle {
    background: #10b981;
}

.switch-item.active .switch-toggle::after {
    transform: translateX(26px);
    background: white;
}

/* 开关状态指示 */
.switch-status {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.switch-item:not(.active) .switch-status {
    background: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
}

.switch-item.active .switch-status {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

/* 开关按钮动画 */
.switch-item.active .switch-toggle {
    animation: switchGlow 1.5s ease-in-out infinite;
}

@keyframes switchGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0);
    }
}

/* 特殊模式样式 */
.switch-item.no-materials-mode {
    border-color: rgba(139, 92, 246, 0.3);
}

.switch-item.no-materials-mode.active {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.5);
}

.switch-item.no-materials-mode.active .switch-toggle {
    background: #8b5cf6;
}

.switch-item.no-materials-mode.active .switch-toggle {
    animation: switchGlowPurple 1.5s ease-in-out infinite;
}

@keyframes switchGlowPurple {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(139, 92, 246, 0);
    }
}

/* 开关组标题 */
.switch-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.switch-group-title h3 {
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.switch-group-title h3::before {
    content: '⚡';
    font-size: 18px;
}

.switch-group-buttons {
    display: flex;
    gap: 8px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .switch-group {
        padding: 16px;
        gap: 10px;
    }
    
    .switch-item {
        padding: 12px;
        flex-wrap: wrap;
    }
    
    .switch-info {
        flex: 1 0 100%;
        margin-bottom: 10px;
    }
    
    .switch-toggle {
        margin-left: auto;
    }
    
    .switch-status {
        margin-left: 8px;
    }
}

@media (max-width: 480px) {
    .switch-group {
        padding: 12px;
    }
    
    .switch-title {
        font-size: 13px;
    }
    
    .switch-desc {
        font-size: 11px;
    }
    
    .switch-toggle {
        width: 48px;
        height: 24px;
    }
    
    .switch-toggle::after {
        width: 18px;
        height: 18px;
    }
    
    .switch-item.active .switch-toggle::after {
        transform: translateX(24px);
    }
}

/* 开关按钮点击动画 */
.switch-item:active .switch-toggle::after {
    transform: scale(0.9);
}

.switch-item.active:active .switch-toggle::after {
    transform: translateX(26px) scale(0.9);
}


/* 存档卡片按钮容器 */
.save-slot-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

/* 进入存档按钮 */
.enter-save-btn {
    flex: 1;
    padding: 10px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.enter-save-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.enter-save-btn:active {
    transform: translateY(0);
}

/* 删除存档按钮 */
.delete-save-btn {
    flex: 1;
    padding: 10px 16px;
    background: linear-gradient(135deg, #f56565 0%, #ed64a6 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.delete-save-btn:hover {
    background: linear-gradient(135deg, #e53e3e 0%, #d53f8c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 101, 101, 0.4);
}

.delete-save-btn:active {
    transform: translateY(0);
}

/* 创建存档按钮 */
.create-save-btn {
    margin-top: 12px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    width: 100%;
}

.create-save-btn:hover {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
}

.create-save-btn:active {
    transform: translateY(0);
}

/* 空存档容器 */
.empty-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    height: 100%;
}

.empty-slot-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-slot-text {
    text-align: center;
    margin-bottom: 16px;
}

.empty-slot-title {
    font-size: 16px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 4px;
}

.empty-slot-desc {
    font-size: 14px;
    color: #a0aec0;
}

/* 创建存档模态框样式 */
.create-record-modal {
    max-width: 500px;
    margin: 0 auto;
}

.create-record-header {
    text-align: center;
    margin-bottom: 20px;
}

.create-record-header h3 {
    margin: 0 0 8px 0;
    color: #ffffff;
    font-size: 18px;
}

.create-record-header p {
    margin: 0;
    color: #718096;
    font-size: 14px;
}

.create-record-mode-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.mode-select-btn {
    flex: 1;
    padding: 12px 16px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.mode-select-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.mode-select-btn.active {
    background: #4299e1;
    border-color: #4299e1;
    color: white;
}

.mode-content {
    display: none;
}

.mode-content.active {
    display: block;
}

.character-select {
    margin-bottom: 20px;
}

.character-select label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
}

.character-select-dropdown {
width: 100%;
    padding: 14px 16px;
    background: rgba(30, 41, 59, 0.7);
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    color: #f1f5f9;
    font-size: 15px;
    transition: all 0.3s ease;
   appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 48px;
}



.character-select-dropdown:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background: rgba(30, 41, 59, 0.9);
}

.character-select-dropdown::placeholder {
    color: #64748b;
}






.character-select-dropdown:hover {
    border-color: #cbd5e0;
}

.character-select-dropdown:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.character-preview {
    padding: 20px;
    background: #f7fafc;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4e5661;
    background: #182234;
}

.dual-character-select {
    margin-bottom: 20px;
}

.character-select-row {
    margin-bottom: 15px;
}

.dual-character-preview {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.preview-character {
    flex: 1;
    padding: 15px;
    background: #182234;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 3px;
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4e5661;
}

.preview-avatar {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
}

.preview-info {
    flex: 1;
}

.preview-name {
    margin: 0 0 4px 0;
    font-weight: 600;
    color: #e4e7eb;
    font-size: 14px;
}

.preview-desc {
    margin: 0;
    color: #e8eaed;
    font-size: 12px;
}

.selected-character {
    display: flex;
    align-items: center;
    gap: 12px;
}

.selected-avatar {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    border: 2px solid #4299e1;
}

.selected-info {
    flex: 1;
}

.selected-name {
    margin: 0 0 4px 0;
    font-weight: 600;
    color: #2d3748;
    font-size: 16px;
    color: #e4e7eb;
}

.selected-id, .selected-mode {
    margin: 2px 0;
    color: #718096;
    font-size: 12px;
}








/* ==================== 悬浮按钮系统 ==================== */

/* 主容器 */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

/* 主按钮 */
.fab-main {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 100;
}

.fab-main:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.fab-main .fab-icon {
    color: white;
    font-size: 28px;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.fab-main.active .fab-icon {
    transform: rotate(45deg);
}

/* 子菜单容器 */
.fab-submenu {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    position: relative;
    pointer-events: none;
}

.fab-submenu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

/* 子按钮 */
.fab-sub {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    transform: scale(0.8);
    opacity: 0;
}

.fab-submenu.show .fab-sub {
    transform: scale(1);
    opacity: 1;
}

/* 子按钮动画延迟 */
.fab-sub:nth-child(1) { transition-delay: 0.1s; }
.fab-sub:nth-child(2) { transition-delay: 0.2s; }
.fab-sub:nth-child(3) { transition-delay: 0.3s; }
.fab-sub:nth-child(4) { transition-delay: 0.4s; }
.fab-sub:nth-child(5) { transition-delay: 0.5s; }

/* 子按钮图标 */
.fab-sub .fab-icon {
    font-size: 22px;
    transition: transform 0.2s ease;
}

/* 子按钮标签 */
.fab-sub .fab-label {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.95);
    color: #e2e8f0;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.fab-sub:hover .fab-label {
    opacity: 1;
    visibility: visible;
    right: 65px;
}

/* 特定子按钮样式 */
.fab-add-account {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.fab-add-account:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateX(-5px);
}

.fab-help {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.fab-help:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: translateX(-5px);
}

.fab-quick-copy {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.fab-quick-copy:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateX(-5px);
}

.fab-to-top {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}

.fab-to-top:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateX(-5px);
}

.fab-refresh {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
}

.fab-refresh:hover {
    background: linear-gradient(135deg, #0891b2, #0e7490);
    transform: translateX(-5px);
}

/* 移动端侧边栏按钮 */
.fab-sidebar {
    display: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #64748b, #475569);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(100, 116, 139, 0.3);
    position: fixed;
    left: 20px;
    bottom: 30px;
    z-index: 999;
}

.fab-sidebar .fab-icon {
    color: white;
    font-size: 22px;
}

/* 呼吸动画（帮助按钮） */
@keyframes fab-pulse {
    0% {
        box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
    }
    50% {
        box-shadow: 0 4px 30px rgba(139, 92, 246, 0.5);
    }
    100% {
        box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
    }
}

/* 新消息提示点 */
.fab-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
    font-weight: bold;
    animation: badge-pulse 1.5s infinite;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ==================== 响应式适配 ==================== */

/* 平板端 */
@media (max-width: 1024px) {
    .fab-container {
        bottom: 25px;
        right: 25px;
    }
    
    .fab-main {
        width: 56px;
        height: 56px;
    }
    
    .fab-sub {
        width: 48px;
        height: 48px;
    }
    
    .fab-sub .fab-icon {
        font-size: 20px;
    }
}

/* 手机端 */
@media (max-width: 768px) {
    .fab-container {
        bottom: 20px;
        right: 20px;
    }
    
    .fab-main {
        width: 52px;
        height: 52px;
    }
    
    .fab-main .fab-icon {
        font-size: 24px;
    }
    
    .fab-submenu {
        gap: 12px;
    }
    
    .fab-sub {
        width: 46px;
        height: 46px;
    }
    
    .fab-sub .fab-icon {
        font-size: 18px;
    }
    
    .fab-sub .fab-label {
        display: none; /* 手机端隐藏标签 */
    }
    
    /* 显示侧边栏按钮 */
    .fab-sidebar {
        display: flex;
    }
    
    /* 调整子菜单位置，避免被底部导航栏遮挡 */
    .fab-submenu {
        margin-bottom: 70px;
    }
}

/* 小屏幕手机 */
@media (max-width: 480px) {
    .fab-container {
        bottom: 15px;
        right: 15px;
    }
    
    .fab-main {
        width: 48px;
        height: 48px;
    }
    
    .fab-sub {
        width: 44px;
        height: 44px;
    }
}

/* 横屏模式 */
@media (max-height: 500px) {
    .fab-container {
        bottom: 15px;
    }
    
    .fab-submenu {
        gap: 10px;
    }
}

/* 深色主题优化 */
@media (prefers-color-scheme: dark) {
    .fab-sub .fab-label {
        background: rgba(30, 41, 59, 0.95);
        backdrop-filter: blur(10px);
    }
}


/* 进度弹窗样式 */
.progress-modal {
    padding: 10px 0;
}

.progress-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-icon {
    font-size: 28px;
    line-height: 1;
}

.progress-info {
    flex: 1;
}

.progress-action {
    font-weight: 600;
    font-size: 15px;
    color: #3b82f6;
    margin-bottom: 4px;
}

.progress-time {
    font-size: 13px;
    color: #94a3b8;
}

.progress-bar-container {
    margin: 16px 0;
}

.progress-bar-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}


/* 登录方式选择样式 */
.login-type-select {
    padding: 20px 0;
}

.login-type-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
        width: 100%;
}

.login-type-option {
    width: 100%;
    padding: 16px 20px;
    background: rgba(30, 41, 59, 0.6);
    border: 2px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    color: #e2e8f0;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-type-option:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.login-type-option:active {
    transform: translateY(0);
}

.login-type-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.login-type-text {
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 4px;
}

.login-type-desc {
    font-size: 13px;
    color: #94a3b8;
}

/* 模态框样式增强 */
.modal-content {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 24px 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #e2e8f0;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 20px 30px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* 表单样式增强 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(30, 41, 59, 0.7);
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    color: #f1f5f9;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: rgba(30, 41, 59, 0.9);
}

.form-input::placeholder {
    color: #64748b;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: rgba(30, 41, 59, 1);
    border-color: rgba(148, 163, 184, 0.3);
    color: #cbd5e1;
    transform: translateY(-1px);
}

/* 加载动画 */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 验证码图片样式 */
#captchaImg {
    background: #fff;
    padding: 4px;
    transition: transform 0.3s ease;
}

#captchaImg:hover {
    transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-content {
        max-width: 90%;
        margin: 20px auto;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
    
    .login-type-option {
        padding: 14px 16px;
    }
    
    .login-type-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}

/* 暗色主题优化 */
@media (prefers-color-scheme: dark) {
    .login-type-option {
        background: rgba(30, 41, 59, 0.8);
    }
    
    .login-type-option:hover {
        background: rgba(30, 41, 59, 1);
    }
    
    .form-input {
        background: rgba(30, 41, 59, 0.9);
    }
}

/* 错误状态 */
.form-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
}

.form-input.success {
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}

/* 进度条样式 */
.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
    transition: width 0.3s ease;
}




 .qq-login-container {
            padding: 30px 20px;
            max-width: 320px;
            margin: 0 auto;
        }
        
        .qq-header {
            text-align: center;
            margin-bottom: 25px;
        }
        
        .qq-icon {
            font-size: 48px;
            margin-bottom: 10px;
        }
        
        .qq-title {
            font-size: 20px;
            font-weight: 600;
            color: #e2e8f0;
            margin-bottom: 8px;
        }
        
        .qq-desc {
            font-size: 14px;
            color: #94a3b8;
        }
        
        .qr-container {
            position: relative;
            width: 200px;
            height: 200px;
            margin: 0 auto 25px;
        }
        
        .qr-code-box {
            width: 100%;
            height: 100%;
            background: #fff;
            border-radius: 12px;
            padding: 10px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            border: 2px solid rgba(59, 130, 246, 0.2);
            position: relative;
            overflow: hidden;
        }
        
        .qq-logo-mask {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 40px;
            height: 40px;
            background: #fff;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            z-index: 2;
        }
        
        .qr-loading {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.95);
            z-index: 1;
        }
        
        .spinner {
            width: 30px;
            height: 30px;
            border: 3px solid rgba(59, 130, 246, 0.3);
            border-top-color: #3b82f6;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 10px;
        }
        
        .spinner.small {
            width: 16px;
            height: 16px;
            border-width: 2px;
            margin-bottom: 0;
            margin-right: 8px;
        }
        
        .loading-text {
            font-size: 14px;
            color: #64748b;
        }
        
        .status-container {
            margin-bottom: 25px;
            min-height: 50px;
        }
        
        .status-loading {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            color: #3b82f6;
            font-size: 14px;
        }
        
        .btn-container {
            display: flex;
            gap: 10px;
            justify-content: center;
            margin-bottom: 25px;
        }
        
        .btn-primary, .btn-secondary {
            padding: 10px 20px;
            border-radius: 8px;
            border: none;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            min-width: 120px;
        }
        
        .btn-primary {
            background: linear-gradient(135deg, #3b82f6, #1d4ed8);
            color: white;
        }
        
        .btn-primary:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        }
        
        .btn-primary:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }
        
        .btn-secondary {
            background: #374151;
            color: #e5e7eb;
            border: 1px solid #4b5563;
        }
        
        .btn-secondary:hover:not(:disabled) {
            background: #4b5563;
        }
        
        .instruction-box {
            background: rgba(59, 130, 246, 0.1);
            border-radius: 10px;
            padding: 15px;
            border: 1px solid rgba(59, 130, 246, 0.2);
            margin-bottom: 20px;
        }
        
        .instruction-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 12px;
        }
        
        .instruction-header .icon {
            color: #3b82f6;
            font-size: 18px;
        }
        
        .instruction-header .title {
            color: #93c5fd;
            font-size: 14px;
            font-weight: 500;
        }
        
        .instruction-steps {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .instruction-steps .step {
            font-size: 12px;
            color: #cbd5e1;
            padding-left: 10px;
            position: relative;
        }
        
        .instruction-steps .step:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #3b82f6;
        }
        
        .countdown-box {
            margin-top: 20px;
        }
        
        .countdown-text {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            color: #94a3b8;
            margin-bottom: 8px;
        }
        
        .countdown-text .icon {
            font-size: 16px;
        }
        
        .countdown-progress {
            height: 4px;
            background: #374151;
            border-radius: 2px;
            overflow: hidden;
        }
        
        .progress-bar {

            background: linear-gradient(90deg, #3b82f6, #60a5fa);
            width: 100%;
            transition: width 1s linear;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        .status-success {
            color: #10b981;
            font-weight: 500;
        }
        
        .status-warning {
            color: #f59e0b;
            font-weight: 500;
        }
        
        .status-error {
            color: #ef4444;
            font-weight: 500;
        }
        
        .pulse-animation {
            animation: pulse 2s infinite;
        }
        
        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
            }
            70% {
                box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
            }
        }
        
        /* 新增样式：扫码成功状态 */
        .scanned-status {
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
            border: 1px solid rgba(245, 158, 11, 0.2);
            border-radius: 10px;
            padding: 12px;
            margin-bottom: 15px;
            text-align: center;
        }
        
        .scanned-icon {
            font-size: 24px;
            color: #f59e0b;
            margin-bottom: 8px;
        }
        
        .scanned-title {
            color: #f59e0b;
            font-weight: 500;
            font-size: 14px;
            margin-bottom: 4px;
        }
        
        .scanned-desc {
            color: #cbd5e1;
            font-size: 12px;
        }

.double-cost-hint {
    color: #ff9800;
    font-size: 12px;
    background: rgba(255, 152, 0, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    margin: 5px 0;
    border-left: 3px solid #ff9800;
}

 .bounty-empty-state {

display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    height: 100%;
    color: #64748b;

  }

.count-cost {
    background: #ff9800;
    color: white;
    padding: 1px 5px;
    border-radius: 10px;
    font-size: 10px;
    margin-left: 5px;
    font-weight: bold;
}

.double-count {
    color: #ff5722;
    font-weight: bold;
}

.double-badge-small {
    background: #ff5722;
    color: white;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 10px;
    margin-left: 5px;
}

/* 羽毛标签样式 */
#feathers-tab .tab-search-header {
    background: rgba(30, 41, 59, 0.6);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    margin-bottom: 20px;
}

/* 羽毛卡片网格 */
#feathers-list .feathers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

/* 羽毛卡片 */
#feathers-list .feather-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

#feathers-list .feather-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* 羽毛品质角标 */
#feathers-list .feather-quality-badge {
    position: absolute;
    bottom: -6px;
    right: -6px;
    background: #f59e0b;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    border: 2px solid rgba(15, 23, 42, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
