:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --success-color: #059669;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8fafc;
    min-height: 100vh;
}

/* ===== 导航栏 ===== */
.navbar {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-1px);
}

/* ===== Hero / 页面头部 ===== */
.hero-section {
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
    position: relative;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.hero-section.has-bg-image {
    background: url('/images/hero-bg.jpg') center center / cover no-repeat, 
                linear-gradient(135deg, rgba(37, 99, 235, 0.5) 0%, rgba(29, 78, 216, 0.5) 100%);
    background-blend-mode: overlay;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 24px;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    margin: 4px;
    font-size: 0.9rem;
}

.page-header {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 50px;
}

.page-header.has-bg-image {
    background: url('/images/hero-bg.jpg') center center / cover no-repeat, 
                linear-gradient(135deg, rgba(37, 99, 235, 0.5) 0%, rgba(29, 78, 216, 0.5) 100%);
    background-blend-mode: overlay;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
}

/* ===== 主卡片 ===== */
.main-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border: none;
    overflow: hidden;
}

.card-header-custom {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 24px 30px;
}

.card-body-custom {
    padding: 30px;
}

/* ===== 表单 ===== */
.form-label {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

.form-control, .form-select {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ===== 按钮 ===== */
.btn-primary-custom {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
    color: white;
}

.btn-primary-custom:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.btn-primary-custom:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-white {
    background: white;
    color: #2563eb;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: #1d4ed8;
}

.cta-button {
    background: white;
    color: #2563eb;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: #1d4ed8;
}

.download-btn {
    background: #059669;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.download-btn:hover {
    background: #047857;
    color: white;
    transform: translateY(-1px);
}

/* ===== 结果区域 ===== */
.result-container {
    display: none;
    margin-top: 24px;
    padding: 24px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.result-container.show {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.audio-player {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 16px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

.error-message {
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 16px;
    border-radius: 8px;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* ===== 特色区域 ===== */
.feature-section {
    padding: 40px 0;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: white;
    font-size: 1.5rem;
}

.how-it-works {
    background: white;
    padding: 50px 0;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 16px;
}

.faq-section {
    padding: 50px 0;
    background: #f8fafc;
}

.accordion-button {
    font-weight: 600;
    font-size: 1.1rem;
    color: #0f172a;
    background-color: white;
    border-bottom: 1px solid #e2e8f0;
}

.accordion-button:not(.collapsed) {
    background-color: #f8fafc;
    color: #0f172a;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: #2563eb;
}

.accordion-body {
    padding: 20px 20px;
    color: #333;
    line-height: 1.8;
}

/* ===== 通用章节标题 ===== */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #0f172a;
}

/* ===== 文章 / 博客页面 ===== */
.article-header {
    color: white;
    padding: 80px 0;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #94a3b8;
    font-size: 0.875rem;
}

.article-meta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    opacity: 0.9;
}

.article-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 50px;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.article-content h2 {
    color: #0f172a;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
}

.article-content h3 {
    color: #1e40af;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-content p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 20px;
}

.article-content ul, .article-content ol {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 20px;
}

.article-content li {
    margin-bottom: 10px;
}

/* ===== 文章卡片（列表页） ===== */
.article-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.article-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.article-content-inner {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0f172a;
    line-height: 1.4;
}

.article-excerpt {
    color: #64748b;
    margin-bottom: 16px;
    flex: 1;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #94a3b8;
    font-size: 0.875rem;
}

.read-more {
    display: inline-block;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    margin-top: 16px;
    transition: color 0.2s ease;
}

.read-more:hover {
    color: #1d4ed8;
}

/* ===== 文章卡片内容 ===== */
.article-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ===== 文章元数据（列表页） ===== */
.article-meta-card {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #94a3b8;
    font-size: 0.875rem;
}

/* ===== 文章头部渐变色 ===== */
.article-header-bg-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.article-header-bg-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.article-header-bg-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.article-header-bg-4 { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.article-header-bg-5 { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }
.article-header-bg-6 { background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%); }

/* ===== 文章卡片渐变色（列表页） ===== */
.card-gradient-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.card-gradient-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.card-gradient-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.card-gradient-4 { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.card-gradient-5 { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }
.card-gradient-6 { background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%); }
.card-gradient-7 { background: linear-gradient(135deg, #ebbba7 0%, #cfc7f8 100%); }
.card-gradient-8 { background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%); }
.card-gradient-9 { background: linear-gradient(135deg, #fddb92 0%, #d1fdff 100%); }
.card-gradient-10 { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }
.card-gradient-11 { background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%); }
.card-gradient-12 { background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%); }

/* ===== Badge 样式 ===== */
.badge-tutorial { background: #dbeafe; color: #1e40af; }
.badge-technical { background: #d1fae5; color: #065f46; }
.badge-guide { background: #d1fae5; color: #065f46; }
.badge-industry { background: #ede9fe; color: #5b21b6; }
.badge-tips { background: #fce7f3; color: #9d174d; }
.badge-future { background: #e0f2fe; color: #0369a1; }
.badge-features { background: #ede9fe; color: #5b21b6; }

/* ===== CTA 区域 ===== */
.cta-section {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin-top: 40px;
}

/* ===== 面包屑 ===== */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.breadcrumb a {
    text-decoration: none;
    opacity: 0.8;
    color: white;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb-item.active {
    opacity: 0.9;
    color: white;
}

/* ===== 提示框 ===== */
.highlight-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #0ea5e9;
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin: 25px 0;
}

.tip-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin: 25px 0;
}

/* ===== 表格 ===== */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.comparison-table th, .comparison-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.comparison-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #0f172a;
}

.comparison-table tr:hover {
    background: #f8fafc;
}

/* ===== SPA 页面 ===== */
.page-section {
    display: none;
}

.page-section.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.about-section {
    padding: 40px 0;
}

/* ===== 团队卡片 ===== */
.team-card {
    text-align: center;
    padding: 30px 20px;
    background: #f8fafc;
    border-radius: 12px;
    height: 100%;
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 2.5rem;
}

/* ===== 时间线 (about) ===== */
.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 24px;
    width: 2px;
    height: calc(100% - 10px);
    background: #e2e8f0;
}

.timeline-item:last-child::after {
    display: none;
}

/* ===== 价值观卡片 (about) ===== */
.value-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: white;
    font-size: 1.5rem;
}

/* ===== FAQ ===== */
.faq-category {
    margin-bottom: 32px;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== 政策/条款页面 ===== */
.policy-text {
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 16px;
}

.policy-list {
    color: #64748b;
    line-height: 1.8;
    padding-left: 20px;
    margin-bottom: 16px;
}

.policy-list li {
    margin-bottom: 8px;
}

.terms-text {
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 16px;
}

.terms-list {
    color: #64748b;
    line-height: 1.8;
    padding-left: 20px;
    margin-bottom: 16px;
}

.terms-list li {
    margin-bottom: 8px;
}

.highlight {
    background-color: #dbeafe;
    color: #1e40af;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

/* ===== 支持页面 ===== */
.support-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border: none;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 30px;
    height: 100%;
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.card-text {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
}

.card-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}

.card-link:hover {
    color: #1d4ed8;
}

.quick-links {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    padding: 30px;
}

.quick-links-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 16px;
}

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

.quick-links-list li {
    margin-bottom: 10px;
}

.quick-links-list li:last-child {
    margin-bottom: 0;
}

.quick-links-list a {
    color: #64748b;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s ease;
}

.quick-links-list a:hover {
    color: #2563eb;
}

/* ===== Articles 页特色 ===== */
.featured-article {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 40px;
}

.featured-image {
    height: 300px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 6rem;
}

.featured-content {
    padding: 40px;
}

.featured-badge {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-category-section {
    margin-bottom: 50px;
}

.article-category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.newsletter-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin: 50px 0;
    text-align: center;
}

/* ===== 页脚 ===== */
.footer {
    background: #1e293b;
    color: white;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: white;
}

/* ===== 语言切换器 ===== */
.lang-switcher .dropdown-item {
    cursor: pointer;
    font-size: 0.9rem;
}
.lang-switcher .dropdown-item:hover {
    background-color: #f1f5f9;
}
.lang-check {
    width: 16px;
    text-align: center;
}

/* ===== i18n FOUC 防止 ===== */
html.i18n-loading [data-i18n] {
    visibility: hidden;
}
html.i18n-ready [data-i18n] {
    visibility: visible;
}

/* ===== 文章详情页特色样式 (post/3.html) ===== */
.feature-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
}
.feature-box h4 {
    color: #0369a1;
    font-weight: 600;
    margin-bottom: 12px;
}
.voice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 20px 0;
}
.voice-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}
.voice-card h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.voice-card p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}
.code-box {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin: 20px 0;
    overflow-x: auto;
}
