/* EVE军团OA - H5样式表 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #0f3460;
    --highlight: #e94560;
    --success: #4ecca3;
    --warning: #f9a826;
    --text: #eee;
    --text-secondary: #aaa;
    --bg-dark: #0f0f1a;
    --bg-card: #1a1a2e;
    --border: #2a2a3e;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==================== Login Page ==================== */
#login-page {
    display: none;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 20px;
}

#login-page.active {
    display: flex;
}

.login-container {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px 30px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 1px solid var(--border);
}

@media (max-width: 374px) {
    .login-container {
        padding: 30px 20px;
        margin: 10px;
    }
}

.login-logo {
    text-align: center;
    font-size: 60px;
    color: var(--highlight);
    margin-bottom: 20px;
}

.login-container h1 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 5px;
    background: linear-gradient(45deg, var(--highlight), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 14px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    background: var(--secondary);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 16px;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--highlight);
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, var(--highlight), var(--accent));
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

/* 机器人验证登录 */
.bot-login-section {
    text-align: center;
    margin: 10px 0 15px;
}
.bot-login-icon {
    font-size: 50px;
    color: #12b7f5;
    margin-bottom: 15px;
}
.bot-login-steps {
    text-align: left;
    padding: 0 5px;
}
.bot-step {
    background: rgba(18, 183, 245, 0.08);
    border: 1px solid rgba(18, 183, 245, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.bot-step .step-number {
    width: 28px;
    height: 28px;
    background: #12b7f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}
.bot-step p {
    margin: 0;
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
}
.bot-step .step-hint {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}
.bot-step strong {
    color: #12b7f5;
    background: rgba(18, 183, 245, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
}
#bot-step-error {
    background: rgba(233, 69, 96, 0.1);
    border-color: rgba(233, 69, 96, 0.3);
}
#bot-step-error .step-number {
    background: var(--highlight);
}
#bot-step-error p {
    color: #fca5a5;
}

/* 手动登录切换 */
.manual-login-toggle {
    margin-top: 10px;
    text-align: center;
    cursor: pointer;
    color: #64748b;
    font-size: 12px;
    padding: 6px 0;
    transition: color 0.2s;
    user-select: none;
}
.manual-login-toggle:hover {
    color: #94a3b8;
}

#manual-login-area {
    margin-top: 8px;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-tips {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.login-tips p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.login-tips i {
    margin-right: 8px;
    color: var(--success);
}

/* ==================== 主页面布局 ==================== */
#main-page {
    display: none;
    min-height: 100vh;
}

#main-page.active {
    display: block;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-menu {
    background: none;
    border: none;
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

#page-title {
    font-size: 18px;
    font-weight: 600;
}

.header-right {
    display: flex;
    gap: 10px;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    position: relative;
}

.badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--highlight);
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

/* ==================== 侧边栏 ==================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.3s;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: -1;
}

.sidebar-content {
    position: relative;
    height: 100%;
    overflow-y: auto;
}

.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--highlight), var(--accent));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
}

.user-info h3 {
    font-size: 16px;
    margin-bottom: 3px;
}

.user-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

.sidebar-menu {
    list-style: none;
    padding: 10px 0;
}

.sidebar-menu li {
    padding: 15px 20px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-menu li:hover {
    background: rgba(233, 69, 96, 0.1);
}

.sidebar-menu li.active {
    background: rgba(233, 69, 96, 0.2);
    border-right: 3px solid var(--highlight);
}

.sidebar-menu li i {
    width: 20px;
    text-align: center;
    color: var(--text-secondary);
}

.sidebar-menu li.active i {
    color: var(--highlight);
}

.sidebar-menu li.divider {
    height: 1px;
    background: var(--border);
    margin: 8px 20px;
    padding: 0;
}

.sidebar-menu li.divider-title {
    padding: 10px 24px 6px;
    font-size: 12px;
    font-weight: 700;
    color: #ddd;
    background: rgba(99,102,241,0.1);
    border-left: 3px solid var(--primary);
    margin: 6px 0 2px;
    cursor: default;
    pointer-events: none;
    letter-spacing: 2px;
}
.sidebar-menu li.divider-title i {
    margin-right: 8px;
    color: var(--primary);
    font-size: 11px;
}

/* ==================== 内容区域 ==================== */
.content {
    margin-top: 60px;
    padding: 20px;
    min-height: calc(100vh - 60px);
}

.page-content {
    display: none;
}

.page-content.active {
    display: block;
}

/* ==================== 首页 ==================== */
.welcome-card {
    background: linear-gradient(135deg, var(--highlight), var(--accent));
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3);
}

.welcome-card h2 {
    font-size: 24px;
    margin-bottom: 5px;
}

.welcome-card p {
    opacity: 0.9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--border);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    color: white;
}

.stat-icon.blue { background: linear-gradient(135deg, #667eea, #764ba2); }
.stat-icon.red { background: linear-gradient(135deg, #f093fb, #f5576c); }
.stat-icon.green { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.stat-icon.purple { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }

.stat-info h3 {
    font-size: 22px;
    margin-bottom: 3px;
}

.stat-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 卡片标签 */
.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 3px;
}

.stat-clickable {
    font-size: 15px;
    color: var(--highlight);
    cursor: pointer;
}

/* 排行榜列表 - 每行单独显示 */
.stat-rank-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 4px;
}
.stat-rank-list span {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* ==================== 快捷操作 ==================== */
.quick-actions {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid var(--border);
}

.quick-actions h3 {
    margin-bottom: 15px;
    font-size: 16px;
}

.action-section {
    margin-bottom: 25px;
}

.action-section h3 {
    color: var(--text);
    font-size: 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-section h3 i {
    color: var(--highlight);
}

.action-section:last-child {
    margin-bottom: 0;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.action-btn {
    background: var(--secondary);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.action-btn i {
    font-size: 28px;
    color: var(--highlight);
}

.action-btn span {
    font-size: 13px;
}

.action-btn:hover {
    border-color: var(--highlight);
    transform: translateY(-2px);
}

/* ==================== 页面通用 ==================== */
.page-header {
    margin-bottom: 20px;
}

.page-header h2 {
    font-size: 22px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.coming-soon {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-secondary);
    font-size: 16px;
}

/* ==================== 上传区域 ==================== */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: 15px;
    padding: 50px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.upload-area:hover {
    border-color: var(--highlight);
    background: rgba(233, 69, 96, 0.05);
}

.upload-icon {
    font-size: 50px;
    color: var(--highlight);
    margin-bottom: 15px;
}

.upload-area p {
    font-size: 16px;
    margin-bottom: 8px;
}

.upload-hint {
    font-size: 12px;
    color: var(--text-secondary);
}

.preview-area {
    position: relative;
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.preview-area img {
    width: 100%;
    display: block;
}

.btn-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
}

/* ==================== AI识别结果 ==================== */
.recognition-result {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.recognition-result h3 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.result-content {
    background: var(--secondary);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
}

.result-actions {
    display: flex;
    gap: 10px;
}

.btn-primary, .btn-secondary {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(45deg, var(--highlight), var(--accent));
    color: white;
}

.btn-secondary {
    background: var(--secondary);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px);
}

/* ==================== 加载动画 ==================== */
.loading {
    text-align: center;
    padding: 50px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border);
    border-top: 4px solid var(--highlight);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==================== 模态框 ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 300;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid var(--border);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-close {
    background: none;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    background: var(--secondary);
    transition: background 0.2s;
}

.notification-item.unread {
    background: rgba(233, 69, 96, 0.1);
    border-left: 3px solid var(--highlight);
}

.notification-item i {
    color: var(--highlight);
    margin-top: 2px;
}

.notification-item p {
    font-size: 14px;
    margin-bottom: 3px;
}

.notification-item small {
    font-size: 11px;
    color: var(--text-secondary);
}

/* ==================== 响应式优化 ==================== */

/* 超小屏幕：iPhone SE (320px) */
@media (max-width: 374px) {
    .login-container {
        padding: 30px 20px;
    }
    
    .login-container h1 {
        font-size: 24px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .action-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .action-btn {
        padding: 15px 10px;
    }
    
    .header {
        padding: 0 15px;
    }
    
    .content {
        padding: 15px;
    }
    
    #page-title {
        font-size: 16px;
    }
}

/* 小屏幕：iPhone (375px - 413px) */
@media (min-width: 375px) and (max-width: 413px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .action-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* 中等屏幕：大屏手机 (414px - 767px) */
@media (min-width: 414px) and (max-width: 767px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .action-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* 平板：768px - 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .action-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 电脑：1024px+ */
@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .action-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .content {
        max-width: 1200px;
        margin: 60px auto 0;
        padding: 30px;
    }
}

/* ==================== 军团花名册页面样式 ==================== */
.roster-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: var(--secondary);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 15px;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--highlight);
}

.form-group input[readonly] {
    background: var(--bg-dark);
    cursor: not-allowed;
    opacity: 0.7;
}

/* 多角色游戏名下拉选择 */
.char-select {
    width: 100%;
    padding: 12px 15px;
    background: var(--secondary);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 15px;
    margin-top: 8px;
    cursor: pointer;
    transition: all 0.3s;
}
.char-select:focus {
    outline: none;
    border-color: var(--highlight);
}

/* 缴费AI识别结果展示 */
.pay-rec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: var(--bg-dark);
    border-radius: 8px;
    border-left: 3px solid var(--highlight);
}
.pay-rec-label {
    color: var(--text-secondary);
    font-size: 14px;
}
.pay-rec-val {
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    text-align: right;
    word-break: break-all;
    max-width: 60%;
}
.pay-rec-amount {
    color: #ffd166;
    font-size: 17px;
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-secondary);
}

.required {
    color: var(--highlight);
    margin-left: 3px;
}

/* 缴费登记表单区域 */
.form-section {
    background: var(--secondary);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.autocomplete-wrapper {
    position: relative;
}

.autocomplete-wrapper input {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 15px;
    transition: all 0.3s;
}

.autocomplete-wrapper input:focus {
    outline: none;
    border-color: var(--highlight);
}

.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border: 2px solid var(--border);
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    list-style: none;
    margin: 0;
    padding: 0;
}

.autocomplete-list li {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.autocomplete-list li:hover,
.autocomplete-list li.active {
    background: var(--highlight);
    color: #fff;
}

.autocomplete-list li:last-child {
    border-bottom: none;
}

.roster-upload {
    padding: 30px 20px;
}

.recognition-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recognition-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--secondary);
    border-radius: 8px;
}

.recognition-field label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 13px;
}

.recognition-field span {
    color: var(--text);
    font-size: 14px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.btn-submit {
    flex: 2;
}

.btn-submit i,
.btn-secondary i {
    margin-right: 5px;
}

/* ==================== 响应式优化 - 花名册页面 ==================== */
@media (max-width: 767px) {
    .form-actions {
        flex-direction: column;
    }
    
    .roster-form {
        max-width: 100%;
    }
}

/* ==================== 审核中心样式 ==================== */
.audit-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}
.audit-card-header {
    margin-bottom: 10px;
}
.audit-module-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
}
.audit-card-body {
    font-size: 14px;
    line-height: 2;
}
.audit-field {
    display: flex;
}
.audit-key {
    color: var(--text-secondary);
    min-width: 80px;
}
.audit-val {
    color: var(--text);
    font-weight: 500;
}
.audit-time {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 6px;
}
.audit-card-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}

/* ==================== 黑名单样式 ==================== */
.blacklist-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}
.blacklist-section h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text);
}
.form-inline {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.form-inline input {
    flex: 1;
    min-width: 120px;
}

/* ==================== 数据表格样式 ==================== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.data-table th {
    background: rgba(100, 180, 255, 0.1);
    padding: 10px 8px;
    text-align: left;
    color: var(--primary);
    font-weight: 600;
}
.data-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.data-table tr:hover td {
    background: rgba(100, 180, 255, 0.05);
}

/* ==================== 按钮扩展样式 ==================== */
.btn-sm {
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}
.btn-success {
    background: #27ae60;
    color: #fff;
}
.btn-danger {
    background: #e74c3c;
    color: #fff;
}
.btn-success:hover { opacity: 0.85; }
.btn-danger:hover { opacity: 0.85; }

/* ==================== 提示样式 ==================== */
.empty-hint {
    text-align: center;
    color: var(--text-secondary);
    padding: 30px 0;
}
.alert {
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
}
.alert-danger {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}
.alert-success {
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid rgba(39, 174, 96, 0.3);
    color: #27ae60;
}
.error {
    color: #e74c3c;
    padding: 10px 0;
}

/* ==================== 财务统计 - 时间选择器 ==================== */
.time-btn {
    padding:7px 18px;
    border:none; border-radius:6px;
    background:transparent;
    color:#64748b; font-size:14px; font-weight:500;
    cursor:pointer; transition:all 0.2s ease;
}
.time-btn:hover { color:#334155; }
.time-btn.active {
    background:#fff;
    color:#667eea; font-weight:700;
    box-shadow:0 1px 4px rgba(0,0,0,0.12);
}

/* ==================== 军团制造样式 ==================== */
.mfg-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin: 20px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.mfg-section-title i {
    color: var(--primary);
    margin-right: 8px;
}
.mfg-cat-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 14px;
}
.mfg-cat-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.mfg-cat-title i {
    margin-right: 6px;
}
.mfg-material-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}
.mfg-material-item {
    display: flex;
    flex-direction: column;
}
.mfg-material-item label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.mfg-material-item input {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-dark);
    color: var(--text);
    font-size: 13px;
}
.mfg-result-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.mfg-result-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}
.mfg-result-card h3 {
    margin-bottom: 14px;
    font-size: 16px;
    color: var(--text);
}
.mfg-result-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.mfg-result-row:last-child {
    border-bottom: none;
}
.mfg-result-row.total {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}
.mfg-result-row.profit {
    color: #27ae60;
    font-weight: 700;
}
.mfg-result-row.loss {
    color: #e74c3c;
    font-weight: 700;
}
.mfg-detail-list {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    margin-top: 12px;
}
.mfg-detail-cat {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    margin: 12px 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px dashed var(--border);
}
.mfg-detail-cat:first-child {
    margin-top: 0;
}
.mfg-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    color: var(--text);
}
@media (max-width: 480px) {
    .mfg-material-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mfg-result-actions {
        flex-direction: column;
    }
    .mfg-result-actions button {
        width: 100%;
    }
}

/* ==================== 多角色切换 ==================== */
.role-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    padding: 5px 12px;
    background: rgba(102, 126, 234, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(102, 126, 234, 0.35);
    border-radius: 14px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.role-switch-btn:hover {
    background: rgba(102, 126, 234, 0.3);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}
.modal-box {
    position: relative;
    background: #1e1e2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.modal-box h3 {
    margin: 0 0 4px;
    font-size: 17px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal-sub {
    margin: 0 0 16px;
    font-size: 13px;
    color: #9aa0b4;
}
.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: transparent;
    border: none;
    color: #9aa0b4;
    font-size: 16px;
    cursor: pointer;
}
.modal-close:hover { color: #fff; }

.role-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.role-item {
    position: relative;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.role-item:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.4);
}
.role-item.current {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}
.role-item-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}
.role-item-meta {
    font-size: 12px;
    color: #9aa0b4;
}
.role-item-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #667eea;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
}

/* ==================== QQ一键登录 ==================== */
.btn-qq-oauth {
    background: linear-gradient(135deg, #12B7F5 0%, #0099FF 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(18, 183, 245, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-qq-oauth:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(18, 183, 245, 0.45);
}
.btn-qq-oauth:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}
.qq-bind-section {
    animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== 军团规则页面 ==================== */
.rules-doc {
    max-width: 920px;
    font-size: 14px;
    line-height: 1.75;
    color: var(--text);
}
.rules-toc {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
}
.rules-toc h4 {
    width: 100%;
    margin: 0 0 4px;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}
.rules-toc a {
    font-size: 13px;
    color: #a5b4fc;
    background: rgba(102,126,234,0.12);
    border: 1px solid rgba(102,126,234,0.25);
    padding: 5px 12px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.rules-toc a:hover {
    background: rgba(102,126,234,0.28);
    color: #c7d2fe;
}
.rules-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 18px;
    scroll-margin-top: 72px;
}
.rules-section h3 {
    font-size: 18px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--highlight);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rules-section h3 i {
    color: var(--highlight);
}
.rules-section h4 {
    font-size: 15px;
    margin: 18px 0 10px;
    color: var(--accent);
}
.rules-section p {
    margin-bottom: 10px;
    color: var(--text);
}
.rules-section ol,
.rules-section ul {
    padding-left: 22px;
    margin-bottom: 10px;
}
.rules-section li {
    margin-bottom: 8px;
}
.rules-section strong {
    color: #fff;
}
.rules-note {
    background: rgba(249,168,38,0.1);
    border: 1px solid rgba(249,168,38,0.35);
    border-left: 4px solid var(--warning);
    border-radius: 8px;
    padding: 12px 14px;
    margin: 12px 0 4px;
    font-size: 13px;
    line-height: 1.7;
}
.rules-note i {
    color: var(--warning);
    margin-right: 6px;
}
.rules-rewards li strong {
    color: var(--success);
}
.rules-penalty {
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.6;
}
.rules-penalty-light {
    background: rgba(243,156,18,0.08);
    border-left: 4px solid #f39c12;
}
.rules-penalty-mid {
    background: rgba(230,126,34,0.08);
    border-left: 4px solid #e67e22;
}
.rules-penalty-heavy {
    background: rgba(231,76,60,0.1);
    border-left: 4px solid #e74c3c;
}
.rules-penalty strong {
    color: #fff;
}
.rules-officers {
    list-style: none;
    padding-left: 0;
}
.rules-officers li {
    padding: 10px 12px;
    background: var(--secondary);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.6;
}
.rules-officers strong {
    color: var(--highlight);
}
.rules-signature {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}
.rules-signature i {
    color: var(--highlight);
    margin-right: 6px;
}
@media (max-width: 480px) {
    .rules-section { padding: 16px; }
    .rules-doc { font-size: 13px; }
}

/* ==================== 缴费查询 ==================== */
.pq-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.pq-tabs {
    display: flex;
    gap: 8px;
}
.pq-tab {
    padding: 9px 20px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
    transition: all .15s;
}
.pq-tab:hover { border-color: var(--highlight); }
.pq-tab.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-color: transparent;
}
.pq-month {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text);
}
.pq-month input[type="month"] {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text);
    background: var(--secondary);
}
.pq-btn {
    padding: 8px 20px;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    cursor: pointer;
}
.pq-loading {
    padding: 20px;
    text-align: center;
    color: var(--highlight);
    font-size: 14px;
}
.pq-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
    font-size: 14px;
}
.pq-sum-item {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 8px 14px;
    color: var(--text);
    border: 1px solid var(--border);
}
.pq-sum-item.pq-paid { color: #4ecca3; background: rgba(78,204,163,.12); border-color: rgba(78,204,163,.3); }
.pq-sum-item.pq-unpaid { color: #e94560; background: rgba(233,69,96,.12); border-color: rgba(233,69,96,.3); }
.pq-center { text-align: center; }
.pq-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.2);
    font-size: 14px;
    color: var(--text);
    border: 1px solid var(--border);
}
.pq-table th, .pq-table td {
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.pq-table th {
    background: var(--secondary);
    color: var(--text);
    font-weight: 600;
}
.pq-table tbody tr:hover { background: rgba(255,255,255,.05); }
.pq-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}
.pq-badge-paid {
    background: rgba(78,204,163,.15);
    color: #4ecca3;
}
.pq-badge-unpaid {
    background: rgba(233,69,96,.15);
    color: #e94560;
}
.pq-badge-pending {
    background: rgba(240,165,0,.15);
    color: #f0a500;
}

/* 缴费审核卡片 */
.pa-result { margin-top: 16px; }
.pa-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
}
.pa-card-head { display: flex; gap: 16px; align-items: flex-start; }
.pa-info { flex: 1; min-width: 0; }
.pa-line { display: flex; padding: 3px 0; font-size: 14px; line-height: 1.5; }
.pa-k { width: 96px; flex-shrink: 0; color: #64748b; }
.pa-v { color: #1e293b; font-weight: 500; word-break: break-all; }
.pa-amount { color: #f0a500; font-weight: 700; }
.pa-shot { flex-shrink: 0; }
.pa-thumb {
    width: 90px; height: 120px; object-fit: cover;
    border-radius: 8px; border: 1px solid var(--border); cursor: pointer; display: block;
}
.pa-actions { margin-top: 12px; }

.pq-empty, .pq-error {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
    font-size: 14px;
}
.pq-notify-btn {
    padding: 5px 14px;
    font-size: 13px;
    border: 1px solid #f0a500;
    background: rgba(240,165,0,.12);
    color: #f0a500;
    border-radius: 6px;
    cursor: pointer;
    transition: all .15s;
}
.pq-notify-btn:hover { background: rgba(240,165,0,.25); }
.pq-muted { color: #666; }
.pq-btn-notify {
    background: linear-gradient(135deg, #f0a500, #f08200) !important;
    border: none;
}
.pq-btn-notify:disabled {
    filter: grayscale(.6);
    opacity: .55;
    cursor: not-allowed;
}
.pq-bot-status {
    margin: 0 0 14px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(214,72,72,.12);
    border: 1px solid rgba(214,72,72,.4);
    color: #ff9a9a;
    font-size: 13px;
}
