/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 科技炫酷主题变量 */
:root {
    /* 颜色变量 */
    --neon-blue: #00f5ff;
    --neon-purple: #bf00ff;
    --neon-green: #39ff14;
    --neon-pink: #ff10f0;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-accent: #00f5ff;
    
    /* 背景和边框 */
    --dark-gradient: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    
    /* 阴影效果 */
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    --shadow-neon: 0 0 20px rgba(0, 245, 255, 0.5);
    --shadow-hover: 0 12px 40px rgba(0, 245, 255, 0.4), 0 6px 20px rgba(0, 0, 0, 0.3);
    
    /* 文字阴影 */
    --text-shadow-subtle: 0 0 3px rgba(255, 255, 255, 0.2);
    --text-shadow-medium: 0 0 5px rgba(255, 255, 255, 0.3);
    --text-shadow-strong: 0 0 10px rgba(255, 255, 255, 0.5);
    
    /* 动画 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--dark-gradient);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.4;
    transition: all 0.3s ease;
    font-size: 12px;
    overflow-x: hidden;
    position: relative;
}

/* 科技背景动画 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 245, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(191, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(57, 255, 20, 0.05) 0%, transparent 50%);
    animation: backgroundPulse 8s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* 通用玻璃态样式 */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass);
    position: relative;
    overflow: hidden;
}

/* 模块背景框 */
.module-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.container {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    padding: 8px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 12px;
    border-radius: 12px;
    padding: 12px;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.header-content {
    max-width: 600px;
    margin: 0 auto;
}

.app-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    text-shadow: var(--shadow-neon);
    animation: titleGlow 2s ease-in-out infinite alternate;
    position: relative;
    z-index: 1;
}

@keyframes titleGlow {
    0% { 
        text-shadow: 
            0 0 10px var(--neon-blue),
            0 0 20px var(--neon-blue),
            0 0 30px var(--neon-blue);
    }
    100% { 
        text-shadow: 
            0 0 20px var(--neon-purple),
            0 0 30px var(--neon-purple),
            0 0 40px var(--neon-purple);
    }
}

.app-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
    text-shadow: var(--text-shadow-medium);
    position: relative;
    z-index: 1;
}

/* 主要内容区域 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 快速启动区域 */
.quick-launch {
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-accent);
    margin-bottom: 8px;
    text-shadow: var(--shadow-neon);
    position: relative;
    z-index: 1;
}

.launch-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.launch-buttons.single-row {
    grid-template-columns: 1fr 1fr;
}

.launch-buttons.double-row {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.launch-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
    text-shadow: var(--text-shadow-strong);
}

.launch-button.primary {
    background: linear-gradient(145deg, 
        var(--neon-blue) 0%, 
        var(--neon-purple) 50%, 
        var(--neon-blue) 100%);
    border-color: var(--neon-blue);
    box-shadow: 
        0 8px 32px rgba(0, 245, 255, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.launch-button.secondary {
    background: linear-gradient(145deg, 
        var(--neon-green) 0%, 
        var(--neon-pink) 50%, 
        var(--neon-green) 100%);
    border-color: var(--neon-green);
    box-shadow: 
        0 8px 32px rgba(57, 255, 20, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.launch-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.launch-button:active {
    transform: translateY(0);
    box-shadow: 
        0 4px 16px rgba(0, 245, 255, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.button-icon {
    font-size: 0.8rem;
}

/* 线路状态指示器 */
.status-indicator {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
    margin-left: 6px;
    vertical-align: middle;
}

.status-indicator.online {
    background: #00ff00;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
}

.status-indicator.offline {
    background: #ff0000;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
}

.status-indicator.checking {
    background: #ffaa00;
    box-shadow: 0 0 8px rgba(255, 170, 0, 0.6);
    animation: statusPulse 1.5s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 功能卡片 */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px) rotateX(5deg);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 245, 255, 0.3);
}

.card-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    display: block;
    text-shadow: 0 0 10px var(--neon-blue);
    animation: iconGlow 3s ease-in-out infinite alternate;
}

@keyframes iconGlow {
    0% { 
        text-shadow: 0 0 10px var(--neon-blue);
        transform: scale(1);
    }
    100% { 
        text-shadow: 0 0 20px var(--neon-purple);
        transform: scale(1.05);
    }
}

.card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.card-description {
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.4;
    font-size: 0.75rem;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.2);
}

/* 状态显示区域 */
.status-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.status-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
}

.status-card {
    text-align: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 245, 255, 0.3);
}

.status-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.2);
}

.status-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--neon-blue);
}

/* 底部 */
.footer {
    margin-top: 20px;
    text-align: center;
    padding: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.7rem;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.2);
}

/* 启动器样式 */
.launcher-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 12px;
}

.launcher-header {
    text-align: center;
    margin-bottom: 20px;
}

.launcher-logo h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.launcher-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.launcher-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.launcher-icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
    text-shadow: 0 0 20px var(--neon-blue);
    animation: iconGlow 3s ease-in-out infinite alternate;
}

.launcher-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-shadow: 0 0 10px var(--neon-blue);
}

.launcher-description {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.4;
    font-size: 0.8rem;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.2);
}

.launcher-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.launcher-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    background: linear-gradient(145deg, 
        var(--neon-blue) 0%, 
        var(--neon-purple) 50%, 
        var(--neon-blue) 100%);
    color: var(--text-primary);
    box-shadow: 
        0 8px 16px rgba(0, 245, 255, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transform-style: preserve-3d;
}

.launcher-button.primary {
    background: linear-gradient(145deg, 
        var(--neon-blue) 0%, 
        var(--neon-purple) 50%, 
        var(--neon-blue) 100%);
    color: var(--text-primary);
    box-shadow: 
        0 8px 16px rgba(0, 245, 255, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.launcher-button.secondary {
    background: linear-gradient(145deg, 
        var(--neon-green) 0%, 
        var(--neon-pink) 50%, 
        var(--neon-green) 100%);
    color: var(--text-primary);
    box-shadow: 
        0 8px 16px rgba(57, 255, 20, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.launcher-button:hover {
    transform: translateY(-4px) rotateX(10deg);
    box-shadow: 
        0 12px 24px rgba(0, 245, 255, 0.4),
        0 6px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.launcher-button:active {
    transform: translateY(-2px) rotateX(5deg);
    box-shadow: 
        0 6px 12px rgba(0, 245, 255, 0.3),
        0 3px 6px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.launcher-info {
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.info-text {
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 0.7rem;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.2);
}

.launcher-footer {
    text-align: center;
    margin-top: 40px;
}

.launcher-footer p {
    color: var(--text-secondary);
    font-size: 0.7rem;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.2);
}

/* 移动端优化 - 默认就是移动端 */
.container {
    padding: 12px;
}

.app-title {
    font-size: 1.4rem;
}

.app-subtitle {
    font-size: 0.8rem;
}

.feature-cards {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.launch-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.launch-button {
    width: 100%;
    max-width: 200px;
}

.status-cards {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
}

.launcher-card {
    padding: 16px;
}

.launcher-logo h1 {
    font-size: 1.4rem;
}

.launcher-title {
    font-size: 1rem;
}

.feature-card {
    padding: 12px;
}

.card-title {
    font-size: 0.8rem;
}

.section-title {
    font-size: 1rem;
}
