/* 王者荣耀充值官网 - 黑色主题、响应式 */
:root {
    --bg-dark: #0a0a0c;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a24;
    --text-primary: #f0e6d8;
    --text-secondary: #a89888;
    --accent-gold: #c9a227;
    --accent-gold-light: #e8d48a;
    --accent-red: #8b3a3a;
    --border-subtle: rgba(201, 162, 39, 0.2);
    --shadow-glow: 0 0 24px rgba(201, 162, 39, 0.15);
    --radius: 8px;
    --header-h: 64px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-dark);
    background-image: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(80, 50, 30, 0.15), transparent),
        linear-gradient(180deg, var(--bg-dark) 0%, #0d0d10 100%);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========== 头部 ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(10, 10, 12, 0.95) 0%, rgba(10, 10, 12, 0.85) 100%);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-glow);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 35px;
    height: 35px;
    border-radius: var(--radius);
    object-fit: cover;
}

.logo h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    margin-left: 16px;
    padding: 6px 10px;
    font-size: 1.1rem;
    line-height: 1;
    color: var(--text-primary);
    background: transparent;
    border-radius: var(--radius);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
}

.nav-main ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 28px;
}

.nav-main a {
    font-weight: 500;
    padding: 8px 0;
}

/* ========== 通用区块 ========== */
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 20px;
}

.section-title {
    margin: 0 0 32px;
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    position: relative;
}
.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    margin: 12px auto 0;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    border-radius: 2px;
}

/* ========== 皮肤展示 ========== */
.skin-section {
    background: linear-gradient(180deg, transparent 0%, rgba(20, 18, 15, 0.5) 50%, transparent 100%);
}

.skin-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.skin-card {
    margin: 0;
}

.skin-link {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.skin-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(201, 162, 39, 0.4);
    text-decoration: none;
}

.skin-img-wrap {
    position: relative;
    aspect-ratio: 764 / 474;
    overflow: hidden;
}

.skin-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.skin-link:hover .skin-img-wrap img {
    transform: scale(1.05);
}

.skin-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 100%);
    color: var(--text-primary);
}
.skin-info h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 600;
}
.skin-info p {
    margin: 0;
    font-size: 10px;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.skin-note {
    margin-top: 24px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.skin-note a {
    color: inherit;
}

/* ========== 皮肤详情页 ========== */
.detail-back {
    line-height: 0.3;
    font-size: 0.9rem;
    margin-bottom: 0px;
    margin-top: -50px;

}
.detail-back a {
    color: var(--text-secondary);
}
.detail-back a:hover {
    color: var(--accent-gold);
}

.detail-content .skin-detail-block {
    max-width: 800px;
    margin: 0 auto;
}
.detail-content .detail-img-wrap {
    margin-bottom: 20px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-glow);
}
.detail-content .detail-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
}
.detail-content .skin-detail-block h2 {
    font-size: 1.5rem;
    color: var(--accent-gold-light);
    margin: 0 0 8px;
}
.detail-content .detail-slogan {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 16px;
}
.detail-content .detail-desc {
    color: var(--text-primary);
    line-height: 1.8;
    margin: 0;
}
.detail-content .detail-desc h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin: 28px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-subtle);
}
.detail-content .detail-desc h3:first-child {
    margin-top: 0;
}
.detail-content .detail-desc p {
    margin: 0 0 14px;
    text-align: justify;
}
.detail-content .detail-desc p:last-child {
    margin-bottom: 0;
}
.detail-content .detail-desc strong {
    font-weight: 700;
    color: var(--accent-gold-light);
}

/* ========== 充值流程 ========== */
.recharge-section {
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.recharge-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.recharge-steps .step {
    position: relative;
    padding: 24px;
    background: var(--bg-dark);
    border-radius: var(--radius);
    border: 1px solid var(--border-subtle);
    text-align: center;
    counter-increment: step;
}
.recharge-steps .step::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -12px;
    width: 24px;
    height: 2px;
    background: var(--border-subtle);
}
.recharge-steps .step:first-child::before {
    display: none;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--bg-dark);
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(201, 162, 39, 0.4);
}

.step h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    color: var(--text-primary);
}
.step p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ========== 温馨提示 ========== */
.tips-section ul {
    max-width: 720px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.tips-list li {
    position: relative;
    padding: 12px 0 12px 28px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}
.tips-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
}

/* ========== 常见问题 ========== */
.faq-section {
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
}

/* ========== 下载游戏 ========== */
.download-section .download-image-wrap {
    max-width: 420px;
    margin: 0 auto;
}
.download-section img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
    box-shadow: var(--shadow-glow);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

.faq-item {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--bg-dark);
    border-radius: var(--radius);
    border: 1px solid var(--border-subtle);
}
.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item dt {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--accent-gold-light);
}
.faq-item dd {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========== 底部 ========== */
.site-footer {
    margin-top: 48px;
    padding: 32px 20px;
    background: linear-gradient(180deg, var(--bg-card) 0%, #08080a 100%);
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin-bottom: 16px;
}
.footer-links a {
    margin: 0 16px;
    font-size: 0.9rem;
}

.footer-copy {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-badges {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-badges img {
    height: 40px;
    width: auto;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .skin-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .recharge-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .recharge-steps .step::before {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 56px;
    }
    .nav-toggle {
        display: inline-flex;
    }
    .nav-main {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: linear-gradient(180deg, rgba(10, 10, 12, 0.98) 0%, rgba(10, 10, 12, 0.96) 100%);
        border-bottom: 1px solid var(--border-subtle);
        display: none;
    }
    .nav-main.nav-open {
        display: block;
    }
    .nav-main ul {
        flex-direction: column;
        padding: 8px 16px 12px;
        gap: 16px;
    }
    .nav-main a {
        font-size: 0.95rem;
    }
    .recharge-steps {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        gap: 16px;
    }
    .recharge-steps .step {
        flex: 0 0 220px;
    }
    .section-inner {
        padding: 32px 16px;
    }
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }
    .skin-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .footer-links a {
        margin: 0 8px;
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 0 12px;
    }
    .logo img {
        width: 44px;
        height: 44px;
    }
    .nav-main ul {
        gap: 12px;
    }
    .nav-main a {
        font-size: 0.9rem;
    }
}
