/* ===== CSS 变量 ===== */
:root {
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #9ca3af;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
}

/* ===== 全局重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.1;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* ===== 容器 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 16px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== Hero区域 ===== */
.hero {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: var(--primary-gradient);
    border-radius: 50%;
    opacity: 0.08;
    filter: blur(80px);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    margin-bottom: 16px;
    line-height: 1.1;
}

.title-main {
    display: block;
    font-size: 64px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-sub {
    display: block;
    font-size: 32px;
    font-weight: 600;
    color: var(--text-medium);
    margin-top: 8px;
}

.hero-desc {
    font-size: 20px;
    color: var(--text-medium);
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* ===== 按钮样式 ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ===== App Mockup ===== */
.hero-visual {
    animation: fadeInRight 0.8s ease 0.2s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.app-mockup {
    perspective: 1000px;
}

.hero-screenshot {
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    transform: rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-screenshot:hover {
    transform: rotateY(0deg);
}

/* ===== 通用区块样式 ===== */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-medium);
    text-align: center;
    margin-bottom: 48px;
}

/* ===== 功能特点 ===== */
.features {
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-light);
    padding: 32px 24px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: var(--primary-gradient);
    border-radius: 16px;
    position: relative;
}

.feature-icon-1::before,
.feature-icon-1::after {
    content: '';
    position: absolute;
    background: white;
}

.feature-icon-1::before {
    width: 28px;
    height: 28px;
    top: 10px;
    left: 14px;
    border-radius: 4px;
}

.feature-icon-1::after {
    width: 20px;
    height: 20px;
    bottom: 8px;
    right: 10px;
    border-radius: 4px;
    opacity: 0.7;
}

.feature-icon-2::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 24px;
    background: white;
    border-radius: 4px;
}

.feature-icon-2::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    background: white;
    opacity: 0.5;
    border-radius: 2px;
}

.feature-icon-3::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 26px;
    height: 26px;
    border: 4px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    border-left-color: transparent;
    transform: translate(-50%, -50%) rotate(45deg);
}

.feature-icon-3::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 20px;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.feature-icon-4::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: white;
    border-radius: 8px;
}

.feature-icon-4::after {
    content: '';
    position: absolute;
    top: 18px;
    left: 18px;
    right: 18px;
    height: 3px;
    background: rgba(99, 102, 241, 0.3);
    border-radius: 2px;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-medium);
    font-size: 15px;
}

/* ===== 下载区域 ===== */
.download {
    background: linear-gradient(135deg, #6366f115 0%, #8b5cf615 100%);
}

.download-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.download-card {
    display: block;
    background: var(--bg-white);
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.download-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.download-card.github {
    border-color: #24292e30;
}

.download-card.github:hover {
    border-color: #24292e;
}



.download-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.download-desc {
    color: var(--text-medium);
    margin-bottom: 20px;
}

.download-cta {
    font-weight: 600;
    color: var(--primary-color);
}

.download-card.github .download-cta {
    color: #24292e;
}

/* ===== 应用介绍 ===== */
.intro {
    background: var(--bg-white);
}

.intro-text-full {
    max-width: 700px;
    margin: 0 auto 48px;
    text-align: center;
    font-size: 16px;
    color: var(--text-medium);
}

.intro-screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 100px;
}

.screenshot-card {
    background: var(--bg-light);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.screenshot-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.screenshot-img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-caption {
    padding: 16px;
    text-align: center;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 16px;
}

/* ===== 关于开发者 ===== */
.about {
    background: var(--bg-light);
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 48px;
    max-width: 800px;
    margin: 0 auto;
}

.developer-info {
    display: flex;
    align-items: center;
    gap: 24px;
}

.developer-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    border: 3px solid var(--primary-color);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.developer-name {
    font-size: 24px;
    font-weight: 700;
}

.project-links {
    flex-shrink: 0;
    display: flex;
    gap: 16px;
}

.project-link {
    display: block;
    background: var(--bg-white);
    padding: 16px 32px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
}

.project-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.link-title {
    font-weight: 600;
    font-size: 16px;
}

.link-desc {
    color: var(--text-medium);
    font-size: 14px;
}

/* ===== 页脚 ===== */
.footer {
    background: var(--text-dark);
    padding: 32px 0;
    text-align: center;
}

.footer-text {
    color: var(--text-light);
    font-size: 14px;
}

/* ===== 响应式设计 ===== */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .intro-screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .developer-info {
        flex-direction: column;
    }

    .project-links {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
    }

    .title-main {
        font-size: 48px;
    }

    .title-sub {
        font-size: 24px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .download-buttons {
        grid-template-columns: 1fr;
    }

    .intro-screenshots-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 28px;
    }
}
