* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cyber-cyan: #00ffff;
    --cyber-magenta: #ff00ff;
    --cyber-yellow: #ffff00;
    --cyber-green: #00ff88;
    --cyber-red: #ff4444;
    --cyber-purple: #9d4edd;
    --dark-bg: #0a0a0f;
    --dark-card: #12121a;
    --dark-border: #1a1a2e;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #0f0f1a 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

header {
    background: rgba(10, 10, 15, 0.95);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyber-cyan), transparent);
}

.logo-section {
    text-align: center;
    margin-bottom: 15px;
}

.logo-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.logo-text {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    text-shadow: 
        0 0 10px var(--cyber-cyan),
        0 0 20px var(--cyber-cyan),
        0 0 40px rgba(0, 255, 255, 0.5);
    letter-spacing: 3px;
}

.logo-text-glow {
    font-size: 26px;
    font-weight: bold;
    color: #fff;
    text-shadow: 
        0 0 10px var(--cyber-cyan),
        0 0 20px var(--cyber-cyan),
        0 0 40px rgba(0, 255, 255, 0.5),
        0 0 60px rgba(0, 255, 255, 0.3);
    letter-spacing: 4px;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px dashed rgba(0, 255, 255, 0.2);
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(18, 18, 26, 0.8);
    border: 2px solid;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn-cyan {
    border-color: var(--cyber-cyan);
    box-shadow: 
        0 0 10px rgba(0, 255, 255, 0.3),
        inset 0 0 10px rgba(0, 255, 255, 0.05);
}

.nav-btn-cyan:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.5),
        inset 0 0 15px rgba(0, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-btn-magenta {
    border-color: var(--cyber-magenta);
    box-shadow: 
        0 0 10px rgba(255, 0, 255, 0.3),
        inset 0 0 10px rgba(255, 0, 255, 0.05);
}

.nav-btn-magenta:hover {
    background: rgba(255, 0, 255, 0.1);
    box-shadow: 
        0 0 20px rgba(255, 0, 255, 0.5),
        inset 0 0 15px rgba(255, 0, 255, 0.1);
    transform: translateY(-2px);
}

.nav-btn-purple {
    border-color: var(--cyber-purple);
    box-shadow: 
        0 0 10px rgba(157, 78, 221, 0.3),
        inset 0 0 10px rgba(157, 78, 221, 0.05);
}

.nav-btn-purple:hover {
    background: rgba(157, 78, 221, 0.1);
    box-shadow: 
        0 0 20px rgba(157, 78, 221, 0.5),
        inset 0 0 15px rgba(157, 78, 221, 0.1);
    transform: translateY(-2px);
}

.nav-icon {
    font-size: 14px;
    font-weight: bold;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid;
    border-radius: 4px;
    margin-right: 6px;
}

.nav-btn-cyan .nav-icon {
    border-color: var(--cyber-cyan);
    color: var(--cyber-cyan);
}

.nav-btn-magenta .nav-icon {
    border-color: var(--cyber-magenta);
    color: var(--cyber-magenta);
}

.nav-btn-purple .nav-icon {
    border-color: var(--cyber-purple);
    color: var(--cyber-purple);
}

.nav-text {
    position: relative;
    z-index: 1;
}

main {
    padding: 20px 0;
}

.page-title {
    text-align: center;
    margin-bottom: 20px;
}

.page-title h1 {
    font-size: 24px;
    color: var(--cyber-cyan);
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    margin-bottom: 8px;
}

.page-title p {
    color: #888;
    font-size: 13px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.product-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    padding: 12px;
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
}

.product-card.can-buy:hover {
    border-color: var(--cyber-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.15);
}

.product-card.can-buy:active {
    transform: scale(0.98);
}

.product-card.sold-out {
    opacity: 0.5;
    cursor: not-allowed;
}

.product-card.sold-out:hover {
    border-color: var(--dark-border);
}

.product-image {
    width: 100%;
    height: 90px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2a2a4e 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image span {
    font-size: 22px;
    color: #666;
}

.product-name {
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 16px;
    font-weight: bold;
    color: var(--cyber-green);
}

.product-stock {
    color: #888;
    font-size: 12px;
}

.btn {
    display: inline-block;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyber-cyan) 0%, #00ccff 100%);
    color: var(--dark-bg);
    width: 100%;
    margin-top: 8px;
}

.btn-primary:hover {
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--cyber-magenta) 0%, #cc00ff 100%);
    color: #fff;
}

.btn-success {
    background: linear-gradient(135deg, var(--cyber-green) 0%, #00cc66 100%);
    color: var(--dark-bg);
}

.btn-danger {
    background: linear-gradient(135deg, var(--cyber-red) 0%, #cc2222 100%);
    color: #fff;
}

.card {
    background: var(--dark-card);
    border: 2px solid var(--dark-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    color: var(--cyber-cyan);
    margin-bottom: 5px;
    font-size: 13px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    background: var(--dark-bg);
    border: 2px solid var(--dark-border);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--cyber-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.alert {
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--cyber-green);
    color: var(--cyber-green);
}

.alert-error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid var(--cyber-red);
    color: var(--cyber-red);
}

.alert-info {
    background: rgba(0, 204, 255, 0.1);
    border: 1px solid var(--cyber-cyan);
    color: var(--cyber-cyan);
}

.order-card {
    background: var(--dark-card);
    border: 2px solid var(--dark-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--dark-border);
}

.order-no {
    font-size: 14px;
    color: var(--cyber-cyan);
}

.order-status {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
}

.status-pending {
    background: rgba(255, 255, 0, 0.2);
    color: var(--cyber-yellow);
}

.status-paid, .status-shipped, .status-completed {
    background: rgba(0, 255, 136, 0.2);
    color: var(--cyber-green);
}

.status-refund_request {
    background: rgba(0, 204, 255, 0.2);
    color: var(--cyber-cyan);
}

.status-refund_approved {
    background: rgba(255, 0, 255, 0.2);
    color: var(--cyber-magenta);
}

.status-refund_completed {
    background: rgba(255, 68, 68, 0.2);
    color: var(--cyber-red);
}

.order-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.order-info-item {
    color: #888;
    font-size: 13px;
}

.order-info-item span {
    color: #fff;
    margin-left: 5px;
}

.card-code {
    background: var(--dark-bg);
    border: 1px dashed var(--cyber-cyan);
    padding: 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    color: var(--cyber-green);
    font-size: 13px;
}

.refund-timeline {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--dark-border);
}

.timeline-item {
    display: flex;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 16px;
    width: 2px;
    height: calc(100% + 10px);
    background: var(--dark-border);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 4px;
    width: 14px;
    height: 14px;
    background: var(--cyber-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--cyber-cyan);
}

.timeline-content {
    flex: 1;
}

.timeline-status {
    color: var(--cyber-cyan);
    font-weight: bold;
    margin-bottom: 3px;
    font-size: 13px;
}

.timeline-time {
    color: #666;
    font-size: 11px;
}

.timeline-message {
    color: #888;
    font-size: 12px;
}

footer {
    background: rgba(10, 10, 15, 0.95);
    border-top: 2px solid var(--dark-border);
    padding: 15px 0;
    margin-top: 30px;
    text-align: center;
    color: #666;
    font-size: 11px;
}

.customer-service {
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--cyber-cyan) 0%, #00ccff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 255, 255, 0.4);
    transition: all 0.3s;
    z-index: 1000;
    text-decoration: none;
}

.customer-service:hover {
    transform: scale(1.1);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--dark-card);
    border: 2px solid var(--cyber-cyan);
    border-radius: 12px;
    padding: 20px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.modal-header h2 {
    color: var(--cyber-cyan);
    font-size: 16px;
}

.modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 20px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .logo-text-glow {
        font-size: 24px;
    }

    .logo-img {
        width: 35px;
        height: 35px;
    }

    .logo-text {
        font-size: 22px;
    }

    .nav-btn {
        padding: 10px 18px;
        font-size: 14px;
    }

    .nav-icon {
        font-size: 16px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .product-card {
        padding: 10px;
    }

    .product-image {
        height: 80px;
    }

    .product-name {
        font-size: 14px;
    }

    .product-price {
        font-size: 15px;
    }

    .customer-service {
        bottom: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }

    .order-info {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .order-info-item {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .logo-text-glow {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .nav {
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .product-card {
        padding: 8px;
    }

    .product-image {
        height: 70px;
    }

    .product-image span {
        font-size: 20px;
    }

    .product-name {
        font-size: 13px;
    }

    .product-stock {
        font-size: 11px;
    }

    .order-info {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .order-info-item {
        font-size: 12px;
    }
}
