/* =====================================================
 * 柔域云商城 - 赛博霓虹风格样式
 * 文件：/assets/css/cyber.css
 * ===================================================== */

/* ---------- CSS 变量 ---------- */
:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: #1a2332;
    --bg-hover: #1f2b3d;
    
    --neon-cyan: #00f0ff;
    --neon-purple: #b026ff;
    --neon-pink: #ff006e;
    --neon-green: #00ff88;
    --neon-yellow: #ffea00;
    
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #64748b;
    
    --border-color: rgba(0, 240, 255, 0.2);
    --border-glow: rgba(0, 240, 255, 0.5);
    
    --shadow-neon: 0 0 20px rgba(0, 240, 255, 0.3);
    --shadow-purple: 0 0 20px rgba(176, 38, 255, 0.3);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    --transition: all 0.3s ease;
}

/* ---------- 基础重置 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--neon-purple);
    text-shadow: 0 0 10px var(--neon-purple);
}

/* ---------- 顶部导航栏 ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, rgba(10, 14, 26, 0.95), rgba(17, 24, 39, 0.95));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 240, 255, 0.1);
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: bold;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.navbar-logo img {
    height: 36px;
    width: auto;
}

.navbar-menu {
    display: flex;
    gap: 8px;
    list-style: none;
}

.navbar-menu a {
    display: block;
    padding: 8px 16px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.1);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    position: relative;
    width: 200px;
}

.search-box input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.search-box::before {
    content: '🔍';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}

.btn-login {
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon);
}

/* ---------- 主视觉 Banner ---------- */
.hero-banner {
    margin-top: 60px;
    padding: 60px 20px 40px;
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.05) 0%, transparent 70%);
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    border-radius: 20px;
    color: var(--neon-cyan);
    font-size: 13px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-title {
    font-size: 56px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(0, 240, 255, 0.5);
    margin-bottom: 16px;
    letter-spacing: 8px;
}

.hero-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 4px;
    margin-bottom: 30px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ---------- 主内容区 ---------- */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 20px;
}

/* ---------- 左侧用户卡片 ---------- */
.user-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-neon);
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 36px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.user-name {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.user-balance {
    font-size: 24px;
    font-weight: bold;
    color: var(--neon-yellow);
    text-shadow: 0 0 10px var(--neon-yellow);
}

.user-balance span {
    font-size: 12px;
    color: var(--text-muted);
}

.user-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.btn-primary {
    flex: 1;
    padding: 10px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon);
}

.btn-secondary {
    flex: 1;
    padding: 10px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

/* ---------- 快捷功能 ---------- */
.quick-menu {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-top: 20px;
}

.quick-menu-title {
    font-size: 14px;
    color: var(--neon-cyan);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-menu-title::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-cyan);
}

.quick-menu-list {
    list-style: none;
}

.quick-menu-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.quick-menu-list li:last-child {
    border-bottom: none;
}

.quick-menu-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

.quick-menu-list a:hover {
    color: var(--neon-cyan);
}

.quick-menu-list .icon {
    width: 32px;
    height: 32px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* ---------- 中间商品区 ---------- */
.goods-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.category-tab:hover,
.category-tab.active {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

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

.goods-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.goods-card:hover {
    transform: translateY(-4px);
    border-color: var(--neon-cyan);
    box-shadow: var(--shadow-neon);
}

.goods-image {
    height: 120px;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    position: relative;
}

.goods-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    background: var(--neon-pink);
    color: #fff;
    font-size: 11px;
    border-radius: 4px;
    font-weight: bold;
}

.goods-tag.new {
    background: var(--neon-green);
}

.goods-info {
    padding: 12px;
}

.goods-name {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.goods-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.goods-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.goods-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--neon-yellow);
}

.goods-price .original {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 4px;
}

.btn-buy {
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-buy:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-neon);
}

/* ---------- 右侧客服区 ---------- */
.service-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.service-title {
    font-size: 14px;
    color: var(--neon-cyan);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-title::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-cyan);
}

.service-list {
    list-style: none;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.service-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.service-info {
    flex: 1;
}

.service-name {
    font-size: 14px;
    color: var(--text-primary);
}

.service-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.service-status {
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-green);
    animation: pulse 2s infinite;
}

/* ---------- 公告栏 ---------- */
.notice-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-top: 20px;
}

.notice-title {
    font-size: 14px;
    color: var(--neon-cyan);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-title::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-cyan);
}

.notice-list {
    list-style: none;
}

.notice-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 13px;
    color: var(--text-secondary);
}

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

.notice-tag {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(0, 240, 255, 0.2);
    color: var(--neon-cyan);
    border-radius: 4px;
    font-size: 11px;
    margin-right: 8px;
}

/* ---------- 热卖滚动条 ---------- */
.hot-scroll {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
}

.hot-scroll-title {
    font-size: 14px;
    color: var(--neon-cyan);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hot-scroll-title::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-cyan);
}

.hot-scroll-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--neon-cyan) var(--bg-secondary);
}

.hot-scroll-list::-webkit-scrollbar {
    height: 6px;
}

.hot-scroll-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.hot-scroll-list::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 3px;
}

.hot-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    min-width: 200px;
    transition: var(--transition);
}

.hot-item:hover {
    border-color: var(--neon-cyan);
    box-shadow: var(--shadow-neon);
}

.hot-item-icon {
    font-size: 24px;
}

.hot-item-info {
    flex: 1;
}

.hot-item-name {
    font-size: 13px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 120px;
}

.hot-item-price {
    font-size: 14px;
    font-weight: bold;
    color: var(--neon-yellow);
}

/* ---------- 底部 ---------- */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted);
    font-size: 12px;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

/* ---------- 登录弹窗 ---------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    width: 90%;
    max-width: 400px;
    box-shadow: var(--shadow-neon);
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-title {
    font-size: 20px;
    color: var(--neon-cyan);
    text-align: center;
    margin-bottom: 24px;
    text-shadow: 0 0 10px var(--neon-cyan);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon);
}

.modal-footer {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.modal-footer a {
    color: var(--neon-cyan);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: 240px 1fr;
    }
    .service-panel,
    .notice-panel {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
    }
    .user-card {
        display: none;
    }
    .hero-title {
        font-size: 36px;
    }
    .navbar-logo img {
        height: 28px;
    }
    .navbar-menu {
        display: none;
    }
    .goods-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- 动画 ---------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.goods-card {
    animation: fadeIn 0.5s ease forwards;
}

.goods-card:nth-child(1) { animation-delay: 0.1s; }
.goods-card:nth-child(2) { animation-delay: 0.2s; }
.goods-card:nth-child(3) { animation-delay: 0.3s; }
.goods-card:nth-child(4) { animation-delay: 0.4s; }
.goods-card:nth-child(5) { animation-delay: 0.5s; }
.goods-card:nth-child(6) { animation-delay: 0.6s; }
