/* ========================================
   深色主题首页样式 - 参考 A+客户端风格
   ======================================== */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.dark-theme {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   背景光效
   ======================================== */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(74, 144, 226, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(118, 75, 162, 0.1), transparent);
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: glow-pulse 8s ease-in-out infinite;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: rgba(74, 144, 226, 0.2);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    background: rgba(118, 75, 162, 0.15);
    top: 30%;
    right: -150px;
    animation-delay: -3s;
}

.bg-glow-3 {
    width: 400px;
    height: 400px;
    background: rgba(74, 144, 226, 0.1);
    bottom: 10%;
    left: 20%;
    animation-delay: -5s;
}

@keyframes glow-pulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.1); opacity: 0.6; }
}

/* ========================================
   导航栏
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.9), transparent);
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.nav-logo svg {
    filter: drop-shadow(0 2px 8px rgba(74, 144, 226, 0.4));
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   主视觉区域
   ======================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 20px 80px;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    animation: fade-in-up 1s ease-out;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-download-main {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-download-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-download-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(74, 144, 226, 0.5);
}

.btn-download-main:hover::before {
    left: 100%;
}

.version-tag {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

/* ========================================
   笔记本电脑装饰
   ======================================== */
.hero-decoration {
    margin-top: 60px;
    perspective: 1000px;
    animation: fade-in-up 1s ease-out 0.3s both;
}

.laptop-mockup {
    width: 600px;
    max-width: 90vw;
    transform-style: preserve-3d;
    animation: float-laptop 6s ease-in-out infinite;
}

.laptop-screen {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px 12px 0 0;
    padding: 12px;
    box-shadow: 
        0 0 0 2px #333,
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(74, 144, 226, 0.1);
}

.screen-content {
    background: #0f0f1a;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.app-interface {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.interface-header {
    height: 30px;
    background: linear-gradient(90deg, #1e3a5f 0%, #2d5a87 100%);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 6px;
}

.interface-header::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff5f57;
    box-shadow: 14px 0 #febc2e, 28px 0 #28c840;
}

.interface-body {
    flex: 1;
    display: flex;
}

.interface-sidebar {
    width: 60px;
    background: rgba(255, 255, 255, 0.03);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.interface-main {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chart-placeholder {
    height: 40%;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.chart-placeholder::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(74, 144, 226, 0.2), transparent);
    clip-path: polygon(0 100%, 20% 60%, 40% 80%, 60% 40%, 80% 70%, 100% 50%, 100% 100%);
}

.data-placeholder {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.data-placeholder::before,
.data-placeholder::after {
    content: '';
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
}

.laptop-base {
    height: 20px;
    background: linear-gradient(to bottom, #333 0%, #1a1a1a 100%);
    border-radius: 0 0 12px 12px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.laptop-base::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background: #444;
    border-radius: 0 0 4px 4px;
}

@keyframes float-laptop {
    0%, 100% { transform: translateY(0) rotateX(5deg); }
    50% { transform: translateY(-15px) rotateX(5deg); }
}

/* ========================================
   下载区域
   ======================================== */
.download-section-full {
    position: relative;
    z-index: 1;
    padding: 100px 20px;
    background: linear-gradient(to bottom, transparent, rgba(10, 10, 10, 0.8));
}

.download-container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 50px;
    color: #fff;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.download-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    border-color: rgba(74, 144, 226, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.download-card:hover::before {
    opacity: 1;
}

.download-icon-wrapper {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 144, 226, 0.15);
    border-radius: 14px;
    color: #4A90E2;
    flex-shrink: 0;
}

.download-icon-wrapper.mac {
    background: rgba(150, 150, 150, 0.15);
    color: #aaa;
}

.download-icon-wrapper.android {
    background: rgba(61, 220, 132, 0.15);
    color: #3ddc84;
}

.download-icon-wrapper.ios {
    background: rgba(0, 122, 255, 0.15);
    color: #007aff;
}

.download-info {
    flex: 1;
}

.download-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.download-info p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.download-arrow {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.download-card:hover .download-arrow {
    color: #4A90E2;
    transform: translateX(5px);
}

/* ========================================
   页脚
   ======================================== */
.footer-dark {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

.admin-link-dark {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.admin-link-dark:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

/* ========================================
   滚动提示
   ======================================== */
.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: fade-in 1s ease-out 1s both;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 13px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.3; transform: translateX(-50%) translateY(8px); }
}

/* ========================================
   动画定义
   ======================================== */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-section {
        padding: 100px 20px 60px;
    }

    .laptop-mockup {
        width: 100%;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .scroll-hint {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 26px;
    }

    .btn-download-main {
        padding: 14px 28px;
        font-size: 15px;
    }

    .section-title {
        font-size: 24px;
    }
}

/* ========================================
   后台管理样式（保留原有）
   ======================================== */
.admin-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px;
}

.admin-header {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px 35px;
    border-radius: 20px;
    margin-bottom: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.3);
}

.admin-header h1 {
    font-size: 26px;
    color: #1a1a2e;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-nav {
    display: flex;
    gap: 10px;
}

.admin-nav a {
    color: #666;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    color: #667eea;
}

.admin-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.3);
    transition: transform 0.3s ease;
}

.admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.admin-card h2 {
    font-size: 22px;
    margin-bottom: 25px;
    color: #1a1a2e;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

/* 表单样式 */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(102,126,234,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}

/* 表格样式 */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th,
.data-table td {
    padding: 18px;
    text-align: left;
}

.data-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 600;
    color: #1a1a2e;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table th:first-child {
    border-radius: 12px 0 0 0;
}

.data-table th:last-child {
    border-radius: 0 12px 0 0;
}

.data-table tr:last-child td:first-child {
    border-radius: 0 0 0 12px;
}

.data-table tr:last-child td:last-child {
    border-radius: 0 0 12px 0;
}

.data-table td {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

.data-table tr:hover td {
    background: #f8f9fa;
}

.data-table .actions {
    display: flex;
    gap: 10px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102,126,234,0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102,126,234,0.5);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: #fff;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(102,126,234,0.3);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card .number {
    font-size: 36px;
    font-weight: 700;
}

/* 登录页面 */
.login-container {
    max-width: 420px;
    margin: 80px auto;
    padding: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.3);
}

.login-container h1 {
    text-align: center;
    margin-bottom: 35px;
    color: #1a1a2e;
    font-size: 28px;
    font-weight: 700;
}

/* 提示框 */
.alert {
    padding: 18px 22px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #b1dfbb;
}

.alert-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f1b0b7;
}

/* 后台响应式 */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 20px;
    }

    .admin-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }
}
