/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局样式 */
body {
    font-family: "Microsoft YaHei", "思源黑体", sans-serif;
    background-color: #F5F1E6;
    color: #2C2C2C;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #2C2C2C;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* 头部导航 */
header {
    background-color: #F5F1E6;
    border-bottom: 1px solid #E0D8C0;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-family: "思源宋体", "华文中宋", serif;
    font-size: 28px;
    font-weight: bold;
    color: #8C6D48;
}

.logo a {
    color: #8C6D48;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-item a {
    font-size: 16px;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.nav-item a:hover {
    color: #8C6D48;
    border-bottom: 2px solid #8C6D48;
}

.nav-item.active a {
    color: #8C6D48;
    border-bottom: 2px solid #8C6D48;
}

/* 首屏Banner */
.banner {
    background: url('https://picsum.photos/id/1036/1920/500') no-repeat center center;
    background-size: cover;
    background-blend-mode: overlay;
    background-color: rgba(245, 241, 230, 0.8);
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 60px;
}

.banner-content h1 {
    font-family: "思源宋体", "华文中宋", serif;
    font-size: 48px;
    margin-bottom: 20px;
    color: #2C2C2C;
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

.search-box {
    width: 600px;
    height: 50px;
    background-color: #fff;
    border-radius: 25px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-box input {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 0 10px;
}

.search-box button {
    background-color: #8C6D48;
    color: #fff;
    border: none;
    width: 80px;
    height: 36px;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background-color: #755a38;
}

/* 每日诗词模块 */
.daily-poem {
    margin-bottom: 80px;
}

.section-title {
    font-family: "思源宋体", "华文中宋", serif;
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    color: #8C6D48;
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background-color: #8C6D48;
    margin: 15px auto;
}

.poem-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.poem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.poem-header {
    text-align: center;
    margin-bottom: 30px;
}

.poem-title {
    font-family: "思源宋体", "华文中宋", serif;
    font-size: 32px;
    margin-bottom: 10px;
}

.poem-author {
    font-size: 18px;
    color: #666;
}

.poem-content {
    font-family: "楷体", "思源宋体", serif;
    font-size: 20px;
    line-height: 2;
    text-align: center;
    margin-bottom: 30px;
    white-space: pre-line;
}

.poem-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.poem-actions button {
    background-color: transparent;
    border: 1px solid #8C6D48;
    color: #8C6D48;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.poem-actions button:hover {
    background-color: #8C6D48;
    color: #fff;
}

.poem-analysis {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #E0D8C0;
}

.analysis-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #8C6D48;
}

.analysis-content {
    color: #666;
    line-height: 1.8;
}

/* 热门诗词模块 */
.hot-poems {
    margin-bottom: 80px;
}

.poems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.poem-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    color: #2C2C2C;
}

.poem-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.poem-item-title {
    font-family: "思源宋体", "华文中宋", serif;
    font-size: 20px;
    margin-bottom: 8px;
    color: #8C6D48;
}

.poem-item-author {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
}

.poem-item-content {
    font-family: "楷体", serif;
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 诗人模块 */
.poets {
    margin-bottom: 80px;
}

.poets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.poet-item {
    text-align: center;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    color: #2C2C2C;
}

.poet-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 15px;
    background: url('https://picsum.photos/id/1005/120/120') no-repeat center center;
    background-size: cover;
    border: 3px solid #E0D8C0;
}

.poet-name {
    font-family: "思源宋体", "华文中宋", serif;
    font-size: 20px;
    margin-bottom: 5px;
}

.poet-dynasty {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}

.poet-item:hover {
    transform: scale(1.05);
}

.poet-item:hover .poet-name {
    color: #8C6D48;
}

/* 底部 */
footer {
    background-color: #E0D8C0;
    padding: 40px 0;
    text-align: center;
    color: #666;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-links a {
    color: #666;
}

.footer-links a:hover {
    color: #8C6D48;
}

.icp-record {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    font-family: "Microsoft YaHei", sans-serif;
}

.copyright {
    font-size: 14px;
}

/* ========== 通用页面样式 ========== */

/* 页面标题 */
.page-header {
    padding: 60px 0;
    background-color: #fff;
    margin-bottom: 40px;
    text-align: center;
}

.page-title {
    font-family: "思源宋体", "华文中宋", serif;
    font-size: 48px;
    margin-bottom: 15px;
    color: #8C6D48;
}

.page-description {
    font-size: 18px;
    color: #666;
}

/* 搜索栏 */
.search-section {
    margin-bottom: 40px;
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid #E0D8C0;
    border-radius: 25px;
    font-size: 16px;
    background-color: #fff;
}

.search-btn {
    background-color: #8C6D48;
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 80px;
}

.search-btn:hover {
    background-color: #6B5338;
}

/* 筛选功能 */
.filter-section {
    background-color: #fff;
    padding: 30px 0;
    margin-bottom: 40px;
    border-top: 1px solid #E0D8C0;
    border-bottom: 1px solid #E0D8C0;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 20px;
    background-color: transparent;
    border: 1px solid #8C6D48;
    color: #8C6D48;
    border-radius: 15px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    background-color: #8C6D48;
    color: #fff;
}

.filter-tab.active {
    background-color: #8C6D48;
    color: #fff;
}

/* 表单样式 */
.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #E0D8C0;
    border-radius: 8px;
    font-size: 14px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #8C6D48;
    box-shadow: 0 0 0 2px rgba(140, 109, 72, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.submit-btn,
.reset-btn {
    padding: 12px 40px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn {
    background-color: #8C6D48;
    color: #fff;
}

.submit-btn:hover {
    background-color: #6B5338;
}

.reset-btn {
    background-color: transparent;
    border: 1px solid #8C6D48;
    color: #8C6D48;
}

.reset-btn:hover {
    background-color: #F5F1E6;
}

/* 卡片样式 */
.card {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.card h3 {
    font-family: "思源宋体", "华文中宋", serif;
    font-size: 18px;
    margin-bottom: 10px;
    color: #2C2C2C;
}

.card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

/* 按钮样式 */
.btn {
    padding: 10px 25px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #8C6D48;
    color: #fff;
}

.btn-primary:hover {
    background-color: #6B5338;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid #8C6D48;
    color: #8C6D48;
}

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

/* 诗人信息 */
.poet-profile {
    padding: 60px 0;
    background-color: #fff;
    margin-bottom: 60px;
}

.profile-content {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: flex-start;
}

.poet-avatar-large {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: url('https://picsum.photos/id/1005/200/200') no-repeat center center;
    background-size: cover;
    border: 4px solid #E0D8C0;
    flex-shrink: 0;
}

.poet-info {
    flex: 1;
    min-width: 300px;
}

.poet-name-large {
    font-family: "思源宋体", "华文中宋", serif;
    font-size: 48px;
    margin-bottom: 10px;
    color: #8C6D48;
}

.poet-dynasty-large {
    font-size: 24px;
    color: #666;
    margin-bottom: 30px;
}

.poet-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}

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

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

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #8C6D48;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

/* 作品列表 */
.poet-works {
    margin-bottom: 80px;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.work-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 250px;
}

.work-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.work-title {
    font-family: "思源宋体", "华文中宋", serif;
    font-size: 20px;
    margin-bottom: 10px;
    color: #8C6D48;
}

.work-content {
    font-family: "楷体", serif;
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
    flex-grow: 1;
}

.work-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.work-actions button {
    background-color: transparent;
    border: 1px solid #8C6D48;
    color: #8C6D48;
    padding: 5px 15px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.work-actions button:hover {
    background-color: #8C6D48;
    color: #fff;
}

/* 诗人评价 */
.poet-evaluation {
    background-color: #fff;
    padding: 60px 0;
    margin-bottom: 80px;
}

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

.evaluation-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    font-style: italic;
}

.evaluation-author {
    text-align: right;
    color: #666;
}

/* 诗词内容 */
.poem-detail {
    padding: 60px 0;
    background-color: #fff;
    margin-bottom: 60px;
}

.poem-header {
    text-align: center;
    margin-bottom: 40px;
}

.poem-title {
    font-family: "思源宋体", "华文中宋", serif;
    font-size: 48px;
    margin-bottom: 15px;
    color: #8C6D48;
}

.poem-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    font-size: 18px;
    color: #666;
}

.poem-content {
    font-family: "楷体", "思源宋体", serif;
    font-size: 24px;
    line-height: 2.5;
    text-align: center;
    margin-bottom: 40px;
    white-space: pre-line;
}

.poem-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.poem-actions button {
    background-color: transparent;
    border: 1px solid #8C6D48;
    color: #8C6D48;
    padding: 10px 25px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.poem-actions button:hover {
    background-color: #8C6D48;
    color: #fff;
}

/* 诗词赏析 */
.poem-analysis {
    margin-bottom: 80px;
}

.analysis-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.analysis-item {
    margin-bottom: 30px;
}

.analysis-item h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #8C6D48;
}

.analysis-item p {
    line-height: 1.8;
    color: #666;
}

/* 诗人信息 */
.poet-info-section {
    background-color: #fff;
    padding: 60px 0;
    margin-bottom: 80px;
}

.poet-info-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.poet-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: url('https://picsum.photos/id/1005/150/150') no-repeat center center;
    background-size: cover;
    border: 3px solid #E0D8C0;
    flex-shrink: 0;
}

.poet-info-text {
    flex: 1;
    min-width: 300px;
}

.poet-info-text h3 {
    font-family: "思源宋体", "华文中宋", serif;
    font-size: 28px;
    margin-bottom: 10px;
    color: #8C6D48;
}

.poet-info-text p {
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.poet-info-text a {
    color: #8C6D48;
    text-decoration: underline;
}

/* 相关诗词 */
.related-poems {
    margin-bottom: 80px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.related-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.related-item h4 {
    font-family: "思源宋体", "华文中宋", serif;
    font-size: 18px;
    margin-bottom: 8px;
    color: #8C6D48;
}

.related-item p {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
}

.related-item-content {
    font-family: "楷体", serif;
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 筛选功能 */
.filter-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 14px;
    color: #666;
}

.filter-select {
    padding: 8px 15px;
    border: 1px solid #E0D8C0;
    border-radius: 8px;
    font-size: 14px;
    background-color: #fff;
}

/* 诗词列表 */
.poetry-list {
    margin-bottom: 80px;
}

.poetry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.poetry-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.poetry-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.poetry-title {
    font-family: "思源宋体", "华文中宋", serif;
    font-size: 20px;
    margin-bottom: 8px;
}

.poetry-title a {
    color: #8C6D48;
    text-decoration: none;
    transition: all 0.3s ease;
}

.poetry-title a:hover {
    color: #6B5338;
}

.poetry-author {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
}

.poetry-excerpt {
    font-family: "楷体", serif;
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.poetry-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    font-size: 12px;
    padding: 3px 10px;
    background-color: #F5F1E6;
    color: #8C6D48;
    border-radius: 10px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-btn {
    padding: 8px 15px;
    background-color: #fff;
    border: 1px solid #E0D8C0;
    color: #666;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.page-btn:hover {
    border-color: #8C6D48;
    color: #8C6D48;
}

.page-btn.active {
    background-color: #8C6D48;
    border-color: #8C6D48;
    color: #fff;
}

/* 诗人页面样式 */
.poets-list {
    margin-bottom: 80px;
}

.poets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.poet-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.poet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.poet-link {
    text-decoration: none;
    color: #2C2C2C;
    display: block;
    height: 100%;
}

.poet-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    border: 3px solid #E0D8C0;
    transition: all 0.3s ease;
}

.poet-card:hover .poet-avatar {
    transform: scale(1.05);
}

.poet-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poet-name {
    font-family: "思源宋体", "华文中宋", serif;
    font-size: 20px;
    margin-bottom: 5px;
    color: #8C6D48;
    transition: all 0.3s ease;
}

.poet-card:hover .poet-name {
    color: #6B5338;
}

.poet-dynasty {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
}

.poet-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid #E0D8C0;
}

.stat {
    font-size: 14px;
    color: #666;
}

/* 名句页面样式 */
.quotes-list {
    margin-bottom: 80px;
}

.quotes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.quote-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.quote-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.quote-content {
    flex: 1;
    margin-bottom: 20px;
}

.quote-text {
    font-family: "楷体", "思源宋体", serif;
    font-size: 20px;
    line-height: 1.8;
    color: #2C2C2C;
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
}

.quote-text::before {
    content: """;
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 48px;
    color: #8C6D48;
    opacity: 0.3;
}

.quote-author {
    font-size: 14px;
    color: #666;
    text-align: right;
    font-style: italic;
}

.quote-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #E0D8C0;
}

.quote-actions .action-btn {
    background-color: transparent;
    border: 1px solid #8C6D48;
    color: #8C6D48;
    padding: 8px 16px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.quote-actions .action-btn:hover {
    background-color: #8C6D48;
    color: #fff;
}

/* 创作页面样式 */
.create-tools {
    margin-bottom: 80px;
}

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

.tool-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.tool-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.tool-title {
    font-family: "思源宋体", "华文中宋", serif;
    font-size: 20px;
    margin-bottom: 10px;
    color: #8C6D48;
}

.tool-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.tool-btn {
    background-color: #8C6D48;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tool-btn:hover {
    background-color: #6B5338;
}

.create-area {
    margin-bottom: 80px;
}

.create-wrapper {
    display: flex;
    gap: 40px;
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.create-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.sidebar-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E0D8C0;
}

.sidebar-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #8C6D48;
}

.tool-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-btn {
    background-color: transparent;
    border: 1px solid #8C6D48;
    color: #8C6D48;
    padding: 8px 15px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: left;
}

.sidebar-btn:hover {
    background-color: #8C6D48;
    color: #fff;
}

.create-editor {
    flex: 1;
    min-width: 0;
}

.editor-header {
    margin-bottom: 20px;
}

.title-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #E0D8C0;
    border-radius: 8px;
    font-size: 18px;
    font-family: "思源宋体", "华文中宋", serif;
    margin-bottom: 10px;
}

.title-input:focus {
    outline: none;
    border-color: #8C6D48;
    box-shadow: 0 0 0 2px rgba(140, 109, 72, 0.1);
}

.author-info {
    font-size: 14px;
    color: #666;
}

.editor-content {
    margin-bottom: 20px;
}

.poem-textarea {
    width: 100%;
    min-height: 300px;
    padding: 20px;
    border: 1px solid #E0D8C0;
    border-radius: 8px;
    font-size: 18px;
    font-family: "楷体", "思源宋体", serif;
    line-height: 1.8;
    resize: vertical;
    background-color: #f9f9f9;
}

.poem-textarea:focus {
    outline: none;
    border-color: #8C6D48;
    box-shadow: 0 0 0 2px rgba(140, 109, 72, 0.1);
    background-color: #fff;
}

.editor-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.action-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.action-btn.primary {
    background-color: #8C6D48;
    color: #fff;
}

.action-btn.primary:hover {
    background-color: #6B5338;
}

.action-btn.secondary {
    background-color: transparent;
    border: 1px solid #8C6D48;
    color: #8C6D48;
}

.action-btn.secondary:hover {
    background-color: #F5F1E6;
}

.create-guide {
    margin-bottom: 80px;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.guide-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.guide-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.guide-number {
    font-size: 36px;
    font-weight: bold;
    color: #8C6D48;
    margin-bottom: 15px;
    opacity: 0.2;
}

.guide-card h4 {
    font-family: "思源宋体", "华文中宋", serif;
    font-size: 18px;
    margin-bottom: 10px;
    color: #2C2C2C;
}

.guide-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 分类页面样式 */
.categories-section {
    margin-bottom: 80px;
}

.category-group {
    margin-bottom: 60px;
}

.category-title {
    font-family: "思源宋体", "华文中宋", serif;
    font-size: 28px;
    margin-bottom: 30px;
    color: #8C6D48;
    position: relative;
    padding-left: 20px;
}

.category-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background-color: #8C6D48;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.category-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    color: #2C2C2C;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.category-card h3 {
    font-family: "思源宋体", "华文中宋", serif;
    font-size: 18px;
    margin-bottom: 10px;
    color: #8C6D48;
}

.category-card p {
    font-size: 14px;
    color: #666;
}

/* 响应式适配 */
@media (max-width: 992px) {
    .poems-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .poets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .poetry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .quotes-grid {
        grid-template-columns: 1fr;
    }
    .tools-grid {
        grid-template-columns: 1fr;
    }
    .guide-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .create-wrapper {
        flex-direction: column;
    }
    .create-sidebar {
        width: 100%;
    }
    .search-box {
        width: 400px;
    }
    .profile-content {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .poems-grid {
        grid-template-columns: 1fr;
    }
    .poets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .works-grid {
        grid-template-columns: 1fr;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
    .poetry-grid {
        grid-template-columns: 1fr;
    }
    .category-grid {
        grid-template-columns: 1fr;
    }
    .guide-grid {
        grid-template-columns: 1fr;
    }
    .search-box {
        width: 300px;
    }
    .banner-content h1 {
        font-size: 36px;
    }
    .section-title {
        font-size: 28px;
    }
    .category-title {
        font-size: 24px;
    }
    .page-title {
        font-size: 36px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .form-actions {
        flex-direction: column;
    }
    .submit-btn,
    .reset-btn {
        width: 100%;
    }
    .poet-name-large {
        font-size: 36px;
    }
    .poet-dynasty-large {
        font-size: 20px;
    }
    .poem-title {
        font-size: 36px;
    }
    .poem-content {
        font-size: 20px;
    }
    .poet-stats {
        gap: 20px;
    }
    .poet-info-content {
        flex-direction: column;
        text-align: center;
    }
    .filter-options {
        gap: 20px;
    }
    .editor-actions {
        flex-direction: column;
    }
    .action-btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .nav-list {
        gap: 15px;
    }
    .nav-item a {
        font-size: 14px;
    }
    .logo {
        font-size: 24px;
    }
    .search-box {
        width: 250px;
    }
    .poets-grid {
        grid-template-columns: 1fr;
    }
    .page-title {
        font-size: 28px;
    }
    .page-header {
        padding: 40px 0;
    }
    .poet-avatar-large {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }
    .profile-content {
        flex-direction: column;
        text-align: center;
    }
    .poem-meta {
        flex-direction: column;
        gap: 10px;
    }
    .poem-actions {
        flex-wrap: wrap;
    }
    .pagination {
        gap: 5px;
    }
    .page-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}