/* ===== 基础重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    background: #f8f6f2;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== 右上角三个按钮 ===== */
.top-right-actions {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    gap: 10px;
}
.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    backdrop-filter: blur(4px);
    transition: all 0.3s;
}
.action-btn:hover {
    background: #c9a961;
    transform: translateY(-2px);
}
.action-btn .icon { font-size: 16px; }

/* ===== 弹窗 ===== */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.popup-content {
    background: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    max-width: 320px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.popup-close {
    position: absolute;
    top: 10px; right: 16px;
    font-size: 26px;
    cursor: pointer;
    color: #999;
}
.popup-close:hover { color: #c9a961; }
.popup-content h3 { margin-bottom: 16px; color: #1a1a1a; }
.popup-content img { margin: 0 auto 12px; border-radius: 8px; }
.phone-number {
    font-size: 28px;
    font-weight: bold;
    color: #c9a961;
    margin: 16px 0;
}

/* ===== 头部导航 ===== */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}
.logo img { height: 54px; width: auto; }
.main-nav { display: flex; gap: 32px; }
.main-nav a {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    position: relative;
    padding: 6px 0;
    transition: color 0.3s;
}
.main-nav a:hover,
.main-nav a.active { color: #c9a961; }
.main-nav a.active::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 100%; height: 2px;
    background: #c9a961;
}

/* ===== 横幅 ===== */
.hero-banner {
    position: relative;
    height: 620px;
    background: url('../images/banner.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.65));
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}
.avatar-link { margin-bottom: 20px; }
.avatar-img {
    width: 80px; height: 80px;
    border-radius: 50%;
    border: 3px solid #c9a961;
    margin: 0 auto;
    object-fit: cover;
}
.hero-title {
    font-size: 52px;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 12px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.hero-subtitle {
    font-size: 20px;
    letter-spacing: 2px;
    margin-bottom: 36px;
    color: #f0e6d2;
}
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.btn {
    padding: 14px 38px;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
}
.btn-primary {
    background: #c9a961;
    color: #fff;
    box-shadow: 0 8px 24px rgba(201,169,97,0.45);
}
.btn-primary:hover {
    background: #b8944e;
    transform: translateY(-3px);
}
.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}
.btn-secondary:hover {
    background: #fff;
    color: #1a1a1a;
    transform: translateY(-3px);
}
.btn-avatar {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
}
.btn-avatar img {
    width: 28px; height: 28px;
    border-radius: 50%;
}
.btn-avatar:hover {
    background: #fff;
    color: #1a1a1a;
    transform: translateY(-3px);
}

/* ===== 通用 section ===== */
.section { padding: 90px 0; }
.section-title {
    font-size: 36px;
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 50px;
    position: relative;
    font-weight: 700;
    letter-spacing: 2px;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px; height: 3px;
    background: #c9a961;
    margin: 16px auto 0;
}

/* ===== 公司简介 ===== */
.about-section { background: #fff; }
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-text p {
    margin-bottom: 18px;
    color: #555;
    font-size: 16px;
    line-height: 1.9;
}
.record-number {
    margin-top: 24px;
    font-size: 14px;
    color: #999;
    border-top: 1px dashed #ddd;
    padding-top: 14px;
}
.about-image img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

/* ===== 公司新闻 ===== */
.news-section { background: #f8f6f2; }
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.news-card h3 {
    font-size: 18px;
    margin: 18px 20px 8px;
    color: #1a1a1a;
}
.news-card p {
    font-size: 14px;
    color: #777;
    margin: 0 20px 22px;
    line-height: 1.7;
}

/* ===== 游戏推荐 ===== */
.games-section { background: #fff; }
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.game-item {
    text-align: center;
    padding: 24px 12px;
    border-radius: 12px;
    transition: all 0.3s;
    background: #faf8f4;
}
.game-item:hover {
    background: #fff;
    box-shadow: 0 12px 30px rgba(201,169,97,0.18);
    transform: translateY(-6px);
}
.game-item img {
    width: 140px; height: 140px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 16px;
    border: 3px solid #c9a961;
}
.game-item h4 {
    font-size: 17px;
    color: #1a1a1a;
    margin-bottom: 6px;
}
.game-item p {
    font-size: 13px;
    color: #888;
}

/* ===== 合作加盟 ===== */
.join-section { background: #f8f6f2; text-align: center; }
.join-desc {
    font-size: 17px;
    color: #666;
    margin-bottom: 40px;
}
.sticker-logos {
    display: flex;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}
.sticker {
    width: 120px; height: 120px;
    object-fit: contain;
    transition: transform 0.3s;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.12));
}
.sticker:hover { transform: rotate(-6deg) scale(1.08); }
.btn-join {
    background: #c9a961;
    color: #fff;
    padding: 16px 52px;
    font-size: 17px;
    box-shadow: 0 10px 28px rgba(201,169,97,0.4);
}
.btn-join:hover {
    background: #b8944e;
    transform: translateY(-3px);
}

/* ===== 页脚 ===== */
.main-footer {
    background: #1a1a1a;
    color: #aaa;
    text-align: center;
    padding: 32px 0;
    font-size: 14px;
}
.main-footer p { margin: 6px 0; }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr 1fr; }
    .games-grid { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: 38px; }
}
@media (max-width: 640px) {
    .main-nav { display: none; }
    .news-grid { grid-template-columns: 1fr; }
    .games-grid { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: 28px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .top-right-actions { top: 10px; right: 10px; }
    .action-btn { padding: 6px 12px; font-size: 12px; }
}