/* 乙太全球热卖系统样式 */

:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #f97316;
    --secondary-dark: #ed8936;
    --success: #48bb78;
    --danger: #f56565;
    --warning: #fbbf24;
    --dark: #0b1a3a;
    --gray-dark: #1a2f4f;
    --gray: #718096;
    --gray-light: #a0aec0;
    --light: #f7fafc;
    --border: #e2e8f0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--light);
    color: var(--dark);
}

/* 头部 */
.hot-header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.logo i {
    font-size: 28px;
    color: var(--secondary);
}

.logo span {
    font-size: 20px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--dark), var(--gray-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.lang-switcher {
    display: flex;
    gap: 5px;
    background: var(--light);
    padding: 5px;
    border-radius: 30px;
}

.lang-btn {
    padding: 5px 12px;
    border: none;
    background: transparent;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.lang-btn.active {
    background: var(--primary);
    color: white;
}

.live-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--light);
    padding: 5px 15px;
    border-radius: 30px;
}

.live-status i {
    color: #4caf50;
    font-size: 8px;
    animation: pulse 2s infinite;
}

.latency-badge {
    background: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    color: var(--gray);
}

/* 以太功能条 */
.ether-feature-bar {
    background: linear-gradient(135deg, var(--dark), var(--gray-dark));
    color: white;
    padding: 15px 0;
    overflow-x: auto;
}

.feature-items {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 30px;
    font-size: 14px;
    white-space: nowrap;
}

.feature-item i {
    color: #4caf50;
    font-size: 8px;
}

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

/* 侧边栏 */
.hot-sidebar {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: fit-content;
}

.filter-section {
    margin-bottom: 30px;
}

.filter-section h3 {
    margin-bottom: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--gray);
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.ether-info {
    background: var(--light);
    border-radius: 12px;
    padding: 15px;
}

.ether-info h4 {
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--dark);
}

.ether-info ul {
    list-style: none;
}

.ether-info li {
    padding: 6px 0;
    font-size: 12px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ether-info li i {
    color: var(--success);
    font-size: 6px;
}

/* 商品列表区 */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.products-header h1 {
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.products-header h1 i {
    color: var(--secondary);
}

.products-header p {
    color: var(--gray);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* 商品卡片 */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(102,126,234,0.15);
}

.product-card.mini {
    cursor: pointer;
}

.product-card.mini:hover {
    transform: translateY(-3px);
}

.product-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary);
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}

.seller-status {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(5px);
}

.seller-status.online i {
    color: #4caf50;
}

.seller-status.offline i {
    color: var(--gray-light);
}

.call-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
}

.product-card:hover .call-btn {
    opacity: 1;
    transform: translateY(0);
}

.call-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102,126,234,0.4);
}

.product-info {
    padding: 15px;
}

.product-country {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 8px;
}

.product-country i {
    margin-right: 3px;
    color: var(--primary);
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    margin-bottom: 12px;
}

.current-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
}

.original-price {
    font-size: 14px;
    color: var(--gray-light);
    text-decoration: line-through;
    margin-left: 8px;
}

.seller-name {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 12px;
}

.seller-name i {
    color: var(--primary);
    margin-right: 5px;
}

.product-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--gray);
}

.stat-item i {
    color: var(--secondary);
    margin-right: 3px;
}

.stock-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}

.stock-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 2px;
}

.ether-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.ether-tag {
    background: var(--light);
    color: var(--primary);
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* 空状态 */
.empty-state {
    grid-column: 1/-1;
    text-align: center;
    padding: 80px 20px;
}

.empty-state i {
    font-size: 60px;
    color: var(--gray-light);
    margin-bottom: 20px;
}

.empty-state p {
    color: var(--gray);
    font-size: 16px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 450px;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 i {
    color: var(--primary);
    margin-right: 8px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--gray);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 通话模态框内容 */
.call-loading {
    text-align: center;
    padding: 30px;
}

.call-loading i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 15px;
}

.latency-text {
    color: var(--success);
    font-size: 14px;
    margin-top: 10px;
}

.call-success {
    text-align: center;
    padding: 20px;
}

.call-success i {
    font-size: 50px;
    color: var(--success);
    margin-bottom: 15px;
}

.call-success h4 {
    margin-bottom: 10px;
}

.feature-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.feature-badges span {
    background: var(--light);
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 12px;
    color: var(--primary);
}

.call-error {
    text-align: center;
    padding: 20px;
}

.call-error i {
    font-size: 50px;
    color: var(--danger);
    margin-bottom: 15px;
}

.btn-retry {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    margin-top: 15px;
    cursor: pointer;
}

/* 动画 */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* 响应式 */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hot-main {
        grid-template-columns: 1fr;
    }
    
    .hot-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .lang-switcher {
        display: none;
    }
}
