/* ==========================================================================
   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: rgba(7, 34, 22, 0.82); /* 💡 修复：已改为 82% 微透墨绿，实现半透明效果 */
    --border-color: #123e28;     
    --primary-green: #14d97a;    
    --text-white: #ffffff;
    --text-gray: #8ba396;
}

body {
    background-image: linear-gradient(rgba(2, 18, 11, 0.75), rgba(0, 0, 0, 0.75)), url('https://xxxxxx.com'); 
    background-attachment: fixed; 
    background-size: cover; 
    background-position: center center; 
    background-repeat: no-repeat; 
    background-color: var(--bg-color); 
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding-bottom: 40px;
    width: 100%;
}

/* 语言选择器 */
.lang-selector {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(7, 34, 22, 0.5); 
    border: 1px solid rgba(147, 163, 150, 0.3);
    border-radius: 12px;
    padding: 4px 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.globe-icon {
    width: 16px;
    height: 16px;
}

.arrow-icon {
    font-size: 10px;
    color: var(--text-gray);
    transition: transform 0.2s ease;
}

/* ==========================================================================
   2. 固定头部导航栏样式（PC端样式）
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 650px; /* 💡 需求修改：已由 600px 改为 650px */
    height: 70px;
    z-index: 1000;
    border-left: 1px solid var(--border-color);  /* PC端：左边细绿线条 */
   border-right: 1px solid var(--border-color); /* PC端：右边细绿线条 */
    overflow: hidden; 
}

.header-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px; 
    border-bottom: 1px solid var(--border-color);
    background-image: linear-gradient(rgba(2, 18, 11, 0.85), rgba(2, 18, 11, 0.85)), url('/images/bg.jpg');
    background-size: cover;
    background-position: center top; 
    backdrop-filter: blur(10px); 
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px; 
}

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

/* ==========================================================================
   3. 主体布局区域（PC端样式）
   ========================================================================== */
.content-wrapper {
    width: 100%;
    max-width: 650px; /* 💡 需求修改：已由 600px 改为 650px */
    margin: 70px auto 0 auto; 
    background-image: linear-gradient(rgba(2, 18, 11, 0.75), rgba(0, 0, 0, 0.75)), url('/images/bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    border-radius: 0 0 24px 24px; 
    padding: 40px 20px; 
}

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

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

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

/* ==========================================================================
   追加：图片自动轮播图核心 UI 样式
   ========================================================================== */
.carousel-viewport {
    width: 100%;
    position: relative;
    overflow: hidden; /* 隐藏窗口外的图片 */
    border-radius: 16px; /* 圆角契合整体风格 */
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    aspect-ratio: 16 / 9; /* 锁定 16:9 黄金游戏画面比例，防止手机端变形 */
    margin-bottom: 20px;
}

.carousel-track {
    display: flex; /* 让所有图片横向一字排开 */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); /* 平滑丝滑切换 */
    width: 100%;
    height: 100%;
}

.carousel-item {
    flex: 0 0 100%; /* 每一页图片占满 100% 宽度 */
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 图片自适应裁剪填充，绝不拉伸变形 */
    display: block;
}

/* 底部半透明文字遮罩层 */
.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(2, 18, 11, 0.95) 0%, rgba(2, 18, 11, 0.4) 70%, transparent 100%);
    padding: 20px 16px 15px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.carousel-caption .card-url {
    color: var(--text-white);
    font-size: 16px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* 小圆点导航区域 */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    right: 16px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-dot.active {
    background-color: var(--primary-green); /* 激活时高亮绿色 */
    width: 20px; /* 激活时变成长条，极具现代感 */
    border-radius: 4px;
}

/* 移动端自适应调优 */
@media (max-width: 650px) {
    .carousel-viewport {
        border-radius: 12px; /* 窄屏手机微调圆角 */
    }
    .carousel-caption .card-url {
        font-size: 14px; /* 手机端字体微调 */
    }
}

/* ==========================================================================
   9. SEO 容器与 Summary 文本样式同步定制
   ========================================================================== */

/* 1. 精准控制文本的字体、大小与颜色（完全同步 .verified-count 样式） */
.diwa-seo-container details summary {
    color: var(--primary-green) !important;  /* 变为与参照一致的官方绿色变量 */
    font-size: 12px !important;              /* 变为与参照一致的 12px 大小 */
    font-weight: normal;                     /* 取消加粗，保持字重一致 */
    text-align: left;                        /* 文本左边开始 */
    list-style: none;                        /* 隐藏部分浏览器下默认的展开小三角 */
}

/* 移除谷歌/Safari等浏览器下 summary 默认的黑色小箭头 */
.diwa-seo-container details summary::-webkit-details-marker {
    display: none !important;
}

/* 2. 精准控制与下方元素/按钮的间距行 */
.diwa-seo-container {
    margin-bottom: 20px !important;         /* 这里的 20px 可以根据视觉效果自由加大或缩小 */
    width: 100%;
}


/* ==========================================================================
   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;
    min-height: 60px; /* ✅ 自适应优化：防大字体溢出 */
    height: auto;
}

.entrance-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 14px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: 1; 
    margin-right: 8px;
    min-width: 0; /* ✅ 自适应优化：防弹性布局挤压变形 */
}

.verify-btn {
    background-color: var(--primary-green);
    color: #ffffff; 
    border: none;
    font-weight: bold;
    font-size: 18px;
    text-shadow: -0.5px -0.5px 0 #000, 0.5px -0.5px 0 #000, -0.5px 0.5px 0 #000, 0.5px 0.5px 0 #000;
    padding: 0 20px;  /* 进入按钮长度 */
    height: 48px;   /* 进入按钮高度边 */
    border-radius: 24px;
    cursor: pointer;
    flex-shrink: 0; 
    transition: transform 0.1s ease, background-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px; 
}

.verify-btn:hover { background-color: #0b9e54; }
.verify-btn:active { transform: scale(0.97); }
.finger-icon { display: inline-block; transform: rotate(-45deg); font-size: 16px; }

.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. 官方游戏列表网格
   ========================================================================== */
.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: 8px;
    margin-bottom: 20px;
    width: 100%;
}

.domain-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px 10px; 
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-white);
    transition: border-color 0.2s, background-color 0.2s;
    overflow: hidden; 
    min-width: 0; /* ✅ 自适应优化：防域名过长挤爆网格 */
}

.domain-card:hover {
    border-color: var(--primary-green);
    background-color: rgba(11, 45, 29, 0.9);
}

.card-num {
    background-color: #103321;
    color: var(--primary-green);
    width: 25px; 
    height: 25px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    font-weight: bold;
    margin-right: 5px;
    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. 底部三栏卡片区（PC端样式）
   ========================================================================== */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    width: 100%;
}

.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;
    min-width: 0; /* ✅ 自适应优化 */
}

.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: 14px;       
    font-weight: 600;
    white-space: nowrap;   
    overflow: hidden;
    text-overflow: ellipsis;
}

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

/* ==========================================================================
   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;
    width: 100%;
}

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

.brand-link {
    color: var(--text-gray) !important; 
    font-size: 12px;
    text-decoration: none;             
    margin: 0 4px;
    transition: color 0.2s ease;
}

.brand-link:hover {
    color: var(--primary-green) !important; 
    text-decoration: underline;            
}

/* ==========================================================================
   8. 针对手机移动端的自适应降级控制（已调整为650px并优化全机型）
   ========================================================================== */
@media (max-width: 650px) { /* 💡 需求修改：已由 600px 统一修改为 650px */
    body {
        background-image: linear-gradient(rgba(2, 18, 11, 0.75), rgba(0, 0, 0, 0.75)), url('/images/bg.jpg');
        background-attachment: scroll; 
    }

    .main-header {
        border-radius: 0;
        max-width: 100%;
        /* ✅ 绿线清除：确保手机端任何外层继承的边框都被强行清空 */
        border-left: none !important;
        border-right: none !important;
        
        /* ✅ 苹果安全区兼容：自适应刘海屏与灵动岛手机系统栏，防止上方内容被遮挡 */
        padding-top: env(safe-area-inset-top, 0px); 
        height: calc(70px + env(safe-area-inset-top, 0px));
    }

    .header-container {
        /* ✅ 绿线清除：确保手机端内部容器左右两侧绝对没有线条 */
        border-left: none !important;
        border-right: none !important;
    }

    .content-wrapper {
        /* ✅ 自适应修复：动态绑定头部高度，消灭跳转拉扯感 */
        margin-top: calc(70px + env(safe-area-inset-top, 0px));
        background-image: none; 
        border: none; 
        padding: 25px 16px 40px 16px; /* 优化留白，防止窄屏手机下文字撞边 */
        border-radius: 0;
    }

    .diwa-seo-container h1 {
        font-size: 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr; /* 手机端降级为垂直单列，完美适配窄屏 */
        gap: 12px; 
    }

    .footer-card {
        padding: 16px;
    }

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

    } 
}
