/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #ec4899;
    --accent: #8b5cf6;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #f1f5f9;
    --white: #ffffff;
    --success: #10b981;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    --gradient-tech: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #6366f1 100%);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
}

.logo-icon { font-size: 2rem; }

.logo-text {
    background: var(--gradient-primary);
    -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: var(--dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active { color: var(--primary); }

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
}

/* ===== 按钮 ===== */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-large { padding: 1rem 2rem; font-size: 1.1rem; }

/* ===== 英雄横幅 ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    overflow: hidden;
}

.hero-bg-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    z-index: -1;
}

.hero-bg-effect::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content { text-align: center; max-width: 900px; margin: 0 auto; }

.hero-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

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

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--gray);
    border-bottom: 2px solid var(--gray);
    transform: rotate(45deg);
    margin: 10px auto 0;
}

/* ===== 通用区块 ===== */
section { padding: 80px 0; }

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray);
}

/* ===== 特性模块 ===== */
.features-section { background: var(--light); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    cursor: pointer;
    position: relative;
}

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

.feature-card.featured {
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
}

.feature-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

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

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-desc {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.feature-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.feature-list li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.feature-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== 快速体验区 ===== */
.quick-experience {
    background: var(--gradient-tech);
    color: var(--white);
}

.experience-box {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.input-section label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
}

#quick-input {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark);
}

.btn-submit {
    width: 100%;
    margin-top: 1.5rem;
    justify-content: center;
}

.output-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.optimized-result {
    background: var(--white);
    color: var(--dark);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
}

/* ===== 模板预览 ===== */
.templates-preview { background: var(--light); }

.templates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.template-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

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

.template-category {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.template-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.template-card p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.template-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.usage-count { color: var(--gray); }

.rating { color: #f59e0b; }

.template-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.templates-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ===== 品牌理念 ===== */
.mission-section {
    background: var(--gradient-dark);
    color: var(--white);
}

.mission-content {
    max-width: 800px;
    margin: 0 auto;
}

.mission-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.mission-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.mission-list {
    list-style: none;
    margin: 2rem 0;
}

.mission-list li {
    padding: 1rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mission-signature {
    margin-top: 3rem;
    font-style: italic;
    font-size: 1.2rem;
    text-align: right;
    opacity: 0.9;
}
/* ===== 页脚 ===== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}

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

.footer-brand .logo { margin-bottom: 1rem; }

.footer-brand p {
    color: var(--gray-light);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-links a:hover { transform: scale(1.2); }

.footer-links h4,
.footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-links ul,
.footer-contact ul { list-style: none; }

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

.footer-links a {
    color: var(--gray-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-contact li { color: var(--gray-light); }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-light);
    color: var(--gray-light);
}

.footer-note {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ===== 页面头部 ===== */
.page-header {
    background: var(--gradient-tech);
    color: var(--white);
    padding: 150px 0 80px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.optimizer-header {
    background: var(--gradient-primary);
}

/* ===== 优化器样式 ===== */
.optimizer-section { padding: 60px 0; }

.optimizer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.panel-header h2 {
    font-size: 1.5rem;
    color: var(--primary);
}

.panel-tip {
    color: var(--gray);
    font-size: 0.9rem;
}

.optimizer-input-panel textarea,
.optimizer-output-panel textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--light);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    min-height: 200px;
}

.optimizer-options { margin: 2rem 0; }

.option-group { margin-bottom: 2rem; }

.option-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 1rem;
}

.option-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.option-card {
    background: var(--light);
    border: 2px solid var(--light);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.option-card.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.option-icon { font-size: 2rem; margin-bottom: 0.5rem; }

.option-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.option-desc {
    font-size: 0.8rem;
    color: var(--gray);
}

.slider-container { margin-top: 1rem; }

.slider-container input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--light);
    outline: none;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray);
}

.btn-optimize {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    justify-content: center;
}

/* ===== 加载动画 ===== */
.optimization-loading {
    text-align: center;
    padding: 3rem;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-steps {
    margin-top: 2rem;
    text-align: left;
}

.loading-steps .step {
    padding: 0.5rem;
    color: var(--gray);
}

.loading-steps .step.active {
    color: var(--primary);
    font-weight: 600;
}

/* ===== 结果展示 ===== */
.result-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--light);
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

.tab-btn:hover { color: var(--primary); }

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content { display: none; }

.tab-content.active { display: block; }

.optimized-prompt-box {
    background: var(--dark);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.optimized-prompt-box pre {
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
}

.result-actions {
    display: flex;
    gap: 1rem;
}

/* ===== 结构分析 ===== */
.structure-analysis {
    display: grid;
    gap: 1.5rem;
}

.structure-item {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.structure-label {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.structure-value {
    color: var(--dark);
    line-height: 1.6;
}

/* ===== 对比分析 ===== */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.comparison-column h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.comparison-content {
    background: var(--light);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.comparison-content.optimized {
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid var(--primary);
}

.comparison-issues h5,
.comparison-improvements h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.comparison-issues ul,
.comparison-improvements ul {
    list-style: none;
    padding-left: 0;
}

.comparison-issues li,
.comparison-improvements li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.comparison-issues li::before {
    content: '⚠️';
    position: absolute;
    left: 0;
}

.comparison-improvements li::before {
    content: '✅';
    position: absolute;
    left: 0;
}

/* ===== 优化建议 ===== */
.optimization-tips {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(245, 158, 11, 0.1);
    border: 2px solid #f59e0b;
    border-radius: 10px;
}

.optimization-tips h4 {
    color: #f59e0b;
    margin-bottom: 1rem;
}

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 3rem;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--gray);
    margin-bottom: 2rem;
}

.example-prompts h4 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.example-btn {
    display: inline-block;
    background: var(--light);
    border: 2px solid var(--light);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    margin: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.example-btn:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

/* ===== 框架说明 ===== */
.framework-section { background: var(--light); }

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

.framework-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.framework-number {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(99, 102, 241, 0.1);
}

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

.framework-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.framework-card p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.framework-example {
    background: var(--light);
    padding: 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    border-left: 3px solid var(--primary);
}

/* ===== 模板库样式 ===== */
.templates-library { padding: 60px 0; }

.library-toolbar {
    margin-bottom: 3rem;
}

.search-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-box input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--light);
    border-radius: 50px;
    font-size: 1rem;
}

.search-box button {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--gray-light);
    background: var(--white);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

/* ===== 工具导航样式 ===== */
.tools-section { padding: 60px 0; }

.tools-toolbar { margin-bottom: 2rem; }

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

.tool-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.tool-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tool-icon {
    font-size: 3rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 15px;
}

.tool-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.tool-url {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.tool-description {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tool-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tool-tag {
    background: var(--light);
    color: var(--dark);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
}

.tool-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 2px solid var(--light);
}

.stars { color: #f59e0b; }

.tool-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== 资讯页面样式 ===== */
.news-section { padding: 60px 0; }

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

.news-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.news-image {
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.news-content { padding: 1.5rem; }

.news-category {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.news-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    color: var(--gray);
    font-size: 0.9rem;
    padding-top: 1rem;
    border-top: 2px solid var(--light);
}

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

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .features-grid,
    .templates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .framework-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid,
    .templates-grid,
    .framework-grid,
    .tools-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .optimizer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
