/* ============================================
   Template-Split - 独角数卡分屏主题
   深色主题 + 青色霓虹 + 玻璃态设计
   ============================================ */

/* CSS Variables */
:root {
    --primary-color: #00e5ff;
    --primary-dark: #00b8cc;
    --primary-light: #00f7ff;
    --secondary-color: #7c4dff;
    --accent-color: #ff4081;
    
    --bg-dark: #0a0e17;
    --bg-darker: #05080c;
    --bg-card: rgba(16, 24, 39, 0.8);
    --bg-card-light: rgba(23, 35, 58, 0.9);
    
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border-color: rgba(0, 229, 255, 0.2);
    --border-dark: rgba(255, 255, 255, 0.1);
    
    --glass-bg: rgba(10, 14, 23, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 229, 255, 0.3);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
                 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
                 sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout */
.template-split {
    display: flex;
    min-height: 100vh;
    background: var(--bg-darker);
    background-image: 
        radial-gradient(ellipse at 20% 20%, rgba(0, 229, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(124, 77, 255, 0.1) 0%, transparent 50%);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-dark);
}

.site-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.site-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Navigation */
.sidebar-nav {
    flex: 1;
}

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

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: var(--text-primary);
    background: var(--bg-card);
    border-radius: 12px;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.nav-link:hover,
.nav-link.active {
    background: var(--bg-card-light);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.nav-link.active {
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

.nav-icon {
    font-size: 1.25rem;
    margin-right: 0.75rem;
}

/* Sidebar Footer */
.sidebar-footer {
    padding-top: 2rem;
    border-top: 1px solid var(--border-dark);
}

.contact-info {
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: var(--bg-card);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.contact-icon {
    margin-right: 0.75rem;
}

.copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

.copyright p {
    margin-bottom: 0;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    flex: 1;
    min-height: 100vh;
    padding: 2rem;
    overflow-y: auto;
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 200;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.menu-toggle:hover {
    background: var(--bg-card-light);
    box-shadow: var(--shadow-glow);
}

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-dark);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.glass-card:hover {
    border-color: var(--border-color);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: var(--shadow-glow);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.875rem;
    background: var(--bg-darker);
    border: 2px solid var(--border-dark);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* Product Cards */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.product-card.hover {
    border-color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-dark);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    box-shadow: var(--shadow-glow);
    transition: all var(--transition-fast);
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 229, 255, 0.6);
}

/* Features Section */
.features-section {
    margin-bottom: 3rem;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-normal);
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Notice Section */
.notice-section {
    margin-bottom: 3rem;
}

.notice-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.notice-text {
    color: var(--text-secondary);
    line-height: 1.8;
}

.notice-text a {
    color: var(--primary-color);
}

/* Quick Start Section */
.quick-start-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

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

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.quick-start-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-dark);
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.footer-icon {
    font-size: 1.25rem;
}

.footer-info p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        padding: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .goods-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .template-split.menu-open {
        overflow: hidden;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .quick-steps {
        grid-template-columns: 1fr;
    }
    
    .quick-start-actions {
        flex-direction: column;
    }
    
    .quick-start-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .glass-card {
        padding: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.hidden {
    display: none !important;
}

/* ============================================
   商品列表页面样式
   ============================================ */

/* Category Section */
.category-section {
    margin-bottom: 2rem;
}

.category-nav {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 2px solid var(--border-dark);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.category-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}

/* Goods Section */
.goods-section {
    margin-bottom: 3rem;
}

.goods-grid {
    display: flex;
    flex-direction: column;
}

.goods-group {
    display: none;
}

.goods-group.active {
    display: block;
}

.goods-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    max-width: 100%;
    margin: 0;
}

/* Product Card */
.product-card {
    display: flex;
    align-items: center;
    background-color: #5a6772;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: white;
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
}

/* 购物车图标样式 */
.cart-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 20px;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.3);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    transition: all 0.2s ease;
    z-index: 10;
}

.cart-icon:hover {
    background-color: rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

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

.product-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    overflow: hidden;
    flex-shrink: 0;
}

.product-image img,
.product-image .product-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.delivery-badge {
    display: none;
}

.product-info {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.product-name {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    color: white;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0.8;
    font-size: 14px;
    width: 100%;
}

.meta-item {
    display: inline-block;
    margin-right: 10px;
}

.meta-icon {
    display: none;
}

.product-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #2ecc71;
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 1px solid #bdc3c7;
}

.btn-buy {
    display: none;
}

.btn-text {
    display: none;
}

.btn-price {
    display: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.empty-state p {
    font-size: 1rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .goods-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem;
    }
    
    .product-image {
        width: 80px;
        height: 80px;
        margin-right: 0;
        margin-bottom: 0.75rem;
    }
    
    .product-name {
        font-size: 1rem;
        height: auto;
    }
    
    .btn-buy {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .category-nav {
        gap: 0.5rem;
    }
    
    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn var(--transition-normal) ease-out;
}

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

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Notification */
.notification {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: fadeIn var(--transition-normal);
}

.notification.success {
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.notification.error {
    background: rgba(255, 64, 129, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.notification.warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid #ffc107;
    color: #ffc107;
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--border-dark);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 0.8s linear infinite;
}

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