/* =============================================
   亿梦科技游戏官网 — 样式系统
   暗黑魔幻风：深暗底色 + 金红主色调
   ============================================= */

/* ---------- 设计令牌 ---------- */
:root {
    --color-bg:          #080810;
    --color-surface:     #13131f;
    --color-surface-2:   #1a1a2e;
    --color-nav-bg:      rgba(5, 5, 15, 0.80);
    --color-accent:      #c0392b;       /* 红色主色 */
    --color-accent-2:    #e67e22;       /* 金橙辅色 */
    --color-gold:        #f0c040;
    --color-text:        #e8e0d0;
    --color-text-muted:  rgba(232, 224, 208, 0.55);
    --color-white:       #ffffff;
    --color-card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --color-card-border: rgba(192, 57, 43, 0.25);

    --radius-card:    0.875rem;
    --radius-icon:    0.875rem;

    --transition:     all 0.3s ease-in-out;

    --font-xl:     2rem;
    --font-lg:     1.375rem;
    --font-body:   1.0625rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a { text-decoration: none; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

@media (max-width: 870px)  { html { font-size: 13px; } }
@media (max-width: 550px)  { html { font-size: 10px; } }

body {
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system,
                 BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

/* =============================================
   导航栏
   ============================================= */
.head {
    width: 100%;
    backdrop-filter: blur(12px);
    background-color: var(--color-nav-bg);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(192, 57, 43, 0.18);
}

.head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 3.75rem;
    max-width: 90rem;
    margin: 0 auto;
}

/* Logo 组合（图标 + 文字） */
.logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.4rem;
    object-fit: cover;
    flex-shrink: 0;
    /* 轻微发光边框，融入游戏风格 */
    box-shadow: 0 0 8px rgba(240, 192, 64, 0.4);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-accent-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--color-gold);
}

/* =============================================
   首屏 Banner
   ============================================= */
.hero-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    background: #080810;
}

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

/* 底部渐变过渡 */
.hero-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background: linear-gradient(to bottom, transparent, var(--color-bg));
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    bottom: 2.5rem;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 2;
}

.hero-tagline {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.4em;
    color: var(--color-gold);
    text-shadow: 0 0 20px rgba(192, 57, 43, 0.9), 0 2px 12px rgba(0,0,0,0.8);
}

/* =============================================
   游戏列表区域
   ============================================= */
.games-section {
    background-color: var(--color-surface-2);
    background-image: url('./img/pattern.svg');
    background-size: 160px 160px;
    background-repeat: repeat;
    padding: 3rem 1rem 4rem;
}

.section-title {
    text-align: center;
    font-size: var(--font-xl);
    font-weight: 900;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-accent-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 游戏卡片网格 */
.game-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    justify-content: center;
    max-width: 85rem;
    margin: 0 auto;
}

/* ---- 游戏卡片 ---- */
.game-card {
    width: 35.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 2rem 2rem 2.5rem;
    border-radius: var(--radius-card);
    background: var(--color-surface);
    border: 1px solid var(--color-card-border);
    box-shadow: var(--color-card-shadow);
    transition: var(--transition);
    cursor: pointer;
    animation: fadeInUp 0.5s ease both;
}

.game-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(240, 192, 64, 0.4);
    box-shadow: 0 16px 48px 0 rgba(192, 57, 43, 0.3);
}

.game-card .card-banner {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    display: block;
}

.card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.card-icon {
    width: 5rem;
    height: 5rem;
    border-radius: var(--radius-icon);
    border: 2px solid rgba(240, 192, 64, 0.35);
    margin-top: -3.5rem;
    margin-bottom: 1.25rem;
    background: #111;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0,0,0,0.6);
}

.card-title {
    font-size: var(--font-lg);
    font-weight: 900;
    letter-spacing: 0.06em;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 0.5rem;
}

.card-desc {
    font-size: var(--font-body);
    font-weight: 400;
    color: var(--color-text-muted);
    line-height: 1.8;
    text-align: center;
    min-height: 5rem;
    margin-bottom: 1rem;
}

.store-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.store-row {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}

.store-row a img {
    width: 11.75rem;
    height: 4rem;
    border-radius: 0.5rem;
    transition: opacity 0.2s;
}

.store-row a:hover img { opacity: 0.85; }
.store-row.hidden { display: none; }

/* =============================================
   联系 / 注销申请区域
   ============================================= */
.contact-section {
    background-color: var(--color-bg);
    background-image: url('./img/pattern.svg');
    background-size: 160px 160px;
    background-repeat: repeat;
    padding: 3rem 1rem 4rem;
    display: flex;
    justify-content: center;
}

.contact-card {
    width: 100%;
    max-width: 480px;
    background: var(--color-surface);
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid var(--color-card-border);
    box-shadow: var(--color-card-shadow);
}

.contact-title {
    height: 3.25rem;
    line-height: 3.25rem;
    text-align: center;
    background: linear-gradient(135deg, #8b0000 0%, var(--color-accent) 100%);
    color: var(--color-gold);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.contact-body {
    padding: 1.25rem 1.5rem;
}

.radio-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    height: 2.5rem;
    cursor: pointer;
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

.ipt {
    display: block;
    width: 100%;
    height: 2.5rem;
    border: none;
    border-bottom: 1px solid rgba(192, 57, 43, 0.3);
    padding: 0 0.5rem;
    margin: 0.625rem 0;
    outline: none;
    font-size: 0.9375rem;
    font-family: inherit;
    background: transparent;
    color: var(--color-text);
}

.ipt::placeholder { color: rgba(255,255,255,0.25); }
.ipt:focus { border-bottom-color: var(--color-gold); }

.contact-submit {
    height: 3.25rem;
    line-height: 3.25rem;
    text-align: center;
    background: linear-gradient(135deg, #8b0000 0%, var(--color-accent) 100%);
    color: var(--color-gold);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: opacity 0.2s;
}

.contact-submit:hover { opacity: 0.88; }

/* =============================================
   页脚
   ============================================= */
.footer {
    background: #04040a;
    padding: 2.5rem 1rem 1.75rem;
    text-align: center;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.footer-divider {
    width: 60px;
    height: 1px;
    background: rgba(192, 57, 43, 0.4);
    margin: 1.25rem auto;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
}

/* =============================================
   动效
   ============================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .game-card { animation: none; }
    .game-card:hover { transform: none; }
}
