@import url('theme.css');

:root {
    --primary-color: rgb(161, 76, 242);
    --primary-dark: rgb(130, 50, 210);
    --secondary-color: hsl(350, 83%, 70%);
    --accent-color: rgba(161, 76, 242, 0.45);
    --text-primary: #18181b;
    --text-secondary: #52525b;
    --text-light: #71717a;
    --bg-primary: #ffffff;
    --bg-secondary: #fdf4ff;
    --bg-tertiary: #fae8ff;
    --border-color: #f0abfc;
    --hero-bg: linear-gradient(155deg, #0a0512 0%, #1a0a2e 40%, #2d1454 75%, #1f0d35 100%);
    --footer-bg: #08040f;
    --glow-purple: rgba(161, 76, 242, 0.4);
    --glow-rose: hsla(350, 83%, 70%, 0.35);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-sm: 0 2px 8px rgba(161, 76, 242, 0.1);
    --shadow-md: 0 10px 28px rgba(161, 76, 242, 0.15);
    --shadow-lg: 0 18px 44px rgba(161, 76, 242, 0.2);
    --shadow-xl: 0 28px 56px rgba(10, 5, 18, 0.28);
}

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

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(161, 76, 242, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 100% 0%, hsla(350, 83%, 70%, 0.06), transparent);
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(12, 6, 20, 0.82);
    backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid rgba(161, 76, 242, 0.28);
    padding: 0.875rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: linear-gradient(120deg, #e9d5ff 0%, #f9a8d4 50%, #fda4af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #f9a8d4;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-lang {
    padding: 0.4rem 0.75rem;
    border: 1px solid rgba(161, 76, 242, 0.5);
    border-radius: var(--radius-sm);
    background: rgba(161, 76, 242, 0.15);
    color: #f5d0fe;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
}

.btn-lang:hover {
    background: rgba(161, 76, 242, 0.35);
    border-color: hsl(350, 83%, 70%);
}

/* 按钮 */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgb(161, 76, 242) 0%, #db2777 100%);
    color: white;
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    line-height: 1.5;
    box-shadow: 0 4px 16px var(--glow-purple);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px var(--glow-rose);
    text-decoration: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    line-height: 1.5;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--bg-tertiary);
    text-decoration: none;
}

.nav-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.88);
    border-color: rgba(233, 213, 255, 0.35);
}

.nav-actions .btn-secondary:hover {
    border-color: #f9a8d4;
    color: #fce7f3;
    background: hsla(350, 83%, 70%, 0.12);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    line-height: 1.5;
}

.btn-outline:hover {
    background: linear-gradient(135deg, rgb(161, 76, 242), #db2777);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.hero .btn-outline {
    color: #f9a8d4;
    border-color: rgba(249, 168, 212, 0.55);
}

.hero .btn-outline:hover {
    background: linear-gradient(135deg, rgb(161, 76, 242), #db2777);
    border-color: transparent;
    color: white;
}

.btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    border-radius: 12px;
    text-decoration: none;
    line-height: 1.5;
}

/* Hero 区域 */
.hero {
    background: var(--hero-bg);
    padding: 2rem 0 4rem;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(161, 76, 242, 0.35) 0%, transparent 42%),
        radial-gradient(circle at 85% 15%, hsla(350, 83%, 70%, 0.2) 0%, transparent 38%),
        radial-gradient(circle at 70% 80%, rgba(126, 34, 206, 0.15) 0%, transparent 45%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 8%;
    right: 12%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(253, 224, 71, 0.15) 0%, transparent 70%);
    filter: blur(2px);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #faf5ff;
}

.gradient-text {
    display: block;
    background: linear-gradient(120deg, #e9d5ff 0%, #f9a8d4 45%, #fda4af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(233, 213, 255, 0.82);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(233, 213, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(250, 245, 255, 0.9);
    box-shadow: none;
    backdrop-filter: blur(8px);
}

.feature-icon {
    width: 20px;
    height: 20px;
    color: #f9a8d4;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat-item {
    text-align: left;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(120deg, #e9d5ff, #fda4af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(233, 213, 255, 0.65);
}

/* Hero 视觉效果 */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-card {
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(233, 213, 255, 0.22);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 360px;
}

.card-1 {
    z-index: 2;
}

.card-1:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 40px -5px rgba(0, 0, 0, 0.15), 0 15px 15px -5px rgba(0, 0, 0, 0.08);
}

.card-badge {
    display: inline-block;
    background: linear-gradient(135deg, hsl(350, 83%, 70%), rgb(161, 76, 242));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.card-image {
    width: 100%;
    height: 240px;
    background: linear-gradient(145deg, rgb(80, 20, 140), hsl(350, 60%, 35%));
    border-radius: var(--radius-lg);
    margin-bottom: 1.25rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #faf5ff;
}

.card-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 1rem;
    color: rgba(233, 213, 255, 0.75);
    font-weight: 500;
}

/* 平台介绍 */
.intro-section {
    padding: 4rem 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-text {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.intro-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* 功能特色 */
.features-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(161, 76, 242, 0.35);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgb(161, 76, 242), hsl(350, 83%, 70%));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px var(--glow-purple);
}

.feature-svg {
    width: 32px;
    height: 32px;
    color: white;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.7;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.feature-list strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* 最新更新 */
.updates-section {
    padding: 4rem 0;
    background: white;
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.update-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid var(--border-color);
    transition: border-color 0.3s;
}

.update-card:hover {
    border-color: var(--primary-color);
}

.update-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.update-list {
    list-style: none;
}

.update-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.7;
}

.update-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1.3;
}

.update-list strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* 即将推出 */
.upcoming-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.upcoming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.upcoming-item {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, border-color 0.3s;
}

.upcoming-item:hover {
    transform: translateY(-5px);
    border-color: rgba(161, 76, 242, 0.4);
}

.upcoming-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.upcoming-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* 邀请计划 */
.invite-section {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.invite-intro {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-align: center;
}

.invite-intro strong {
    color: var(--primary-color);
    font-weight: 600;
}

.invite-highlight {
    background: linear-gradient(135deg, rgb(80, 20, 140), hsl(350, 60%, 35%), rgb(161, 76, 242));
    color: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 16px 40px var(--glow-purple);
}

.invite-highlight p {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.highlight-text {
    font-size: 1.75rem;
    font-weight: 700;
}

.invite-methods,
.invite-rules {
    margin-top: 3rem;
}

.invite-methods h3,
.invite-rules h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.method-item {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.method-item:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.invite-rules ul {
    list-style: none;
}

.invite-rules ul li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.125rem;
}

.invite-rules ul li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.25rem;
}

.invite-rules ul ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.invite-rules strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* 文章列表 */
.articles-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: -1rem;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(161, 76, 242, 0.45);
}

.article-category {
    display: inline-block;
    background: linear-gradient(135deg, rgba(161, 76, 242, 0.12), hsla(350, 83%, 70%, 0.1));
    color: var(--primary-dark);
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    width: fit-content;
}

.article-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-title-link {
    text-decoration: none;
    display: block;
    transition: all 0.3s;
}

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

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.article-excerpt {
    font-size: 0.938rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.meta-left {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.article-date,
.article-views {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.meta-icon {
    width: 16px;
    height: 16px;
    color: var(--text-light);
}

.article-read-more {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s;
}

.article-read-more:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

.articles-more {
    text-align: center;
    margin-top: 2rem;
}

/* CTA 区域 */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgb(80, 20, 140) 0%, hsl(350, 60%, 35%) 50%, rgb(161, 76, 242) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.08), transparent 55%);
    pointer-events: none;
}

.cta-content {
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-section .btn-primary {
    background: white;
    color: rgb(130, 50, 210);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 页脚 */
.footer {
    background: var(--footer-bg);
    color: white;
    padding: 3rem 0 1.5rem;
    border-top: 1px solid rgba(161, 76, 242, 0.3);
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-brand .brand-name {
    color: white;
    -webkit-text-fill-color: unset;
    background: linear-gradient(120deg, #e9d5ff, #fda4af);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand .logo-icon {
    filter: brightness(0) invert(1);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* 语言切换器 */
.language-switcher {
    position: relative;
    margin-right: 1rem;
}

.current-language {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.current-language::after {
    content: '▼';
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.language-switcher.active .current-language::after {
    transform: rotate(180deg);
}

.current-language:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
}

.language-switcher.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-secondary);
    font-weight: 500;
}

.language-option:first-child {
    border-radius: 8px 8px 0 0;
}

.language-option:last-child {
    border-radius: 0 0 8px 8px;
}

.language-option:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.language-option.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

/* 文章详情页 */
.article-page {
    padding: 2rem 0 4rem;
    background: white;
    min-height: 100vh;
}

.article-header {
    text-align: center;
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.article-category-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.article-page-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.article-meta-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9375rem;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
}

.article-section {
    margin-bottom: 3rem;
}

.article-section h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2.5rem 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-color);
}

.article-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

.article-section h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 1rem;
}

.article-section p {
    font-size: 1.0625rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.article-section ul,
.article-section ol {
    margin: 1.25rem 0;
    padding-left: 2rem;
}

.article-section li {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.article-section strong {
    color: var(--primary-color);
    font-weight: 600;
}

.article-section a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid var(--primary-color);
    transition: all 0.3s;
}

.article-section a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

.lead-text {
    font-size: 1.25rem !important;
    line-height: 1.8 !important;
    color: var(--text-secondary) !important;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    margin-bottom: 2rem !important;
}

.tips-box {
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.tips-box h4 {
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
    color: var(--primary-color);
    font-size: 1.125rem !important;
}

.tips-box ul {
    margin: 0 !important;
}

.tips-box li {
    margin-bottom: 0.5rem !important;
}

.code-box {
    background: #f5f5f5;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-family: 'Courier New', monospace;
}

.code-box h4 {
    margin-top: 0 !important;
    margin-bottom: 0.75rem !important;
    color: var(--primary-color);
}

.code-box p {
    margin-bottom: 0.5rem !important;
    color: #333;
}

.comparison-table {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover {
    background: var(--bg-secondary);
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    gap: 1rem;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgb(161, 76, 242), #db2777);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px var(--glow-purple);
    transition: all 0.3s;
    z-index: 999;
    font-size: 1.25rem;
    font-weight: 700;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.back-to-top.show {
    display: flex;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* 响应式设计 */
@media (max-width: 968px) {
    .brand-name {
        font-size: 1.25rem;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* 移动端隐藏英雄视觉卡片 */
    .hero-visual {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .nav-menu {
        display: none;
    }

    .features-grid,
    .updates-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    /* 移动端隐藏语言切换按钮 */
    .language-switcher {
        display: none;
    }

    /* 文章页面移动端适配 */
    .article-page-title {
        font-size: 1.75rem;
    }

    .article-section h2 {
        font-size: 1.5rem;
    }

    .article-section h3 {
        font-size: 1.25rem;
    }

    .article-section p,
    .article-section li {
        font-size: 1rem;
    }

    .article-navigation {
        flex-direction: column;
    }

    .article-navigation a {
        width: 100%;
        text-align: center;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 640px) {
    .brand-name {
        font-size: 1.125rem;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-features {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .feature-tag {
        flex: 1;
        padding: 0.5rem 0.5rem;
        font-size: 0.75rem;
        gap: 0.25rem;
        justify-content: center;
    }

    .feature-tag span {
        display: block;
        text-align: center;
    }

    .feature-icon {
        width: 16px;
        height: 16px;
    }

    .hero-stats {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        justify-content: space-between;
    }

    .stat-item {
        flex: 1;
        text-align: center;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .btn-secondary,
    .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

