/* ==========================================================================
   1. 基础重置与全局变量定义
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

:root {
    --bg-color: #02120b;         /* 深墨绿接近黑色背景 */
    --card-bg: #072216;          /* 卡片墨绿色背景 */
    --border-color: #123e28;     /* 边框暗绿色 */
    --primary-green: #14d97a;    /* 亮绿色高亮 */
    --text-white: #ffffff;
    --text-gray: #8ba396;
}

body {
    background-color: var(--bg-color);
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding-bottom: 40px;
}

/* ==========================================================================
   2. 固定头部导航栏样式
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: rgba(2, 18, 11, 0.9);
    backdrop-filter: blur(10px); 
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.header-container {
    max-width: 600px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: #e3c16f; /* 金色字体 */
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 32px;      
    width: auto;       
    object-fit: contain;
    display: block;
}

/* ==========================================================================
   3. 主体布局区域
   ========================================================================== */
.content-wrapper {
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
    margin-top: 100px; 
}

.hero-section {
    text-align: center;
    margin-bottom: 20px;
}

.hero-section h1 {
    font-size: 28px; 
    font-weight: 800;
    line-height: 1.3;
}

.text-green {
    color: var(--primary-green);
}

.subtitle {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.5;
}

/* ==========================================================================
   4. 快捷进入区域样式
   ========================================================================== */
.entrance-section {
    margin-bottom: 40px;
}

.quick-entrance-box {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 6px 6px 16px;
    height: 60px;
}

.entrance-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    font-size: 14px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: 1; 
    margin-right: 8px;
}

.verify-btn {
    background-color: var(--primary-green);
    color: #000000;
    border: none;
    font-weight: bold;
    font-size: 15px;
    padding: 0 24px;
    height: 48px;
    border-radius: 24px;
    cursor: pointer;
    flex-shrink: 0; 
    transition: transform 0.1s ease, background-color 0.2s;
}

.verify-btn:hover {
    background-color: #11be6a;
}

.verify-btn:active {
    transform: scale(0.97); 
}

.security-note {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 15px;
    padding: 0 5px;
    color: var(--text-gray);
    font-size: 12px;
    line-height: 1.4;
}

/* ==========================================================================
   5. 官方游戏列表网格（固定一行显示2个）
   ========================================================================== */
.domains-section h2 {
    font-size: 18px;
    margin-bottom: 6px;
}

.verified-count {
    color: var(--primary-green);
    font-size: 12px;
    margin-bottom: 16px;
}

.domain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 10px;
    margin-bottom: 35px;
}

.domain-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 10px; 
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-white);
    transition: border-color 0.2s, background-color 0.2s;
    overflow: hidden; 
}

.domain-card:hover {
    border-color: var(--primary-green);
    background-color: #0b2d1d;
}

.card-num {
    background-color: #103321;
    color: var(--primary-green);
    width: 20px; 
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    font-weight: bold;
    margin-right: 6px;
    flex-shrink: 0; 
}

.card-url {
    font-weight: 500;
    font-size: 13px; 
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.check-icon {
    font-size: 11px;
    flex-shrink: 0; 
}

/* ==========================================================================
   6. 底部三栏卡片区（图标与文字同行）
   ========================================================================== */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.footer-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 12px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-card-header {
    display: flex;
    align-items: center;
    gap: 6px;              
    margin-bottom: 6px;    
}

.footer-icon {
    font-size: 16px;       
    flex-shrink: 0;
}

.footer-card h3 {
    font-size: 12px;       
    font-weight: 600;
    white-space: nowrap;   
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-card p {
    color: var(--text-gray);
    font-size: 11px;
}

/* ==========================================================================
   7. 页面最底部版权与品牌联盟区（修改：确保字体颜色完全一样）
   ========================================================================== */
.footer-bottom-info {
    border-top: 1px solid var(--border-color); 
    margin-top: 30px;
    padding-top: 25px;
    text-align: center;
    color: var(--text-gray); /* 控制整体外部版权字体的暗灰色 */
    font-size: 12px;
    line-height: 1.6;
}

.footer-tip {
    font-size: 12px;
    margin-top: 6px;
    opacity: 0.9; 
}

/* 核心追加：强制联盟里的超链接文本继承完全一样的暗灰色 */
.brand-link {
    color: var(--text-gray) !important; 
    text-decoration: none;             /* 移除下划线 */
    margin: 0 4px;
    transition: color 0.2s ease;
}

/* 悬停时的视觉动效，提升高级感 */
.brand-link:hover {
    color: var(--primary-green) !important; /* 悬停时变成科技亮绿 */
    text-decoration: underline;            /* 悬停时显现优雅的下划线 */
}

/* ==========================================================================
   8. 移动端自适应完美控制
   ========================================================================== */
@media (max-width: 580px) {
    .hero-section h1 {
        font-size: 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr; 
        gap: 12px; 
    }

    .footer-card {
        padding: 16px;
    }

    .footer-icon {
        font-size: 18px;
    }

    .footer-card h3 {
        font-size: 14px;
    }

    .footer-card p {
        font-size: 12px;
    }
    
    .quick-entrance-box {
        padding: 6px 6px 6px 12px;
    }
    .verify-btn {
        padding: 0 16px;
        font-size: 14px;
    }
}
