/*
Theme Name: Youdao Style Theme
Theme URI: https://example.com
Author: Learning Theme
Author URI: https://example.com
Description: 基于有道翻译风格的学习主题
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: youdao-style
Tags: dark-mode, custom-colors, custom-menu, custom-logo, featured-images
*/

/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables - 有道官网灰白配色 */
:root {
    /* 主色调 - 网易红 */
    --primary-color: #d83c34;
    --primary-dark: #c22b25;
    --primary-light: #e85750;
    
    /* 强调色 */
    --accent-color: #d83c34;
    --accent-hover: #c22b25;
    
    /* 背景色 - 灰白浅色系 */
    --bg-dark: #f5f6f8;
    --bg-card: #ffffff;
    --bg-card-hover: #fafafa;
    --bg-card-active: #f0f0f0;
    
    /* 文字颜色 */
    --text-light: #ffffff;
    --text-primary: #333333;
    --text-gray: #666666;
    --text-muted: #999999;
    
    /* 边框颜色 */
    --border-color: #e5e7eb;
    --border-hover: #d1d5db;
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #d83c34 0%, #c22b25 100%);
    --gradient-accent: linear-gradient(135deg, #d83c34 0%, #c22b25 100%);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Header - 顶部导航
   ============================================ */
.site-header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 14px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-logo .logo-text {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
}

.main-nav a {
    color: var(--text-gray);
    font-size: 0.9rem;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.main-nav a:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
}

.main-nav a.active {
    color: var(--primary-color);
    background: rgba(216, 60, 52, 0.1);
}

.header-buttons {
    display: flex;
    gap: 10px;
}

/* ============================================
   Buttons - 按钮样式
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
    box-shadow: 0 2px 8px rgba(216, 60, 52, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(216, 60, 52, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-large {
    padding: 12px 32px;
    font-size: 1rem;
}

/* ============================================
   Hero Section - 主横幅区域
   ============================================ */
.hero-section {
    padding: 170px 0 90px;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(216, 60, 52, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 80%, rgba(216, 60, 52, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.hero-text {
    text-align: left;
    flex: 0 0 auto;
    max-width: 520px;
}

.hero-image {
    flex: 0 0 auto;
}

.hero-product-img {
    max-width: 460px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.hero-slogan {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero-description {
    color: var(--text-gray);
    font-size: 1rem;
    margin-bottom: 36px;
    line-height: 1.9;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.hero-feature {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ============================================
   Section Styles - 通用区块样式
   ============================================ */
.section {
    padding: 72px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 44px;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============================================
   AI Box Section - AI功能区
   ============================================ */
.ai-box-section {
    padding: 72px 0;
    background: var(--bg-card);
}

.ai-box-header {
    text-align: center;
    margin-bottom: 44px;
}

.ai-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ai-feature-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 26px;
    transition: all 0.3s ease;
}

.ai-feature-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.ai-feature-icon {
    font-size: 1.8rem;
    margin-bottom: 14px;
}

.ai-feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.ai-feature-desc {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   Function Section - 功能展示区
   ============================================ */
.function-section {
    padding: 72px 0;
    background: var(--bg-dark);
}

.function-header {
    text-align: center;
    margin-bottom: 36px;
}

.function-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.function-tab {
    padding: 10px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.function-tab:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.function-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
}

.function-panel {
    display: none;
}

.function-panel.active {
    display: block;
}

.function-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.function-info h3 {
    font-size: 1.6rem;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-primary);
}

.function-info > p {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.function-list {
    list-style: none;
}

.function-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

.function-list li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.function-demo {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    min-height: 260px;
}

/* Demo Box */
.demo-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.demo-input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.demo-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.demo-input::placeholder {
    color: var(--text-muted);
}

.demo-textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.95rem;
    min-height: 100px;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.demo-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.demo-textarea::placeholder {
    color: var(--text-muted);
}

.demo-result {
    padding: 18px;
    background: rgba(216, 60, 52, 0.06);
    border: 1px solid rgba(216, 60, 52, 0.15);
    border-radius: 6px;
    min-height: 70px;
}

/* Demo Screenshot - 真实截图展示 */
.demo-screenshot {
    width: 100%;
    max-width: 520px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: block;
}

/* Upload Zone */
.upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    padding: 28px;
    text-align: center;
    transition: border-color 0.2s ease;
}

.upload-zone:hover {
    border-color: var(--primary-color);
}

.upload-icon {
    font-size: 2.8rem;
    margin-bottom: 14px;
}

/* ============================================
   Blog Section - 有道课堂
   ============================================ */
.blog-section {
    padding: 72px 0;
    background: var(--bg-card);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 22px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.blog-date {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.blog-title {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-primary);
}

.blog-title a {
    color: var(--text-primary);
}

.blog-title a:hover {
    color: var(--primary-color);
}

/* ============================================
   FAQ Section - 常见问题
   ============================================ */
.faq-section {
    padding: 72px 0;
    background: var(--bg-dark);
}

.faq-list {
    max-width: 780px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.faq-item:hover {
    border-color: var(--text-muted);
}

.faq-question {
    padding: 16px 22px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: transform 0.25s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 22px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 0.9rem;
}

.faq-item.active .faq-answer {
    padding: 0 22px 16px;
    max-height: 300px;
}

/* ============================================
   Download Section - 软件下载
   ============================================ */
.download-section {
    padding: 72px 0;
    background: var(--bg-card);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.download-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.25s ease;
}

.download-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.download-icon {
    font-size: 1.8rem;
}

.download-name {
    font-size: 0.85rem;
    color: var(--text-primary);
    text-align: center;
}

/* ============================================
   Footer - 底部区域
   ============================================ */
.site-footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    padding: 56px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 36px;
}

.footer-brand .logo-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.footer-brand p {
    color: var(--text-gray);
    font-size: 0.85rem;
    line-height: 1.7;
}

.footer-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-gray);
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 0.8rem;
    transition: all 0.25s ease;
}

.footer-social a:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

/* ============================================
   Subpage Banner - 子页面顶部横幅
   ============================================ */
.subpage-banner {
    padding: 130px 0 56px;
    background: var(--bg-dark);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.subpage-banner-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.subpage-banner-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.subpage-banner-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.subpage-banner-note a {
    color: var(--primary-color);
}

/* ============================================
   Download Page - 软件下载页
   ============================================ */
.download-platform-section {
    padding: 60px 0;
    background: var(--bg-card);
}

.platform-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 800px;
    margin: 0 auto;
}

.platform-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 28px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.25s ease;
}

.platform-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(216, 60, 52, 0.08);
}

.platform-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
}

.platform-info {
    flex: 1;
}

.platform-info h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.platform-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   Features Page - 功能展示页
   ============================================ */
.features-page-section {
    padding: 60px 0;
    background: var(--bg-card);
}

.feature-detail-block {
    padding: 32px 0;
    border-bottom: 1px solid var(--border-color);
}

.feature-detail-block:last-child {
    border-bottom: none;
}

.feature-detail-content {
    display: flex;
    gap: 48px;
    max-width: 1040px;
    margin: 0 auto;
    align-items: center;
}

.feature-reverse {
    flex-direction: row-reverse;
}

.feature-detail-text {
    flex: 1;
}

.feature-detail-img {
    flex: 0 0 440px;
}

.feature-detail-img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.feature-shortcut {
    margin-bottom: 18px;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.feature-shortcut kbd {
    display: inline-block;
    padding: 2px 8px;
    margin: 0 2px;
    background: #f0f0f0;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 0.82rem;
    font-family: monospace;
    color: var(--text-primary);
}

.feature-screenshot-demo img {
    max-width: 480px;
}

.feature-screenshot-block {
    padding: 48px 0;
    background: linear-gradient(135deg, rgba(216, 60, 52, 0.03), rgba(216, 60, 52, 0.01));
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
    border-radius: 16px;
}

.feature-detail-icon {
    font-size: 2.8rem;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    border-radius: 14px;
    border: 1px solid var(--border-color);
}

.feature-detail-text {
    flex: 1;
}

.feature-detail-text h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.feature-highlight {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 14px;
}

.feature-detail-list {
    list-style: none;
}

.feature-detail-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

.feature-detail-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.7rem;
    top: 4px;
}

.features-cta {
    padding: 64px 0;
    background: var(--bg-dark);
    text-align: center;
}

.features-cta h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.features-cta p {
    color: var(--text-gray);
    margin-bottom: 28px;
    font-size: 0.95rem;
}

/* ============================================
   Platform Detail Page - 平台详情页
   ============================================ */
.platform-detail-section {
    padding: 60px 0;
    background: var(--bg-card);
}

.version-current {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 32px;
    background: linear-gradient(135deg, rgba(216, 60, 52, 0.05), rgba(216, 60, 52, 0.02));
    border: 1px solid rgba(216, 60, 52, 0.15);
    border-radius: 12px;
    margin-bottom: 48px;
}

.version-badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 14px;
    white-space: nowrap;
}

.version-info {
    flex: 1;
}

.version-info h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.version-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 14px;
}

.version-features {
    margin-bottom: 20px;
}

.version-features ul {
    list-style: none;
}

.version-features li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.version-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.8rem;
}

.version-history {
    margin-bottom: 40px;
}

.version-history .section-title {
    text-align: left;
    font-size: 1.4rem;
    margin-bottom: 24px;
}

.version-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.version-item {
    padding: 22px 26px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: border-color 0.2s ease;
}

.version-item:hover {
    border-color: var(--border-hover);
}

.version-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.version-number {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.version-date-tag {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.version-changelog {
    list-style: none;
    margin-bottom: 14px;
}

.version-changelog li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 4px;
    font-size: 0.88rem;
    color: var(--text-gray);
}

.version-changelog li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.82rem;
    border-radius: 4px;
}

.other-platforms {
    padding: 56px 0;
    background: var(--bg-dark);
}

.platform-link-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.platform-link-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-gray);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.platform-link-item:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ============================================
   Classroom Page - 有道课堂列表页
   ============================================ */
.classroom-list-section {
    padding: 56px 0;
    background: var(--bg-card);
}

/* 文章卡片网格 (4列) */
.classroom-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.article-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.article-card-title {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 10px;
    flex: 1;
}

.article-card-excerpt {
    font-size: 0.82rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 14px;
    flex: 1;
}

.article-card-stats {
    display: flex;
    gap: 14px;
    font-size: 0.78rem;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.article-list {
    max-width: 860px;
    margin: 0 auto;
}

.article-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
}

.article-item:first-child {
    padding-top: 0;
}

.article-item:last-child {
    border-bottom: none;
}

.article-meta {
    margin-bottom: 8px;
}

.article-category {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(216, 60, 52, 0.08);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.article-category:hover {
    background: rgba(216, 60, 52, 0.15);
}

.article-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.article-title a {
    color: var(--text-primary);
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-excerpt {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 12px;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.article-stats {
    display: flex;
    gap: 12px;
}

.stat {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.articles-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.articles-pagination a,
.articles-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-gray);
    transition: all 0.2s ease;
}

.articles-pagination a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.articles-pagination .current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
}

/* Logo link in header */
.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: inherit;
}

.logo-link:hover {
    color: inherit;
}

/* ============================================
   Responsive - 响应式设计
   ============================================ */
@media (max-width: 1024px) {
    .ai-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .function-content {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .download-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .classroom-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-detail-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 40px;
    }

    .hero-text {
        text-align: center;
        max-width: 100%;
    }

    .hero-product-img {
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-subtitle {
        font-size: 1.6rem;
    }
    
    .hero-slogan {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }
    
    .hero-features {
        gap: 14px;
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }
    
    .ai-features-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .download-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 18px;
        text-align: center;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    /* ===== Subpage Responsive ===== */
    .subpage-banner {
        padding: 110px 0 40px;
    }
    
    .subpage-banner-title {
        font-size: 1.8rem;
    }
    
    .platform-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 12px;
    }
    
    .platform-grid {
        padding: 0 10px;
    }
    
    .feature-detail-content,
    .feature-reverse {
        flex-direction: column;
        gap: 16px;
    }

    .feature-detail-img {
        flex: 0 0 auto;
        width: 100%;
    }

    .feature-detail-img img {
        max-width: 100%;
    }

    .feature-screenshot-demo img {
        max-width: 100%;
    }

    .feature-screenshot-block {
        margin: 0;
        padding: 32px 16px;
        border-radius: 12px;
    }

    .version-current {
        flex-direction: column;
        padding: 22px;
    }
    
    .version-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .classroom-grid {
        grid-template-columns: 1fr;
    }

    .article-card {
        padding: 16px;
    }

    .article-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .platform-link-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .platform-link-item {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* ============================================
   WordPress Specific - WordPress特定样式
   ============================================ */
.entry-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 20px 60px;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
    margin-top: 36px;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.entry-content p {
    margin-bottom: 18px;
    line-height: 1.8;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 18px;
    padding-left: 28px;
}

.entry-content li {
    margin-bottom: 8px;
}

/* Screen reader text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}
