:root {
    --primary-color: #5d5fef;
    --secondary-color: #a5a6f6;
    --text-color: #1e293b;
    --light-text: #64748b;
    --bg-color: #ffffff;
    --card-bg: #f8fafc;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    z-index: 2000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
}

header nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    transition: var(--transition);
}

.logo-container:hover {
    opacity: 0.8;
}

.logo-img {
    width: 34px;
    height: 34px;
    display: block;
}

.logo-container span {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2.8rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}

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

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

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    width: 100%;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.hero {
    padding: 12rem 0 6rem;
    background: radial-gradient(circle at top right, rgba(93, 95, 239, 0.05), transparent 40%);
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 4rem;
    justify-content: flex-start;
}

.hero-content {
    flex: 1;
    max-width: 850px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    background: linear-gradient(90deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--light-text);
    margin-bottom: 2.5rem;
}

.hero-image-wrapper {
    flex: 0 0 420px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.app-preview {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 16/10;
    border-radius: 1.25rem;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: dynamic-float 6s infinite alternate ease-in-out;
}

.app-preview-bar {
    height: 36px;
    background: #334155;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 6px;
}

.app-preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.app-preview-dot.red { background: #ef4444; }
.app-preview-dot.yellow { background: #f59e0b; }
.app-preview-dot.green { background: #22c55e; }

.app-preview-body {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
}

.app-preview-sidebar {
    width: 60px;
    background: rgba(93, 95, 239, 0.2);
    border-radius: 8px;
}

.app-preview-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-preview-line {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.app-preview-line.short { width: 60%; }
.app-preview-line.medium { width: 80%; }

.aurora-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(93, 95, 239, 0.3) 0%, rgba(192, 132, 252, 0.2) 40%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
    animation: aurora-move 10s infinite alternate ease-in-out;
}

.floating-logo-box {
    position: absolute;
    bottom: -20px;
    right: -20px;
    z-index: 10;
    animation: float-logo 4s infinite ease-in-out;
}

.hero-logo-icon {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

@keyframes dynamic-float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-15px); }
}

@keyframes float-logo {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

@keyframes aurora-move {
    0% { transform: translate(-10%, -10%) scale(1); opacity: 0.5; }
    100% { transform: translate(10%, 10%) scale(1.2); opacity: 0.8; }
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(93, 95, 239, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(93, 95, 239, 0.4);
}

.btn-secondary {
    background-color: #f0f0f0;
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #e5e5e5;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 1.5rem;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    background-color: #ffffff;
    box-shadow: var(--shadow);
}

footer {
    background: #f8fafc;
    padding: 4rem 0 2rem;
    border-top: 1px solid #f1f5f9;
    margin-top: 6rem;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--light-text);
    margin-top: 1rem;
    max-width: 320px;
    line-height: 1.8;
}

.footer-column h4 {
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Download Page */
.dl-hero-innovative {
    flex: 0 0 400px;
    position: relative;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
}

.device-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.device-item {
    position: absolute;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 1px solid rgba(255,255,255,0.1);
}

.device-main {
    width: 320px;
    height: 200px;
    z-index: 3;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.device-sub-1 {
    width: 240px;
    height: 150px;
    z-index: 2;
    left: 0;
    top: 15%;
    opacity: 0.6;
}

.device-sub-2 {
    width: 200px;
    height: 125px;
    z-index: 1;
    left: 10%;
    bottom: 10%;
    opacity: 0.4;
}

.dl-section {
    background: var(--white);
    border-radius: 2rem;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.dl-section.featured {
    border: 2px solid var(--primary-color);
}

.dl-badge {
    position: absolute;
    top: 22px;
    right: -45px;
    background: var(--primary-color);
    color: white;
    width: 180px;
    text-align: center;
    line-height: 32px;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
}

.platform-box {
    margin-top: 2rem;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.platform-header {
    padding: 1.2rem 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.2rem;
}

.platform-header.win { background: #eff6ff; color: #1d4ed8; border-bottom: 2px solid #3b82f6; }
.platform-header.mac { background: #f8fafc; color: #334155; border-bottom: 1px solid #e2e8f0; }
.platform-header.linux { background: #fff1f2; color: #9f1239; border-bottom: 1px solid #fecdd3; }

.platform-content { padding: 2rem; background: #fff; }

.dl-table-container {
    background: #111827;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.dl-table {
    width: 100%;
    border-collapse: collapse;
    color: #f3f4f6;
}

.dl-table th {
    text-align: left;
    padding: 1.2rem 1.5rem;
    font-size: 0.95rem;
    border-bottom: 1px solid #374151;
}

.dl-table td {
    padding: 1.5rem;
    border-bottom: 1px solid #1f2937;
    vertical-align: middle;
}

.how-to-choose {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #9ca3af;
}

.how-to-choose strong { color: #f3f4f6; }

.btn-dl-pink {
    background: #d946ef;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    text-decoration: none;
    transition: var(--transition);
}

.btn-dl-pink:hover {
    background: #c026d3;
    transform: translateY(-1px);
}

.instruction-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 1rem;
    margin-top: 1.5rem;
    border: 1px solid #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #475569;
}

.code-snippet {
    background: #0f172a;
    color: #38bdf8;
    padding: 1rem 1.2rem;
    border-radius: 0.75rem;
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
    margin: 0.8rem 0;
    overflow-x: auto;
}

.tech-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: #eef2ff;
    color: #4f46e5;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-right: 0.6rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
    border: 1px solid #dbeafe;
}

.notice-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    color: #92400e;
}

.changelog-container {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.changelog-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed #f1f5f9;
}

.version-date {
    display: block;
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0.3rem 0 0.8rem;
}

/* Article Pages */
.article-layout {
    max-width: var(--max-width);
    margin: 100px auto 4rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
}

.article-main {
    background: #fff;
    padding: 2.5rem 3rem;
    border-radius: 1rem;
    border: 1px solid #f1f5f9;
}

.article-main h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-meta {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.article-main h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--text-color);
}

.article-main p {
    margin-bottom: 1.2rem;
    color: #475569;
    line-height: 1.9;
}

.article-main ul, .article-main ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: #475569;
    line-height: 1.9;
}

.article-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #f1f5f9;
}

.sidebar-widget h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
}

.sidebar-widget li {
    margin-bottom: 0.6rem;
}

.sidebar-widget a {
    color: var(--light-text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.sidebar-widget a:hover {
    color: var(--primary-color);
}

.daily-tip {
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    border-left: 3px solid var(--primary-color);
    padding: 1rem 1.2rem;
    border-radius: 0 0.5rem 0.5rem 0;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.7;
}

.article-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0 4rem;
}

.article-list-full {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0 4rem;
}

.article-item-full {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2.5rem;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.article-item-full:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.article-item-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.article-item-full h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.article-item-full h2 a {
    color: inherit;
    text-decoration: none;
}

.article-item-full h2 a:hover {
    color: var(--primary-color);
}

.article-item-meta {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
}

.article-item-desc {
    color: #475569;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    font-size: 1.02rem;
}

.article-item-topics {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.5rem 1.5rem;
}

.article-item-topics li {
    color: #64748b;
    font-size: 0.95rem;
    padding-left: 1.2rem;
    position: relative;
}

.article-item-topics li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #10b981;
    font-size: 0.8rem;
}

.article-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.article-read-more:hover {
    gap: 0.7rem;
}

.article-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.article-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.article-card p {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.7;
}

.article-card .tag {
    display: inline-block;
    background: #eef2ff;
    color: var(--primary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.update-badge {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

@media (max-width: 968px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.5rem; }
    .hero-btns { justify-content: center; }
    .hero-image-wrapper, .dl-hero-innovative { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .article-layout { grid-template-columns: 1fr; }
    .nav-links { gap: 1.5rem; }
}

@media (max-width: 576px) {
    .nav-links { display: none; }
    .hero-title { font-size: 2rem; }
}
