/* ==================== 基础重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, #f9f5e9 0%, #f5ecd6 100%);
    color: #333;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.page-wrapper {
    max-width: 750px;
    margin: 0 auto;
    padding: 16px 12px 30px;
}

/* ==================== 金色渐变文字动画 ==================== */
.gold-gradient,
.site-title,
.domain-link,
.section-title,
.game-name,
.tool-name {
    background: linear-gradient(90deg, #b8860b, #ffd700, #ffec8b, #b8860b, #ffd700);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldFlow 3s linear infinite;
}

@keyframes goldFlow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* ==================== 1. 网站标题 ==================== */
.site-header {
    text-align: center;
    padding: 18px 0 10px;
}

.site-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 2px;
    display: inline-block;
}

/* ==================== 2. 顶部永久域名 ==================== */
.domain-bar,
.domain-bottom {
    text-align: center;
    font-size: 14px;
    color: #8b7355;
    margin-bottom: 14px;
}

.domain-link {
    font-weight: 700;
    margin-left: 6px;
    background: linear-gradient(90deg, #b8860b, #ffd700);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldFlow 3s linear infinite;
}

/* ==================== 3. 轮播图（金色流动边框 + 右→左平滑滑动） ==================== */
.banner-section {
    margin-bottom: 16px;
}

.banner-slider {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    padding: 3px;
    background: linear-gradient(90deg, #b8860b, #ffd700, #ffec8b, #b8860b, #ffd700);
    background-size: 200% auto;
    animation: borderFlow 2.5s linear infinite;
    box-shadow: 0 4px 16px rgba(184, 134, 11, 0.25);
}

@keyframes borderFlow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.banner-track {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.5s ease-in-out;
}

.banner-item {
    min-width: 100%;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #1a0a00;
}

.banner-item img {
    width: 100%;
    height: auto;
    min-height: 160px;
    object-fit: cover;
    display: block;
}

/* ==================== 4. 公告滚动 ==================== */
.notice-section {
    margin-bottom: 16px;
}

.notice-box {
    border: 2px solid #d4af37;
    border-radius: 10px;
    background: #fffbe8;
    overflow: hidden;
    padding: 10px 14px;
    box-shadow: inset 0 0 10px rgba(212, 175, 55, 0.15);
}

.notice-track {
    display: flex;
    white-space: nowrap;
    animation: marquee 12s linear infinite;
}

.notice-text {
    display: inline-block;
    padding-right: 40px;
    color: #8b6914;
    font-size: 14px;
    font-weight: 600;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ==================== 5. 客服 + 下载卡片区 ==================== */
.contact-section {
    margin-bottom: 18px;
}

.contact-card {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.contact-left,
.contact-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    font-size: 15px;
    font-weight: 700;
    gap: 5px;
}

.contact-left {
    border-right: 1px solid #f0e6d2;
}

.contact-label {
    color: #d35400;
}

.contact-value,
.download-text {
    font-weight: 800;
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff, #ff6b6b);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: multiColorFlash 1.5s linear infinite;
}

@keyframes multiColorFlash {
    0% { background-position: 0% center; }
    100% { background-position: 300% center; }
}

.contact-right {
    color: #d35400;
}

.plane-icon {
    font-size: 16px;
}

/* ==================== 6 / 8. 分区标题 ==================== */
.section-title {
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    margin: 18px 0 14px;
    color: #b8860b;
    letter-spacing: 1px;
    background: none;
    -webkit-text-fill-color: #b8860b;
}

.title-line {
    margin: 0 8px;
    color: #b8860b;
    opacity: 0.7;
}

/* ==================== 7. 热门游戏 ==================== */
.games-section {
    margin-bottom: 10px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.game-card {
    background: #fff;
    border-radius: 10px;
    padding: 10px 6px 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 6px;
    background: #1a1a1a;
}

.game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-name {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 4px;
}

.game-intro {
    font-size: 10px;
    color: #e74c3c;
    line-height: 1.3;
    min-height: 26px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-btn {
    display: inline-block;
    width: 100%;
    padding: 6px 0;
    border-radius: 16px;
    background: linear-gradient(90deg, #d4af37, #f0d878, #d4af37);
    background-size: 200% auto;
    color: #4a3000;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.35);
    animation: goldFlow 3s linear infinite;
}

/* ==================== 9. 实用工具 ==================== */
.tools-section {
    margin-bottom: 18px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.tool-card {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 14px;
    padding: 10px 10px;
    color: #fff;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 62px;
}

.tool-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 8px;
    flex-shrink: 0;
    background: #000;
}

.tool-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tool-info {
    flex: 1;
    min-width: 0;
}

.tool-name {
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 3px;
    line-height: 1.2;
    /* 彩色闪烁效果 */
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #ff6b6b);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: colorShimmer 2.5s linear infinite;
}

@keyframes colorShimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.tool-enter {
    font-size: 10px;
    color: #aaa;
}

.tool-go {
    position: absolute;
    right: 10px;
    bottom: 6px;
    font-size: 9px;
    color: #888;
    font-weight: 700;
}

/* ==================== 10 / 11 / 12. 页脚 ==================== */
.site-footer {
    text-align: center;
    padding: 24px 0 10px;
    color: #8b7355;
    font-size: 13px;
    line-height: 1.8;
}

.copyright {
    margin-bottom: 10px;
    color: #8b6914;
    font-weight: 600;
}

.domain-bottom {
    margin-bottom: 10px;
}

.site-intro {
    color: #8b7355;
    font-size: 12px;
    letter-spacing: 1px;
}

.extra-text {
    color: #a08040;
    font-size: 12px;
    margin-top: 4px;
}

/* ==================== 后台入口 ==================== */
.admin-entry {
    text-align: center;
    margin-top: 20px;
}

.admin-entry a {
    font-size: 12px;
    color: #bbb;
}

/* ==================== 响应式 ==================== */
@media (max-width: 480px) {
    .site-title {
        font-size: 22px;
    }

    .games-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .game-icon {
        width: 44px;
        height: 44px;
    }

    .game-name {
        font-size: 11px;
    }

    .game-intro {
        font-size: 9px;
        min-height: 24px;
    }

    .game-btn {
        font-size: 11px;
        padding: 5px 0;
    }

    .tool-name {
        font-size: 12px;
    }

    .tool-enter {
        font-size: 9px;
    }

    .contact-left,
    .contact-right {
        font-size: 13px;
        padding: 12px 6px;
    }
}

@media (max-width: 360px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
 * 作者：海阔技术
 * Telegram：@haikuojishu
 * 专业网站、软件、小程序制作 / 定制开发
 * ============================================================ */
