/* 全新深色主题设计 - 游戏风格 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* 深色主题配色 */
    --bg-primary: #0a0e1a;
    --bg-secondary: #1a1f2e;
    --bg-card: #252b3d;
    --bg-hover: #2d3548;

    /* 游戏风格渐变色 */
    --accent-primary: #00d4ff;
    --accent-secondary: #7c3aed;
    --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);

    /* 状态颜色 */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* 边框和阴影 */
    --border-color: #334155;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 动态背景效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-20px) translateY(-10px); }
    50% { transform: translateX(20px) translateY(10px); }
    75% { transform: translateX(-10px) translateY(20px); }
}

/* 语言切换器 - 现代化设计 */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(37, 43, 61, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    box-shadow: var(--shadow-md);
}

.language-switcher form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.language-switcher select {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-switcher select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.language-switcher button {
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-switcher button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

/* 粒子背景 */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: float linear infinite;
    opacity: 0.6;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* 主导航栏 */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
    padding: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-brand i {
    color: var(--accent-primary);
    font-size: 1.6rem;
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.online {
    background: var(--success-color);
    box-shadow: 0 0 10px var(--success-color);
}

/* 主容器 - 现代化布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    animation: fadeIn 0.8s ease;
}

/* 页面加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 英雄区域 */
.hero-section {
    margin-top: 80px;
    padding: 60px 0;
    text-align: center;
}

.hero-content h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-primary);
    font-size: 3rem;
    font-weight: 700;
    position: relative;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.hero-icon {
    font-size: 4rem;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin: 0;
    opacity: 0.9;
}

/* 区域标题 */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.section-header h2 i {
    color: var(--accent-primary);
    filter: drop-shadow(0 0 8px var(--accent-primary));
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

/* 查询区域增强 */
.query-section {
    margin: 60px 0;
}

/* 商品区域增强 */
.products-section {
    margin: 80px 0;
}

/* 商品网格 - 现代化卡片布局 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    padding: 20px 0;
}

/* 商品卡片 - 深色游戏风格 */
.product {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product:hover::before {
    transform: scaleX(1);
}

.product:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--accent-primary);
}

.product h3 {
    color: var(--text-primary);
    margin: 0 0 20px 0;
    font-size: 1.4em;
    font-weight: 600;
}

.product p {
    color: var(--text-secondary);
    margin: 12px 0;
    font-size: 1rem;
    line-height: 1.5;
}

.product button {
    background: var(--accent-gradient);
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.product button:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 商品卡片增强样式 */
.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.product-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
}

.stock-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stock-badge.in-stock {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.stock-badge.out-of-stock {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.product-content {
    margin: 20px 0;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 16px 0;
}

.currency {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.amount {
    color: var(--accent-primary);
    font-size: 2rem;
    font-weight: 700;
}

.product-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.product-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-btn.disabled {
    background: var(--text-muted) !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* 查询框 - 现代化深色设计 */
.query-box {
    background: var(--bg-card);
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.query-box form {
    display: flex;
    gap: 12px;
}

.input-group {
    position: relative;
    flex: 1;
}

.input-group i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.query-box input {
    width: 100%;
    padding: 16px 24px 16px 56px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.query-box input::placeholder {
    color: var(--text-muted);
}

.query-box input:focus {
    border-color: var(--accent-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.query-box button {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 16px 28px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.query-box button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

@media (max-width: 768px) {
    .query-box form {
        flex-direction: column;
    }
    
    .query-box button {
        width: 100%;
        padding: 12px;
    }
}

/* 查询结果 - 深色主题状态卡片 */
.query-result {
    padding: 30px;
    margin: 30px auto;
    max-width: 600px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    animation: slideIn 0.6s ease;
    backdrop-filter: blur(10px);
}

.query-result i {
    font-size: 32px;
    margin-right: 24px;
    filter: drop-shadow(0 0 8px currentColor);
}

.query-result.success {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--success-color);
    color: var(--success-color);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.query-result.warning {
    background: rgba(245, 158, 11, 0.1);
    border: 2px solid var(--warning-color);
    color: var(--warning-color);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.query-result.error {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid var(--danger-color);
    color: var(--danger-color);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

/* 卡密显示区域 */
.card-key-box {
    flex-grow: 1;
}

.card-key-box span {
    display: block;
    margin: 12px 0;
    color: var(--text-secondary);
    font-size: 1rem;
}

.card-key-box em {
    color: var(--success-color);
    font-style: normal;
    font-weight: 700;
    font-size: 1.4em;
    background: rgba(16, 185, 129, 0.15);
    padding: 12px 20px;
    border-radius: 12px;
    display: inline-block;
    margin: 8px 0;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.copy-btn {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

/* 公告区域增强 */
.announcement-section {
    margin: 60px 0;
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.announcement-badge {
    background: var(--accent-gradient);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* 公告栏 - 深色主题 */
.announcement-bar {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin: 40px auto;
    max-width: 1200px;
    color: var(--text-secondary);
    box-shadow: var(--shadow-lg);
}

.announcement-title {
    color: var(--text-primary);
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.announcement-title i {
    margin-right: 12px;
    font-size: 1.4rem;
    color: var(--accent-primary);
    filter: drop-shadow(0 0 8px var(--accent-primary));
}

.announcement-content {
    line-height: 1.7;
    font-size: 1rem;
    color: var(--text-secondary);
}

/* 页脚 */
.main-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 100px;
    padding: 60px 0 30px 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.footer-section h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section h4 i {
    color: var(--accent-primary);
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
}

/* 通知系统 */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1001;
    min-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
}

.notification.success i {
    color: var(--success-color);
}

.notification span {
    color: var(--text-primary);
    font-weight: 500;
}

/* 响应式设计增强 */
@media (max-width: 1200px) {
    .container {
        padding: 20px 15px;
    }

    .nav-container {
        padding: 15px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px 10px;
    }

    /* 导航栏移动端优化 */
    .nav-container {
        flex-direction: column;
        gap: 10px;
        padding: 12px 15px;
    }

    .nav-brand {
        font-size: 1.2rem;
    }

    .nav-status {
        font-size: 0.8rem;
    }

    /* 英雄区域移动端 */
    .hero-section {
        margin-top: 100px;
        padding: 40px 0;
    }

    h1 {
        font-size: 2.2rem;
        margin: 40px 0 30px 0;
        flex-direction: column;
        gap: 12px;
    }

    .title-icon {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* 商品网格移动端 */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .product {
        padding: 24px;
        margin: 0 5px;
    }

    .product-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .amount {
        font-size: 1.6rem;
    }

    /* 查询框移动端 */
    .query-box {
        margin: 30px auto;
        padding: 24px;
    }

    .query-box form {
        flex-direction: column;
        gap: 16px;
    }

    .query-box button {
        width: 100%;
        padding: 16px;
    }

    .input-group input {
        padding-left: 48px !important;
    }

    /* 语言切换器移动端 */
    .language-switcher {
        top: 15px;
        right: 15px;
        padding: 8px;
    }

    .language-switcher form {
        flex-direction: column;
        gap: 6px;
    }

    .language-switcher select,
    .language-switcher button {
        font-size: 12px;
        padding: 6px 10px;
    }

    /* 页脚移动端 */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    /* 公告移动端 */
    .announcement-bar {
        padding: 20px;
        margin: 30px auto;
    }

    .announcement-header {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px 5px;
    }

    /* 超小屏幕优化 */
    h1 {
        font-size: 1.8rem;
    }

    .hero-icon {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .product {
        padding: 20px 16px;
        margin: 0;
    }

    .product h3 {
        font-size: 1.2rem;
    }

    .amount {
        font-size: 1.4rem;
    }

    .query-box {
        padding: 20px 16px;
    }

    .section-header h2 {
        font-size: 1.6rem;
        flex-direction: column;
        gap: 8px;
    }

    .section-header p {
        font-size: 0.9rem;
    }

    /* 订单页面移动端 */
    .order-container {
        margin: 80px auto 20px;
        padding: 24px 16px;
    }

    .order-header h1 {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 12px;
    }

    .order-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .order-info {
        padding: 20px 16px;
    }

    .order-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 0;
    }

    .copy-order-id {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }

    .copy-order-btn {
        align-self: flex-start;
    }

    /* 成功页面移动端 */
    .success-container {
        margin: 80px auto 20px;
        padding: 24px 16px;
    }

    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .card-key {
        font-size: 1.1rem;
        padding: 16px;
    }

    .card-key-section {
        padding: 20px 16px;
    }
}

/* 超宽屏幕优化 */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 35px;
    }

    .product {
        padding: 35px;
    }

    h1 {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }
}

/* 打印样式 */
@media print {
    .language-switcher,
    .main-nav,
    .particles-container,
    .main-footer {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .container {
        max-width: none !important;
        margin: 0 !important;
        padding: 20px !important;
    }

    .product,
    .query-box,
    .order-container,
    .success-container {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* 加载动画 */
.loading {
    animation: pulse 2s infinite;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* 粒子背景 */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: float linear infinite;
    opacity: 0.6;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* 主导航栏 */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
    padding: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-brand i {
    color: var(--accent-primary);
    font-size: 1.6rem;
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.online {
    background: var(--success-color);
    box-shadow: 0 0 10px var(--success-color);
}

/* 英雄区域 */
.hero-section {
    margin-top: 80px;
    padding: 60px 0;
    text-align: center;
}

.hero-content h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.hero-icon {
    font-size: 4rem;
    animation: pulse 3s infinite;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin: 0;
    opacity: 0.9;
}

/* 区域标题 */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.section-header h2 i {
    color: var(--accent-primary);
    filter: drop-shadow(0 0 8px var(--accent-primary));
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

/* 查询区域增强 */
.query-section {
    margin: 60px 0;
}

.input-group {
    position: relative;
    flex: 1;
}

.input-group i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.input-group input {
    padding-left: 56px !important;
}

/* 商品区域增强 */
.products-section {
    margin: 80px 0;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.product-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
}

.stock-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stock-badge.in-stock {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.stock-badge.out-of-stock {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.product-content {
    margin: 20px 0;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 16px 0;
}

.currency {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.amount {
    color: var(--accent-primary);
    font-size: 2rem;
    font-weight: 700;
}

.product-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.product-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-btn.disabled {
    background: var(--text-muted) !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* 公告区域增强 */
.announcement-section {
    margin: 60px 0;
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.announcement-badge {
    background: var(--accent-gradient);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* 页脚 */
.main-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 100px;
    padding: 60px 0 30px 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.footer-section h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section h4 i {
    color: var(--accent-primary);
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
}

/* 通知系统 */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1001;
    min-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
}

.notification.success i {
    color: var(--success-color);
}

.notification span {
    color: var(--text-primary);
    font-weight: 500;
}

/* 容器顶部间距调整 */
.container {
    padding-top: 40px;
}

/* 高级动画效果 */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px var(--accent-primary);
    }
    50% {
        box-shadow: 0 0 20px var(--accent-primary), 0 0 30px var(--accent-primary);
    }
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

/* 交互式悬停效果 */
.product {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product:hover {
    animation: glow 2s infinite;
}

/* 按钮点击效果 */
.product button:active,
.query-box button:active,
.copy-btn:active {
    transform: scale(0.95);
}

/* 加载动画 */
.loading-shimmer {
    background: linear-gradient(
        90deg,
        var(--bg-card) 25%,
        var(--bg-hover) 50%,
        var(--bg-card) 75%
    );
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* 页面进入动画 */
.hero-section {
    animation: slideInFromLeft 0.8s ease-out;
}

.query-section {
    animation: slideInFromRight 0.8s ease-out 0.2s both;
}

.products-section {
    animation: fadeIn 1s ease-out 0.4s both;
}

.announcement-section {
    animation: slideInFromLeft 0.8s ease-out 0.6s both;
}

.main-footer {
    animation: fadeIn 1s ease-out 0.8s both;
}

/* 商品卡片交错动画 */
.product:nth-child(1) { animation: bounceIn 0.6s ease-out 0.1s both; }
.product:nth-child(2) { animation: bounceIn 0.6s ease-out 0.2s both; }
.product:nth-child(3) { animation: bounceIn 0.6s ease-out 0.3s both; }
.product:nth-child(4) { animation: bounceIn 0.6s ease-out 0.4s both; }
.product:nth-child(5) { animation: bounceIn 0.6s ease-out 0.5s both; }
.product:nth-child(6) { animation: bounceIn 0.6s ease-out 0.6s both; }

/* 鼠标跟随效果 */
.product::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(0, 212, 255, 0.1) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 16px;
}

.product:hover::after {
    opacity: 1;
}

/* 文字打字机效果 */
.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--accent-primary);
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--accent-primary); }
}

/* 滚动触发动画 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 磁性按钮效果 */
.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.magnetic-btn:hover {
    transform: translateY(-3px) scale(1.02);
}

/* 波纹点击效果 */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::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, height 0.6s;
}

.ripple:active::before {
    width: 300px;
    height: 300px;
}

/* 性能优化 */
* {
    will-change: auto;
}

.product,
.query-box,
.language-switcher {
    will-change: transform;
}

/* 减少动画对性能的影响 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .particles-container {
        display: none;
    }
}

/* 可访问性改进 */
/* 高对比度模式 */
@media (prefers-contrast: high) {
    :root {
        --bg-primary: #000000;
        --bg-secondary: #1a1a1a;
        --bg-card: #2a2a2a;
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
        --accent-primary: #00ffff;
        --border-color: #666666;
    }
}

/* 焦点指示器 */
button:focus,
input:focus,
select:focus {
    outline: 3px solid var(--accent-primary);
    outline-offset: 2px;
}

/* 跳过链接 */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--accent-primary);
    color: var(--bg-primary);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* 屏幕阅读器专用 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 错误处理和加载状态 */
.error-state {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid var(--danger-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: var(--danger-color);
}

/* 错误消息样式 */
.error-message {
    max-width: 600px;
    margin: 30px auto;
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid var(--danger-color);
    border-radius: 16px;
    padding: 0;
    animation: slideIn 0.5s ease;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.error-content {
    display: flex;
    align-items: center;
    padding: 24px;
    gap: 16px;
}

.error-content i:first-child {
    font-size: 2rem;
    color: var(--danger-color);
    flex-shrink: 0;
}

.error-content div {
    flex-grow: 1;
}

.error-content h3 {
    color: var(--danger-color);
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.error-content p {
    color: var(--danger-color);
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.close-error {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.close-error:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.1);
}

/* 无商品状态 */
.no-products {
    max-width: 600px;
    margin: 60px auto;
    text-align: center;
}

.no-products-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: var(--shadow-lg);
}

.no-products-content i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    display: block;
}

.no-products-content h3 {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.no-products-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
    line-height: 1.6;
}

.refresh-btn {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.loading-state {
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid var(--accent-primary);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: var(--accent-primary);
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 工具提示 */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
    border: 1px solid var(--border-color);
}

.tooltip:hover::before {
    opacity: 1;
}

/* 深色模式切换 */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

/* 浏览器兼容性 */
/* Safari 特定样式 */
@supports (-webkit-appearance: none) {
    .product {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* Firefox 特定样式 */
@-moz-document url-prefix() {
    .product {
        transform: translateZ(0);
    }
}
