/* ========================================
   CF战区 v2.0 - 全局样式
   战斗科技风 - 橙红/金黄主题
   ======================================== */

/* ===== 全局重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主色调 - 战斗橙红 */
    --primary: #ff4d00;
    --primary-light: #ff6b35;
    --primary-dark: #cc3d00;
    --primary-glow: rgba(255, 77, 0, 0.5);
    
    /* 强调色 - 金黄 */
    --accent: #ffd700;
    --accent-light: #ffe44d;
    --accent-dark: #ccac00;
    --accent-glow: rgba(255, 215, 0, 0.4);
    
    /* 辅助色 - 科技蓝 */
    --tech-blue: #00d4ff;
    --tech-blue-glow: rgba(0, 212, 255, 0.3);
    
    /* 背景色 */
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: rgba(20, 20, 30, 0.7);
    --bg-card-hover: rgba(30, 30, 45, 0.85);
    
    /* 文字色 */
    --text-primary: #ffffff;
    --text-secondary: #b0b0c0;
    --text-muted: #707080;
    
    /* 边框 */
    --border-color: rgba(255, 77, 0, 0.2);
    --border-glow: rgba(255, 77, 0, 0.5);
    
    /* 阴影 */
    --shadow-primary: 0 0 30px rgba(255, 77, 0, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #ff4d00, #ff8c00);
    --gradient-accent: linear-gradient(135deg, #ffd700, #ff8c00);
    --gradient-hero: linear-gradient(135deg, rgba(255, 77, 0, 0.15), rgba(255, 215, 0, 0.05));
    --gradient-text: linear-gradient(90deg, #ff6b35, #ffd700);
    
    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== 动态背景 ===== */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(255, 77, 0, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(20, 20, 40, 1) 0%, #0a0a0f 100%);
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(255, 77, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 77, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

#partCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    height: 60px;
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    color: white;
    box-shadow: var(--shadow-primary);
    position: relative;
    overflow: hidden;
}

.nav-logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 68, 68, 0.6));
    transition: all 0.3s ease;
}

.nav-logo:hover .nav-logo-img {
    filter: drop-shadow(0 0 15px rgba(255, 68, 68, 0.9));
    transform: scale(1.1);
}

.nav-logo-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    animation: logoShine 3s ease-in-out infinite;
}

@keyframes logoShine {
    0%, 100% { transform: translateX(-100%) rotate(45deg); }
    50% { transform: translateX(100%) rotate(45deg); }
}

.nav-logo-text {
    font-size: 22px;
    font-weight: bold;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
}

.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    padding: 10px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    background: rgba(255, 77, 0, 0.1);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* 下拉菜单 */
.nav-dropdown {
    position: relative;
    display: inline-flex;
}
.nav-dropdown-toggle {
    cursor: pointer;
    display: inline-block;
}
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: rgba(20, 10, 10, 0.95);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 8px;
    padding: 6px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    z-index: 1000;
    backdrop-filter: blur(10px);
}
.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}
.nav-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #ccc;
    font-size: 14px;
    white-space: nowrap;
    border-radius: 0;
}
.nav-dropdown-menu a:hover {
    background: rgba(255, 68, 68, 0.15);
    color: #fff;
}
.nav-dropdown-menu a.active {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}
.nav-dropdown-menu a.active::after {
    display: none;
}

.nav-mobile-user {
    display: none;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px;
    background: rgba(255, 77, 0, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-user-info:hover {
    background: rgba(255, 77, 0, 0.15);
    box-shadow: 0 0 20px rgba(255, 77, 0, 0.2);
}

.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.nav-username {
    font-size: 14px;
    color: var(--text-primary);
}

.nav-cfcoin {
    font-size: 13px;
    color: #ffd700;
    font-weight: bold;
}

.nav-cfpoints {
    font-size: 13px;
    color: #4caf50;
    font-weight: bold;
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

/* ===== 按钮样式 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn::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.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 77, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 77, 0, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-accent {
    background: var(--gradient-accent);
    color: #1a1a00;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--primary-light);
    border: 2px solid var(--primary);
    box-shadow: inset 0 0 0 rgba(255, 77, 0, 0);
}

.btn-outline:hover {
    background: rgba(255, 77, 0, 0.1);
    box-shadow: inset 0 0 20px rgba(255, 77, 0, 0.1), 0 0 20px rgba(255, 77, 0, 0.2);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #00c853, #009624);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 200, 83, 0.4);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 200, 83, 0.5);
}

.btn-danger {
    background: linear-gradient(135deg, #ff1744, #d50000);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 23, 68, 0.4);
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 23, 68, 0.5);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 18px;
}

/* ===== 输入框样式 ===== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 77, 0, 0.05);
    box-shadow: 0 0 0 3px rgba(255, 77, 0, 0.1), 0 0 20px rgba(255, 77, 0, 0.15);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ff6b35'%3E%3Cpath d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 45px;
}

.form-select option {
    background: #1a1a2e;
    color: white;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* ===== 卡片样式 ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
}

.card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-primary), var(--shadow-card);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
}

/* ===== 渐变文字 ===== */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== 徽章/标签 ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-primary {
    background: rgba(255, 77, 0, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(255, 77, 0, 0.3);
}

.badge-accent {
    background: rgba(255, 215, 0, 0.15);
    color: var(--accent);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.badge-success {
    background: rgba(0, 200, 83, 0.15);
    color: #00e676;
    border: 1px solid rgba(0, 200, 83, 0.3);
}

.badge-danger {
    background: rgba(255, 23, 68, 0.15);
    color: #ff5252;
    border: 1px solid rgba(255, 23, 68, 0.3);
}

/* ===== 消息提示 ===== */
.msg-box {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: msgSlideIn 0.3s ease;
}

@keyframes msgSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.msg-success {
    background: rgba(0, 200, 83, 0.1);
    border: 1px solid rgba(0, 200, 83, 0.3);
    color: #00e676;
}

.msg-error {
    background: rgba(255, 23, 68, 0.1);
    border: 1px solid rgba(255, 23, 68, 0.3);
    color: #ff5252;
}

.msg-info {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--tech-blue);
}

.msg-warning {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--accent);
}

/* ===== 表格样式 ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 77, 0, 0.05);
    border-bottom: 2px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-table tr:hover td {
    background: rgba(255, 77, 0, 0.05);
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.page-btn:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    background: rgba(255, 77, 0, 0.1);
}

.page-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 77, 0, 0.4);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ===== 主内容区 ===== */
.main-content {
    padding-top: 90px;
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-sm {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Section 标题 ===== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 20px;
}

/* ===== 页脚 ===== */
.footer {
    margin-top: 80px;
    padding: 50px 0 30px;
    background: rgba(5, 5, 8, 0.8);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 24px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
}

.footer-col h4 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* ===== 弹窗 ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 90%;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 23, 68, 0.2);
    color: #ff5252;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ===== 统计卡片 ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-primary);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
}

/* ========================================
   响应式样式 - 移动端兼容
   ======================================== */

/* ===== 平板设备 (768px - 1024px) ===== */
@media screen and (max-width: 1024px) {
    .container {
        width: 95%;
        max-width: 95%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .navbar {
        padding: 0 20px;
    }
    
    .nav-menu {
        gap: 20px;
    }
}

/* ===== 手机设备 (小于 768px) ===== */
@media screen and (max-width: 768px) {
    /* 全局调整 */
    body {
        font-size: 14px;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }
    
    /* 导航栏 - 移动端 */
    .navbar {
        padding: 0 15px;
        height: 60px;
    }
    
    .nav-logo {
        font-size: 18px;
    }
    
    .nav-logo span {
        font-size: 14px;
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        z-index: 999;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 77, 0, 0.1);
        width: 100%;
    }

    .nav-dropdown {
        width: 100%;
    }
    .nav-dropdown-toggle {
        padding: 15px 0;
        display: block;
        border-bottom: 1px solid rgba(255, 77, 0, 0.1);
    }
    .nav-dropdown-menu {
        display: none;
        position: static;
        background: rgba(255, 68, 68, 0.05);
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0 0 0 20px;
    }
    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }
    .nav-dropdown-menu a {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 77, 0, 0.05);
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .nav-user {
        display: none;
    }
    
    .nav-mobile-user {
        display: block;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 77, 0, 0.2);
    }
    
    .nav-mobile-user .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .nav-mobile-user .btn:last-child {
        margin-bottom: 0;
    }
    
    /* 移动端菜单按钮 */
    .nav-mobile-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 5px;
    }
    
    .nav-mobile-toggle span {
        width: 24px;
        height: 2px;
        background: var(--primary);
        transition: all 0.3s ease;
    }
    
    /* Hero 区域 - 移动端 */
    .hero {
        padding: 80px 0 60px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 32px;
        letter-spacing: 2px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        letter-spacing: 2px;
    }
    
    .hero-desc {
        font-size: 14px;
        max-width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 30px;
        font-size: 14px;
    }
    
    /* 统计卡片 - 移动端 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    /* 板块标题 - 移动端 */
    .section-title {
        font-size: 20px;
    }
    
    /* 卡片网格 - 移动端 */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* 表单 - 移动端 */
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-input, .form-select, .form-textarea {
        font-size: 14px;
        padding: 12px 15px;
    }
    
    /* 模态框 - 移动端 */
    .modal {
        padding: 15px;
    }
    
    .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-title {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 15px 20px;
        flex-direction: column-reverse;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
    
    /* 表格 - 移动端 */
    .data-table {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 8px;
    }
    
    /* 分页 - 移动端 */
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .page-btn {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
    
    /* 底部 - 移动端 */
    .footer {
        padding: 40px 0 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ===== 小屏手机 (小于 480px) ===== */
@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 26px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 15px;
    }
    
    .stat-icon {
        font-size: 28px;
        margin-bottom: 0;
    }
    
    .stat-value {
        font-size: 22px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 13px;
    }
    
    .card {
        padding: 20px 15px;
    }
    
    .card-title {
        font-size: 16px;
    }
    
    /* 表格横向滚动 */
    .table-container {
        overflow-x: auto;
    }
    
    .data-table {
        min-width: 600px;
    }
}

/* ===== 移动端菜单按钮（默认隐藏，移动端显示） ===== */
.nav-mobile-toggle {
    display: none;
}

@media screen and (max-width: 768px) {
    .nav-mobile-toggle {
        display: flex;
    }
}

/* ========================================
   商城页面响应式
   ======================================== */
@media screen and (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 200px 1fr;
        gap: 20px;
    }
    
    .shop-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .shop-header {
        padding: 60px 0 30px;
    }
    
    .shop-title {
        font-size: 28px;
        letter-spacing: 4px;
    }
    
    .shop-subtitle {
        font-size: 12px;
        letter-spacing: 2px;
    }
    
    .shop-container {
        padding: 20px 0 60px;
    }
    
    .shop-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .shop-sidebar {
        position: static;
        order: 2;
    }
    
    .shop-main {
        order: 1;
    }
    
    .shop-toolbar {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .shop-item {
        border-radius: 8px;
    }
    
    .item-image {
        height: 120px;
    }
    
    .item-name {
        font-size: 14px;
    }
    
    .item-desc {
        font-size: 12px;
    }
    
    .item-price .price-value {
        font-size: 18px;
    }
    
    .buy-btn {
        padding: 8px 0;
        font-size: 13px;
    }
    
    .category-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .category-item {
        flex: 1;
        min-width: 80px;
        text-align: center;
        padding: 10px 8px;
        font-size: 12px;
        border-left: none;
        border-bottom: 2px solid transparent;
    }
    
    .category-item.active {
        border-left: none;
        border-bottom-color: var(--primary);
        background: rgba(255, 77, 0, 0.1);
    }
}

@media screen and (max-width: 480px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }
    
    .item-image {
        height: 150px;
    }
}

/* ========================================
   下载页面响应式
   ======================================== */
@media screen and (max-width: 768px) {
    .download-header {
        padding: 60px 0 30px;
    }
    
    .download-title {
        font-size: 32px;
        letter-spacing: 4px;
    }
    
    .download-subtitle {
        font-size: 12px;
        letter-spacing: 2px;
    }
    
    .version-info {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 25px 20px;
    }
    
    .version-left h2 {
        font-size: 18px;
    }
    
    .version-left p {
        font-size: 12px;
    }
    
    .version-size {
        font-size: 36px;
    }
    
    .download-buttons {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .download-btn-card {
        padding: 25px 20px;
    }
    
    .download-btn-icon {
        font-size: 40px;
    }
    
    .download-btn-title {
        font-size: 18px;
    }
    
    .mirror-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .requirements {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .req-card {
        padding: 20px;
    }
    
    .req-card h3 {
        font-size: 16px;
    }
}

/* ========================================
   登录/注册页面响应式
   ======================================== */
@media screen and (max-width: 768px) {
    .login-page {
        padding: 60px 20px;
        min-height: auto;
    }
    
    .login-card {
        padding: 30px 25px;
        max-width: 100%;
    }
    
    .login-header-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .login-header h1 {
        font-size: 22px;
    }
    
    .login-header p {
        font-size: 12px;
    }
    
    .form-label {
        font-size: 13px;
    }
    
    .login-btn {
        padding: 14px;
        font-size: 14px;
    }
}

/* ========================================
   管理后台响应式
   ======================================== */
@media screen and (max-width: 1024px) {
    .admin-layout {
        grid-template-columns: 200px 1fr;
    }
}

@media screen and (max-width: 768px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        position: fixed;
        left: -250px;
        top: 0;
        bottom: 0;
        width: 250px;
        z-index: 1000;
        transition: left 0.3s ease;
    }
    
    .admin-sidebar.active {
        left: 0;
    }
    
    .admin-main {
        padding: 15px;
    }
    
    .admin-header {
        padding: 15px;
    }
    
    .admin-title {
        font-size: 18px;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 6px;
    }
    
    .actions .btn {
        padding: 4px 8px;
        font-size: 11px;
    }
}
    height: 100px;
    background: var(--gradient-primary);
    opacity: 0.1;
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    opacity: 0.5;
}

/* ===== 动画 ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 77, 0, 0.3); }
    50% { box-shadow: 0 0 40px rgba(255, 77, 0, 0.6); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 28px;
    }
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* ===== 文字选中 ===== */
::selection {
    background: rgba(255, 77, 0, 0.3);
    color: white;
}

/* ===== 自动填充修复 ===== */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px rgba(20, 20, 30, 0.9) inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
}
