/* 5.12.css - 完整移动端自适应版本 */

/* ==================== 全局基础样式 ==================== */
html { 
    font-size: 62.5%; /* 1rem = 10px */
}

body {
    margin: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: #000;
    color: #00f6ff;
    line-height: 1.6;
    overflow-x: hidden; /* 防止横向滚动 */
    -webkit-text-size-adjust: 100%; /* 防止iOS字体缩放 */
    -webkit-font-smoothing: antialiased; /* 字体平滑 */
    -moz-osx-font-smoothing: grayscale;
}

* {
    box-sizing: border-box; /* 统一盒模型 */
}

/* ==================== 背景视频样式 ==================== */
.video-background {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.5);
}

.video-overlay {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* ==================== 主容器样式 ==================== */
.main-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* ==================== 说明文字样式 ==================== */
.intro-text {
    width: 100%;
    max-width: 800px;
    padding: 0 1rem;
    margin-bottom: 3rem;
}

.intro-text h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: #ff6ce2;
    word-wrap: break-word;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

.intro-text p {
    font-size: 1.9rem;
    color: #00f6ff;
    margin: 0 0 0.5rem 0;
    word-wrap: break-word;
    line-height: 1.5;
    opacity: 0.9;
}

/* ==================== 按钮容器样式 ==================== */
.button-container {
    display: flex;
    gap: 2.2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 900px;
}

/* ==================== 按钮基础样式 ==================== */
.btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.3rem 2.8rem;
    font-size: 1.7rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
    min-width: 240px;
    max-width: 100%;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover::before {
    opacity: 1;
}

.btn .btn-subtext {
    font-size: 1.3rem;
    font-weight: 400;
    display: block;
    margin-top: 0.6rem;
    line-height: 1.4;
    opacity: 0.9;
}

/* 按钮颜色变体 */
.btn-primary { 
    background-color: #00f6ff; 
    color: #000; 
}

.btn-secondary { 
    background-color: #ff6ce2; 
    background: linear-gradient(135deg, #ff6ce2, #ff33cc);
}

.btn-tertiary { 
    background-color: #7f00ff; 
    background: linear-gradient(135deg, #7f00ff, #b300ff);
}

.btn-gmsq { 
    background-color: greenyellow; 
    background: linear-gradient(135deg, greenyellow, #7cfc00);
    color: #333;
}

/* 按钮悬停效果 */
.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.1s;
}

/* ==================== 法律免责声明样式 ==================== */
.disclaimer {
    background-color: rgba(255, 0, 0, 0.15);
    color: #ff0000;
    border: 1px solid #ff0000;
    padding: 1.2rem 2.4rem;
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    margin: 2.5rem 0;
    text-align: center;
    max-width: 90%;
    width: 100%;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    
    /* 动画效果 */
    animation: flashFade 2.2s ease-in-out infinite;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* 定义闪烁 + 渐入动画 */
@keyframes flashFade {
    0%   { opacity: 0.3; transform: translateY(-8px); }
    20%  { opacity: 1; transform: translateY(0); }
    50%  { opacity: 1; }
    80%  { opacity: 1; transform: translateY(0); }
    100% { opacity: 0.8; transform: translateY(-4px); }
}

/* ==================== 用户协议样式 ==================== */
.legal {
    font-size: 1.5rem;
    color: #8a8a8a;
    margin: 2.5rem 0;
    padding: 0 1rem;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
}

.legal a { 
    text-decoration: none; 
    color: #8a8a8a; 
    transition: color 0.3s;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    white-space: nowrap;
}

.legal a:hover { 
    color: #00f6ff; 
    background: rgba(0, 246, 255, 0.1);
}

.legal span { 
    color: #6d6868; 
    user-select: none;
}

/* ==================== 页脚样式 ==================== */
.footer {
    font-size: 1.3rem;
    text-align: center;
    color: #6d6868;
    margin: 2.5rem 0 1.5rem 0;
    padding: 0 1rem;
    width: 100%;
    line-height: 1.5;
}

/* ==================== 响应式设计 - 平板设备 (1024px以下) ==================== */
@media screen and (max-width: 1024px) {
    .intro-text h1 { 
        font-size: 2.8rem; 
    }
    
    .intro-text p { 
        font-size: 1.7rem; 
    }
    
    .button-container {
        gap: 1.8rem;
        margin: 2.5rem 0;
    }
    
    .btn { 
        padding: 1.2rem 2.4rem; 
        font-size: 1.6rem;
        min-width: 220px;
    }
    
    .btn .btn-subtext { 
        font-size: 1.2rem; 
    }
}

/* ==================== 响应式设计 - 平板设备 (768px以下) ==================== */
@media screen and (max-width: 768px) {
    .main-container {
        padding: 1.8rem;
        justify-content: flex-start;
        min-height: calc(100vh - 60px);
    }
    
    .intro-text {
        margin-bottom: 2.5rem;
    }
    
    .intro-text h1 { 
        font-size: 2.4rem; 
        line-height: 1.25;
        margin-bottom: 1.2rem;
    }
    
    .intro-text p { 
        font-size: 1.6rem; 
        line-height: 1.5;
    }
    
    .button-container {
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .btn { 
        padding: 1.1rem 2.2rem; 
        font-size: 1.5rem;
        min-width: 200px;
        max-width: 320px;
        width: 100%;
        border-radius: 8px;
    }
    
    .btn .btn-subtext { 
        font-size: 1.1rem; 
        margin-top: 0.5rem;
    }
    
    .disclaimer {
        font-size: 1.4rem;
        padding: 1rem 2rem;
        margin: 2rem 0;
    }
    
    .legal {
        font-size: 1.4rem;
        margin: 2rem 0;
        gap: 0.6rem;
    }
    
    .footer {
        font-size: 1.2rem;
        margin: 2rem 0 1.2rem 0;
    }
}

/* ==================== 响应式设计 - 手机设备 (600px以下) ==================== */
@media screen and (max-width: 600px) {
    .main-container {
        padding: 1.5rem;
    }
    
    .intro-text h1 { 
        font-size: 2.2rem; 
        margin-bottom: 1rem;
    }
    
    .intro-text p { 
        font-size: 1.5rem; 
    }
    
    .button-container {
        gap: 1.2rem;
        margin: 1.8rem 0;
    }
    
    .btn { 
        padding: 1rem 1.8rem; 
        font-size: 1.4rem;
        min-width: 180px;
        max-width: 100%;
        border-radius: 7px;
    }
    
    .btn .btn-subtext { 
        font-size: 1rem; 
        margin-top: 0.4rem;
    }
    
    .btn:hover {
        transform: translateY(-2px);
    }
    
    .disclaimer {
        font-size: 1.3rem;
        padding: 0.9rem 1.8rem;
        margin: 1.8rem 0;
        max-width: 95%;
    }
    
    .legal {
        font-size: 1.3rem;
        margin: 1.8rem 0;
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .legal span {
        display: none; /* 在小屏幕上隐藏分隔线 */
    }
    
    .footer {
        font-size: 1.1rem;
        margin: 1.8rem 0 1rem 0;
    }
}

/* ==================== 响应式设计 - 小屏手机 (480px以下) ==================== */
@media screen and (max-width: 480px) {
    .main-container {
        padding: 1.2rem;
        padding-top: 2.5rem;
    }
    
    .intro-text h1 { 
        font-size: 2rem; 
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }
    
    .intro-text p { 
        font-size: 1.4rem; 
        line-height: 1.4;
    }
    
    .button-container {
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .btn { 
        padding: 1rem 1.5rem; 
        font-size: 1.3rem;
        min-width: 160px;
    }
    
    .btn .btn-subtext { 
        font-size: 0.95rem; 
        margin-top: 0.3rem;
    }
    
    .disclaimer {
        font-size: 1.2rem;
        padding: 0.8rem 1.5rem;
        margin: 1.5rem 0;
        animation: flashFade 2.5s ease-in-out infinite;
    }
    
    .legal {
        font-size: 1.2rem;
        margin: 1.5rem 0;
    }
    
    .legal a {
        padding: 0.2rem 0.5rem;
    }
    
    .footer {
        font-size: 1rem;
        margin: 1.5rem 0 0.8rem 0;
        line-height: 1.4;
    }
}

/* ==================== 响应式设计 - 超小屏幕 (360px以下) ==================== */
@media screen and (max-width: 360px) {
    .main-container {
        padding: 1rem;
        padding-top: 2rem;
    }
    
    .intro-text h1 { 
        font-size: 1.8rem; 
        margin-bottom: 0.7rem;
    }
    
    .intro-text p { 
        font-size: 1.3rem; 
    }
    
    .button-container {
        gap: 0.8rem;
        margin: 1.2rem 0;
    }
    
    .btn { 
        padding: 0.9rem 1.2rem; 
        font-size: 1.25rem;
        min-width: 140px;
    }
    
    .btn .btn-subtext { 
        font-size: 0.9rem; 
    }
    
    .disclaimer {
        font-size: 1.1rem;
        padding: 0.7rem 1.2rem;
        margin: 1.2rem 0;
    }
    
    .legal {
        font-size: 1.1rem;
        margin: 1.2rem 0;
    }
    
    .footer {
        font-size: 0.95rem;
        margin: 1.2rem 0 0.6rem 0;
    }
}

/* ==================== 横屏模式适配 ==================== */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .main-container {
        padding-top: 1rem;
        padding-bottom: 1rem;
        min-height: auto;
    }
    
    .intro-text {
        margin-bottom: 1.5rem;
    }
    
    .intro-text h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .intro-text p {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }
    
    .button-container {
        margin: 1rem 0;
        gap: 1rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        justify-content: flex-start;
    }
    
    .button-container::-webkit-scrollbar {
        height: 4px;
    }
    
    .button-container::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 2px;
    }
    
    .button-container::-webkit-scrollbar-thumb {
        background: #00f6ff;
        border-radius: 2px;
    }
    
    .btn {
        flex-shrink: 0;
        min-width: 180px;
        padding: 0.8rem 1.5rem;
    }
    
    .disclaimer {
        margin: 1rem 0;
        padding: 0.6rem 1.2rem;
        font-size: 1.1rem;
    }
    
    .legal {
        margin: 1rem 0;
    }
    
    .footer {
        margin: 1rem 0 0.5rem 0;
    }
}

/* ==================== 高DPI屏幕优化 ==================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .intro-text h1,
    .intro-text p,
    .btn,
    .disclaimer,
    .legal,
    .footer {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* ==================== 打印样式 ==================== */
@media print {
    .video-background,
    .video-overlay,
    .disclaimer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .btn {
        border: 1px solid #ccc;
        color: black;
        background: white;
    }
    
    .intro-text h1 {
        color: black;
    }
    
    .intro-text p {
        color: #333;
    }
}

/* ==================== 触摸设备优化 ==================== */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
    
    .btn:active {
        transform: scale(0.98);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }
}

/* ==================== 暗色模式支持 ==================== */
@media (prefers-color-scheme: dark) {
    /* 在系统启用暗色模式时的额外优化 */
    .disclaimer {
        background-color: rgba(255, 0, 0, 0.2);
    }
}

/* ==================== 可访问性优化 ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .disclaimer {
        animation: none;
        opacity: 1;
    }
}

/* ==================== 滚动条美化 ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: #00f6ff;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff6ce2;
}