
/* 全局变量 - 文艺清新风格 */
:root {
    --primary-color: #2c3e50; /* 深蓝灰 */
    --accent-color: #e67e22; /* 暖橙色 */
    --bg-color: #fdfbf7; /* 米白色纸张感 */
    --surface-color: #ffffff;
    --text-main: #34495e;
    --text-light: #7f8c8d;
    --border-radius: 12px;
    --shadow: 0 4px 20px rgba(44, 62, 80, 0.08);
    --font-family: 'Georgia', 'PingFang SC', 'Microsoft YaHei', serif; /* 衬线体增强文学感 */
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* 顶部导航 */
.site-header {
    background: var(--surface-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.main-nav a {
    margin: 0 15px;
    font-weight: 500;
    color: var(--text-main);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s;
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

.user-actions {
    display: flex;
    gap: 10px;
}

.btn-login {
    padding: 8px 15px;
    color: var(--primary-color);
}

.btn-signup {
    padding: 8px 15px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 20px;
}

.btn-signup:hover {
    background: #34495e;
}

/* 英雄区域 */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(to right, #fdfbf7 50%, #ecf0f1 50%);
}

.hero-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.badge {
    display: inline-block;
    background: #e8f6f3;
    color: #16a085;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.hero-text h1 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.prompt {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item .num {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-item .label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.btn-primary {
    display: inline-block;
    padding: 12px 35px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transform: rotate(2deg);
    transition: transform 0.5s;
}

.hero-image img:hover {
    transform: rotate(0deg) scale(1.02);
}

/* 通用区块 */
.section-container {
    padding: 70px 0;
}

.bg-light {
    background: #fff;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 40px;
}

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

.view-all {
    color: var(--accent-color);
    font-weight: 500;
}

/* 练笔主题网格 */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

.topic-card {
    background: var(--surface-color);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid #eee;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.topic-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.card-tag {
    position: absolute;
    top: 0;
    right: 0;
    background: #f0f3f4;
    color: var(--text-light);
    padding: 4px 10px;
    font-size: 0.8rem;
    border-bottom-left-radius: 8px;
}

.topic-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.topic-card .desc {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
    height: 48px;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #95a5a6;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

/* 范文列表 */
.essay-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.essay-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-color);
    padding: 25px;
    border-radius: var(--border-radius);
    border: 1px solid #eee;
    transition: background 0.3s;
}

.essay-item:hover {
    background: #fff;
    box-shadow: var(--shadow);
}

.essay-info h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.author {
    color: var(--text-light);
}

.score {
    color: var(--accent-color);
    font-weight: bold;
}

.excerpt {
    color: var(--text-main);
    font-size: 1rem;
    max-width: 600px;
}

.btn-read {
    padding: 8px 20px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 20px;
    white-space: nowrap;
}

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

/* 写作技巧 */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.tip-card {
    background: var(--surface-color);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

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

.tip-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.tip-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.tip-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* 页脚 */
.site-footer {
    background: var(--primary-color);
    color: #bdc3c7;
    padding: 60px 0 20px;
}

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

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    font-size: 0.85rem;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 15px;
    }

    .main-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .hero-layout {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-section {
        background: var(--bg-color);
    }

    .prompt {
        border-left: none;
        border-top: 4px solid var(--accent-color);
        padding-left: 0;
        padding-top: 15px;
    }

    .hero-stats {
        justify-content: center;
    }

    .essay-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .btn-read {
        align-self: flex-end;
    }

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