/* Google Fonts - 使用link标签在header.php中加载，避免阻塞渲染 */

:root {
    /* wmsy.mobi 1:1 模仿风格 - 精确匹配 */
    /* 背景色系 - 简洁白色背景 */
    --bg: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f5f5f5;
    --card: #ffffff;
    --card-light: #fafafa;
    --border: #e8e8e8;
    --border-light: #f0f0f0;
    
    /* 主色调 - 蓝色系 */
    --primary: #1890ff;
    --primary-dark: #096dd9;
    --primary-light: #40a9ff;
    --primary-hover: #40a9ff;
    --primary-active: #0050b3;
    
    /* 强调色 */
    --accent: #ff4d4f;
    --accent-blue: #1890ff;
    --accent-purple: #722ed1;
    --accent-orange: #fa8c16;
    
    /* 状态色 */
    --success: #52c41a;
    --success-light: #73d13d;
    --danger: #ff4d4f;
    --danger-light: #ff7875;
    --warning: #faad14;
    --warning-light: #ffc53d;
    --info: #1890ff;
    --info-light: #40a9ff;
    
    /* 文字颜色 */
    --text: #262626;
    --text-secondary: #595959;
    --text-muted: #8c8c8c;
    --text-disabled: #bfbfbf;
    --text-inverse: #ffffff;
    
    /* 渐变色 */
    --gradient: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    --gradient-gold: linear-gradient(135deg, #faad14 0%, #ffc53d 100%);
    --gradient-gold-light: linear-gradient(135deg, rgba(250, 173, 20, 0.1) 0%, rgba(255, 197, 61, 0.08) 100%);
    --gradient-red: linear-gradient(135deg, #ff4d4f 0%, #cf1322 100%);
    --gradient-blue: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    --gradient-purple: linear-gradient(135deg, #722ed1 0%, #531dab 100%);
    
    /* 玻璃态效果 */
    --glass: rgba(255, 255, 255, 0.9);
    --glass-dark: rgba(0, 0, 0, 0.05);
    
    /* 圆角 */
    --radius: 4px;
    --radius-sm: 2px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-round: 50%;
    
    /* 阴影 */
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-gold: 0 2px 12px rgba(250, 173, 20, 0.2);
    --shadow-glow: 0 0 20px rgba(24, 144, 255, 0.3);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
    
    /* 模糊效果 */
    --blur: blur(8px);
    --blur-sm: blur(4px);
    --blur-lg: blur(16px);
    
    /* 间距 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    
    /* 字体大小 */
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-xxl: 24px;
    
    /* 行高 */
    --line-height-tight: 1.4;
    --line-height-base: 1.6;
    --line-height-loose: 1.8;
    
    /* 过渡动画 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
    
    /* wmsy.mobi 背景样式 - 纯白背景，无图案 */
    --pattern-bg: none;
    --bg-image: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: var(--bg);
    background-image: var(--bg-image);
    color: var(--text);
    line-height: var(--line-height-base);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: var(--font-size-base);
}

/* wmsy.mobi 风格背景 - 简洁白色背景 */
body::before {
    display: none;
}

body::after {
    display: none;
}

@keyframes bgMove {
    0%, 100% { 
        background-position: 
            0% 0%,
            100% 100%,
            50% 50%,
            0% 0%,
            0% 0%,
            0% 0%,
            0% 0%,
            0% 0%;
    }
    50% { 
        background-position: 
            50% 50%,
            50% 50%,
            50% 50%,
            10% 15%,
            20% 25%,
            30% 35%,
            40% 45%,
            0% 0%;
    }
}

/* 移除闪烁动画
@keyframes starTwinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
*/

/* 移除浮动动画
@keyframes characterFloat {
    0%, 100% { 
        transform: translateY(0) scale(1);
        opacity: 0.4;
    }
    50% { 
        transform: translateY(-20px) scale(1.02);
        opacity: 0.5;
    }
}
*/

.page-shell {
    min-height: 100vh;
    background: var(--bg);
    background-image: var(--bg-image);
    position: relative;
    z-index: 10;
}

/* 确保所有可交互元素在背景层之上 */
.main {
    position: relative;
    z-index: 10;
}

.container {
    position: relative;
    z-index: 10;
}

.card, .product-card, .region-card, .stat-card {
    position: relative;
    z-index: 10;
}

.btn, a, button, input, select, textarea, form {
    position: relative;
    z-index: 10;
}

/* 确保header在背景之上 */
.header {
    z-index: 100 !important;
}

/* 确保导航菜单在背景之上 */
.nav, .nav-mobile {
    position: relative;
    z-index: 100;
}

.container {
    width: min(1280px, 90vw);
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    box-sizing: border-box;
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: visible;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: all 0.3s ease;
}

.header::before,
.header::after {
    display: none;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-md);
    gap: var(--spacing-lg);
    flex-wrap: nowrap;
    height: 64px;
    width: 100%;
    max-width: 100%;
}

.header .container > .logo {
    flex-shrink: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.header .container > .nav {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 0;
    max-width: calc(100% - 400px);
    height: 64px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-shrink: 0;
    flex-grow: 0;
    white-space: nowrap;
    min-width: fit-content;
}

.header-search {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 6px 12px;
    gap: 8px;
    transition: var(--transition);
}

.header-search:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.header-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: var(--font-size-sm);
    color: var(--text);
    width: 200px;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: var(--font-size-base);
    padding: 0;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.search-btn:hover {
    color: var(--primary);
}

.header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(24, 144, 255, 0.08) 0%, rgba(24, 144, 255, 0.05) 100%);
    text-decoration: none;
    color: var(--text);
    font-size: var(--font-size-lg);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(24, 144, 255, 0.1);
}

.header-icon-btn:hover {
    background: linear-gradient(135deg, rgba(24, 144, 255, 0.15) 0%, rgba(24, 144, 255, 0.1) 100%);
    color: var(--primary);
    border-color: rgba(24, 144, 255, 0.3);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.2);
}

.header-icon-btn .unread-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ff4d4f;
    color: #fff;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    padding: 0 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 2px 8px rgba(255, 77, 79, 0.5);
    }
}

.header-btn {
    padding: 10px 24px;
    border-radius: 24px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f0f0 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.header-btn:hover {
    background: linear-gradient(135deg, #e8e8e8 0%, #e0e0e0 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.header-btn-primary {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.header-btn-primary:hover {
    background: linear-gradient(135deg, #40a9ff 0%, #1890ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(24, 144, 255, 0.4);
}

@media (max-width: 768px) {
    .header .container > .nav {
        display: none !important;
    }
    
    .header-search {
        display: none;
    }
}

.logo {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0;
    color: #333;
    text-shadow: none;
    position: relative;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo a {
    color: #333;
    text-decoration: none;
}

.logo img {
    height: 32px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
    flex-wrap: nowrap;
    overflow: visible;
    isolation: isolate;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--font-size-base);
    font-weight: 500;
    padding: 0 8px;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    height: 64px;
    vertical-align: middle;
    user-select: none;
    -webkit-user-select: none;
    z-index: 1;
    pointer-events: auto;
    isolation: isolate;
    flex-shrink: 1;
    min-width: fit-content;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 3px;
    background: var(--primary);
    transition: transform 0.3s;
    pointer-events: none;
    z-index: 0;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(24, 144, 255, 0.1), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(24, 144, 255, 0.08);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(24, 144, 255, 0.1);
    font-weight: 600;
}

/* PC端特殊按钮样式（登录、注册、退出） */
.nav a.btn-primary,
.nav a.cta-btn {
    background: var(--gradient);
    color: #ffffff;
    font-weight: 600;
    padding: 8px 20px;
    border: 1px solid rgba(64, 150, 255, 0.3);
    box-shadow: 
        0 2px 8px rgba(64, 150, 255, 0.3);
    text-shadow: none;
    position: relative;
    overflow: hidden;
}

.nav a.btn-primary::before,
.nav a.cta-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.nav a.btn-primary:hover::before,
.nav a.cta-btn:hover::before {
    width: 300px;
    height: 300px;
}

.nav a.btn-primary:hover,
.nav a.cta-btn:hover {
    box-shadow: 
        0 4px 12px rgba(64, 150, 255, 0.4),
        0 0 20px rgba(64, 150, 255, 0.2);
    transform: translateY(-1px);
    border-color: rgba(64, 150, 255, 0.5);
}

.nav a.btn-primary:active,
.nav a.cta-btn:active {
    transform: translateY(0) scale(0.98);
}

/* 下拉菜单样式 */
.nav-dropdown {
    position: relative;
    display: inline-block;
    height: 64px;
    vertical-align: top;
    z-index: 10;
    isolation: isolate;
}

.nav-dropdown-toggle {
    cursor: pointer;
    position: relative;
    z-index: 2;
    pointer-events: auto;
    isolation: isolate;
}

.nav-dropdown-toggle::before {
    content: ' ▼';
    font-size: 10px;
    margin-left: 4px;
    opacity: 0.7;
    transition: transform 0.3s ease;
    display: inline-block;
}

.nav-dropdown.active .nav-dropdown-toggle::before {
    transform: rotate(180deg);
}

/* 下拉菜单按钮继承导航链接样式 - 通过同时应用 .nav-link 类实现 */

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: var(--card);
    backdrop-filter: var(--blur);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-xs);
    display: none;
    flex-direction: column;
    gap: var(--spacing-xs);
    z-index: 1001;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 0;
    transform: translateY(-8px);
    margin-top: 4px;
}

.nav-dropdown.active .nav-dropdown-menu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-dropdown-menu a {
    padding: 10px 16px;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition-fast);
    font-size: var(--font-size-sm);
    position: relative;
    overflow: hidden;
    display: block;
    white-space: nowrap;
    cursor: pointer;
    pointer-events: auto;
    z-index: 1;
}

.nav-dropdown-menu a:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.nav-dropdown-menu a:active {
    background: rgba(24, 144, 255, 0.1);
}

/* 移动端下拉菜单 */
.nav-mobile-dropdown {
    position: relative;
}

.nav-mobile-dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-mobile-dropdown-menu {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding-left: 40px;
    margin-top: 8px;
    border-left: 2px solid rgba(255, 215, 0, 0.3);
    padding-top: 8px;
    padding-bottom: 8px;
}

.nav-mobile-dropdown.active .nav-mobile-dropdown-menu {
    display: flex;
}

.nav-mobile-dropdown-menu a {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--muted);
    border-radius: 8px;
}

.nav-mobile-dropdown-menu a:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 179, 71, 0.1) 100%);
    color: var(--primary);
}

/* 移动端菜单按钮 - PC端默认隐藏 */
.mobile-menu-toggle {
    display: none !important;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 179, 71, 0.15) 100%);
    border: 2px solid rgba(255, 215, 0, 0.4);
    color: var(--primary);
    font-size: 24px;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 12px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: visible;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mobile-menu-toggle .menu-icon {
    font-size: 20px;
    line-height: 1;
}

.mobile-menu-toggle .menu-hint {
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    white-space: nowrap;
    display: none; /* 默认隐藏，移动端显示 */
}

.mobile-menu-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.mobile-menu-toggle:active::before {
    left: 100%;
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
    box-shadow: 
        0 2px 8px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 215, 0, 0.3);
}

/* 移动端导航菜单 - PC端默认隐藏 */
.nav-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 0;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 40px rgba(0, 0, 0, 0.1);
    border-right: 1px solid var(--border);
}

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

.nav-mobile::before {
    display: none;
}

.nav-mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 32px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-weight: 300;
}

.nav-mobile-close:hover,
.nav-mobile-close:active {
    background: var(--bg-tertiary);
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.05) rotate(90deg);
    box-shadow: var(--shadow-md);
}

.nav-mobile-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 80px 24px 24px;
    position: relative;
    z-index: 1;
}

.nav-mobile-content a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius-lg);
    background: var(--card);
    border: 1px solid var(--border);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.nav-mobile-content a::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.5s;
    z-index: 0;
}

.nav-mobile-content a:hover::after,
.nav-mobile-content a:active::after {
    left: 100%;
}


.nav-mobile-content a:hover,
.nav-mobile-content a:active {
    background: var(--bg-secondary);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.nav-mobile-content a.active {
    background: rgba(24, 144, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow-md);
    font-weight: 600;
}

.nav-mobile-content a.active::after {
    content: '';
    position: absolute;
    right: 20px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    z-index: 2;
}

/* 菜单项图标样式 */
.nav-mobile-content a span.icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    line-height: 1;
}

.nav-mobile-content a:hover span.icon,
.nav-mobile-content a:active span.icon {
    transform: scale(1.2);
}

/* 按钮样式在移动端菜单中的特殊处理 */
.nav-mobile-content a.btn-primary,
.nav-mobile-content a.btn.btn-primary {
    background: var(--gradient);
    color: #fff;
    border-color: var(--primary);
    font-weight: 600;
    text-align: center;
    justify-content: center;
    margin-top: 12px;
    box-shadow: var(--shadow-md);
}

.nav-mobile-content a.btn-primary:hover,
.nav-mobile-content a.btn-primary:active,
.nav-mobile-content a.btn.btn-primary:hover,
.nav-mobile-content a.btn.btn-primary:active {
    background: var(--gradient);
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-btn {
    padding: 12px 24px;
    background: var(--gradient-gold);
    color: #1a1a2e;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--shadow-gold);
    border: 1px solid rgba(255, 215, 0, 0.5);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 24px rgba(255, 215, 0, 0.5),
        0 0 40px rgba(255, 215, 0, 0.3);
}

/* ========== 首页上半部分新设计样式 ========== */
.homepage-top-section {
    padding: var(--spacing-lg) 0;
    background: var(--bg);
}

.homepage-top-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--spacing-xl);
    align-items: start;
}

/* Banner轮播区域 */
.homepage-banner-carousel {
    margin-bottom: var(--spacing-lg);
}

.banner-carousel-container {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    background: var(--card);
    transition: all 0.3s ease;
}

.banner-carousel-container:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.banner-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.banner-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.banner-carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.banner-carousel-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: var(--spacing-xl);
    color: #fff;
}

.banner-carousel-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: #fff;
}

.banner-carousel-description {
    font-size: var(--font-size-base);
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

.banner-guarantee-badge {
    position: absolute;
    right: var(--spacing-lg);
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    background: rgba(255,255,255,0.95);
    padding: var(--spacing-md);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.guarantee-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
    background: var(--bg-secondary);
}

.guarantee-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guarantee-text {
    font-size: var(--font-size-sm);
    color: var(--text);
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.banner-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.banner-carousel-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.banner-carousel-prev {
    left: var(--spacing-md);
}

.banner-carousel-next {
    right: var(--spacing-md);
}

.banner-carousel-indicators {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-sm);
    z-index: 20;
}

.banner-carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.banner-carousel-indicator.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

/* 快速链接 */
.homepage-quick-links {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: var(--spacing-lg);
    overflow-x: auto;
    flex-wrap: wrap;
}

.quick-link-item {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    font-size: var(--font-size-sm);
    white-space: nowrap;
    transition: var(--transition);
    border: 1px solid transparent;
}

.quick-link-item:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* 功能卡片 */
.homepage-feature-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.feature-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 249, 250, 1) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(24, 144, 255, 0.15);
    transform: translateY(-6px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(240, 247, 255, 1) 100%);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card-icon {
    font-size: 48px;
    line-height: 1;
    flex-shrink: 0;
}

.feature-card-content {
    flex: 1;
}

.feature-card-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text);
}

.feature-card-desc {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* 右侧边栏 */
.homepage-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.sidebar-welcome-card {
    background: linear-gradient(135deg, #fff9e6 0%, #fff5d6 100%);
    border: 1px solid #ffe58f;
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: 0 4px 16px rgba(250, 173, 20, 0.15);
    position: relative;
    overflow: hidden;
}

.sidebar-welcome-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 229, 143, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.welcome-header h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--spacing-md);
}

.welcome-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.welcome-btn {
    display: block;
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: var(--transition);
    font-size: var(--font-size-base);
}

.welcome-btn-primary {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
}

.welcome-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.welcome-btn-secondary {
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.welcome-btn-secondary:hover {
    background: var(--primary-light);
    color: #fff;
    transform: translateY(-2px);
}

.welcome-link {
    display: block;
    text-align: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: var(--transition);
}

.welcome-link:hover {
    color: var(--primary);
}

.sidebar-announcements {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.sidebar-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text);
}

.announcements-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.announcement-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    text-decoration: none;
    color: var(--text);
    border-radius: var(--radius);
    transition: var(--transition);
}

.announcement-item:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.announcement-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

.announcement-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.announcement-item:hover .announcement-text {
    color: var(--primary);
}

.sidebar-stats {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.stats-item {
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border);
}

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

.stats-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.stats-value {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--primary);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .homepage-top-grid {
        grid-template-columns: 1fr 280px;
        gap: var(--spacing-lg);
    }
    
    .banner-carousel-wrapper {
        height: 350px;
    }
}

@media (max-width: 968px) {
    .homepage-top-grid {
        grid-template-columns: 1fr;
    }
    
    .homepage-sidebar {
        order: -1;
    }
    
    .homepage-feature-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .banner-carousel-wrapper {
        height: 250px;
    }
    
    .banner-guarantee-badge {
        display: none;
    }
    
    .homepage-quick-links {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .homepage-feature-cards {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: var(--spacing-md);
    }
    
    .feature-card-icon {
        font-size: 36px;
    }
}

/* ========== 热门商品卡片新样式 ========== */
.hot-items-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: var(--spacing-md) 0;
    margin: 0 calc(-1 * var(--spacing-md));
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

.hot-items-container {
    display: flex;
    gap: var(--spacing-lg);
    min-width: max-content;
}

.hot-item-card {
    flex-shrink: 0;
    width: 320px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 249, 250, 1) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    position: relative;
}

.hot-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.hot-item-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(24, 144, 255, 0.15);
    transform: translateY(-6px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(240, 247, 255, 1) 100%);
}

.hot-item-card:hover::before {
    transform: scaleX(1);
}

.hot-item-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    background: var(--bg-secondary);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hot-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hot-item-icon {
    font-size: 80px;
    color: var(--text-muted);
    opacity: 0.5;
}

.hot-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    background: var(--bg-tertiary);
}

.image-count-badge {
    position: absolute;
    bottom: var(--spacing-sm);
    right: var(--spacing-sm);
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 8px;
    border-radius: var(--radius);
    font-size: var(--font-size-xs);
    font-weight: 500;
}

.hot-item-info {
    padding: var(--spacing-md);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.hot-item-tags {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.tag-new {
    display: inline-block;
    padding: 2px 8px;
    background: #faad14;
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.tag-guarantee {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(24, 144, 255, 0.1);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 500;
}

.hot-item-desc {
    font-size: var(--font-size-sm);
    color: var(--text);
    line-height: 1.5;
    margin: var(--spacing-xs) 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-item-meta {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    line-height: 1.4;
}

.hot-item-tags-bottom {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
    margin-top: var(--spacing-xs);
}

.hot-item-tags-bottom span {
    display: inline-block;
    padding: 2px 6px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

.hot-item-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--border-light);
}

.hot-item-price {
    font-size: 24px;
    font-weight: 700;
    color: #ff4d4f;
    line-height: 1;
}

.hot-item-popularity {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.fire-icon {
    font-size: 14px;
    color: #ff4d4f;
}

/* 热门金币专用样式 */
.hot-item-coin-amount {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-light);
}

.coin-amount-label {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.coin-amount-value {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text);
}

.hot-item-region {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--border-light);
}

.region-label {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.region-value {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--primary);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hot-item-card {
        width: 280px;
    }
    
    .hot-item-image-wrapper {
        height: 160px;
    }
    
    .hot-item-price {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hot-item-card {
        width: 260px;
    }
    
    .hot-item-image-wrapper {
        height: 140px;
    }
}

/* ========== H5移动端首页完整设计 ========== */
/* 默认隐藏移动端首页（PC端显示） */
.mobile-homepage {
    display: none;
}

/* 移动端底部导航栏默认隐藏（PC端） */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    /* 只在首页隐藏PC端Header和导航 */
    body:has(.mobile-homepage) .header {
        display: none !important;
    }
    
    /* 只在首页隐藏PC端内容 */
    body:has(.mobile-homepage) .homepage-top-section,
    body:has(.mobile-homepage) .official-announcements-section,
    body:has(.mobile-homepage) .section {
        display: none !important;
    }
    
    /* 显示移动端首页 */
    .mobile-homepage {
        display: block !important;
        padding: 0;
        background: #fff;
        min-height: 100vh;
        padding-bottom: 80px; /* 为底部导航栏留出空间 */
    }
    
    /* 如果显示登录提示，需要额外留出空间 */
    body:has(.mobile-login-prompt-fixed) .mobile-homepage {
        padding-bottom: 140px; /* 底部导航栏 + 登录提示 */
    }
    
    /* 非首页的移动端页面也需要底部导航栏空间 */
    body:not(:has(.mobile-homepage)) .main {
        padding-bottom: 80px;
    }
    
    /* 非首页的移动端页面显示header */
    body:not(:has(.mobile-homepage)) .header {
        display: block !important;
    }
    
    /* 非首页的移动端页面显示section */
    body:not(:has(.mobile-homepage)) .section {
        display: block !important;
    }
    
    /* 登录提示（固定在底部导航栏上方） */
    .mobile-login-prompt-fixed {
        position: fixed;
        bottom: 60px; /* 底部导航栏高度 */
        left: 0;
        right: 0;
        padding: 0;
        z-index: 999;
        box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    }
    
    .mobile-login-prompt-fixed .mobile-login-prompt-content {
        display: flex;
        align-items: center;
        gap: 10px;
        max-width: 100%;
        margin: 0 12px 8px 12px;
        padding: 12px 16px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 16px;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }
    
    .mobile-login-prompt-fixed .mobile-login-character {
        font-size: 24px;
        flex-shrink: 0;
        animation: wave 2s ease-in-out infinite;
    }
    
    @keyframes wave {
        0%, 100% { transform: rotate(0deg); }
        25% { transform: rotate(15deg); }
        75% { transform: rotate(-15deg); }
    }
    
    .mobile-login-prompt-fixed .mobile-login-text {
        flex: 1;
        font-size: 14px;
        color: #fff;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.4;
    }
    
    .mobile-login-prompt-fixed .mobile-login-btn {
        padding: 8px 20px;
        background: #fff;
        color: #667eea;
        border-radius: 20px;
        text-decoration: none;
        font-size: 13px;
        font-weight: 600;
        white-space: nowrap;
        flex-shrink: 0;
        box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
        transition: all 0.3s ease;
    }
    
    .mobile-login-prompt-fixed .mobile-login-btn:active {
        transform: scale(0.95);
        box-shadow: 0 1px 4px rgba(255, 255, 255, 0.2);
    }
    
    /* 显示底部导航栏（所有移动端页面都显示） */
    .mobile-bottom-nav {
        display: flex !important;
    }
    
    /* 确保非首页的移动端页面也能正常显示 */
    body:not(:has(.mobile-homepage)) .main {
        padding-bottom: 80px; /* 为底部导航栏留出空间 */
    }
    
    body:not(:has(.mobile-homepage)) .header {
        display: block !important;
    }
    
    body:not(:has(.mobile-homepage)) .section {
        display: block !important;
    }
    
    /* ========== 移动端返回按钮 ========== */
    .mobile-back-btn {
        display: flex !important;
        align-items: center;
        gap: 8px;
        padding: 12px 16px;
        background: #fff;
        border-bottom: 1px solid #e8e8e8;
        cursor: pointer;
        position: sticky;
        top: 0;
        z-index: 100;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        margin: 0 -16px 16px -16px;
    }
    
    .back-icon {
        font-size: 20px;
        font-weight: 700;
        color: #262626;
    }
    
    .back-text {
        font-size: 16px;
        font-weight: 500;
        color: #262626;
    }
    
    /* ========== 移动端用户菜单 ========== */
    .mobile-user-menu-toggle {
        display: flex !important;
        align-items: center;
        gap: 6px;
        padding: 8px 16px;
        background: var(--primary);
        color: #fff;
        border: none;
        border-radius: var(--radius-md);
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        margin-bottom: 16px;
    }
    
    .mobile-user-menu {
        display: none;
        background: #fff;
        border: 1px solid #e8e8e8;
        border-radius: var(--radius-lg);
        padding: 12px;
        margin-bottom: 16px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .mobile-menu-link {
        display: block;
        padding: 12px 16px;
        color: #262626;
        text-decoration: none;
        border-radius: var(--radius-md);
        font-size: 14px;
        transition: var(--transition);
        margin-bottom: 4px;
    }
    
    .mobile-menu-link:last-child {
        margin-bottom: 0;
    }
    
    .mobile-menu-link:hover,
    .mobile-menu-link.active {
        background: var(--primary-light);
        color: var(--primary);
    }
    
    /* PC端用户菜单（移动端隐藏） */
    .user-nav-menu-pc {
        display: flex;
        gap: 16px;
        flex-wrap: wrap;
        margin-bottom: 24px;
    }
    
    /* PC端隐藏移动端元素 */
    @media (min-width: 769px) {
        .mobile-back-btn,
        .mobile-user-menu-toggle,
        .mobile-user-menu {
            display: none !important;
        }
    }
    
    /* 移动端隐藏PC端元素 */
    @media (max-width: 768px) {
        .user-nav-menu-pc {
            display: none !important;
        }
    }
    
    /* 顶部Header（黄色渐变） */
    .mobile-header-top {
        background: linear-gradient(135deg, #fff9e6 0%, #ffe58f 50%, #fff9e6 100%);
        padding: 16px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .mobile-header-content {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
    }
    
    .mobile-logo-section {
        flex: 1;
    }
    
    .mobile-logo {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .mobile-logo img {
        height: 32px;
        width: auto;
    }
    
    .mobile-logo-text {
        font-size: 20px;
        font-weight: 700;
        color: #262626;
    }
    
    .mobile-logo-tag {
        display: inline-block;
        background: #ff4d4f;
        color: #fff;
        padding: 2px 6px;
        border-radius: 4px;
        font-size: 10px;
        font-weight: 600;
    }
    
    .mobile-slogan {
        font-size: 12px;
        color: #595959;
        line-height: 1.4;
    }
    
    .mobile-service-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        text-decoration: none;
        color: #262626;
        padding: 8px;
    }
    
    .service-icon {
        font-size: 24px;
    }
    
    .service-text {
        font-size: 12px;
    }
    
    /* 搜索栏 */
    .mobile-search-section {
        padding: 16px;
        background: #fff;
    }
    
    .mobile-search-form {
        display: flex;
        gap: 8px;
    }
    
    .mobile-search-input-wrapper {
        flex: 1;
        display: flex;
        align-items: center;
        background: #fff;
        border: 1px solid #e8e8e8;
        border-radius: 24px;
        padding: 0 16px;
        height: 44px;
    }
    
    .search-icon {
        font-size: 18px;
        color: #8c8c8c;
        margin-right: 8px;
    }
    
    .mobile-search-input {
        flex: 1;
        border: none;
        outline: none;
        font-size: 14px;
        color: #262626;
        background: transparent;
    }
    
    .mobile-search-input::placeholder {
        color: #8c8c8c;
    }
    
    .mobile-search-btn {
        padding: 0 24px;
        background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
        color: #fff;
        border: none;
        border-radius: 24px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        white-space: nowrap;
        box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .mobile-search-btn:active {
        transform: scale(0.95);
        box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2);
    }
    
    /* 功能图标区域 */
    .mobile-features-section {
        padding: 16px;
        background: #fff;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    
    @media (max-width: 480px) {
        .mobile-features-section {
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
        }
        
        .feature-icon {
            width: 48px;
            height: 48px;
            font-size: 24px;
        }
        
        .feature-label {
            font-size: 11px;
        }
    }
    
    .mobile-feature-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        color: #262626;
    }
    
    .feature-icon {
        width: 52px;
        height: 52px;
        background: linear-gradient(135deg, #fff9e6 0%, #ffe58f 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 26px;
        box-shadow: 0 4px 12px rgba(250, 173, 20, 0.2);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .mobile-feature-item:hover .feature-icon {
        transform: translateY(-4px) scale(1.1);
        box-shadow: 0 6px 16px rgba(250, 173, 20, 0.3);
    }
    
    .feature-label {
        font-size: 12px;
        text-align: center;
        line-height: 1.2;
    }
    
    /* 游戏分类 */
    .mobile-games-section {
        padding: 16px;
        background: #fff;
    }
    
    .mobile-games-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 12px;
    }
    
    .mobile-game-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        text-decoration: none;
        color: #262626;
    }
    
    .game-icon {
        width: 52px;
        height: 52px;
        background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        font-weight: 600;
        color: #1890ff;
        border: 1px solid rgba(24, 144, 255, 0.1);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 2px 4px rgba(24, 144, 255, 0.1);
    }
    
    .mobile-game-item:hover .game-icon {
        transform: translateY(-4px);
        box-shadow: 0 4px 12px rgba(24, 144, 255, 0.2);
        background: linear-gradient(135deg, #e6f2ff 0%, #d4e8ff 100%);
    }
    
    .game-icon-all {
        width: 48px;
        height: 48px;
        background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 600;
        color: #fff;
    }
    
    .game-label {
        font-size: 11px;
        text-align: center;
        line-height: 1.2;
    }
    
    /* 促销轮播图 */
    .mobile-banner-carousel {
        position: relative;
        margin: 16px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .mobile-banner-wrapper {
        position: relative;
        width: 100%;
        padding-top: 40%;
        overflow: hidden;
    }
    
    .mobile-banner-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 0.5s ease;
    }
    
    .mobile-banner-slide.active {
        opacity: 1;
    }
    
    .mobile-banner-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .mobile-banner-indicators {
        position: absolute;
        bottom: 12px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 6px;
        z-index: 10;
    }
    
    .mobile-banner-indicator {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: rgba(255,255,255,0.5);
        cursor: pointer;
        transition: all 0.3s;
    }
    
    .mobile-banner-indicator.active {
        background: #fff;
        width: 20px;
        border-radius: 3px;
    }
    
    /* 捡漏专区 */
    .mobile-bargain-section {
        padding: 16px;
        background: #fff;
        margin-top: 8px;
    }
    
    .mobile-section-header {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .mobile-section-title {
        font-size: 18px;
        font-weight: 700;
        color: #262626;
        margin: 0;
    }
    
    .mobile-section-subtitle {
        font-size: 12px;
        color: #8c8c8c;
        flex: 1;
    }
    
    .mobile-section-more {
        font-size: 18px;
        color: #8c8c8c;
        text-decoration: none;
    }
    
    .mobile-bargain-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -16px;
        padding: 0 16px;
    }
    
    .mobile-bargain-container {
        display: flex;
        gap: 12px;
    }
    
    .mobile-bargain-card {
        flex-shrink: 0;
        width: 140px;
        background: #fff;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        text-decoration: none;
        color: inherit;
    }
    
    .bargain-card-image {
        width: 100%;
        height: 100px;
        background: #f5f5f5;
        overflow: hidden;
    }
    
    .bargain-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .bargain-card-placeholder {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 32px;
    }
    
    .bargain-card-info {
        padding: 8px;
    }
    
    .bargain-card-title {
        font-size: 12px;
        color: #262626;
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .bargain-card-price {
        font-size: 16px;
        font-weight: 700;
        color: #ff4d4f;
    }
    
    /* 累计守护统计 */
    .mobile-stats-section {
        padding: 16px;
        background: linear-gradient(135deg, #fff9e6 0%, #ffe58f 100%);
        margin: 8px 16px;
        border-radius: 12px;
    }
    
    .mobile-stats-content {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .mobile-stats-icon {
        width: 40px;
        height: 40px;
        background: #52c41a;
        color: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        font-weight: 700;
    }
    
    .mobile-stats-text {
        flex: 1;
    }
    
    .mobile-stats-label {
        font-size: 12px;
        color: #595959;
        margin-bottom: 4px;
    }
    
    .mobile-stats-value {
        font-size: 20px;
        font-weight: 700;
        color: #fa8c16;
    }
    
    .mobile-stats-character {
        font-size: 32px;
    }
    
    /* 新闻/公告卡片 */
    .mobile-news-section {
        padding: 16px;
        background: #fff;
        margin-top: 8px;
    }
    
    .mobile-news-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -16px;
        padding: 0 16px;
    }
    
    .mobile-news-container {
        display: flex;
        gap: 12px;
    }
    
    .mobile-news-card {
        flex-shrink: 0;
        width: 200px;
        background: #fff;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        text-decoration: none;
        color: inherit;
    }
    
    .mobile-news-image {
        width: 100%;
        height: 120px;
        object-fit: cover;
    }
    
    .mobile-news-placeholder {
        width: 100%;
        height: 120px;
        background: #f5f5f5;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 48px;
    }
    
    .mobile-news-title {
        padding: 8px;
        font-size: 13px;
        color: #262626;
        line-height: 1.4;
    }
    
    /* 成交速报 */
    .mobile-bulletin-section {
        padding: 12px 16px;
        background: #fff;
        margin-top: 8px;
        border-top: 1px solid #f0f0f0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .mobile-bulletin-content {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .mobile-bulletin-label {
        font-size: 13px;
        font-weight: 600;
        color: #262626;
    }
    
    .mobile-bulletin-text {
        font-size: 12px;
        color: #8c8c8c;
    }
    
    /* 登录提示（固定在底部导航栏上方） */
    .mobile-login-prompt-fixed {
        position: fixed;
        bottom: 60px; /* 底部导航栏高度 */
        left: 0;
        right: 0;
        padding: 0;
        z-index: 999;
        box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    }
    
    .mobile-login-prompt-content {
        display: flex;
        align-items: center;
        gap: 10px;
        max-width: 100%;
        margin: 0 12px 8px 12px;
        padding: 12px 16px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 16px;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }
    
    .mobile-login-character {
        font-size: 24px;
        flex-shrink: 0;
        animation: wave 2s ease-in-out infinite;
    }
    
    @keyframes wave {
        0%, 100% { transform: rotate(0deg); }
        25% { transform: rotate(15deg); }
        75% { transform: rotate(-15deg); }
    }
    
    .mobile-login-text {
        flex: 1;
        font-size: 14px;
        color: #fff;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.4;
    }
    
    .mobile-login-btn {
        padding: 8px 20px;
        background: #fff;
        color: #667eea;
        border-radius: 20px;
        text-decoration: none;
        font-size: 13px;
        font-weight: 600;
        white-space: nowrap;
        flex-shrink: 0;
        box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
        transition: all 0.3s ease;
    }
    
    .mobile-login-prompt-fixed .mobile-login-btn:active {
        transform: scale(0.95);
        box-shadow: 0 1px 4px rgba(255, 255, 255, 0.2);
    }
    
    /* 底部导航栏 */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #e8e8e8;
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 8px 0;
        z-index: 1000;
        box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
        height: 60px;
        box-sizing: border-box;
    }
    
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        text-decoration: none;
        color: #8c8c8c;
        flex: 1;
        padding: 4px;
    }
    
    .mobile-nav-item.active {
        color: #faad14;
    }
    
    .mobile-nav-icon {
        font-size: 24px;
    }
    
    .mobile-nav-label {
        font-size: 11px;
    }
    
    /* 确保移动端首页显示 */
    .mobile-homepage {
        display: block !important;
    }
}

.hero {
    padding: var(--spacing-xxl) 0;
    position: relative;
    overflow: hidden;
    background: var(--bg);
    margin-top: var(--spacing-lg);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
}

.hero-text {
    z-index: 2;
}

.hero-text h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    margin: var(--spacing-md) 0;
    letter-spacing: -0.5px;
}

.hero-text p {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-loose);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card {
    background: var(--card);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    width: 100%;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.hero-stat span {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.hero-stat strong {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
    
    .hero-card {
        grid-template-columns: 1fr;
    }
}

.hero::before {
    display: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.hero-text {
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 20px;
    line-height: 1.4;
    color: #333;
    font-weight: 600;
    letter-spacing: 0;
}

.hero-text p {
    color: #666;
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-image {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.orb {
    position: absolute;
    width: 260px;
    height: 260px;
    background: rgba(245, 183, 89, 0.18);
    filter: blur(80px);
    border-radius: 50%;
    top: -60px;
    right: -60px;
}

.hero-card {
    display: grid;
    gap: 12px;
}

.hero-stat {
    background: #fafafa;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-stat::before {
    display: none;
}

.hero-stat:hover {
    border-color: #d9d9d9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hero-stat span {
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.05em;
}

.hero-stat strong {
    font-size: 28px;
    margin-top: 8px;
    display: block;
}

.section-title {
    font-size: 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

.section-title::before {
    display: none;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 2px;
}

.card {
    background: var(--card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: var(--spacing-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 8px 24px rgba(24, 144, 255, 0.12);
    transform: translateY(-4px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition-fast);
}

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

/* 移除闪烁动画效果
.card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
}
*/

.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
}

.region-card {
    position: relative;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    color: inherit;
    text-decoration: none;
    background: var(--card);
    transition: var(--transition);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.region-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.2s;
}

.region-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

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

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

.region-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    border-style: dashed;
    background: rgba(255, 255, 255, 0.02);
}

.region-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: absolute;
    top: 18px;
    right: 18px;
}

.region-status.green {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.region-status.gray {
    background: #394256;
}

.toggle-servers-btn {
    background: rgba(79, 139, 255, 0.1) !important;
    border: 1px solid rgba(79, 139, 255, 0.3) !important;
    border-radius: 6px;
    padding: 6px 12px !important;
    font-size: 12px !important;
    color: var(--primary) !important;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.toggle-servers-btn:hover {
    background: rgba(79, 139, 255, 0.2) !important;
    border-color: rgba(79, 139, 255, 0.5) !important;
    transform: translateY(-1px);
}

.toggle-servers-btn .toggle-icon {
    font-size: 10px;
    transition: transform 0.2s;
}

.servers-full {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.search-panel {
    display: grid;
    grid-template-columns: 3fr 1fr auto;
    gap: var(--spacing-md);
}

.search-panel input,
.search-panel select {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius);
    padding: 12px 16px;
    color: var(--text) !important;
    font-size: var(--font-size-base);
    transition: var(--transition);
}

.search-panel input:focus,
.search-panel select:focus {
    outline: none;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.search-panel select option {
    background: var(--card) !important;
    color: var(--text) !important;
}

/* 表单样式 */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.form-grid label {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-grid label span {
    font-weight: 500;
    color: var(--text);
    font-size: 14px;
    margin-bottom: 4px;
    display: block;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
    width: 100%;
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius);
    padding: 12px 16px;
    color: var(--text) !important;
    font-family: inherit;
    font-size: var(--font-size-base);
    transition: var(--transition);
}

/* 全局输入框文字颜色修复 - 确保所有输入框文字都是黑色 */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="url"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
textarea,
select {
    color: var(--text) !important;
    background: var(--card) !important;
}

/* 全局下拉框样式修复 - 确保文字清晰可见 */
select {
    background: var(--card) !important;
    background-color: var(--card) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
    padding: 10px 16px !important;
    border-radius: var(--radius) !important;
    font-size: var(--font-size-base) !important;
    font-family: inherit !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23262626' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px !important;
    padding-right: 36px !important;
}

select:focus {
    outline: none !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1) !important;
    background-color: var(--card) !important;
}

/* 下拉框选项样式 - 确保选项文字清晰可见 */
select option {
    background: var(--card) !important;
    background-color: var(--card) !important;
    color: var(--text) !important;
    padding: 10px 16px !important;
}

select option:hover,
select option:focus,
select option:checked,
select option:selected {
    background: var(--bg-secondary) !important;
    background-color: var(--bg-secondary) !important;
    color: var(--text) !important;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
input[type="number"]::placeholder,
input[type="search"]::placeholder,
input[type="url"]::placeholder,
textarea::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.7;
}

.form-grid input:hover,
.form-grid select:hover,
.form-grid textarea:hover {
    border-color: var(--primary-light) !important;
    background: var(--bg-secondary) !important;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
    outline: none;
    border-color: var(--primary) !important;
    background: var(--card) !important;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.form-grid input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-grid select option {
    background: var(--card);
    color: var(--text);
}

.form-grid textarea {
    resize: vertical;
    min-height: 100px;
}

/* 表单标签增强样式 */
.form-grid label span {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.form-grid label span small {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.7;
}

/* 输入框占位符样式 */
.form-grid input::placeholder,
.form-grid textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

/* 只读输入框样式 */
.form-grid input[readonly] {
    background: rgba(255, 255, 255, 0.03) !important;
    cursor: default;
}

/* 文件上传区域样式 */
.upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.02);
}

.upload-area:hover {
    border-color: rgba(245, 183, 89, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

/* 图片预览样式增强 */
.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.image-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.image-preview-item:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(245, 183, 89, 0.2);
}

/* 表单提示信息样式 */
.form-hint {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-hint::before {
    content: "ℹ";
    font-size: 14px;
    opacity: 0.6;
}

/* 必填字段标识 - 通过类名实现 */
.form-grid label.required span::before {
    content: "*";
    color: #ff4d4f;
    margin-right: 4px;
    font-weight: 600;
}

/* 服务器选择按钮样式 */
.server-select-btn {
    padding: 12px 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
}

.server-select-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.server-select-btn.selected {
    background: rgba(245, 183, 89, 0.25);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 183, 89, 0.15);
}

.search-panel button {
    border: none;
    border-radius: var(--radius);
    background: var(--gradient);
    color: var(--text-inverse);
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    padding: 12px 24px;
    transition: var(--transition);
}

.search-panel button:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.announcement-ticker {
    display: flex;
    overflow: hidden;
    gap: 18px;
    flex-wrap: wrap;
}

.announcement-item {
    flex: 1;
    min-width: 220px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.ann-type {
    font-size: 12px;
    letter-spacing: 0.05em;
    color: var(--primary);
    font-weight: 600;
    margin-right: 8px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: var(--spacing-md);
    }
}

.product-card {
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 249, 250, 1) 100%);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition-fast);
}

.product-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(24, 144, 255, 0.12);
    transform: translateY(-6px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(240, 247, 255, 1) 100%);
}

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

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-light);
}

.product-meta span:first-child {
    color: var(--primary);
    font-weight: 600;
}

.product-meta span:last-child {
    padding: 4px 12px;
    background: rgba(24, 144, 255, 0.1);
    border: 1px solid rgba(24, 144, 255, 0.2);
    border-radius: var(--radius);
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--primary);
}

.product-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--danger);
    margin: var(--spacing-sm) 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.product-price::before {
    content: '¥';
    font-size: 20px;
    font-weight: 500;
    margin-right: 2px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
}

.badge-primary {
    background: rgba(24, 144, 255, 0.1);
    color: #1890ff;
    border: 1px solid rgba(24, 144, 255, 0.2);
}

.badge-success {
    background: rgba(55, 211, 153, 0.15);
    color: #9cf4d5;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-base);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    gap: var(--spacing-sm);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 249, 250, 1) 100%);
    color: var(--text);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(24, 144, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
    font-weight: 600;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #40a9ff 0%, #1890ff 100%);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 16px rgba(24, 144, 255, 0.4);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-ghost {
    background: var(--card);
    border-color: var(--border);
    color: var(--text);
}

.btn-ghost:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-light);
    color: var(--primary);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 14px 32px;
    font-size: var(--font-size-lg);
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: 6px 16px;
    font-size: var(--font-size-sm);
    border-radius: var(--radius-sm);
}

.btn-ghost:hover {
    background: #fafafa;
    border-color: #40a9ff;
    color: #40a9ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.btn:disabled,
.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* 按钮尺寸变体 */
.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 17px;
}

/* 按钮颜色变体 */
.btn-success {
    background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(82, 196, 26, 0.3);
}

.btn-success:hover {
    box-shadow: 0 6px 20px rgba(82, 196, 26, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ff4d4f 0%, #cf1322 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 6px 20px rgba(255, 77, 79, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.btn-info:hover {
    box-shadow: 0 6px 20px rgba(24, 144, 255, 0.4);
}

/* 图片上传按钮特殊样式 */
.btn-upload {
    background: linear-gradient(135deg, rgba(245, 183, 89, 0.15) 0%, rgba(245, 183, 89, 0.25) 100%);
    border: 2px solid rgba(245, 183, 89, 0.4);
    color: var(--primary);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn-upload::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;
}

.btn-upload:hover::before {
    left: 100%;
}

.btn-upload:hover {
    background: linear-gradient(135deg, rgba(245, 183, 89, 0.25) 0%, rgba(245, 183, 89, 0.35) 100%);
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(245, 183, 89, 0.3);
    transform: translateY(-2px);
}

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

.btn-upload span {
    display: inline-block;
    margin-right: 6px;
    font-size: 16px;
    vertical-align: middle;
}

/* 上传区域内的按钮容器 */
#imageUploadArea .btn-upload,
.upload-area .btn-upload {
    min-width: 140px;
    padding: 12px 24px;
    font-size: 14px;
    margin: 8px;
}

/* 清空按钮样式 */
.btn-clear {
    background: rgba(255, 77, 79, 0.15);
    border: 2px solid rgba(255, 77, 79, 0.3);
    color: #ff4d4f;
    font-weight: 600;
}

.btn-clear:hover {
    background: rgba(255, 77, 79, 0.25);
    border-color: #ff4d4f;
    box-shadow: 0 4px 16px rgba(255, 77, 79, 0.3);
}

/* 下架按钮样式 */
.btn-offline {
    background: linear-gradient(135deg, rgba(250, 173, 20, 0.2) 0%, rgba(250, 173, 20, 0.3) 100%);
    border: 2px solid rgba(250, 173, 20, 0.5);
    color: #faad14;
    font-weight: 600;
}

.btn-offline:hover {
    background: linear-gradient(135deg, rgba(250, 173, 20, 0.3) 0%, rgba(250, 173, 20, 0.4) 100%);
    border-color: #faad14;
    box-shadow: 0 4px 16px rgba(250, 173, 20, 0.3);
    transform: translateY(-2px);
}

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

/* 上架按钮样式 */
.btn-online {
    background: linear-gradient(135deg, rgba(82, 196, 26, 0.2) 0%, rgba(82, 196, 26, 0.3) 100%);
    border: 2px solid rgba(82, 196, 26, 0.5);
    color: #52c41a;
    font-weight: 600;
}

.btn-online:hover {
    background: linear-gradient(135deg, rgba(82, 196, 26, 0.3) 0%, rgba(82, 196, 26, 0.4) 100%);
    border-color: #52c41a;
    box-shadow: 0 4px 16px rgba(82, 196, 26, 0.3);
    transform: translateY(-2px);
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.stat-card {
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.stat-card::before {
    display: none;
}

.stat-card:hover {
    border-color: #d9d9d9;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.stat-card span {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.stat-card strong {
    display: block;
    font-size: 28px;
    margin-top: 0;
    color: #333;
    font-weight: 600;
}

.footer {
    padding: 40px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    border-top: 1px solid var(--border);
    background: var(--bg);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    margin-top: 60px;
}

.footer::before {
    display: none;
}

.glass {
    backdrop-filter: blur(18px);
}

.section {
    padding: var(--spacing-xxl) 0;
    position: relative;
    background: var(--bg);
}

.section:nth-child(even) {
    background: var(--bg-secondary);
}

.section-title {
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
    font-weight: 600;
    position: relative;
    padding-bottom: 0;
}

.section-title::after {
    display: none;
}

/* ========================================
   完全响应式设计 - PC/平板/手机三端自适应
   ======================================== */

/* 平板断点 (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    /* 容器优化 */
    .container {
        max-width: 95%;
        padding: 0 20px;
    }
    
    /* 头部导航优化 */
    .header .container {
        padding: 16px 0;
    }
    
    .logo {
        font-size: 22px;
    }
    
    /* 导航菜单优化 */
    .nav {
        gap: 12px;
    }
    
    .nav a {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    /* Hero区域优化 */
    .hero {
        padding: 50px 0 40px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
    
    /* 搜索面板优化 */
    .search-panel {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    /* 区域卡片优化 */
    .regions-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 16px;
    }
    
    /* 商品卡片优化 */
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }
    
    /* 表单优化 */
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    
    /* 统计卡片优化 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    /* 卡片优化 */
    .card {
        padding: 20px;
    }
    
    /* 按钮优化 */
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    /* 表格优化 */
    table {
        font-size: 14px;
    }
    
    /* 标题优化 */
    .section-title {
        font-size: 22px;
    }
    
    /* 页脚优化 */
    .footer {
        padding: 35px 20px;
    }
}

/* ========================================
   H5移动端完整重新设计 - 现代化、美观、自适应
   ======================================== */
@media (max-width: 768px) {
    /* ========== 基础容器优化 ========== */
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 16px;
        box-sizing: border-box;
    }
    
    /* ========== 头部导航重新设计 ========== */
    .header {
        padding: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }
    
    .header .container {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        gap: 12px;
        height: auto;
        min-height: 56px;
    }
    
    .logo {
        font-size: 18px;
        font-weight: 600;
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .logo img {
        height: 28px !important;
        width: auto;
    }
    
    .logo::before,
    .logo::after {
        display: none;
    }
    
    /* 移动端菜单按钮 - 现代化设计，更明显 */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-width: 80px;
        height: 44px;
        padding: 0 16px;
        background: var(--card);
        border: 2px solid var(--primary);
        border-radius: var(--radius-lg);
        color: var(--text);
        font-size: 15px;
        font-weight: 600;
        transition: var(--transition);
        flex-shrink: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        gap: 6px;
        position: relative;
    }
    
    .mobile-menu-toggle:hover,
    .mobile-menu-toggle:active {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
        transform: scale(0.98);
        box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
    }
    
    .mobile-menu-toggle .menu-icon {
        font-size: 18px;
        line-height: 1;
        display: flex;
        align-items: center;
        color: var(--text);
    }
    
    .mobile-menu-toggle:hover .menu-icon,
    .mobile-menu-toggle:active .menu-icon {
        color: #fff;
    }
    
    .mobile-menu-toggle .menu-hint {
        display: inline-block;
        font-size: 14px;
        font-weight: 600;
        white-space: nowrap;
        color: var(--text);
    }
    
    .mobile-menu-toggle:hover .menu-hint,
    .mobile-menu-toggle:active .menu-hint {
        color: #fff;
    }
    
    /* 移动端站点通知按钮 */
    /* 移动端消息中心未读徽章优化 */
    .nav-message-icon-mobile .unread-badge-mobile {
        background: #ff4d4f;
        color: #fff;
        border-radius: 10px;
        min-width: 18px;
        height: 18px;
        font-size: 11px;
        font-weight: 600;
        line-height: 18px;
        text-align: center;
        padding: 0 4px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        animation: pulse-badge 2s infinite;
    }
    
    /* 隐藏桌面端导航和搜索 */
    .header .container > .nav,
    .header-search {
        display: none !important;
    }
    
    /* 隐藏桌面端操作按钮（但保留移动端需要的） */
    .header-actions {
        display: none !important;
    }
    
    /* ========== 移动端菜单重新设计 ========== */
    .nav-mobile {
        display: block;
        width: 85%;
        max-width: 320px;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    }
    
    .nav-mobile-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 24px;
        background: var(--bg-secondary);
        border: 1px solid var(--border);
        color: var(--text);
        border-radius: var(--radius-lg);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }
    
    .nav-mobile-close:hover,
    .nav-mobile-close:active {
        background: var(--danger);
        color: #fff;
        border-color: var(--danger);
        transform: rotate(90deg) scale(0.95);
    }
    
    .nav-mobile-content {
        padding: 72px 20px 24px;
        gap: 8px;
    }
    
    .nav-mobile-content a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        font-size: 15px;
        font-weight: 500;
        color: var(--text);
        text-decoration: none;
        border-radius: var(--radius-lg);
        background: var(--card);
        border: 1px solid var(--border);
        transition: var(--transition);
        position: relative;
        overflow: hidden;
    }
    
    .nav-mobile-content a span.icon {
        font-size: 20px;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .nav-mobile-content a:hover,
    .nav-mobile-content a:active {
        background: var(--bg-secondary);
        border-color: var(--primary);
        color: var(--primary);
        transform: translateX(4px);
    }
    
    .nav-mobile-content a.active {
        background: rgba(24, 144, 255, 0.1);
        border-color: var(--primary);
        color: var(--primary);
        font-weight: 600;
    }
    
    .nav-mobile-content a.active::after {
        content: '';
        position: absolute;
        right: 16px;
        width: 6px;
        height: 6px;
        background: var(--primary);
        border-radius: 50%;
    }
    
    /* 移动端下拉菜单 */
    .nav-mobile-dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    .nav-mobile-dropdown-menu {
        padding-left: 36px;
        margin-top: 4px;
        gap: 4px;
    }
    
    .nav-mobile-dropdown-menu a {
        padding: 12px 16px;
        font-size: 14px;
        background: var(--bg-secondary);
    }
    
    /* 移动端操作按钮区域 */
    .nav-mobile-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--border);
    }
    
    .nav-mobile-btn-login,
    .nav-mobile-btn-register,
    .nav-mobile-btn-logout {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 14px 20px;
        border-radius: var(--radius-lg);
        font-size: 15px;
        font-weight: 600;
        text-decoration: none;
        transition: var(--transition);
        border: none;
    }
    
    .nav-mobile-btn-login {
        background: var(--card);
        color: var(--text);
        border: 1px solid var(--border);
    }
    
    .nav-mobile-btn-login:hover,
    .nav-mobile-btn-login.active {
        background: var(--bg-secondary);
        border-color: var(--primary);
        color: var(--primary);
    }
    
    .nav-mobile-btn-register,
    .nav-mobile-btn-logout {
        background: var(--gradient);
        color: #fff;
    }
    
    .nav-mobile-btn-register:hover,
    .nav-mobile-btn-register:active,
    .nav-mobile-btn-logout:hover,
    .nav-mobile-btn-logout:active {
        opacity: 0.9;
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }
    
    /* ========== Hero区域优化 ========== */
    .hero {
        padding: 32px 0 24px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .hero-text h1 {
        font-size: 26px;
        line-height: 1.3;
        text-align: center;
        font-weight: 700;
        margin-bottom: 12px;
    }
    
    .hero-text p {
        font-size: 15px;
        text-align: center;
        color: var(--text-secondary);
        line-height: 1.6;
    }
    
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    /* ========== 搜索面板优化 ========== */
    .search-panel {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
        background: var(--card);
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-sm);
    }
    
    .search-panel input,
    .search-panel select {
        width: 100%;
        padding: 12px 16px;
        font-size: 15px;
        border-radius: var(--radius-lg);
    }
    
    /* ========== 卡片系统重新设计 ========== */
    .card {
        padding: 16px;
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-sm);
        border: 1px solid var(--border);
        background: var(--card);
    }
    
    .region-card {
        padding: 16px;
        border-radius: var(--radius-lg);
        transition: var(--transition);
    }
    
    .region-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }
    
    .product-card {
        padding: 16px;
        border-radius: var(--radius-xl);
    }
    
    .product-price {
        font-size: 22px;
        font-weight: 700;
    }
    
    .stat-card {
        padding: 16px;
        border-radius: var(--radius-lg);
    }
    
    .stat-card strong {
        font-size: 22px;
    }
    
    /* ========== 网格布局优化 ========== */
    .regions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* ========== 按钮系统重新设计 ========== */
    .btn {
        padding: 14px 24px;
        font-size: 15px;
        font-weight: 600;
        border-radius: var(--radius-lg);
        min-height: 48px;
        width: 100%;
        max-width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: var(--transition);
        touch-action: manipulation;
    }
    
    .btn-sm {
        padding: 10px 16px;
        font-size: 14px;
        min-height: 40px;
    }
    
    .cta-btn {
        padding: 14px 24px;
        font-size: 15px;
        min-height: 48px;
    }
    
    /* ========== 标题和文字优化 ========== */
    .section-title {
        font-size: 20px;
        font-weight: 700;
        padding-left: 0;
        margin-bottom: 16px;
        color: var(--text);
    }
    
    .section-title::before {
        display: none;
    }
    
    /* ========== 页脚优化 ========== */
    .footer {
        padding: 32px 16px;
        font-size: 13px;
        margin-top: 40px;
    }
    
    .footer .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .footer .container > div.footer-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        margin-bottom: 24px;
    }
    
    /* ========== 认证页面优化 ========== */
    .auth-container {
        padding: 24px 16px;
        min-height: calc(100vh - 120px);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .auth-card {
        padding: 28px 20px;
        width: 100%;
        max-width: 400px;
        border-radius: var(--radius-xl);
    }
    
    .auth-title {
        font-size: 24px;
        font-weight: 700;
        margin-bottom: 8px;
    }
    
    .auth-subtitle {
        font-size: 14px;
        color: var(--text-secondary);
    }
    
    /* ========== 公告卡片优化 ========== */
    .announcement-card {
        padding: 16px;
        border-radius: var(--radius-lg);
    }
    
    /* ========== 表格优化 ========== */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        font-size: 14px;
        min-width: 600px;
    }
    
    /* ========== 输入框优化 ========== */
    input,
    select,
    textarea {
        font-size: 16px !important;
        padding: 12px 16px;
        border-radius: var(--radius-lg);
        min-height: 48px;
    }
    
    /* ========== 其他组件优化 ========== */
    .header-search {
        display: none;
    }
    
    /* 移动端站点通知按钮显示 */
}

/* 大屏幕PC端优化 (大于1200px) */
@media (min-width: 1201px) {
    .container {
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }
    
    .regions-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .form-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* 中等屏幕PC端优化 (1025px - 1200px) */
@media (min-width: 1025px) and (max-width: 1200px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .regions-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 18px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
    
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

/* ========================================
   超小屏幕优化（小于480px）- 进一步优化
   ======================================== */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    /* 头部进一步优化 */
    .header .container {
        padding: 10px 12px;
        min-height: 52px;
    }
    
    .logo {
        font-size: 16px;
    }
    
    .logo img {
        height: 24px !important;
    }
    
    .mobile-menu-toggle {
        min-width: 72px;
        height: 40px;
        padding: 0 12px;
        font-size: 13px;
        color: var(--text);
    }
    
    .mobile-menu-toggle .menu-icon {
        font-size: 16px;
        color: var(--text);
    }
    
    .mobile-menu-toggle:hover .menu-icon,
    .mobile-menu-toggle:active .menu-icon {
        color: #fff;
    }
    
    .mobile-menu-toggle .menu-hint {
        font-size: 12px;
        color: var(--text);
    }
    
    .mobile-menu-toggle:hover .menu-hint,
    .mobile-menu-toggle:active .menu-hint {
        color: #fff;
    }
    
    .mobile-announcement-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .announcement-badge-mobile {
        position: absolute;
        top: 10px;
        right: 16px;
        width: 8px;
        height: 8px;
        background: var(--danger);
        border-radius: 50%;
        border: 2px solid var(--card);
        animation: pulse 2s infinite;
    }
    
    /* 移动端菜单优化 */
    .nav-mobile {
        width: 90%;
        max-width: 300px;
    }
    
    .nav-mobile-content {
        padding: 68px 16px 20px;
        gap: 6px;
    }
    
    .nav-mobile-content a {
        padding: 12px 14px;
        font-size: 14px;
        gap: 10px;
    }
    
    .nav-mobile-content a span.icon {
        font-size: 18px;
        width: 20px;
        height: 20px;
    }
    
    .nav-mobile-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .nav-mobile-actions {
        margin-top: 16px;
        padding-top: 16px;
        gap: 8px;
    }
    
    .nav-mobile-btn-login,
    .nav-mobile-btn-register,
    .nav-mobile-btn-logout {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    /* Hero区域优化 */
    .hero {
        padding: 24px 0 20px;
    }
    
    .hero-text h1 {
        font-size: 22px;
        line-height: 1.3;
    }
    
    .hero-text p {
        font-size: 14px;
    }
    
    /* 网格布局 - 单列 */
    .regions-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    /* 卡片优化 */
    .card {
        padding: 14px;
    }
    
    .region-card,
    .product-card,
    .stat-card {
        padding: 14px;
    }
    
    /* 按钮优化 */
    .btn {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
    }
    
    .btn-sm {
        padding: 8px 14px;
        font-size: 13px;
        min-height: 36px;
    }
    
    .cta-btn {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
    }
    
    /* 标题优化 */
    .section-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    /* 认证页面优化 */
    .auth-container {
        padding: 20px 12px;
    }
    
    .auth-card {
        padding: 24px 16px;
    }
    
    .auth-title {
        font-size: 22px;
    }
    
    .auth-subtitle {
        font-size: 13px;
    }
    
    /* 搜索面板优化 */
    .search-panel {
        padding: 12px;
        gap: 10px;
    }
    
    .search-panel input,
    .search-panel select {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    /* 页脚优化 */
    .footer {
        padding: 24px 12px;
        font-size: 12px;
    }
    
    /* 输入框优化 */
    input,
    select,
    textarea {
        font-size: 16px !important;
        padding: 10px 14px;
        min-height: 44px;
    }
    
    /* 触摸优化 */
    .btn,
    .cta-btn,
    .server-select-btn,
    .mobile-menu-toggle,
    .nav-mobile-close {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
}

/* 页面关闭按钮 */
.page-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(255, 77, 79, 0.2) 0%, rgba(207, 19, 34, 0.15) 100%);
    border: 2px solid rgba(255, 77, 79, 0.4);
    color: #ff4d4f;
    font-size: 32px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 12px rgba(255, 77, 79, 0.3),
        inset 0 1px 0 rgba(255, 77, 79, 0.2);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-weight: 300;
    font-family: Arial, sans-serif;
}

.page-close-btn:hover,
.page-close-btn:active {
    background: linear-gradient(135deg, rgba(255, 77, 79, 0.3) 0%, rgba(207, 19, 34, 0.25) 100%);
    border-color: rgba(255, 77, 79, 0.6);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 
        0 6px 20px rgba(255, 77, 79, 0.4),
        inset 0 1px 0 rgba(255, 77, 79, 0.3);
}

.auth-card,
.forgot-password-form {
    position: relative;
}

@media (max-width: 768px) {
    .page-close-btn {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .page-close-btn {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
}

/* 悬浮在线客服按钮 - 美化设计 */
.floating-chat-btn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 1) 0%, 
        rgba(255, 193, 7, 1) 50%,
        rgba(255, 179, 71, 1) 100%);
    border-radius: 20px;
    box-shadow: 
        0 10px 30px rgba(255, 215, 0, 0.5),
        0 0 40px rgba(255, 215, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid rgba(255, 255, 255, 0.3);
    overflow: visible;
    backdrop-filter: blur(10px);
}

.floating-chat-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%) rotate(0deg);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.floating-chat-btn:hover::before {
    transform: translate(-50%, -50%) rotate(180deg);
}

.floating-chat-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        transparent 50%,
        rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

.floating-chat-btn:hover {
    transform: translateY(-10px) scale(1.08) rotate(2deg);
    box-shadow: 
        0 16px 40px rgba(255, 215, 0, 0.6),
        0 0 60px rgba(255, 215, 0, 0.5),
        0 6px 16px rgba(0, 0, 0, 0.4),
        inset 0 2px 6px rgba(255, 255, 255, 0.5),
        inset 0 -2px 6px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.floating-chat-btn:active {
    transform: translateY(-6px) scale(1.04) rotate(-1deg);
}

.floating-chat-icon {
    font-size: 36px;
    line-height: 1;
    margin-bottom: 4px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
    animation: chatPulse 2.5s ease-in-out infinite;
    transform-origin: center;
}

.floating-chat-text {
    font-size: 12px;
    font-weight: 800;
    color: #1a1a2e;
    text-shadow: 
        0 2px 4px rgba(255, 255, 255, 0.8),
        0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

@keyframes chatPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.15) rotate(-5deg);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
    75% {
        transform: scale(1.15) rotate(-3deg);
    }
}

/* 添加呼吸光晕效果 */
.floating-chat-btn {
    animation: chatGlow 3s ease-in-out infinite;
}

@keyframes chatGlow {
    0%, 100% {
        box-shadow: 
            0 10px 30px rgba(255, 215, 0, 0.5),
            0 0 40px rgba(255, 215, 0, 0.4),
            0 4px 12px rgba(0, 0, 0, 0.3),
            inset 0 2px 4px rgba(255, 255, 255, 0.4),
            inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 
            0 10px 35px rgba(255, 215, 0, 0.6),
            0 0 50px rgba(255, 215, 0, 0.5),
            0 4px 12px rgba(0, 0, 0, 0.3),
            inset 0 2px 4px rgba(255, 255, 255, 0.4),
            inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    }
}

/* 移动端悬浮按钮优化 */
@media (max-width: 768px) {
    .floating-chat-btn {
        right: 20px;
        bottom: 20px;
        width: 70px;
        height: 70px;
        border-radius: 18px;
        border-width: 2px;
    }
    
    .floating-chat-icon {
        font-size: 32px;
        margin-bottom: 3px;
    }
    
    .floating-chat-text {
        font-size: 11px;
        letter-spacing: 0.6px;
    }
}

@media (max-width: 480px) {
    .floating-chat-btn {
        right: 16px;
        bottom: 16px;
        width: 64px;
        height: 64px;
        border-radius: 16px;
        border-width: 2px;
    }
    
    .floating-chat-icon {
        font-size: 28px;
        margin-bottom: 2px;
    }
    
    .floating-chat-text {
        font-size: 10px;
        letter-spacing: 0.5px;
    }
}

/* ========================================
   完全响应式设计增强 - PC/平板/手机三端自适应
   ======================================== */

/* 平板断点 (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    /* 容器优化 */
    .container {
        max-width: 95%;
        padding: 0 20px;
    }
    
    /* 头部导航优化 */
    .header .container {
        padding: 16px 0;
    }
    
    .logo {
        font-size: 22px;
    }
    
    /* 导航菜单优化 */
    .nav {
        gap: 12px;
    }
    
    .nav a {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    /* Hero区域优化 */
    .hero {
        padding: 50px 0 40px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
    
    /* 搜索面板优化 */
    .search-panel {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    /* 区域卡片优化 */
    .regions-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 16px;
    }
    
    /* 商品卡片优化 */
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }
    
    /* 表单优化 */
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    
    /* 统计卡片优化 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    /* 卡片优化 */
    .card {
        padding: 20px;
    }
    
    /* 按钮优化 */
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    /* 表格优化 */
    table {
        font-size: 14px;
    }
    
    /* 标题优化 */
    .section-title {
        font-size: 22px;
    }
    
    /* 页脚优化 */
    .footer {
        padding: 35px 20px;
    }
    
    /* 浮动按钮优化 */
    .floating-chat-btn {
        right: 24px;
        bottom: 24px;
        width: 75px;
        height: 75px;
    }
    
    .floating-chat-icon {
        font-size: 34px;
    }
    
    .floating-chat-text {
        font-size: 11px;
    }
}

/* 大屏幕PC端优化 (大于1200px) */
@media (min-width: 1201px) {
    .container {
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }
    
    .regions-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .form-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* 中等屏幕PC端优化 (1025px - 1200px) */
@media (min-width: 1025px) and (max-width: 1200px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .regions-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 18px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
    
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

/* ========================================
   响应式工具类
   ======================================== */

/* 显示/隐藏工具类 */
.show-mobile {
    display: none !important;
}

.show-tablet {
    display: none !important;
}

.show-desktop {
    display: block !important;
}

.hide-mobile {
    display: block !important;
}

.hide-tablet {
    display: block !important;
}

.hide-desktop {
    display: none !important;
}

/* 平板端显示/隐藏 */
@media (min-width: 769px) and (max-width: 1024px) {
    .show-tablet {
        display: block !important;
    }
    
    .hide-tablet {
        display: none !important;
    }
    
    .show-mobile {
        display: none !important;
    }
    
    .hide-mobile {
        display: block !important;
    }
}

/* 移动端显示/隐藏 */
@media (max-width: 768px) {
    .show-mobile {
        display: block !important;
    }
    
    .hide-mobile {
        display: none !important;
    }
    
    .show-tablet {
        display: none !important;
    }
    
    .hide-tablet {
        display: block !important;
    }
    
    .show-desktop {
        display: none !important;
    }
    
    .hide-desktop {
        display: block !important;
    }
}

/* 响应式文本大小 */
.text-responsive {
    font-size: clamp(14px, 2vw, 16px);
}

.text-responsive-lg {
    font-size: clamp(18px, 3vw, 24px);
}

.text-responsive-xl {
    font-size: clamp(24px, 4vw, 36px);
}

/* 响应式间距 */
.spacing-responsive {
    padding: clamp(12px, 2vw, 24px);
    margin: clamp(8px, 1.5vw, 16px);
}

/* 响应式图片 */
img.responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 响应式表格 */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .table-responsive table {
        min-width: 600px;
    }
}

/* 响应式网格系统 */
.responsive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

@media (max-width: 1024px) {
    .responsive-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .responsive-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .responsive-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* 响应式Flex布局 */
.flex-responsive {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

@media (max-width: 768px) {
    .flex-responsive {
        flex-direction: column;
        gap: 12px;
    }
}

/* 响应式容器 */
.container-responsive {
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

@media (min-width: 769px) {
    .container-responsive {
        max-width: 750px;
    }
}

@media (min-width: 1025px) {
    .container-responsive {
        max-width: 1200px;
    }
}

@media (min-width: 1201px) {
    .container-responsive {
        max-width: 1400px;
    }
}

/* 响应式卡片 */
.card-responsive {
    padding: 20px;
    border-radius: var(--radius);
}

@media (max-width: 768px) {
    .card-responsive {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .card-responsive {
        padding: 12px;
    }
}

/* 响应式按钮组 */
.btn-group-responsive {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .btn-group-responsive {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group-responsive .btn {
        width: 100%;
    }
}

/* 响应式模态框 */
.modal-responsive {
    width: 90%;
    max-width: 500px;
    margin: 20px auto;
}

@media (max-width: 768px) {
    .modal-responsive {
        width: 95%;
        margin: 10px auto;
    }
}

@media (max-width: 480px) {
    .modal-responsive {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }
}

/* 响应式图片网格 */
.image-grid-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

@media (min-width: 769px) {
    .image-grid-responsive {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
}

@media (min-width: 1025px) {
    .image-grid-responsive {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    /* 触摸设备专用样式 */
    .btn,
    a,
    button {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }
    
    .nav a {
        padding: 12px 16px;
    }
    
    /* 移除hover效果，使用active */
    .btn:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.95);
    }
}

/* 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 30px 0 20px;
    }
    
    .hero-text h1 {
        font-size: 24px;
    }
    
    .nav-mobile-content {
        padding: 80px 20px 20px;
    }
}

/* 高DPI屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img,
    .card img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* 打印样式 */
@media print {
    .header,
    .nav,
    .nav-mobile,
    .mobile-menu-toggle,
    .floating-chat-btn,
    .footer {
        display: none !important;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card {
        border: 1px solid #ddd;
        box-shadow: none;
    }
}

/* ==================== 轮播图样式 ==================== */
.banner-carousel {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: var(--spacing-lg) auto var(--spacing-xxl) auto;
    padding: 0 var(--spacing-md);
    overflow: visible;
    box-sizing: border-box;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 30%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    background: var(--bg-secondary);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 显示完整图片，不裁剪 */
    object-position: center center;
    display: block;
    background: var(--bg-secondary);
    margin: 0 auto;
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 60px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    color: #fff;
    z-index: 3;
}

.carousel-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--primary);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.carousel-description {
    font-size: 18px;
    margin: 0;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.6;
}

/* 导航按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 24px;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-round);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: var(--blur-sm);
    box-shadow: var(--shadow-sm);
}

.carousel-btn:hover {
    background: var(--card);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-50%) scale(1.05);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* 指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-round);
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-indicator.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(24, 144, 255, 0.6);
    width: 24px;
    border-radius: var(--radius);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .banner-carousel {
        padding: 0 16px;
        margin-bottom: 32px;
    }
    
    .carousel-wrapper {
        padding-bottom: 40%; /* 平板端调整比例 */
    }
    
    .carousel-content {
        padding: 24px 32px;
    }
    
    .carousel-title {
        font-size: 28px;
    }
    
    .carousel-description {
        font-size: 16px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .banner-carousel {
        padding: 0 12px;
        margin-bottom: 24px;
    }
    
    .banner-carousel {
        padding: 0 12px;
    }
    
    .carousel-wrapper {
        padding-bottom: 50%; /* 手机端调整比例 */
        border-radius: 12px;
    }
    
    .carousel-content {
        padding: 16px 20px;
    }
    
    .carousel-title {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .carousel-description {
        font-size: 14px;
    }
    
    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    
    .carousel-prev {
        left: 8px;
    }
    
    .carousel-next {
        right: 8px;
    }
    
    .carousel-indicators {
        bottom: 12px;
        gap: 8px;
    }
    
    .carousel-indicator {
        width: 8px;
        height: 8px;
    }
    
    .carousel-indicator.active {
        width: 24px;
    }
}

/* 未读消息提醒样式 */
.nav-message-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--text);
    border-radius: 6px;
    transition: all 0.3s;
}

.nav-message-icon:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.05);
}

.nav-message-icon-mobile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.unread-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ff4d4f;
    color: #fff;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    padding: 0 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

.unread-badge-mobile {
    background: #ff4d4f;
    color: #fff;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    padding: 0 4px;
    margin-left: auto;
    animation: pulse 2s infinite;
}

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

/* ========== 官方公告新设计样式 ========== */
.official-announcements-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg);
}

.announcements-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border);
}

.announcements-header-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.announcements-icon {
    width: 40px;
    height: 40px;
    background: #fa8c16;
    color: #fff;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.announcements-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.2;
}

.announcements-more {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-muted);
    text-decoration: none;
    font-size: var(--font-size-base);
    transition: var(--transition);
}

.announcements-more:hover {
    color: var(--primary);
}

.more-arrow {
    font-size: 14px;
    display: inline-block;
    transition: var(--transition);
}

.announcements-more:hover .more-arrow {
    transform: translateX(4px);
}

.announcements-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

/* 左侧视觉公告卡片 */
.announcements-visual-cards {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.visual-announcement-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.visual-announcement-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.visual-card-banner {
    position: relative;
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #fff9e6 0%, #ffe58f 100%);
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.visual-card-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.banner-content {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    z-index: 2;
    position: relative;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.visual-card-info {
    padding: var(--spacing-md);
    background: var(--card);
}

.visual-card-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text);
    margin: 0 0 var(--spacing-xs) 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.visual-card-date {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

/* 右侧文本公告列表 */
.announcements-text-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.text-announcement-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.text-announcement-item:last-child {
    border-bottom: none;
}

.text-announcement-item:hover {
    background: var(--bg-secondary);
    margin: 0 calc(-1 * var(--spacing-md));
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius);
    border-bottom-color: transparent;
}

.announcement-icon {
    font-size: 18px;
    flex-shrink: 0;
    color: #fa8c16;
}

.announcement-text-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    min-width: 0;
}

.pinned-tag {
    display: inline-block;
    padding: 2px 6px;
    background: #fa8c16;
    color: #fff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.announcement-text {
    font-size: var(--font-size-sm);
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.announcement-date {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: auto;
}

.text-announcement-item:hover .announcement-text {
    color: var(--primary);
}

/* 响应式设计 */
@media (max-width: 968px) {
    .announcements-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .announcements-visual-cards {
        order: 2;
    }
    
    .announcements-text-list {
        order: 1;
    }
    
    .announcements-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .announcements-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }
    
    .announcements-title {
        font-size: 20px;
    }
    
    .visual-card-banner {
        height: 150px;
        padding: var(--spacing-md);
    }
    
    .banner-content {
        font-size: var(--font-size-base);
    }
    
    .text-announcement-item {
        flex-wrap: wrap;
    }
    
    .announcement-date {
        width: 100%;
        margin-left: calc(18px + var(--spacing-sm));
        margin-top: var(--spacing-xs);
    }
}
