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

:root {
    --bg-color: #f5f7f6;         /* 全局最底层微微的浅灰白色底板 */
    --card-bg: #ffffff;          /* 纯白色不透明卡片底色 */
    --border-color: #ededed;     /* 极具质感的现代浅灰色边框线 */
    --primary-green: #10b981;    /* 亮绿色高亮（绿色按钮、绿色边框引导） */
    --text-white: #111827;       /* 核心深色主文字（黑字，确保在白底上清晰可读） */
    --text-gray: #6b7280;        /* 辅助灰色文字 */
}

body {
    background-image: linear-gradient(rgba(245, 247, 246, 0.5), rgba(245, 247, 246, 0.5)); 
    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;
}

/* 语言选择器视觉样式 */
.lang-selector {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #ffffff; 
    border: 1px solid var(--border-color); 
    border-radius: 12px;
    padding: 4px 6px;
    color: var(--text-white);
    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; /* 统一锁定最大视觉宽度 650px */
    height: 70px;
    z-index: 1000;
    background-color: transparent;
    border-left: 1px solid var(--border-color);  
    border-right: 1px solid var(--border-color); 
}

.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-color: #ffffff;
    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; 
    margin: 70px auto 0 auto; 
    background-color: #ffffff; /* 整个页面底色 */
    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 #0fa757; /* 轮播框颜色 */
    aspect-ratio: 2 / 1; /* 锁定 2:1 黄金游戏画面比例，防止手机端变形 */
    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: #ffffff;
    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; /* 手机端字体微调 */
    }
}

/* ==========================================================================
    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: #0fa757; /* 整个框的颜色 */
    border: 1px solid var(--primary-green); 
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 6px 6px 16px;
    min-height: 60px; 
    height: auto;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.08), inset 0 1px 3px rgba(0, 0, 0, 0.02); 
}

.entrance-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;  /* MKlik Masuk...文字颜色 */
    font-size: 14px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: 1; 
    margin-right: 8px;
    min-width: 0;
}

.verify-btn {
    background-color: #f6c529; /* 按钮颜色 */
    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: #c79318; } /* 触碰按钮变颜色 */
.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: #fdfdfd; 
    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: all 0.2s ease;
    overflow: hidden; 
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.01);
    min-width: 0;
}

.domain-card:hover {
    border-color: #cbd5e1; 
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); 
}

.card-num {
    background-color: #F5F5F5;
    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. 底部三栏卡片区
   ========================================================================== */
.domains-section  h4 { font-size: 18px; margin-bottom: 6px; }
/* 让标题强行横跨所有网格列，不挤占下方卡片的位置 */
.full-width-title {
  grid-column: 1 / -1; 
  text-align: center;   
  margin-bottom: 15px;  
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    width: 100%;
}

/* 1. 公共卡片基础样式（默认状态） */
.footer-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color); /* 默认边框颜色 */
    border-radius: 12px;
    padding: 14px 12px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0; 
    cursor: default; /* 默认鼠标为普通指针 */
    transition: border-color 0.2s ease; /* ✅ 添加过渡动画，让边框变色更丝滑 */
}


/* 1. 鼠标触碰【所有卡片】都会显示绿色线框 */
.footer-card:hover {
    border-color: #000000;
}


/* 2. 只有真正带有效跳转链接的卡片，鼠标移入才会变小手 */
a.footer-card[href]:not([href="#"]):not([href=""]):not([href^="javascript"]),
a.footer-card[href]:not([href="#"]):not([href=""]):not([href^="javascript"]) * {
    cursor: pointer !important;
}



/* 以下其余样式保持不变 */
.footer-card-header {
    display: flex;
    align-items: center;
    gap: 6px;              
    margin-bottom: 6px;    
}

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

.footer-card h5 {
    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. 针对手机移动端的自适应控制 (✅ 核心修复：100% 锁死纯白清爽设计)
   ========================================================================= */
@media screen and (max-width: 650px) {
    body {
        /* ✅ 修复：手机最外层背景也同步为浅灰白色，彻底告别暗黑背景 */
        background-color: var(--bg-color) !important; 
        background-image: linear-gradient(rgba(245, 247, 246, 0.5), rgba(245, 247, 246, 0.5)) !important;
        background-attachment: scroll; 
    }

    .main-header {
        width: 100% !important;
        max-width: 100% !important;
        border: 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;
        border-bottom: 1px solid var(--border-color) !important;
        background-color: #ffffff !important; /* ✅ 修复：手机顶部栏保持纯白 */
    }

    .content-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        border: none !important;
        border-radius: 0px !important; 
        margin-top: calc(70px + env(safe-area-inset-top, 0px)) !important; 
        padding: 30px 16px 40px 16px !important; 
        background-color: #ffffff !important; /* ✅ 修复：手机主体内容区强制锁死为高质感纯白 */
        box-shadow: none !important; /* 删掉污染纯白视觉的内嵌绿阴影 */
    }

    .hero-section h1 {
        font-size: 22px;
    }
    
    /* 手机端三栏卡片自动平滑降级为垂直单列，白底黑字，极其工整 */
    .footer-grid {
        grid-template-columns: 1fr; 
        gap: 12px; 
    }

    .footer-card {
        padding: 16px;
        background-color: #ffffff !important; /* ✅ 修复：手机端小卡片也必须是纯白 */
    }

    .footer-icon { font-size: 18px; }
    .quick-entrance-box { padding: 6px 6px 6px 12px; }
    
    .verify-btn {
        padding: 0 16px;    /* 👈 1. 调整左右宽度（目前是 16px，调大这个数字按钮会变长） */
        font-size: 15px;    /* 👈 2. 调整按钮内文字的大小 */
        height: 44px;       /* 👈 3. 新增高度控制（如果觉得按钮太高，可以把原本大屏的 48px 在这里缩减到 44px 或 40px） */
        border-radius: 22px;/* 💡 注意：如果要改 height，圆角（border-radius）记得改成高度的一半，按钮才是完美的胶囊型 */
    } 
}