/* ==================================================
   CSGO Market - 暗黑主题样式表
   主色调：橙色 #ff6b35
   背景色：#0f0f1a / #1a1a2e
   ================================================== */

/* 基础重置与变量 */
:root {
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-card: #16213e;
    --bg-hover: #1f2a48;
    --accent: #ff6b35;
    --accent-hover: #ff8555;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0b0;
    --text-muted: #6c6c80;
    --border-color: #2a2a40;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.7);
    --radius: 8px;
    --nav-height: 64px;
}

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

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent);
}

ul, ol {
    list-style: none;
}

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

/* ==================================================
   导航栏
   ================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background 0.3s ease;
}

.header.scrolled {
    background: rgba(15, 15, 26, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.logo span {
    color: var(--text-primary);
}

/* 主导航 */
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 20px;
}

.main-nav a {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent);
    background: rgba(255, 107, 53, 0.1);
}

/* 搜索框 */
.search-box {
    position: relative;
    width: 240px;
    flex-shrink: 0;
}

.search-box input {
    width: 100%;
    height: 38px;
    padding: 0 38px 0 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box input:focus {
    border-color: var(--accent);
}

.search-box button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: var(--accent);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.3s ease;
}

.search-box button:hover {
    background: var(--accent-hover);
}

/* 用户操作区 */
.user-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.user-actions a {
    font-size: 14px;
    padding: 7px 18px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.user-actions .login {
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.user-actions .login:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.user-actions .register {
    background: var(--accent);
    color: #fff;
    font-weight: 500;
}

.user-actions .register:hover {
    background: var(--accent-hover);
    color: #fff;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
}

/* ==================================================
   主体内容区域（为固定导航栏留出顶部空间）
   ================================================== */
.main-content {
    padding-top: var(--nav-height);
}

/* ==================================================
   英雄区 / Banner
   ================================================== */
.hero-section {
    position: relative;
    padding: 100px 20px 80px;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("/template/csgo/images/hero-bg.jpg") center/cover no-repeat;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(90deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 用户下拉菜单 */
.user-dropdown {
    position: relative;
}

.user-name-btn {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 7px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    user-select: none;
}

.user-name-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #1e1e35;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    min-width: 160px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    overflow: hidden;
    z-index: 100;
}

.user-dropdown-menu.show {
    display: block;
    animation: dropIn 0.2s ease;
}

@keyframes dropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: #c0c0d0;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.user-dropdown-menu a:hover {
    background: rgba(255,107,53,0.1);
    color: var(--accent);
}

.user-dropdown-menu a svg {
    flex-shrink: 0;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

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

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

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
}

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

/* ==================================================
   区块标题
   ================================================== */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.section-title h2 {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title h2::before {
    content: "";
    display: block;
    width: 4px;
    height: 24px;
    background: var(--accent);
    border-radius: 2px;
}

.section-title .more {
    font-size: 14px;
    color: var(--text-muted);
}

.section-title .more:hover {
    color: var(--accent);
}

/* ==================================================
   分类卡片
   ================================================== */
.category-section {
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px 16px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
}

.category-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.category-name {
    font-size: 15px;
    font-weight: 600;
}

/* ==================================================
   品质筛选区
   ================================================== */
.quality-filter {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.quality-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.quality-tag {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.quality-tag:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
}

/* 品质颜色 */
.quality-consumer     { background: #b0c3d9; color: #1a1a2e; }
.quality-industrial   { background: #5e98d9; color: #fff; }
.quality-milspec      { background: #4b69ff; color: #fff; }
.quality-restricted   { background: #8847ff; color: #fff; }
.quality-classified   { background: #d32ce6; color: #fff; }
.quality-covert       { background: #eb4b4b; color: #fff; }
.quality-exceed       { background: #ffd700; color: #1a1a2e; }

/* ==================================================
   商品卡片
   ================================================== */
.goods-section {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.goods-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.goods-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.goods-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
}

.goods-image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    background: var(--bg-secondary);
    overflow: hidden;
}

.goods-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.goods-card:hover .goods-image img {
    transform: scale(1.08);
}

.goods-info {
    padding: 14px;
}

.goods-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.goods-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.goods-price {
    background: var(--accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
}

/* 品质标签小尺寸 */
.quality-badge {
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

/* 磨损度标签 */
.wear-badge {
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

.wear-factory-new    { background: #00b894; color: #fff; }
.wear-minimal-wear   { background: #55efc4; color: #1a1a2e; }
.wear-field-tested   { background: #fdcb6e; color: #1a1a2e; }
.wear-well-worn      { background: #e17055; color: #fff; }
.wear-battle-scarred { background: #d63031; color: #fff; }

/* ==================================================
   底部
   ================================================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 20px 20px;
    margin-top: 40px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 16px;
    display: inline-block;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-column ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ==================================================
   列表页 - 分类Banner
   ================================================== */
.category-banner {
    padding: 100px 20px 40px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    border-bottom: 1px solid var(--border-color);
}

.category-banner-content h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.category-banner-content p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 16px;
}

.category-stats {
    display: flex;
    gap: 24px;
}

.category-stats .stat-item {
    font-size: 14px;
    color: var(--text-muted);
}

.category-stats .stat-item strong {
    color: var(--accent);
    font-size: 20px;
    margin-right: 4px;
}

/* ==================================================
   列表页 - 筛选栏
   ================================================== */
.filter-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.filter-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.filter-select {
    padding: 8px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    outline: none;
}

.filter-select:focus {
    border-color: var(--accent);
}

/* ==================================================
   列表页 - 商品列表
   ================================================== */
.product-list-section {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
}

.product-image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    background: var(--bg-secondary);
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.stattrak-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff6b35;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.souvenir-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ffd700;
    color: #1a1a2e;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.product-info {
    padding: 14px;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.product-title a:hover {
    color: var(--accent);
}

.product-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.wear-tag {
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.product-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.price-main .price-symbol {
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
}

.price-main .price-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
}

.price-original {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
}

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

.btn-detail {
    flex: 1;
    padding: 8px 0;
    text-align: center;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-detail:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-buy {
    flex: 1;
    padding: 8px 0;
    text-align: center;
    border-radius: var(--radius);
    border: none;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-buy:hover {
    background: var(--accent-hover);
}

/* ==================================================
   分页
   ================================================== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination-wrapper a,
.pagination-wrapper span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-wrapper a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination-wrapper span.current {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ==================================================
   详情页 - 面包屑
   ================================================== */
.breadcrumb-section {
    padding: 80px 20px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb .sep {
    color: var(--text-muted);
}

.breadcrumb .current {
    color: var(--text-primary);
    font-weight: 500;
}

/* ==================================================
   详情页 - 商品详情
   ================================================== */
.product-detail-section {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.product-detail-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-image-main {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.product-image-main img {
    max-height: 360px;
    object-fit:cover;
}

.stattrak-badge-lg {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #ff6b35;
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
}

.souvenir-badge-lg {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #ffd700;
    color: #1a1a2e;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
}

.btn-inspect {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-inspect:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.product-detail-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-detail-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
}

.product-detail-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
}

.product-detail-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rarity-tag {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    background: var(--bg-hover);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.product-detail-price {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.price-current {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.price-current .price-symbol {
    font-size: 20px;
    color: var(--accent);
    font-weight: 600;
}

.price-current .price-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
}

.price-original-detail {
    font-size: 14px;
    color: var(--text-muted);
}

.discount-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: #e74c3c;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.product-detail-attrs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.attr-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.attr-label {
    color: var(--text-muted);
    min-width: 80px;
    flex-shrink: 0;
}

.attr-value {
    color: var(--text-primary);
    font-weight: 500;
}

.attr-value.stock-value {
    color: #00b894;
}

.wear-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
    max-width: 200px;
}

.wear-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00b894, #fdcb6e, #e74c3c);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.product-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.qty-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.qty-input {
    width: 60px;
    height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 15px;
    text-align: center;
    outline: none;
}

.qty-input:focus {
    border-color: var(--accent);
}

.btn-buy-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 0;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-buy-lg:hover {
    background: var(--accent-hover);
}

.btn-cart-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 0;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cart-lg:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.steam-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #1b2838;
    border: 1px solid #2a475e;
    border-radius: var(--radius);
    color: #66c0f4;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.steam-link:hover {
    background: #2a475e;
    color: #fff;
}

/* ==================================================
   详情页 - 内容标签页
   ================================================== */
.product-content-tabs {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.tab-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.tab-btn {
    padding: 14px 24px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: var(--bg-card);
}

.tab-content {
    padding: 24px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.product-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.product-description p {
    margin-bottom: 12px;
}

.price-history-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.similar-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.similar-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.similar-card:hover {
    border-color: var(--accent);
}

.similar-card a {
    display: block;
    padding: 12px;
    text-decoration: none;
}

.similar-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.similar-card h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.similar-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
}

/* ==================================================
   响应式布局
   ================================================== */
@media (max-width: 1200px) {
    .goods-grid,
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .similar-products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    .search-box {
        width: 180px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-stats {
        gap: 30px;
    }
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    .filter-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .goods-grid,
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .search-box {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .hero-title {
        font-size: 26px;
    }
    .stat-number {
        font-size: 28px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .similar-products {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-detail-price {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .goods-grid,
    .product-grid,
    .similar-products {
        grid-template-columns: 1fr;
    }
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    .user-actions {
        gap: 6px;
    }
    .user-actions a {
        padding: 6px 12px;
        font-size: 12px;
    }
    .product-actions {
        flex-direction: column;
    }
}

/* ==================================================
   购物车图标（Header中）
   ================================================== */
.cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-right: 8px;
}

.cart-icon:hover {
    color: var(--accent);
    background: rgba(255, 107, 53, 0.1);
}

.cart-icon-active {
    color: var(--accent);
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    pointer-events: none;
}

/* ==================================================
   商品卡片底部按钮区（首页用）
   ================================================== */
.goods-actions {
    margin-top: 10px;
}

.goods-actions .btn-buy {
    width: 100%;
    padding: 8px 0;
    text-align: center;
    border-radius: var(--radius);
    border: none;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.goods-actions .btn-buy:hover {
    background: var(--accent-hover);
}

/* ==================================================
   Toast提示
   ================================================== */
.cart-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.cart-toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.cart-toast-success {
    background: #1a3a2a;
    color: #00b894;
    border: 1px solid #00b894;
}

.cart-toast-error {
    background: #3a1a1a;
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

/* ==================================================
   购物车页面
   ================================================== */
.cart-page-section {
    padding: 100px 20px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.cart-page-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.cart-page-title svg {
    color: var(--accent);
}

/* 购物车为空 */
.cart-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.cart-empty svg {
    margin-bottom: 20px;
}

.cart-empty-text {
    font-size: 18px;
    margin-bottom: 24px;
}

/* 购物车表格 */
.cart-table-wrapper {
    overflow-x: auto;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.cart-table thead {
    background: var(--bg-secondary);
}

.cart-table th {
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.cart-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.cart-table tr:last-child td {
    border-bottom: none;
}

.cart-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.cart-item-image img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    background: var(--bg-secondary);
}

.cart-item-name a {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cart-item-name a:hover {
    color: var(--accent);
}

.cart-item-price {
    color: var(--text-secondary);
    font-size: 14px;
    white-space: nowrap;
}

.cart-item-quantity {
    width: 120px;
}

.cart-qty-control {
    display: flex;
    align-items: center;
    gap: 0;
}

.cart-qty-btn {
    width: 32px;
    height: 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cart-qty-btn:first-child {
    border-radius: 4px 0 0 4px;
}

.cart-qty-btn:last-child {
    border-radius: 0 4px 4px 0;
}

.cart-qty-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.cart-qty-input {
    width: 50px;
    height: 32px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    border-left: none;
    border-right: none;
    color: var(--text-primary);
    font-size: 14px;
    text-align: center;
    outline: none;
    -moz-appearance: textfield;
}

.cart-qty-input::-webkit-inner-spin-button,
.cart-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-item-subtotal {
    color: var(--accent);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.cart-delete-btn {
    padding: 6px 14px;
    background: transparent;
    border: 1px solid #e74c3c;
    border-radius: 4px;
    color: #e74c3c;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cart-delete-btn:hover {
    background: #e74c3c;
    color: #fff;
}

/* 购物车结算栏 */
.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    flex-wrap: wrap;
    gap: 16px;
}

.cart-summary-left {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-continue-shopping {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-continue-shopping:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-clear-cart {
    padding: 10px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-clear-cart:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

.cart-summary-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cart-total-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.cart-total-divider {
    color: var(--text-muted);
}

.cart-total-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}

.btn-checkout {
    padding: 12px 36px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-checkout:hover {
    background: var(--accent-hover);
}

/* 购物车页面响应式 */
@media (max-width: 992px) {
    .cart-table .th-image,
    .cart-table .th-price,
    .cart-table td.cart-item-image,
    .cart-table td.cart-item-price {
        display: none;
    }
}

@media (max-width: 768px) {
    .cart-summary {
        flex-direction: column;
        align-items: stretch;
    }
    .cart-summary-left,
    .cart-summary-right {
        justify-content: center;
    }
    .cart-total-price {
        font-size: 20px;
    }
}

/* ==================================================
   辅助类
   ================================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-accent {
    color: var(--accent);
}

.bg-secondary {
    background: var(--bg-secondary);
}

/* 图片容器占位背景 */
.goods-image,
.product-image {
    background: var(--bg-secondary);
}

.goods-image img,
.product-image img {
    background: #1a1a2e;
    min-height: 180px;
    object-fit:cover;
}

/* 统一商品图片比例，防止横向图片撑大卡片 */
.goods-image img,.goods-card .goods-image img,.masonry-card .card-image img,.mag-card .card-image img,.bubble-card .card-image img,.big-card .card-image img,.compare-card .card-image img,.dash-card .card-image img,.hscroll-card .card-image img,.flow-card .card-image img,.grad-card .grad-card-img img,.steam-card .steam-card-img img,.mag-list-card .card-image img,.bubble-list-card .card-image img,.masonry-list-card .card-image img{aspect-ratio:1/1;object-fit:cover;}
