/* ============================
   game_qkd_0028 完整样式表
   ============================ */

/* 基础样式重置 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: #0a0a1a;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

ul, ol {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 文字截断工具类 */
.line-1, .text-line1 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.line-3, .text-line3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================
   导航栏
   ============================ */
.site-header {
    background: rgba(10, 10, 26, 0.95);
    color: white;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

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

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: 2rem;
}

.nav-menu a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    position: relative;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-menu a:hover {
    color: #ffffff;
    background: rgba(102, 126, 234, 0.15);
}

.nav-menu a.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.5), rgba(118, 75, 162, 0.35));
    box-shadow: inset 0 0 0 1px rgba(102, 126, 234, 0.25), 0 0 20px rgba(102, 126, 234, 0.2);
    position: relative;
}

/* active 底部指示条 */
.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #a78bfa);
    border-radius: 3px;
}

/* 汉堡菜单按钮 - 桌面端隐藏 */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #e0e0e0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* 汉堡按钮打开动画：X 形状 */
.nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ============================
   英雄区域
   ============================ */
.hero {
    padding: 0.3rem 0;
}

/* Hero-section 紧凑化覆盖（模板内联样式优先级高，需 !important） */
.hero-section {
    padding: 0 !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    min-height: auto !important;
    align-items: flex-start !important;
}

.hero-section h1 {
    font-size: 2rem !important;
    min-height: 2.8rem !important;
    margin-bottom: 0.8rem !important;
}

.hero-tagline {
    margin-bottom: 0.8rem !important;
}

.hero-description {
    margin-bottom: 0.5rem !important;
    font-size: 1rem !important;
}

.hero-subdescription {
    margin-bottom: 1rem !important;
    font-size: 0.9rem !important;
}

.hero-stats {
    padding-top: 1rem !important;
}

.hero-actions {
    margin-top: 1.2rem !important;
}

/* ============================
   内容区域
   ============================ */
.content {
    padding: 0.8rem 0;
    min-height: calc(100vh - 300px);
    display: flex;
    flex-direction: column;
}

.main-content {
    padding-top: 10px;
    min-height: calc(100vh - 300px);
}

/* ============================
   首页全域模块布局
   ============================ */
.section {
    margin: 1.8rem 0;
    padding: 1rem 0;
    position: relative;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    padding-bottom: 0.7rem;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 3px;
    transition: width 0.6s ease;
    width: 60px;
}

.section:hover .section-header::after {
    width: 120px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

/* =============================================
   模块2「紫晶暗影」(keys 3-4) — 紧凑小卡
   ============================================= */
.section-style {
    background: linear-gradient(180deg, rgba(102,126,234,0.04) 0%, transparent 40%, rgba(139,92,246,0.04) 100%);
    border-radius: 24px;
    padding: 1.5rem 0 !important;
}

.section-style .section-header::after {
    background: linear-gradient(90deg, #818cf8, #a78bfa);
    width: 80px;
}

.section-style .section-link {
    color: #a78bfa;
    border: 1.5px solid rgba(139,92,246,0.3);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.section-style .section-link:hover {
    background: rgba(139,92,246,0.18);
    border-color: #a78bfa;
    transform: translateX(3px);
    box-shadow: 0 0 20px rgba(139,92,246,0.15);
}

/* 模块2 网格：紧凑多列布局 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

/* 模块2 卡片：紫晶暗影 */
.game-card {
    position: relative;
    background: linear-gradient(170deg, #13132b 0%, #16162e 100%);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(102,126,234,0.1);
    display: flex;
    flex-direction: column;
}

.game-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    width: 3px;
    height: 70%;
    background: linear-gradient(180deg, #818cf8, #a78bfa, #c4b5fd);
    border-radius: 0 2px 2px 0;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
}

.game-card:hover::before {
    opacity: 1;
    box-shadow: 0 0 18px rgba(139,92,246,0.5), 3px 0 15px rgba(139,92,246,0.25);
}

.game-card:hover {
    transform: translateY(-5px) translateX(2px);
    box-shadow: 0 14px 35px rgba(102,126,234,0.12), 0 0 0 1px rgba(139,92,246,0.2);
    border-color: rgba(139,92,246,0.3);
    background: linear-gradient(170deg, #161638 0%, #1a1a38 100%);
}

.game-card .card-image {
    position: relative;
    overflow: hidden;
    height: 160px;
}

.game-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.game-card:hover .card-image img {
    transform: scale(1.06);
}

.game-card .card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%;
    background: linear-gradient(to top, rgba(19,19,43,0.9) 0%, transparent 100%);
    pointer-events: none;
}

.game-card .card-body {
    padding: 0.85rem 1rem 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.game-card .card-tags {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-bottom: 0.45rem;
}

.game-card .card-tag {
    background: rgba(139,92,246,0.1);
    color: #a78bfa;
    padding: 0.18rem 0.5rem;
    border-radius: 10px;
    font-size: 0.68rem;
    font-weight: 600;
    border: 1px solid rgba(139,92,246,0.15);
    letter-spacing: 0.3px;
}

.game-card .card-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: #e8e8ff;
    line-height: 1.35;
}

.game-card .card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.game-card .card-title a:hover {
    color: #c4b5fd;
}

.game-card .card-desc {
    font-size: 0.78rem;
    color: #777;
    margin-bottom: 0.4rem;
    flex: 1;
    line-height: 1.45;
}

.game-card .card-rating {
    color: #fbbf24;
    font-size: 0.78rem;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.game-card .card-btn {
    display: block;
    width: 100%;
    padding: 8px 0;
    background: linear-gradient(135deg, #667eea, #5b21b6);
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
    margin-bottom: 0.85rem;
}

.game-card .card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.4);
    background: linear-gradient(135deg, #818cf8, #6d28d9);
}


/* =============================================
   模块3「青曜流光」(keys 5+) — 宽横卡
   ============================================= */
.section-style-alt {
    position: relative;
    background: linear-gradient(180deg, rgba(6,182,212,0.05) 0%, transparent 30%, rgba(20,184,166,0.05) 100%);
    border-radius: 24px;
    padding: 1.5rem 0 !important;
    overflow: hidden;
}

.section-style-alt::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -30px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(6,182,212,0.06) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

.section-style-alt .section-header::after {
    background: linear-gradient(90deg, #22d3ee, #14b8a6);
    width: 90px;
}

.section-style-alt .section-link {
    color: #2dd4bf;
    border: 1.5px solid rgba(20,184,166,0.3);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.section-style-alt .section-link:hover {
    background: rgba(20,184,166,0.18);
    border-color: #2dd4bf;
    transform: translateX(3px);
    box-shadow: 0 0 20px rgba(20,184,166,0.15);
}

/* 模块3 网格：宽列 */
.games-grid-alt {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.2rem;
}

/* 模块3 卡片：横向布局 + 青曜流光 */
.game-card-alt {
    position: relative;
    background: linear-gradient(160deg, #05191e 0%, #071d22 100%);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(6,182,212,0.1);
    display: flex;
    flex-direction: row;
    min-height: 180px;
}

.game-card-alt::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #06b6d4, #22d3ee, #14b8a6, #06b6d4, transparent);
    opacity: 0.35;
    transition: all 0.4s ease;
    z-index: 2;
}

.game-card-alt:hover::after {
    opacity: 1;
    height: 4px;
    box-shadow: 0 2px 25px rgba(6,182,212,0.4);
}

.game-card-alt:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(6,182,212,0.15), 0 0 0 1px rgba(6,182,212,0.25), 0 0 60px rgba(6,182,212,0.06);
    border-color: rgba(6,182,212,0.35);
    background: linear-gradient(160deg, #061f26 0%, #082329 100%);
}

.game-card-alt .card-image {
    position: relative;
    overflow: hidden;
    min-width: 150px;
    width: 150px;
    flex-shrink: 0;
}

.game-card-alt .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.game-card-alt:hover .card-image img {
    transform: scale(1.1);
}

.game-card-alt .card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to top, rgba(5,25,30,0.85), transparent);
    pointer-events: none;
}

.game-card-alt .card-body {
    padding: 1.1rem 1.3rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.game-card-alt .card-tags {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.game-card-alt .card-tag {
    background: rgba(6,182,212,0.1);
    color: #22d3ee;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    border: 1px solid rgba(6,182,212,0.18);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.game-card-alt .card-title {
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #e0f7fa;
    line-height: 1.35;
}

.game-card-alt .card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.game-card-alt .card-title a:hover {
    color: #67e8f9;
}

.game-card-alt .card-desc {
    font-size: 0.82rem;
    color: #5a8a92;
    margin-bottom: 0.45rem;
    flex: 1;
    line-height: 1.5;
}

.game-card-alt .card-rating {
    color: #fbbf24;
    font-size: 0.8rem;
    margin-bottom: 0.45rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.game-card-alt .card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    color: #22d3ee;
    text-decoration: none;
    border: 2px solid rgba(6,182,212,0.35);
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.6px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.game-card-alt .card-btn:hover {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: #021a1f;
    border-color: transparent;
    box-shadow: 0 6px 22px rgba(6,182,212,0.45);
    transform: translateY(-2px);
}

.game-card-alt .card-btn::after {
    content: '▶';
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.game-card-alt .card-btn:hover::after {
    transform: translateX(2px);
}

/* ============================
   游戏详情页控制按钮栏
   ============================ */
.game-controls-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.game-ctrl-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    background: rgba(102, 126, 234, 0.08);
    color: #b0b0b0;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.game-ctrl-btn:hover {
    background: rgba(102, 126, 234, 0.18);
    border-color: rgba(102, 126, 234, 0.4);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25);
}

.game-ctrl-btn.active {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
    color: #a78bfa;
}

.game-ctrl-btn .ctrl-count {
    font-weight: 600;
}

/* =============================================
   首页 Featured 区域（模块 0-2）「金耀PREMIUM」
   视觉：暗金玻璃 + 贵族金描边 + 流光按钮
   3个featured section分别用 nth-of-type 微调层次感
   ============================================= */
.featured {
    margin: 1.8rem 0;
    padding: 1.8rem 0;
    position: relative;
    background: linear-gradient(180deg, rgba(30,25,10,0.2) 0%, rgba(20,16,8,0.5) 50%, rgba(15,12,6,0.3) 100%);
    border-radius: 28px;
    overflow: hidden;
}

/* 第一组 featured：强金色光晕 */
.featured:nth-of-type(1)::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 650px;
    height: 320px;
    background: radial-gradient(ellipse, rgba(251,191,36,0.08) 0%, rgba(245,158,11,0.04) 40%, transparent 70%);
    pointer-events: none;
}
.featured:nth-of-type(1) .featured-title::before { content: '👑'; }

/* 第二组 featured：暖金色 + 右侧侧光 */
.featured:nth-of-type(2)::before {
    content: '';
    position: absolute;
    top: -80px;
    right: 0;
    width: 500px;
    height: 400px;
    background: radial-gradient(ellipse at right, rgba(245,158,11,0.07) 0%, transparent 65%);
    pointer-events: none;
}
.featured:nth-of-type(2)::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 450px;
    height: 220px;
    background: radial-gradient(ellipse at left, rgba(251,191,36,0.05) 0%, transparent 60%);
    pointer-events: none;
}
.featured:nth-of-type(2) .featured-title::before { content: '🏆'; }

/* 第三组 featured：双光晕叠加 */
.featured:nth-of-type(3)::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 5%;
    width: 380px;
    height: 350px;
    background: radial-gradient(ellipse, rgba(251,191,36,0.06) 0%, transparent 60%);
    pointer-events: none;
}
.featured:nth-of-type(3)::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: 3%;
    width: 420px;
    height: 280px;
    background: radial-gradient(ellipse, rgba(245,158,11,0.05) 0%, transparent 60%);
    pointer-events: none;
    border-radius: 50%;
}
.featured:nth-of-type(3) .featured-title::before { content: '⭐'; }

.featured-header {
    text-align: center;
    margin-bottom: 1.4rem;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}
.featured-header::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    margin: 1.2rem auto 0;
    background: linear-gradient(90deg, transparent, #f59e0b, #fbbf24, #f59e0b, transparent);
    border-radius: 3px;
    transition: width 0.6s ease;
}
.featured:hover .featured-header::after { width: 180px; }

.featured-title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-shadow: 0 0 40px rgba(251,191,36,0.15);
}
.featured-title::before { font-size: 1.5rem; }

.featured-desc {
    color: #a0a0a8;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.2rem;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* featured-card：暗金玻璃拟态 */
.featured-card {
    position: relative;
    background: linear-gradient(160deg, rgba(245,158,11,0.06) 0%, rgba(20,18,10,0.92) 50%);
    border-radius: 20px;
    overflow: visible;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(245,158,11,0.12);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(12px);
}

/* 金色发光环 */
.featured-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(245,158,11,0.5), transparent 35%, transparent 65%, rgba(251,191,36,0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
    transition: opacity 0.45s ease;
    pointer-events: none;
}
.featured-card:hover::before { opacity: 1; }

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 55px rgba(245,158,11,0.2), 0 0 0 1px rgba(245,158,11,0.35), 0 0 70px rgba(251,191,36,0.08);
    border-color: rgba(245,158,11,0.5);
}

.featured-card .card-image {
    position: relative;
    overflow: hidden;
    height: 195px;
    border-radius: 20px 20px 0 0;
}
.featured-card .card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(20,18,10,0.95) 0%, transparent 100%);
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.featured-card:hover .card-image::after { opacity: 0.65; }

.featured-card .card-image::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 58px;
    height: 58px;
    background: rgba(251,191,36,0.9);
    color: #1a1a2e;
    font-size: 1.3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    box-shadow: 0 6px 30px rgba(245,158,11,0.6);
}
.featured-card:hover .card-image::before { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.featured-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.4s ease;
}
.featured-card:hover .card-image img { transform: scale(1.08); filter: brightness(1.12) saturate(1.05); }

.featured-card .card-body {
    padding: 1.3rem 1.5rem 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    z-index: 1;
}

.featured-card .card-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.featured-card .card-tag {
    background: rgba(245,158,11,0.13);
    color: #f59e0b;
    padding: 0.28rem 0.7rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(245,158,11,0.22);
    letter-spacing: 0.3px;
}
.featured-card .card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.6rem; color: #ffffff; line-height: 1.4; }
.featured-card .card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
    background: linear-gradient(to right, #fff, #fff 45%, #fbbf24 55%);
    background-size: 200% 100%;
    background-position: 0 0;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.featured-card:hover .card-title a { background-position: -100% 0; transition: background-position 0.5s ease; }

.featured-card .card-desc { font-size: 0.88rem; color: #999; margin-bottom: 0.8rem; flex: 1; line-height: 1.6; }
.featured-card .card-rating { color: #fbbf24; font-size: 0.9rem; margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.3rem; }

.featured-card .card-btn {
    display: block;
    width: 100%;
    margin: 0.3rem 0 1.4rem;
    padding: 13px 20px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #1a180e;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.8px;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}
.featured-card .card-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}
.featured-card .card-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 35px rgba(245,158,11,0.5); }
.featured-card .card-btn:hover::after { left: 100%; }

/* ============================
   产品列表页（list.html, tags.html）
   ============================ */
.page {
    padding: 0.8rem 0;
}

.page h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.product {
    background: #1a1a2e;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid rgba(102, 126, 234, 0.3);
    display: flex;
    flex-direction: column;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.6);
}

.inner-product {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.figure-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.figure-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.product:hover .figure-image img {
    transform: scale(1.05);
}

.product-title {
    padding: 1.2rem 1.2rem 0.5rem;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.product-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-title a:hover {
    color: #667eea;
}

.text-line3 {
    padding: 0 1.2rem;
    color: #b0b0b0;
    font-size: 14px;
    line-height: 1.6;
    min-height: 65px;
}

/* 产品卡片星级评分 */
.product-rating,
.inner-product > div {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 0 1.2rem;
    font-size: 15px;
}

.inner-product > div .star-full {
    color: #fbbf24;
}

.inner-product > div .star-empty {
    color: #555;
}

/* 产品卡片按钮 */
.product .button,
.button {
    display: block;
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    margin-top: auto;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.product .button:hover,
.button:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
}

/* ============================
   分类按钮（tags.html）
   ============================ */
.category-buttons {
    background: rgba(26, 26, 46, 0.85);
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.category-title {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
}

.category-title h2 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.category-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(102, 126, 234, 0.3);
    color: #e0e0e0;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    min-width: 120px;
    letter-spacing: 0.3px;
}

.category-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    color: #ffffff;
    transform: translateY(-3px);
}

.category-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

/* ============================
   分页
   ============================ */
.pagination,
.pagination-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    padding: 12px;
    background: rgba(26, 26, 46, 0.85);
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.pagination a,
.pagination-bar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(102, 126, 234, 0.3);
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pagination a:hover,
.pagination-bar a:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    color: #ffffff;
    transform: translateY(-2px);
}

.pagination a.active,
.pagination-bar a.active,
.pagination-bar .current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

/* 新版 pagination 结构：.pagination-list / .pagination-item / .pagination-link */
.pagination-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination-item {
    list-style: none;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(102, 126, 234, 0.25);
    color: #c0c0c0;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.pagination-link:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

/* 当前页码 */
.pagination-link.current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
}

/* 禁用状态：上一页/下一页 */
.pagination-link.disabled {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(102, 126, 234, 0.1);
    color: rgba(224, 224, 224, 0.3);
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================
   空状态
   ============================ */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    background: rgba(26, 26, 46, 0.85);
    border-radius: 16px;
    margin: 20px 0;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.empty-state-icon {
    font-size: 80px;
    color: rgba(102, 126, 234, 0.5);
    margin-bottom: 30px;
}

.empty-state p {
    color: #e0e0e0;
    font-size: 18px;
    margin: 10px 0;
}

.empty-state p:first-of-type {
    font-size: 20px;
    font-weight: 600;
}

.empty-state-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.empty-state-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.empty-state-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.empty-state-btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.08);
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    border: 2px solid rgba(102, 126, 234, 0.3);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.empty-state-btn-secondary:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    color: white;
    transform: translateY(-3px);
}

/* ============================
   About Page
   ============================ */
.page-hero {
    position: relative;
    padding: 1.5rem 0 1rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(102,126,234,0.08) 0%, rgba(26,26,46,0) 100%);
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(102,126,234,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.page-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.8rem;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    margin: 1rem auto 0;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
}

.page-desc {
    font-size: 1.1rem;
    color: #999;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
}

.page-content {
    padding: 1rem 0 4rem;
}

/* Stats */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem 1.5rem;
    background: linear-gradient(135deg, rgba(102,126,234,0.06) 0%, rgba(118,75,162,0.06) 100%);
    border-radius: 20px;
    border: 1px solid rgba(102,126,234,0.1);
}

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

.stat-number {
    display: block;
    font-size: 2.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #999;
    margin-top: 0.3rem;
    font-weight: 500;
}

/* Section */
.about-section {
    margin-bottom: 1.5rem;
    text-align: center;
}

.about-section-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.about-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.6rem;
}

.about-section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    margin: 0.8rem auto;
    background: linear-gradient(90deg, #667eea, transparent);
    border-radius: 2px;
}

.about-lead {
    font-size: 1.1rem;
    color: #ccc;
    max-width: 650px;
    margin: 0 auto 1.8rem;
    line-height: 1.7;
}

.about-section > p {
    color: #999;
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 750px;
    margin: 0 auto 1.2rem;
    text-align: left;
}

.about-section > p.about-lead {
    text-align: center;
    color: #ccc;
}

/* Mission Cards */
.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.about-card {
    background: rgba(26,26,46,0.6);
    border: 1px solid rgba(102,126,234,0.12);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: rgba(102,126,234,0.35);
    box-shadow: 0 12px 35px rgba(102,126,234,0.1);
}

.about-card-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.7rem;
}

.about-card p {
    font-size: 0.9rem;
    color: #999;
    line-height: 1.7;
}

/* Testimonials */
.about-testimonials {
    background: linear-gradient(180deg, transparent 0%, rgba(102,126,234,0.03) 50%, transparent 100%);
    padding: 1.2rem 1rem;
    border-radius: 20px;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
    max-width: 950px;
    margin: 2rem auto 0;
}

.testimonial-card {
    background: rgba(26,26,46,0.7);
    border: 1px solid rgba(102,126,234,0.1);
    border-radius: 16px;
    padding: 1.8rem;
    text-align: left;
    position: relative;
    transition: border-color 0.3s ease;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 0.5rem;
    left: 1.2rem;
    font-size: 3rem;
    color: rgba(102,126,234,0.2);
    line-height: 1;
    font-family: serif;
}

.testimonial-card:hover {
    border-color: rgba(102,126,234,0.35);
}

.testimonial-card p {
    color: #bbb;
    font-size: 0.93rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-card cite {
    color: #667eea;
    font-size: 0.85rem;
    font-weight: 600;
    font-style: normal;
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.team-member {
    text-align: center;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-6px);
}

.team-member h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 1rem 0 0.3rem;
}

.team-role {
    font-size: 0.85rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-bio {
    font-size: 0.85rem;
    color: #999;
    line-height: 1.5;
}

.team-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(102,126,234,0.3);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover .team-avatar {
    border-color: #667eea;
    box-shadow: 0 0 25px rgba(102,126,234,0.25);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* CTA */
.about-cta {
    text-align: center;
    padding: 1.5rem 1.5rem;
    background: linear-gradient(135deg, rgba(102,126,234,0.08) 0%, rgba(118,75,162,0.08) 100%);
    border-radius: 24px;
    border: 1px solid rgba(102,126,234,0.12);
    margin-top: 1.5rem;
}

.about-cta h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.8rem;
}

.about-cta p {
    color: #999;
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.about-cta-btn {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102,126,234,0.4);
}

/* ============================
   Contact Page
   ============================ */

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2.5rem;
    margin-bottom: 4rem;
}

/* Contact Info */
.contact-info {
    background: rgba(26, 26, 46, 0.7);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 20px;
    padding: 2.5rem 2rem;
}

.contact-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.8rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.info-item {
    margin-bottom: 1.8rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-item h3::before {
    content: '◆';
    font-size: 0.6rem;
}

.info-item p {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.7;
    padding-left: 1.2rem;
}

/* Contact Form */
.contact-form {
    background: rgba(26, 26, 46, 0.7);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 20px;
    padding: 2.5rem 2rem;
}

.contact-form h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.8rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.form-group {
    margin-bottom: 1.4rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ccc;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(102, 126, 234, 0.2);
    border-radius: 10px;
    color: #e0e0e0;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.08);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* Primary Button */
.btn-primary {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.45);
}

/* FAQ Section */
.faq-section {
    padding: 2.5rem;
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 20px;
}

.faq-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.faq-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    margin: 1rem auto 0;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.faq-item {
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(102, 126, 234, 0.12);
    border-radius: 14px;
    padding: 1.5rem;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(102, 126, 234, 0.35);
    background: rgba(102, 126, 234, 0.06);
}

.faq-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.faq-item h3::before {
    content: 'Q';
    font-size: 0.85rem;
    font-weight: 800;
    color: #667eea;
    background: rgba(102, 126, 234, 0.15);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.faq-item p {
    color: #999;
    font-size: 0.93rem;
    line-height: 1.7;
    padding-left: 2.2rem;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    top: 24px;
    right: 24px;
    min-width: 300px;
    max-width: 420px;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    overflow: hidden;
    animation: toastSlideIn 0.35s ease;
    border-left: 4px solid #667eea;
}

.toast-notification.toast-success {
    border-left-color: #2ecc71;
}

.toast-notification.toast-error {
    border-left-color: #e74c3c;
}

.toast-notification.hide {
    animation: toastSlideOut 0.3s ease forwards;
}

.toast-notification .toast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
}

.toast-notification .toast-header .close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s ease;
}

.toast-notification .toast-header .close-btn:hover {
    color: #ffffff;
}

.toast-notification .toast-body {
    padding: 4px 18px 16px;
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.5;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ============================
   Footer
   ============================ */
.footer {
    background: #0a0a1a;
    color: white;
    padding: 1.2rem 0 0.5rem;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    margin-top: 1.5rem;
}

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

.footer-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-section p {
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-section ul {
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: #667eea;
}

.footer-bottom {
    text-align: center;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
}

.footer-bottom p {
    color: #808080;
    font-size: 0.85rem;
}

/* ============================
   Back to Top 按钮
   ============================ */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* ============================
   星级评分
   ============================ */
.star-full {
    color: #fbbf24;
}

.star-empty {
    color: #727171;
}

/* ============================
   Overlay
   ============================ */
.overlay {
    display: none;
}

/* ============================
   响应式设计
   ============================ */
@media (max-width: 1200px) {
    .product-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    /* 全局移动端防溢出和文字换行 */
    * {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    img, video, iframe, pre, code, table, audio, canvas, svg, embed, object {
        max-width: 100% !important;
        height: auto;
    }

    input, textarea, select, button {
        max-width: 100%;
    }

    .container {
        width: 100%;
        max-width: 700px;
        padding: 0 20px;
    }

    .site-header {
        padding: 0;
    }

    .header-inner {
        padding: 0.65rem 1rem;
        flex-wrap: nowrap;
    }

    .logo {
        font-size: 1.1rem;
    }

    /* 显示汉堡按钮 */
    .nav-toggle {
        display: flex;
    }

    /* 移动端菜单：绝对定位下拉 */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 26, 0.98);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-left: 0;
        padding: 0.5rem;
        border-bottom: 1px solid rgba(102, 126, 234, 0.15);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
        z-index: 999;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        width: 100%;
        font-size: 0.9rem;
        padding: 0.7rem 1rem;
        border-radius: 0;
        text-align: left;
        border-bottom: 1px solid rgba(102, 126, 234, 0.08);
    }

    .nav-menu a:last-child {
        border-bottom: none;
    }

    .nav-menu a.active::after {
        display: none;
    }

    /* 内容区间距收紧 + 防止装饰伪元素溢出 */
    .section {
        margin: 2rem 0;
        padding: 1rem 0;
        overflow: hidden;
    }



    /* Featured装饰光晕缩小 */
    .featured::before {
        width: 320px;
        height: 180px;
        top: -40px;
    }

    .featured::after {
        width: 220px;
        height: 140px;
        bottom: -30px;
    }

    .content {
        padding: 0.5rem 0;
    }

    .hero {
        padding: 0.2rem 0;
    }

    .hero-stats,
    .hero-actions {
        display: none !important;
    }

    .hero-section {
        padding: 0 !important;
        align-items: flex-start !important;
    }

    .hero-section h1 {
        font-size: 1.8rem !important;
        min-height: 2.4rem !important;
        margin-bottom: 0.6rem !important;
    }

    .hero-tagline {
        margin-bottom: 0.6rem !important;
    }

    .hero-description {
        margin-bottom: 0.4rem !important;
    }

    .hero-subdescription {
        margin-bottom: 0.6rem !important;
    }

    .main-content {
        padding-top: 10px;
    }

    .page-content {
        padding: 0.5rem 0 2.5rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .games-grid,
    .games-grid-alt {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* 卡片防溢出 */
    .game-card,
    .game-card-alt {
        min-width: 0;
        width: 100%;
        overflow: hidden;
    }

    /* 模块3 平板保持横向 */
    .game-card-alt {
        flex-direction: row;
    }
    .game-card-alt .card-image {
        min-width: 130px;
        width: 130px;
    }

    .featured-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .featured {
        padding: 1.5rem 0;
        margin: 1.5rem 0;
    }

    .featured-title {
        font-size: 1.6rem;
    }

    .featured-card {
        min-width: 0;
        width: 100%;
        overflow: hidden;
    }

    .featured-card .card-image {
        height: 180px;
    }

    .product-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .figure-image {
        height: 160px;
    }

    .category-buttons {
        padding: 20px;
        margin: 20px 0;
    }

    .category-title h2 {
        font-size: 24px;
    }

    .button-group {
        gap: 8px;
    }

    .category-btn {
        min-width: 100px;
        font-size: 13px;
        padding: 8px 18px;
    }

    .page h2 {
        font-size: 24px;
    }

    /* About Page */
    .page-hero {
        padding: 1.2rem 0 0.8rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 1rem 1rem;
        gap: 0.8rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .about-section h2 {
        font-size: 1.5rem;
    }

    .about-cards {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .about-testimonials {
        margin-left: 0;
        margin-right: 0;
        padding: 1rem 0.5rem;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .about-cta {
        padding: 1.2rem 1rem;
    }

    .about-cta h2 {
        font-size: 1.5rem;
    }

    /* Contact Page */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-info,
    .contact-form {
        padding: 1rem 1rem;
    }

    .faq-section {
        padding: 1rem 1rem;
    }

    .info-item p {
        word-break: break-all;
    }

    /* Page Hero (contact/about/terms/privacy/disclaimer) */
    .page-hero {
        padding: 1rem 0 0.8rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .page-desc {
        font-size: 0.95rem;
        padding: 0 1rem;
    }

    /* About/Policy section lists */
    .about-section h2 {
        font-size: 1.4rem;
    }

    .about-section h3 {
        font-size: 1.05rem;
    }

    .about-section ul,
    .about-section ol {
        padding-left: 1.2rem;
    }

    /* 移动端段落取消固定最大宽度，改为100% */
    .about-section > p,
    .about-lead,
    .page-desc {
        max-width: 100% !important;
    }

    /* Footer */
    .footer {
        padding: 1rem 0 0.5rem;
        margin-top: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.8rem;
    }

    /* Form elements on mobile */
    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        box-sizing: border-box;
    }

    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 100%;
        padding: 0 16px;
    }

    /* 导航栏进一步缩小 */
    .header-inner {
        padding: 0.5rem 0.75rem;
    }

    .logo {
        font-size: 1.05rem;
    }

    .nav-menu a {
        font-size: 0.85rem;
        padding: 0.65rem 0.9rem;
    }

    .nav-toggle span {
        width: 22px;
        height: 2.5px;
    }

    /* 游戏网格全单列 + 卡片防溢出 */
    .games-grid,
    .games-grid-alt {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .game-card,
    .game-card-alt {
        min-width: 0;
        width: 100%;
        overflow: hidden;
    }

    /* 模块3 手机堆叠为纵向 */
    .game-card-alt {
        flex-direction: column;
    }
    .game-card-alt .card-image {
        width: 100%;
        min-width: 100%;
        height: 180px;
    }

    .section-style::before,
    .section-style-alt::before {
        display: none;
    }

    .featured::before {
        width: 200px;
        height: 120px;
        top: -20px;
    }

    .featured::after {
        width: 140px;
        height: 90px;
        bottom: -15px;
    }


    .featured-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .featured-card {
        min-width: 0;
        width: 100%;
        overflow: hidden;
    }

    .featured {
        padding: 1rem 0;
        margin: 1rem 0;
        border-radius: 16px;
    }

    .featured-title {
        font-size: 1.4rem;
    }

    .featured-header::after {
        width: 60px;
    }

    .featured-card .card-image {
        height: 170px;
    }

    .product-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .figure-image {
        height: 180px;
    }

    .category-buttons {
        padding: 15px;
    }

    .category-title h2 {
        font-size: 20px;
    }

    .button-group {
        gap: 6px;
    }

    .category-btn {
        min-width: 80px;
        font-size: 12px;
        padding: 6px 14px;
    }

    .page h2 {
        font-size: 20px;
    }

    .pagination,
    .pagination-bar {
        flex-wrap: wrap;
        gap: 8px;
        padding: 15px;
    }

    .pagination-list {
        flex-wrap: wrap;
        gap: 6px;
    }

    .pagination-link {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        font-size: 13px;
    }

    .empty-state-actions {
        flex-direction: column;
        align-items: center;
    }

    /* About Page */
    .page-hero {
        padding: 0.8rem 0 0.6rem;
    }

    .page-title {
        font-size: 1.6rem;
    }

    .page-desc {
        font-size: 0.95rem;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 1rem 0.8rem;
        gap: 0.8rem;
        margin-bottom: 1.2rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.78rem;
    }

    .about-section {
        margin-bottom: 1.2rem;
    }

    .about-section h2 {
        font-size: 1.3rem;
    }

    .about-section > p {
        text-align: left;
        font-size: 0.9rem;
    }

    .about-cards {
        grid-template-columns: 1fr;
    }

    .about-card {
        padding: 1rem 0.8rem;
    }

    .about-testimonials {
        margin-left: 0;
        margin-right: 0;
        padding: 1rem 0.5rem;
    }

    .testimonial-card {
        padding: 1rem;
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }

    .team-avatar {
        width: 90px;
        height: 90px;
    }

    .about-cta {
        padding: 1rem 0.8rem;
        margin-top: 1rem;
        border-radius: 16px;
    }

    .about-cta h2 {
        font-size: 1.3rem;
    }

    .about-cta-btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    /* Contact Page */
    .contact-info,
    .contact-form {
        padding: 1rem 0.8rem;
    }

    .contact-info h2,
    .contact-form h2 {
        font-size: 1.3rem;
    }

    .info-item p {
        font-size: 0.88rem;
        padding-left: 0.6rem;
        word-break: break-all;
    }

    .faq-section {
        padding: 1rem 0.8rem;
    }

    .faq-section h2 {
        font-size: 1.3rem;
    }

    .faq-item {
        padding: 0.8rem;
    }

    .faq-item h3 {
        font-size: 0.95rem;
    }

    .faq-item p {
        font-size: 0.85rem;
        padding-left: 0;
    }

    .faq-item h3::before {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
    }

    /* Page Hero compact */
    .page-hero {
        padding: 0.6rem 0 0.4rem;
    }

    .page-title {
        font-size: 1.4rem;
    }

    .page-title::after {
        width: 50px;
        margin: 0.6rem auto 0;
    }

    .page-desc {
        font-size: 0.85rem;
        padding: 0 0.5rem;
    }

    /* About / Policy sections */
    .about-section h2 {
        font-size: 1.2rem;
    }

    .about-section h3 {
        font-size: 0.95rem;
    }

    .about-section h2::after {
        width: 40px;
        margin: 0.5rem auto;
    }

    .about-section > p,
    .about-section ul li,
    .about-section ol li {
        font-size: 0.85rem;
        line-height: 1.65;
    }

    .about-section ul,
    .about-section ol {
        padding-left: 1rem;
    }

    .about-lead {
        font-size: 0.9rem !important;
    }

    /* Page content padding */
    .page-content {
        padding: 0.3rem 0 1rem;
    }

    /* 内容区更紧凑 */
    .section {
        margin: 0.8rem 0;
        padding: 0.3rem 0;
    }

    .content {
        padding: 0;
    }

    .hero {
        padding: 0.1rem 0;
    }

    .hero-stats,
    .hero-actions {
        display: none !important;
    }

    .hero-section {
        padding: 0 !important;
        align-items: flex-start !important;
    }

    .hero-section h1 {
        font-size: 1.25rem !important;
        min-height: 1.8rem !important;
        margin-bottom: 0.5rem !important;
    }

    .hero-tagline {
        margin-bottom: 0.5rem !important;
        font-size: 0.75rem !important;
        padding: 0.35rem 0.8rem !important;
    }

    .hero-description {
        margin-bottom: 0.3rem !important;
        font-size: 0.82rem !important;
    }

    .hero-subdescription {
        margin-bottom: 0.4rem !important;
        font-size: 0.78rem !important;
    }

    .featured {
        border-radius: 12px;
        padding: 1rem 0;
        margin: 0.8rem 0;
    }

    .product-list {
        gap: 1rem;
    }

    /* 产品卡片图片高度 */
    .figure-image {
        height: 180px;
    }

    /* Footer 收紧 */
    .footer {
        padding: 0.8rem 0 0.3rem;
        margin-top: 0.8rem;
    }

    /* Toast */
    .toast-notification {
        left: 16px;
        right: 16px;
        min-width: auto;
        max-width: none;
    }

    /* 防止任何子元素撑破容器 */
    img, video, iframe, pre, code, table {
        max-width: 100%;
        height: auto;
    }

    .form-group input,
    .form-group textarea {
        max-width: 100%;
    }
}

/* ===== Nav Auth Buttons ===== */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.nav-auth-btns {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-auth-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-login {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
}

.btn-login:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

.btn-register {
    background: linear-gradient(135deg, #6c5ce7, #5a4bd1);
    color: #fff;
    border: none;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108,92,231,0.4);
}

/* ===== Nav User Dropdown ===== */
.nav-user {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    background: rgba(102, 126, 234, 0.08);
}

.nav-user-info:hover {
    background: rgba(102, 126, 234, 0.18);
    border-color: rgba(102, 126, 234, 0.35);
}

.nav-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
}

.nav-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-user-name {
    color: #e0e0e0;
    font-size: 13px;
    font-weight: 600;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-user-arrow {
    font-size: 10px;
    color: #888;
    transition: transform 0.3s ease;
}

.nav-user-info:hover .nav-user-arrow {
    color: #a78bfa;
}

/* ===== Nav User Dropdown Menu ===== */
.nav-user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    min-width: 180px;
    background: #1a1a2e;
    border: 1px solid rgba(102, 126, 234, 0.35);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1001;
    padding: 6px 0;
    overflow: hidden;
}

.nav-user-dropdown.show {
    display: block;
    animation: dropdownFadeIn 0.2s ease;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: rgba(102, 126, 234, 0.15);
    color: #ffffff;
}

.dropdown-icon {
    font-size: 14px;
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    margin: 6px 0;
    border: none;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
}

.dropdown-logout {
    color: #ff6b6b;
}

.dropdown-logout:hover {
    background: rgba(231, 76, 60, 0.15);
    color: #ff6b6b;
}

@media (max-width: 768px) {
    .nav-auth {
        margin-left: 0;
        gap: 6px;
    }
    .nav-auth-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    .nav-user-name {
        max-width: 80px;
        font-size: 12px;
    }
    .nav-user-arrow {
        font-size: 8px;
    }
    .nav-user-dropdown {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: auto;
        min-width: 160px;
    }
    .nav-user-info {
        padding: 3px 8px;
    }
}

/* ===== Login Modal Styles (Dark Theme) ===== */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal {
    background: #1a1a2e;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 9999;
    border: 1px solid rgba(102, 126, 234, 0.25);
}

.auth-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #888;
    line-height: 1;
    transition: color 0.3s;
}

.auth-modal-close:hover {
    color: #ffffff;
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-header h2 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.auth-header p {
    color: #888;
    font-size: 0.85rem;
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    text-align: center;
    cursor: pointer;
    color: #888;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-size: 0.9rem;
}

.auth-tab:hover {
    color: #a78bfa;
}

.auth-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

/* Auth modal scoped form groups */
.auth-modal .form-group {
    margin-bottom: 1rem;
}

.auth-modal .form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: #b0b0b0;
    font-weight: 500;
    font-size: 0.85rem;
}

.auth-modal .form-group input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: rgba(10, 10, 26, 0.6);
    color: #e0e0e0;
    box-sizing: border-box;
}

.auth-modal .form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.auth-modal .form-group input::placeholder {
    color: #555;
}

.auth-modal .form-group .error-text {
    color: #e74c3c;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none;
}

.auth-modal .form-group.has-error input {
    border-color: #e74c3c;
}

.auth-modal .form-group.has-error .error-text {
    display: block;
}

.btn-auth {
    width: 100%;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-auth:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-auth.loading {
    position: relative;
    color: transparent;
}

.btn-auth.loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin-left: -9px;
    margin-top: -9px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

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

.auth-footer {
    text-align: center;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
}

.auth-footer p {
    color: #888;
    font-size: 0.85rem;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    color: #a78bfa;
    text-decoration: underline;
}

.alert-box {
    padding: 0.7rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    display: none;
}

.alert-box.show {
    display: block;
}

.alert-box.success {
    background: rgba(39,174,96,0.12);
    color: #27ae60;
    border: 1px solid rgba(39,174,96,0.3);
}

.alert-box.error {
    background: rgba(231,76,60,0.12);
    color: #e74c3c;
    border: 1px solid rgba(231,76,60,0.3);
}

.password-toggle {
    position: relative;
}

.password-toggle input {
    padding-right: 2.5rem;
}

.password-toggle .toggle-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    font-size: 1rem;
    user-select: none;
    transition: color 0.3s;
}

.password-toggle .toggle-icon:hover {
    color: #a78bfa;
}


/* ===== Comments Section (Dark Theme) ===== */
.comments-section {
    width: 100%;
    box-sizing: border-box;
    margin-top: 30px;
    padding: 24px;
    background: rgba(26, 26, 46, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.25);
}

.comments-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.comments-count {
    color: #888;
    font-size: 0.85rem;
    font-weight: 500;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-item {
    padding: 16px 18px;
    background: rgba(18, 18, 31, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.15);
    transition: border-color 0.3s ease;
}

.comment-item:hover {
    border-color: rgba(102, 126, 234, 0.35);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-author {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.9rem;
}

.comment-date {
    font-size: 0.75rem;
    color: #777;
}

.comment-star {
    margin-left: auto;
    font-size: 13px;
    color: #fbbf24;
}

.comment-content {
    color: #b0b0b0;
    line-height: 1.65;
    font-size: 0.9rem;
    padding-left: 50px;
}

.comments-empty {
    text-align: center;
    padding: 40px;
    color: #888;
}

.comments-empty-icon {
    font-size: 40px;
    margin-bottom: 10px;
    opacity: 0.4;
}

.comments-loading {
    text-align: center;
    padding: 20px;
    color: #888;
}

.load-more-comments {
    margin-top: 15px;
    text-align: center;
}

.btn-load-more {
    display: inline-block;
    padding: 10px 24px;
    background: transparent;
    color: #a78bfa;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: #667eea;
    color: #ffffff;
}

.btn-load-more:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== Comment Form (Dark Theme) ===== */
.comment-form {
    margin-bottom: 20px;
    padding: 18px;
    background: rgba(18, 18, 31, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.comment-form-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.comment-form-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.comment-form-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-form-author {
    font-weight: 600;
    color: #fff;
    font-size: 0.9rem;
}

.comment-form-rating {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.comment-form-rating label {
    font-size: 0.83rem;
    color: #888;
    margin-right: 8px;
    font-weight: 500;
}

.rating-star {
    font-size: 20px;
    cursor: pointer;
    color: #444;
    transition: color 0.2s;
    user-select: none;
}

.rating-star:hover,
.rating-star.active {
    color: #fbbf24;
}

.comment-form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(102, 126, 234, 0.25);
    border-radius: 10px;
    background: rgba(10, 10, 26, 0.6);
    color: #e0e0e0;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 90px;
    margin-bottom: 12px;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.comment-form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.comment-form-textarea::placeholder {
    color: #666;
}

.comment-form-footer {
    display: flex;
    justify-content: flex-end;
}

.btn-comment-submit {
    padding: 10px 28px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-comment-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-comment-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.comment-login-hint {
    text-align: center;
    padding: 18px;
    background: rgba(18, 18, 31, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.15);
    margin-bottom: 20px;
    color: #888;
    font-size: 0.9rem;
}

.comment-login-hint a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.comment-login-hint a:hover {
    color: #a78bfa;
}

/* ===== Toast Message ===== */
.toast-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.7rem 1.5rem;
    background: #333;
    color: #fff;
    border-radius: 8px;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85rem;
}

.toast-message.show {
    opacity: 1;
}

.toast-message.success {
    background: #27ae60;
}

.toast-message.error {
    background: #e74c3c;
}

.toast-message.warning {
    background: #f39c12;
}


/* ===== Share buttons & copy modal (theme-adaptive) ===== */
.geme-social-share p {
	color: #667eea;
	font-size: 16px;
	font-weight: 600;
	margin: 0 8px 0 0;
}
.geme-social-share a {
	display: -webkit-inline-flex;
	display: -ms-inline-flex;
	display: inline-flex;
	width: 34px;
	height: 34px;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(102, 126, 234, .15);
	color: #667eea;
	border: 1px solid rgba(102, 126, 234, .3);
	margin-left: 10px;
	-webkit-transition: all .3s;
	transition: all .3s;
}
.geme-social-share a:hover {
	background: #667eea;
	color: #fff;
	border-color: transparent;
}
.share-copy-modal {
	position: fixed;
	inset: 0;
	background: rgba(8, 8, 16, .82);
	display: none;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	z-index: 9999;
	padding: 15px;
}
.share-copy-modal.show {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
}
.share-copy-box {
	background: #0c0c1a;
	border: 1px solid rgba(102, 126, 234, .4);
	border-radius: 12px;
	max-width: 460px;
	width: 100%;
	padding: 28px 24px 24px;
	position: relative;
	box-shadow: 0 0 30px rgba(102, 126, 234, .4);
}
.share-copy-close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	color: #9190a5;
	cursor: pointer;
	transition: color .3s;
}
.share-copy-close:hover {
	color: #667eea;
}
.share-copy-title {
	margin: 0 0 6px;
	font-size: 20px;
	color: #fff;
}
.share-copy-desc {
	margin: 0 0 16px;
	color: #9190a5;
	font-size: 14px;
}
.share-copy-row {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	gap: 8px;
}
.share-copy-input {
	-webkit-box-flex: 1;
	-ms-flex: 1;
	flex: 1;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid rgba(102, 126, 234, .45);
	border-radius: 8px;
	font-size: 14px;
	color: #fff;
	background: rgba(255, 255, 255, .06);
}
.share-copy-input:focus {
	outline: none;
	border-color: #667eea;
}
.share-copy-btn {
	padding: 10px 18px;
	border: none;
	border-radius: 8px;
	background: linear-gradient(135deg, #667eea 0%, #94a5f0 100%);
	color: #fff;
	font-size: 14px;
	cursor: pointer;
	white-space: nowrap;
	transition: opacity .3s;
}
.share-copy-btn:hover {
	opacity: .9;
}
.share-copy-status {
	margin: 12px 0 0;
	font-size: 13px;
	color: #4ade80;
	min-height: 18px;
}
