/* ============================================
   匿名玩家 - 高端极简风格样式表
   ============================================ */

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f5f5f5;
    --accent-primary: #000000;
    --accent-secondary: #333333;
    --accent-dark: #1a1a1a;
    --text-primary: #000000;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --border-color: #e8e8e8;
    --border-hover: #d0d0d0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 主容器 */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   头部样式
   ============================================ */

.header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    margin-bottom: 60px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-main {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.6px;
    line-height: 1.1;
}

.logo-sub {
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
    font-weight: 400;
    line-height: 1.2;
}

.logo-tagline {
    font-size: 11px;
    color: var(--text-tertiary);
    letter-spacing: 0.5px;
    font-weight: 500;
    margin-top: 2px;
    font-style: italic;
}


.header-utils {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.util-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
}

.util-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.tg-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}


.lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.lang-active {
    color: var(--text-primary);
}

.lang-divider {
    color: var(--border-color);
}



.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-primary);
    transition: width 0.2s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ============================================
   主内容区域
   ============================================ */

.main-content {
    margin-bottom: 0;
}

/* ============================================
   产品分类标签
   ============================================ */

.product-categories {
    display: flex;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.category-tab {
    flex: 1;
    min-width: 160px;
    padding: 20px 24px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.category-tab:hover {
    border-color: var(--accent-dark);
    background: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.category-tab.active {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

.category-tab[data-category="opt"].active {
    background: var(--text-primary);
    border-color: var(--text-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    position: relative;
}

.category-tab[data-category="opt"] .category-name::before {
    content: '🔥 ';
}

.category-tab.active .category-name {
    color: white;
}

.category-tab.active .category-desc {
    color: rgba(255, 255, 255, 0.8);
}

.category-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.4px;
}

.category-desc {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .category-tab {
        min-width: calc(50% - 6px);
    }
}

/* ============================================
   产品面板
   ============================================ */

.product-panel {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 60px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.product-panel:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.category-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.category-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.6px;
    margin-bottom: 4px;
}

.category-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
}

.refresh-btn {
    padding: 10px 20px;
    background: var(--bg-primary);
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.refresh-btn:hover {
    border-color: var(--accent-dark);
    background: var(--bg-secondary);
    transform: translateY(-1px);
}

.collapse-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    border-radius: 6px;
    font-family: inherit;
}

.collapse-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.product-info-header {
    display: grid;
    grid-template-columns: 2.5fr 1fr 0.8fr 0.8fr 1fr 1.5fr;
    gap: 16px;
    padding: 14px 24px;
    background: var(--bg-secondary);
    border-radius: 10px;
    margin-bottom: 12px;
}

.info-header-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-icon {
    font-size: 16px;
    opacity: 0.5;
}

.info-text {
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-item {
    display: grid;
    grid-template-columns: 2.5fr 1fr 0.8fr 0.8fr 1fr 1.5fr;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    align-items: center;
    position: relative;
}


.product-item:hover {
    border-color: var(--accent-dark);
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.product-item-featured:hover {
    box-shadow: var(--shadow-lg);
}

.product-materials-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.2px;
    line-height: 1.3;
    margin-bottom: 4px;
}

.product-metadata {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 4px;
    font-style: italic;
}

.product-materials {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.material-tag {
    display: inline-block;
    padding: 3px 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.3;
}

.product-credit-section {
    display: flex;
    align-items: center;
}

.product-credit-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: inherit;
    letter-spacing: -0.2px;
}

.product-state-section {
    display: flex;
    align-items: center;
}

.product-state-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
}

.product-card-type-section {
    display: flex;
    align-items: center;
}

.product-card-type {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    letter-spacing: 0.3px;
}

.product-price-section {
    display: flex;
    align-items: center;
}

.product-price-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: inherit;
    letter-spacing: -0.3px;
}


.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-tertiary);
    font-size: 15px;
}

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

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    min-width: 90px;
    letter-spacing: 0.2px;
}

.btn-icon {
    font-size: 14px;
}

.btn-copy {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

.btn-copy:hover {
    border-color: var(--accent-dark);
    background: var(--bg-secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-buy {
    background: var(--text-primary);
    border: 2px solid var(--text-primary);
    color: white;
}

.btn-buy:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0);
}

/* ============================================
   服务规则提示
   ============================================ */

.rules-notice {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--text-primary);
    padding: 16px 0;
    margin-bottom: 40px;
    position: sticky;
    top: 0;
    z-index: 99;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.rules-notice-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
}

.rules-icon {
    font-size: 18px;
}

.rules-text {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.rules-link {
    color: var(--text-primary);
    text-decoration: underline;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.rules-link:hover {
    opacity: 0.7;
}

.rules-close {
    position: absolute;
    right: 0;
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    line-height: 1;
}

.rules-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* ============================================
   服务规则区域
   ============================================ */

.service-rules-section {
    margin-top: 100px;
    margin-bottom: 80px;
    padding-top: 60px;
    border-top: 2px solid var(--border-color);
}

.rules-header {
    text-align: center;
    margin-bottom: 48px;
}

.rules-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -1.2px;
    margin-bottom: 12px;
    line-height: 1.1;
}

.rules-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

.rules-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.rule-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.rule-block:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
}

.rule-block.warning {
    border: 2px solid var(--text-primary);
    background: var(--bg-primary);
}

.rule-block.danger {
    border: 2px solid var(--text-primary);
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
}

.rule-block-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.rule-icon {
    font-size: 24px;
}

.rule-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.rule-block-content {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.8;
}

.rule-block-content p {
    margin-bottom: 16px;
}

.rule-block-content p:last-child {
    margin-bottom: 0;
}

.rule-block-content strong {
    font-weight: 600;
    color: var(--text-primary);
}

.rule-block-content ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.rule-block-content li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    line-height: 1.7;
}

.rule-block-content li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--text-secondary);
    font-weight: bold;
}

.rule-block.warning .rule-block-content,
.rule-block.danger .rule-block-content {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .rules-notice {
        padding: 12px 0;
    }
    
    .rules-notice-content {
        padding: 0 20px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .rules-text {
        font-size: 13px;
        flex: 1;
        min-width: 200px;
    }
    
    .rules-close {
        position: static;
    }
    
    .service-rules-section {
        margin-top: 60px;
        padding-top: 40px;
    }
    
    .rules-title {
        font-size: 28px;
    }
    
    .rules-subtitle {
        font-size: 14px;
    }
    
    .rule-block {
        padding: 24px;
    }
    
    .rule-title {
        font-size: 20px;
    }
    
    .rule-block-content {
        font-size: 14px;
    }
}

/* ============================================
   页脚
   ============================================ */

.footer {
    margin-top: 100px;
    padding: 64px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

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

.footer-section h3,
.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.3px;
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-tagline {
    color: var(--text-tertiary);
    font-style: italic;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    color: var(--text-tertiary);
    font-size: 12px;
}

/* ============================================
   加载动画
   ============================================ */

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.3s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-text {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.loader-char {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-primary);
    animation: charFade 1.5s ease-in-out infinite;
    letter-spacing: -1px;
}

.loader-char:nth-child(1) { animation-delay: 0s; }
.loader-char:nth-child(2) { animation-delay: 0.2s; }
.loader-char:nth-child(3) { animation-delay: 0.4s; }
.loader-char:nth-child(4) { animation-delay: 0.6s; }

@keyframes charFade {
    0%, 100% { 
        opacity: 1;
    }
    50% { 
        opacity: 0.3;
    }
}

.loader-progress {
    width: 200px;
    height: 2px;
    background: var(--bg-tertiary);
    border-radius: 1px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--text-primary);
    width: 0%;
    animation: progress 1.5s ease-in-out forwards;
}

@keyframes progress {
    to { width: 100%; }
}

/* ============================================
   响应式设计
   ============================================ */

@media (max-width: 968px) {
    .product-info-header {
        display: none;
    }
    
    .product-item {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-materials-section,
    .product-credit-section,
    .product-state-section,
    .product-card-type-section,
    .product-price-section {
        padding-bottom: 16px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .product-actions {
        width: 100%;
        justify-content: stretch;
        padding-top: 16px;
        border-top: 1px solid var(--border-color);
    }
    
    .btn {
        flex: 1;
        min-width: 120px;
    }
    
    .category-tab {
        min-width: calc(50% - 6px);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .header {
        padding: 24px 0;
        margin-bottom: 48px;
    }
    
    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    
    .logo-img {
        height: 48px;
    }
    
    .logo-main {
        font-size: 24px;
    }
    
    .logo-sub {
        font-size: 11px;
    }
    
    .product-panel {
        padding: 32px;
    }
    
    .product-item {
        padding: 24px;
        gap: 24px;
    }
    
    .product-name {
        font-size: 18px;
    }
    
    .product-price-value {
        font-size: 22px;
    }
    
    .category-tab {
        min-width: calc(50% - 6px);
        padding: 16px 20px;
    }
    
    .btn {
        padding: 10px 20px;
        min-width: 100px;
    }
}

/* ============================================
   滚动条样式
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* ============================================
   选择文本样式
   ============================================ */

::selection {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* ============================================
   右下角固定角色图片
   ============================================ */

.floating-character {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 200px;
    height: auto;
    max-height: 400px;
    z-index: 50;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0;
    margin: 0;
    flex-direction: column;
}

.character-img {
    width: 100%;
    height: auto;
    max-width: 200px;
    object-fit: contain;
    object-position: bottom right;
    filter: drop-shadow(0 -2px 8px rgba(0, 0, 0, 0.08));
    transition: transform 0.3s ease;
    display: block;
    pointer-events: auto;
    cursor: pointer;
}

.floating-character:hover .character-img {
    transform: translateY(-3px);
}

.character-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-character:hover .character-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

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

.menu-item:first-child {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 4px;
    padding-bottom: 12px;
}

.menu-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--text-secondary);
}

.menu-item span:not(.menu-username) {
    flex: 1;
}

.menu-username {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 400;
    margin-left: auto;
}

@media (max-width: 1200px) {
    .floating-character {
        width: 160px;
        max-height: 350px;
    }
    
    .character-img {
        max-width: 160px;
    }
    
    .character-menu {
        min-width: 180px;
        right: 0;
    }
}

@media (max-width: 768px) {
    .floating-character {
        width: 120px;
        max-height: 250px;
    }
    
    .character-img {
        max-width: 120px;
    }
    
    .character-menu {
        min-width: 160px;
        font-size: 13px;
        padding: 6px;
    }
    
    .menu-item {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .floating-character {
        width: 100px;
        max-height: 200px;
    }
    
    .character-img {
        max-width: 100px;
    }
}
