:root {
    --bg-gradient: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    --accent-color: #ffcc00; /* 金黄色 */
    --text-main: #e2e8f0;    /* 浅灰文字 */
    --text-white: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.08); /* 磨砂玻璃底色 */
}
/* 品牌风格变量 - 差异化调整 */
:root {
    --brand-primary: #ff4500; /* 修改了主题色，使其与旧品牌风格区分 */
    --brand-name: "nnph";
}

/* 统一修改品牌样式类 */
.nnph-logo { content: url('../img/logo-nnph.webp'); }
.footer-nnph-text { color: var(--brand-primary); }

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-gradient) !important;
    color: var(--text-main) !important;
    line-height: 1.7;
    margin: 0;
    padding: 20px 10px;
}

/* 主布局 */
.main-wrapper {
    max-width: 850px;
    margin: 0 auto;
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

header { text-align: center; padding: 20px 0; }

/* 容器内部清理 */
.container, .about-section, .faq-section, .game-container, .download-section, .features-section {
    background: transparent !important;
    padding: 20px 0;
}

/* 标题与文字颜色 */
h1, h2, h3, .logo { color: var(--accent-color) !important; }
p, li, .faq-item span, #score-display { color: var(--text-main) !important; }
strong { color: var(--text-white) !important; }

/* 链接统一颜色 */
a { color: var(--accent-color) !important; text-decoration: none; transition: 0.3s; }
a:hover { text-decoration: underline; opacity: 0.8; }

/* 游戏卡片布局 */
.game-item {
    display: flex !important;
    align-items: center;
    gap: 20px;
    padding: 20px !important;
    text-align: left !important;
    background: rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 15px;
    margin-bottom: 15px;
}

/* 图片适配 */
.game-item img, .download-section img {
    width: 120px !important;
    height: 120px !important;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

/* 按钮风格 */
.btn {
    background: var(--accent-color) !important;
    color: #000 !important;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
    text-align: center;
}
.btn-game { margin-bottom: 10px !important; width: auto !important; }
.btn-details { margin-top: 5px !important; display: block; border: 1px solid var(--accent-color); padding: 5px 10px; border-radius: 5px; }

/* 信任证章 */
.trust-badges { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.badge-card { display: flex; align-items: center; justify-content: flex-start; gap: 15px; background: rgba(0,0,0,0.25); padding: 16px; border-radius: 12px; }

/* 翻牌游戏网格 */
.memory-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 50px) !important;
    gap: 8px !important;
    margin: 15px auto !important;
    width: 108px !important;
    justify-content: center;
}
.card-box { width: 50px; height: 50px; background: #2c3e50; color: white; display: flex; align-items: center; justify-content: center; border-radius: 5px; cursor: pointer; }

/* 响应式适配 */
@media (max-width: 600px) {
    .main-wrapper { border-radius: 0 !important; }
    .btn-group { display: flex; flex-direction: column; align-items: center; gap: 12px; }
    .btn { width: 90%; }
}

@media (min-width: 768px) {
    .trust-badges { flex-direction: row; }
    .badge-card { flex: 1; justify-content: center; }
    .download-section { display: flex !important; align-items: center; justify-content: center; gap: 40px; }
}

/* FAQ 列表容器 */
.faq-list { 
    list-style: none !important; 
    padding: 0 !important; 
    margin: 20px 0;
}

/* 每一个独立的 FAQ 卡片 */
.faq-item { 
    background: rgba(0, 0, 0, 0.25) !important; /* 深色磨砂质感 */
    padding: 20px; 
    margin-bottom: 15px; 
    border-radius: 15px; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

/* 问题标题 */
.faq-question { 
    font-weight: 800; 
    color: var(--accent-color) !important; /* 金黄色标题 */
    display: flex; 
    align-items: center; 
    gap: 12px;
    font-size: 17px;
    margin-bottom: 10px;
}

/* 问号图标装饰 */
.faq-icon {
    background: var(--accent-color);
    color: #000;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

/* 回答内容 */
.faq-answer { 
    color: var(--text-main) !important; 
    line-height: 1.6; 
    padding-left: 36px; /* 与标题文字对齐 */
    font-size: 15px;
    opacity: 0.9;
}

/* Logo 容器样式 */
.logo-link {
    display: block;
    text-align: center;
    padding: 10px 0;
}

/* 统一 Logo 图片尺寸 */
.site-logo {
    max-width: 200px;  /* 移动端 Logo 宽度 */
    width: 100%;       /* 确保不会溢出 */
    height: auto;      /* 保持比例 */
    display: inline-block;
    vertical-align: middle;
}

/* PC 端适配：稍微放大一点 */
@media (min-width: 768px) {
    .site-logo {
        max-width: 280px; /* 电脑端 Logo 稍大 */
    }
}

/* 游戏画廊布局 */
.game-gallery {
    display: flex;
    justify-content: space-between; /* 或者使用 space-around */
    gap: 15px; /* 图片之间的间距 */
    margin: 20px 0;
}

.game-gallery img {
    width: 32%; /* 让三张图片各占约三分之一宽度 */
    height: auto;
    border-radius: 8px; /* 添加圆角更美观 */
    object-fit: cover;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* 针对手机端的响应式调整 */
@media (max-width: 600px) {
    .game-gallery {
        flex-direction: column; /* 手机端改为垂直排列 */
    }
    .game-gallery img {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* 优化游戏介绍文字 */
.game-desc {
    font-size: 14px;
    color: #a0aec0 !important; /* 比主文字颜色稍暗，增加层次感 */
    margin: 8px 0;
    line-height: 1.5;
}

/* 优化按钮组间距 */
.btn-group {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
}

/* 手机端响应式适配 */
@media (max-width: 600px) {
    .game-item {
        flex-direction: column; /* 手机端改为垂直排列 */
        text-align: center;
        padding: 20px !important;
    }

    .game-item img {
        width: 100% !important;
        height: 180px !important; /* 手机端给图片多一点空间 */
        margin-bottom: 15px;
    }

    .game-info {
        width: 100%;
        text-align: center;
    }

    .btn-group {
        flex-direction: column; /* 手机端按钮垂直堆叠 */
        gap: 8px;
    }

    .btn-game, .btn-details {
        width: 100% !important; /* 按钮撑满全屏 */
        margin: 0 !important;
    }

    /* 翻牌游戏网格在手机上居中 */
    .memory-grid {
        margin: 15px auto !important;
    }
}

