/* ==========================================================================
   1. CORE VARIABLES & RESET (莫兰迪色系定义)
   ========================================================================== */
:root {
    /* 背景色：高级暖灰/米白 */
    --bg-body: #F9F8F6;
    --bg-card: #FFFFFF;
    --bg-panel: #FAFAFA;

    /* 文字颜色 */
    --text-primary: #2C3333;
    /* 深岩灰 */
    --text-secondary: #6B7280;
    /* 中性灰 */
    --text-light: #9CA3AF;
    /* 浅灰 */

    /* 品牌色 (Morandi Palette) */
    --accent-main: #7B9E89;
    /* 鼠尾草绿 (核心色) */
    --accent-dark: #5F7A6A;
    /* 深绿 (Hover状态) */
    --accent-blue: #8FA6B5;
    /* 雾霾蓝 (Agency/科技感) */

    /* 边框与分割线 */
    --border-light: #E5E7EB;
    --border-focus: #7B9E89;

    /* 阴影 (柔和的高级感) */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-float: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.01);

    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* 全局重置 */
*,
*::before,
*::after {
    box-sizing: border-box;
    /* 关键：防止padding撑破布局 */
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    /* 标题用衬线体 */
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

/* 容器限制 */
.container {
    width: 100%;
    max-width: 1200px;
    /* 限制最大宽度，防止在大屏散开 */
    margin: 0 auto;
    padding: 0 20px;
}

/* 工具类 */
.hidden {
    display: none !important;
}

.full-width {
    width: 100%;
}

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
header {
    background: rgba(249, 248, 246, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 15px 0;
}

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

.brand {
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    color: var(--text-primary);
    text-decoration: none;
}

.brand strong {
    color: var(--accent-main);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-link.active {
    border-bottom: 2px solid var(--accent-main);
}

/* 状态徽章 */
.status-badge {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.free {
    background: #E5E7EB;
    color: #4B5563;
}

.status-badge.pro {
    background: var(--accent-main);
    color: #fff;
}

.status-badge.agency {
    background: var(--accent-blue);
    color: #fff;
}

/* ==========================================================================
   3. BUTTONS (按钮组件)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    gap: 8px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* 主要按钮 (绿) */
.btn-primary {
    background-color: var(--accent-main);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:disabled {
    background-color: #D1D5DB;
    cursor: not-allowed;
    transform: none;
}

/* 次要按钮 (蓝/灰) */
.btn-secondary {
    background-color: var(--accent-blue);
    color: #fff;
}

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

/* 描边按钮 */
.btn-outline {
    background-color: transparent;
    border-color: #D1D5DB;
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background-color: #fff;
}

/* 纯文字按钮 */
.btn-text-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-text-link:hover {
    color: var(--accent-main);
}

/* 图标按钮 */
.btn-icon-only {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.btn-icon-only:hover {
    background-color: #F3F4F6;
    color: var(--text-primary);
}

/* ==========================================================================
   4. HOME PAGE (GENERATOR WORKSTATION)
   ========================================================================== */

/* Hero Title */
.hero-section {
    text-align: center;
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-tag {
    background: #E8F0FE;
    color: #1A73E8;
    /* 或者用 var(--accent-main) 调淡 */
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-title em {
    color: var(--accent-main);
    font-style: italic;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px auto;
}

/* Grid Layout */
.main-wrapper {
    padding-bottom: 80px;
}

.generator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 左右等分 */
    gap: 30px;
    margin-bottom: 40px;
}

/* Panels */
.panel {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-header {
    padding: 15px 25px;
    background: #FAFAFA;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    color: var(--text-secondary);
}

.panel-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Input Elements */
textarea {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    resize: vertical;
    background: #fff;
    transition: 0.3s;
}

textarea:focus {
    outline: none;
    border-color: var(--accent-main);
    box-shadow: 0 0 0 3px rgba(123, 158, 137, 0.1);
}

/* Upload & Vision Lock (Frosted Glass) */
.upload-wrapper {
    position: relative;
    margin-top: 20px;
}

.upload-dropzone {
    border: 2px dashed #E5E7EB;
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    background: #F9FAFB;
    cursor: pointer;
    transition: 0.3s;
}

.upload-dropzone:hover {
    border-color: var(--accent-main);
    background: #F0FDF4;
}

.dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upload-text {
    font-weight: 600;
    color: var(--text-primary);
    margin: 10px 0 5px 0;
}

.upload-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* 毛玻璃遮罩 */
.glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: opacity 0.3s;
}

.glass-overlay.unlocked {
    opacity: 0;
    pointer-events: none;
}

.lock-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Output Area */
.output-body {
    background: #FAFAFA;
}

.output-text {
    font-family: 'Georgia', serif;
    /* 衬线体，更像报纸/文案 */
    font-size: 1.05rem;
    color: #374151;
    white-space: pre-wrap;
    height: 100%;
}

.empty-state {
    text-align: center;
    color: var(--text-light);
    margin-top: 40px;
}

.empty-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

/* Agency Batch Section */
.agency-section {
    width: 100%;
}

.agency-card {
    background: linear-gradient(135deg, #fff 0%, #F3F4F6 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.agency-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.agency-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.badge-agency {
    background: var(--text-primary);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.bulk-dropzone {
    border: 2px dashed #D1D5DB;
    background: #fff;
    padding: 40px;
    text-align: center;
    border-radius: var(--radius-md);
}

/* Progress Bar */
.bulk-progress {
    margin-top: 20px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.progress-track {
    background: #E5E7EB;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    background: var(--accent-main);
    height: 100%;
    width: 0%;
    transition: width 0.3s;
}

.bulk-download {
    margin-top: 20px;
    text-align: center;
}

/* Control Bar */
.control-bar {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.turnstile-wrapper {
    display: flex;
    justify-content: center;
}

/* ==========================================================================
   5. PRICING PAGE
   ========================================================================== */
.pricing-hero {
    text-align: center;
    padding: 80px 0 60px 0;
    background: linear-gradient(180deg, rgba(123, 158, 137, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
}

.trust-badges {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.badge-pill {
    background: #fff;
    border: 1px solid var(--border-light);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-bottom: 80px;
    align-items: flex-start;
}

.pricing-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Popular Highlight */
.pricing-card.popular {
    border: 1px solid var(--accent-main);
    box-shadow: var(--shadow-md);
    transform: scale(1.02);
    z-index: 10;
}

.pricing-card.popular:hover {
    transform: scale(1.02) translateY(-5px);
}

.popular-tag {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent-main);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 15px;
    border-radius: 20px;
    letter-spacing: 1px;
}

.card-top h3 {
    color: var(--text-secondary);
    font-size: 1rem;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1px;
}

.price-block {
    text-align: center;
    margin: 15px 0;
    color: var(--text-primary);
    font-family: 'Playfair Display', serif;
}

.currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.price-block {
    font-size: 3rem;
    font-weight: 700;
}

.period {
    font-size: 1rem;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.desc {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.divider {
    height: 1px;
    background: #F3F4F6;
    margin: 20px 0;
}

.features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    flex-grow: 1;
}

.features li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.features li::before {
    content: "✓";
    color: var(--accent-main);
    font-weight: bold;
    margin-right: 12px;
}

.features li.disabled {
    color: #D1D5DB;
    text-decoration: line-through;
}

.features li.disabled::before {
    content: "✕";
    color: #E5E7EB;
}

.guarantee {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 15px;
}

/* FAQ Section */
.faq-section {
    background: #FAFAFA;
    padding: 60px 0;
    border-top: 1px solid var(--border-light);
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.faq-box h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.faq-box p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==========================================================================
   6. MODALS & FOOTER
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-card {
    background: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-float);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-body {
    padding: 30px;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    margin: 15px 0 20px 0;
    text-align: center;
    font-size: 1rem;
}

footer {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-light);
    background: #fff;
}

/* ==========================================================================
   7. RESPONSIVE (移动端适配)
   ========================================================================== */
@media (max-width: 768px) {
    .generator-grid {
        grid-template-columns: 1fr;
    }

    /* 手机端单列 */
    .faq-grid {
        grid-template-columns: 1fr;
    }

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

    .pricing-card.popular {
        transform: none;
    }

    /* 手机端取消放大效果 */
    .nav-link {
        display: none;
    }

    /* 手机端简化导航，只保留 Pricing */
    .nav-link.active {
        display: block;
    }

    .panel {
        min-height: auto;
    }
}

/* ==========================================================================
   8. MOBILE & TOUCH OPTIMIZATION (深度移动端适配)
   ========================================================================== */

/* 移动端汉堡菜单样式 */
.mobile-menu-btn {
    display: none;
    /* 桌面端隐藏 */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 5px;
}

.mobile-nav-overlay {
    position: fixed;
    top: 60px;
    /* Header高度 */
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transform: translateY(-150%);
    /* 默认上移隐藏 */
    transition: transform 0.3s ease;
    z-index: 49;
    box-shadow: var(--shadow-lg);
}

.mobile-nav-overlay.active {
    transform: translateY(0);
}

/* 移动端媒体查询 */
@media (max-width: 768px) {

    /* 1. 布局垂直化 */
    .container {
        padding: 0 16px;
    }

    /* 增加两侧留白 */
    .generator-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .nav-link {
        display: none;
    }

    /* 隐藏桌面导航 */
    .mobile-menu-btn {
        display: block;
    }

    /* 显示汉堡按钮 */

    /* 2. 拇指友好区 (Thumb Zone) */
    .btn {
        width: 100%;
        /* 按钮全宽 */
        padding: 16px 0;
        /* 增加高度，方便点击 */
        font-size: 1.05rem;
        margin-bottom: 10px;
    }

    .btn-text-link {
        display: none;
    }

    /* 手机端隐藏纯文字链接，太难点 */

    /* 3. 输入框优化 */
    textarea,
    input[type="text"],
    input[type="email"] {
        font-size: 16px !important;
        /* 防止 iOS 输入时自动放大页面 */
        padding: 15px;
        -webkit-appearance: none;
        /* 移除 iOS 默认圆角 */
        border-radius: var(--radius-sm);
    }

    /* 4. 上传区域变成大按钮 */
    .upload-dropzone {
        padding: 20px;
        border: 2px solid #E5E7EB;
        /* 实线更清晰 */
        background: #fff;
    }

    .dropzone-content {
        flex-direction: row;
        gap: 15px;
        justify-content: center;
    }

    .upload-hint {
        display: none;
    }

    /* 手机屏幕小，隐藏次要文字 */

    /* 5. 头部调整 */
    .hero-title {
        font-size: 2rem;
    }

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

    /* 6. 输出区域优化 */
    .output-panel {
        order: 2;
        /* 确保输出在输入下方 */
    }

    .output-text {
        min-height: 200px;
        font-size: 1rem;
    }

    /* 7. Agency 区域 */
    .bulk-dropzone {
        padding: 20px;
    }

    /* 8. 弹窗适配 */
    .modal-card {
        width: 95%;
        bottom: 0;
        border-radius: 20px 20px 0 0;
        animation: slideUpMobile 0.3s;
    }
}

@keyframes slideUpMobile {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}


.blog-hero {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.blog-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-main);
}

.blog-img {
    width: 100%;
    height: 200px;
    background: #eee;
    object-fit: cover;
}

.blog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-tag {
    font-size: 0.75rem;
    color: var(--accent-main);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-family: 'Playfair Display', serif;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    color: var(--accent-main);
}


/* ==========================================================================
   9. UI UPDATE: LICENSE KEY BAR (美化版)
   ========================================================================== */

.license-wrapper {
    margin-bottom: 15px;
    /* 与下方生成按钮的间距 */
}

.license-bar {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    /* 纯白背景 */
    border: 1px solid #E5E7EB;
    /* 浅灰边框 */
    border-radius: var(--radius-sm);
    /* 圆角 */
    padding: 0 12px;
    /* 内部左右留白 */
    height: 50px;
    /* 固定高度，增加点击区域 */
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

/* 鼠标悬停效果 */
.license-bar:hover {
    border-color: #D1D5DB;
}

/* 输入聚焦时的效果 (莫兰迪绿光晕) */
.license-bar:focus-within {
    border-color: var(--accent-main);
    box-shadow: 0 0 0 3px rgba(123, 158, 137, 0.15);
}

/* 激活状态 (JS添加) */
.license-bar.active {
    background: #F0FDF4;
    /* 极淡的绿色背景 */
    border-color: var(--accent-main);
}

/* 图标样式 */
.license-icon {
    font-size: 1.1rem;
    margin-right: 10px;
    filter: grayscale(100%);
    /* 默认灰色 */
    opacity: 0.6;
}

.license-bar.active .license-icon {
    filter: none;
    /* 激活后恢复彩色 */
    opacity: 1;
}

/* 输入框本体 */
.license-input {
    flex-grow: 1;
    /* 占满中间空间 */
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    /* 使用英文字体 */
    font-size: 0.95rem;
    color: var(--text-primary);
    height: 100%;
    outline: none;
    /* 去掉默认黑框，由父容器接管 */
    letter-spacing: 0.5px;
}

.license-input::placeholder {
    color: #9CA3AF;
    font-size: 0.9rem;
}

/* 隐藏/显示 按钮 */
.license-toggle-btn {
    background: none;
    border: none;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: 0.2s;
    margin-left: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.license-toggle-btn:hover {
    background: #F3F4F6;
    color: var(--text-primary);
}

/* ==========================================================================
   ABOUT PAGE STYLES
   ========================================================================== */

/* Hero */
.about-hero {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
}

.about-hero h1 {
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.about-hero em {
    color: var(--accent-main);
    font-style: italic;
}

.about-hero .subtitle {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Story Section (左右布局) */
.story-section {
    padding: 80px 0;
    background: var(--bg-body);
}

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

.story-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    /* 莫兰迪滤镜效果 */
    filter: sepia(10%) contrast(90%);
}

.story-content h3 {
    font-size: 1.5rem;
    margin-top: 20px;
    color: var(--text-primary);
    border-left: 3px solid var(--accent-main);
    padding-left: 15px;
}

.story-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.signature-block {
    margin-top: 40px;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--text-primary);
}

/* Values Grid */
.values-section {
    padding: 80px 0;
    background: #fff;
    text-align: center;
}

.values-section h2 {
    font-size: 2.2rem;
    margin-bottom: 50px;
}

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

.value-card {
    padding: 40px 30px;
    background: #FAFAFA;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    transition: 0.3s;
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-main);
    background: #fff;
    box-shadow: var(--shadow-md);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.value-card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.value-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* CTA */
.about-cta {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-body) 0%, #E8F0EA 100%);
}

.about-cta h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.about-cta p {
    margin-bottom: 30px;
    color: var(--text-secondary);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-hero h1 {
        font-size: 2.2rem;
    }

    .story-image {
        order: -1;
    }

    /* 图片在手机端置顶 */
}



/* ==========================================================================
   BLOG & ARTICLE STYLES (SEO & READABILITY)
   ========================================================================== */

/* 1. 博客列表页优化 */
.blog-hero {
    text-align: center;
    padding: 80px 20px 60px;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
}

.blog-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.category-tag {
    padding: 6px 14px;
    border: 1px solid var(--border-light);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: 0.2s;
}

.category-tag:hover,
.category-tag.active {
    border-color: var(--accent-main);
    color: var(--accent-main);
    background: #F0FDF4;
}

/* 2. 文章详情页 (Article) */
.article-container {
    max-width: 800px;
    /* 最佳阅读宽度，防止文字太宽 */
    margin: 0 auto;
    padding: 60px 20px;
}

/* 面包屑导航 */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--accent-main);
}

/* 文章头部 */
.article-header {
    text-align: center;
    margin-bottom: 50px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 文章正文排版 (Typography) */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.article-content h2 {
    margin-top: 50px;
    font-size: 1.8rem;
}

.article-content h3 {
    margin-top: 30px;
    font-size: 1.4rem;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

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

.article-content img {
    width: 100%;
    border-radius: var(--radius-md);
    margin: 30px 0;
    box-shadow: var(--shadow-md);
}

/* 重点摘要框 (Key Takeaways) - 提升 E-E-A-T */
.takeaways-box {
    background: #F9FAFB;
    border-left: 4px solid var(--accent-main);
    padding: 25px;
    margin: 30px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.takeaways-box h4 {
    margin-top: 0;
    color: var(--accent-main);
}

/* 作者栏 (Author Box) - E-E-A-T 核心 */
.author-box {
    margin-top: 60px;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    display: flex;
    gap: 20px;
    align-items: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.author-bio {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .article-container {
        padding: 40px 20px;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   404 ERROR PAGE STYLES
   ========================================================================== */

.error-container {
    padding: 80px 20px;
    text-align: center;
    min-height: 60vh;
    /* 保证页面即使内容少也撑开高度 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #fff 0%, var(--bg-body) 70%);
}

.error-code {
    font-family: 'Playfair Display', serif;
    font-size: 10rem;
    line-height: 1;
    font-weight: 700;
    color: var(--accent-main);
    opacity: 0.15;
    /* 极淡的背景水印效果 */
    margin-bottom: -40px;
    /* 让标题叠在数字上面 */
    user-select: none;
    position: relative;
    z-index: 0;
}

.error-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.error-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 40px auto;
    position: relative;
    z-index: 1;
}

.error-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-hint {
    margin-top: 50px;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .error-code {
        font-size: 6rem;
        margin-bottom: -20px;
    }

    .error-title {
        font-size: 1.8rem;
    }

    .error-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
}