/* ============================================
   全新设计 - 暗黑科技风格落地页
   ============================================ */

/* CSS变量 */
:root {
    --primary: #00f0ff;
    --primary-dark: #00a8b3;
    --secondary: #ff6b35;
    --accent: #a855f7;
    --bg-dark: #0a0e17;
    --bg-card: rgba(15, 23, 42, 0.8);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --border-glow: rgba(0, 240, 255, 0.3);
    --gradient-1: linear-gradient(135deg, #00f0ff 0%, #a855f7 100%);
    --gradient-2: linear-gradient(135deg, #ff6b35 0%, #ff3366 100%);
    --glass: rgba(255, 255, 255, 0.05);
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-dark);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

/* 动态粒子背景 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* 光晕效果 */
.glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.glow-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.glow-2 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: 20%;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
}

.glow-3 {
    width: 250px;
    height: 250px;
    background: var(--secondary);
    bottom: -50px;
    right: 20%;
    animation: float 12s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* 容器 */
.container {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部Logo */
.header {
    text-align: center;
    padding: 30px 0 20px;
}

.logo-wrapper {
   position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    max-width: 160px;
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.5));
    transition: all 0.4s ease;
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.8));
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.2) 0%, transparent 70%);
    z-index: 1;
}

.brand-text {
    margin-top: 10px;
}

.brand-slogan {
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* 公告横幅 */
.announcement {
    display: flex;
    align-items: center;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glow);
    border-radius: 50px;
    padding: 8px 8px 8px 8px;
    margin-bottom: 25px;
    overflow: hidden;
}

.announcement-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--gradient-1);
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.announcement-badge i {
    font-size: 12px;
}

.announcement-content {
    flex: 1;
    overflow: hidden;
    padding: 0 15px;
}

.announcement-scroll {
    white-space: nowrap;
    animation: scroll-text 20s linear infinite;
    font-size: 13px;
    color: var(--text-secondary);
}

@keyframes scroll-text {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* 主功能区 */
.main-section {
    flex: 1;
}

/* 快捷入口网格 */
.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.action-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 18px;
    transition: all 0.3s ease;
}

.action-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-glow);
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 600;
}

.card-header i {
    font-size: 18px;
    color: var(--primary);
}

.card-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mini-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.mini-btn:hover {
    background: rgba(0, 240, 255, 0.15);
}

.mini-btn i {
    font-size: 11px;
    opacity: 0.5;
}

.mini-btn.android:hover {
    background: rgba(61, 220, 132, 0.2);
}

.mini-btn.ios:hover {
    background: rgba(255, 255, 255, 0.15);
}

.mini-btn.android i.fa-android,
.mini-btn.ios i.fa-apple {
    font-size: 16px;
    opacity: 1;
    margin-right: 8px;
}

.mini-btn.android i.fa-android {
    color: #3ddc84;
}

/* CTA按钮区域 */
.cta-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.cta-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 30px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    overflow: hidden;
    transition: all 0.4s ease;
}

.cta-btn.primary {
    background: var(--gradient-2);
    color: white;
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
}

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.5);
}

.cta-btn.secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.cta-btn.secondary:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.cta-content .arrow {
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.cta-btn:hover .arrow {
    transform: translateX(5px);
}

.cta-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* 密探客服卡片 */
.agent-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

.agent-avatar {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    border-radius: 50%;
    flex-shrink: 0;
}

.agent-avatar i {
    font-size: 22px;
    color: white;
}

.agent-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-ring {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

.agent-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.agent-title {
    font-size: 12px;
    color: var(--text-secondary);
}

.agent-id {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

.agent-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: rgba(0, 240, 255, 0.15);
    border: 1px solid var(--primary);
    border-radius: 8px;
    color: var(--primary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.agent-download-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid var(--accent);
    border-radius: 8px;
    color: var(--accent);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.agent-download-btn:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

/* 二维码卡片 */
.qrcode-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

.qrcode-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.qrcode-header span {
    font-size: 14px;
    font-weight: 600;
}

.qrcode-icons {
    display: flex;
    gap: 12px;
}

.qrcode-icons i {
    font-size: 18px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.qrcode-icons i:hover {
    opacity: 1;
    color: var(--primary);
}

.qrcode-body {
    display: flex;
    align-items: center;
    gap: 20px;
}

.qrcode-frame {
    position: relative;
    width: 120px;
    height: 120px;
    padding: 10px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    flex-shrink: 0;
}

.qrcode-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% { top: 0; }
    50% { top: calc(100% - 3px); }
    100% { top: 0; }
}

.qrcode-tip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
}

.qrcode-tip i {
    font-size: 24px;
    color: var(--primary);
}

/* 底部 */
.footer {
    text-align: center;
    padding: 20px 0;
}

.footer-line {
    width: 60px;
    height: 2px;
    background: var(--gradient-1);
    margin: 0 auto 15px;
    border-radius: 2px;
}

.footer p {
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

/* Toast提示 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 240, 255, 0.95);
    color: var(--bg-dark);
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.4);
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.toast i {
    font-size: 18px;
}

/* 响应式 */
@media screen and (max-width: 400px) {
    .container {
        padding: 15px;
    }
    
    .action-grid {
        grid-template-columns: 1fr;
    }
    
    .qrcode-body {
        flex-direction: column;
        text-align: center;
    }
    
    .qrcode-tip {
        flex-direction: row;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}
