/* ===========================
   1. 基础重置
   =========================== */
:root {
    --primary-green: #07c160; /* 微信绿 */
    --primary-dark: #05a045;
    --text-main: #1f2937;
    --text-sub: #6b7280;
    --bg-color: #f3f4f6;
    --card-bg: #ffffff;
    --radius-l: 24px;
    --radius-m: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
}

/* ===========================
   2. APP 容器
   =========================== */
.app-container {
    width: 100%;
    max-width: 420px;
    background: var(--card-bg);
    min-height: 100vh;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
}

@media (min-width: 480px) {
    .app-container {
        min-height: auto;
        border-radius: var(--radius-l);
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        margin: 40px auto;
        padding-bottom: 40px;
    }
}

/* 顶部装饰条 */
.drag-indicator {
    width: 40px; height: 5px; background: #e5e7eb; border-radius: 10px; margin: 0 auto 25px auto;
}

/* ===========================
   3. 头部区域
   =========================== */
.app-header { text-align: center; margin-bottom: 25px; }

.brand-logo {
    width: 64px; height: 64px; background: #f9fafb; border-radius: 18px;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 15px auto; font-size: 32px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.header-text h1 { font-size: 24px; font-weight: 800; margin-bottom: 5px; color: var(--text-main); }
.header-text p { font-size: 14px; color: var(--text-sub); }

/* ===========================
   4. 警示卡片 (更现代的通知风格)
   =========================== */
.alert-card {
    background: #fff1f2;
    border-radius: var(--radius-m);
    padding: 16px;
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    border: 1px solid rgba(225, 29, 72, 0.1);
}
.alert-icon-box {
    width: 24px; height: 24px; background: #e11d48; color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; font-weight: bold;
}
.alert-content strong { display: block; font-size: 14px; color: #9f1239; margin-bottom: 4px; }
.alert-content p { font-size: 13px; color: #881337; line-height: 1.4; }

/* ===========================
   5. 二维码区域
   =========================== */
.qr-section { display: flex; flex-direction: column; align-items: center; margin-bottom: 35px; }

.qr-wrapper { position: relative; width: 220px; height: 220px; padding: 10px; }
.qr-image { width: 100%; height: 100%; border-radius: 12px; object-fit: contain; display: block; }

/* 四角边框 */
.corner { position: absolute; width: 20px; height: 20px; border-color: var(--primary-green); border-style: solid; border-width: 0; }
.top-left { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; border-radius: 6px 0 0 0; }
.top-right { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; border-radius: 0 6px 0 0; }
.bottom-left { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; border-radius: 0 0 0 6px; }
.bottom-right { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; border-radius: 0 0 6px 0; }

/* 扫描线 */
.scanner-line {
    position: absolute; width: 90%; left: 5%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-green), transparent);
    box-shadow: 0 0 15px var(--primary-green);
    top: 10%; animation: scan 2s ease-in-out infinite; z-index: 2; opacity: 0.8;
}
@keyframes scan { 0% { top: 5%; opacity: 0; } 50% { opacity: 1; } 100% { top: 95%; opacity: 0; } }

.qr-status { margin-top: 15px; font-size: 13px; color: var(--primary-green); display: flex; align-items: center; font-weight: 600; }
.pulse-dot { width: 6px; height: 6px; background: var(--primary-green); border-radius: 50%; margin-left: 6px; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.5); } }

/* ===========================
   6. 按钮区域 (使用悬浮卡片风格)
   =========================== */
.action-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: auto;
}

.app-btn {
    width: 100%;
    padding: 16px;
    border-radius: 18px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

/* 微信按钮：绿色渐变 + 光影 */
.btn-wechat {
    background: linear-gradient(135deg, #07c160, #05a045);
    color: white;
    /* 绿色柔光阴影 */
    box-shadow: 0 8px 20px -4px rgba(7, 193, 96, 0.4); 
}

/* 娱乐按钮：玻璃/渐变风格 (类似之前的 Modern Card 风格) */
.btn-glass {
    /* 使用淡紫色到淡粉色渐变，或者纯净的玻璃态 */
    background: #fff;
    color: #4f46e5;
    border: 1px solid rgba(79, 70, 229, 0.1);
    /* 淡蓝紫色阴影 */
    box-shadow: 0 8px 20px -6px rgba(99, 102, 241, 0.2); 
}
.btn-glass:active {
    background: #f8fafc;
}

/* 按钮图标 */
.btn-icon { font-size: 1.2rem; margin-top: -2px; }

/* 点击效果 */
.app-btn:active { transform: scale(0.97); }

.app-footer { text-align: center; font-size: 12px; color: #cbd5e1; margin-top: 30px; }
/* ===========================
   新增：微博页面专属样式
   =========================== */

/* 微博按钮：红色/橙色渐变 */
.btn-weibo {
    background: linear-gradient(135deg, #e6162d, #ff9933);
    color: white;
    /* 红色柔光阴影 */
    box-shadow: 0 8px 20px -4px rgba(230, 22, 45, 0.4); 
}

.btn-weibo:active {
    box-shadow: 0 4px 10px -4px rgba(230, 22, 45, 0.4);
    transform: scale(0.97);
}

/* 如果你想让微博页面的角落颜色统一为红色，
   可以使用内联样式(如html中所示)，
   或者添加以下类并应用到 weibo.html 的 .corner 元素上 */
.corner-red {
    border-color: #e6162d !important;
}