body {
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background: #f5f5f5;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.main-content {
    display: flex;
    gap: 20px;
}
.content-area {
    flex: 1;
}
.nav-links {
    margin-bottom: 20px;
}
.nav-links a {
    color: #333;
    text-decoration: none;
    margin-right: 15px;
}
.search-form {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}
.search-form input[type="text"] {
    padding: 8px;
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.search-form input[type="submit"] {
    padding: 8px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.word-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
    width: 100%;
}
.word-item {
    background: #fff;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    text-align: center;
    transition: transform 0.2s;
}
.word-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.word-item a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
}
.right-sidebar {
    width: 200px;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 4px;
    align-self: flex-start;
    position: sticky;
    top: 20px;
    font-size: 14px;
}
.right-sidebar a {
    display: block;
    color: #666;
    text-decoration: none;
    padding: 3px 0;
    border-bottom: 1px solid #eee;
    line-height: 1.4;
}
.right-sidebar a:hover {
    color: #007bff;
}
.footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    border-top: 1px solid #eee;
    color: #666;
}
.friendly-links {
    width: 100%;
    margin-top: 20px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    box-sizing: border-box;
}
.friendly-links h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}
.friendly-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.friendly-links-list a {
    display: inline-block;
    padding: 6px 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    text-decoration: none;
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}
.friendly-links-list a:hover {
    color: #fff;
    background: #007bff;
    border-color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 内页特有样式 */
.word-detail {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    width: 100%;
    box-sizing: border-box;
}

.word-title h1 {
    font-size: 24px;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.word-content {
    line-height: 1.8;
}

/* 诗词内容样式 */
.shici-content {
    margin: 15px 0;
}

.shici-text {
    line-height: 1.8;
    text-align: left;
}

.sub-title {
    font-size: 16px;
    margin: 15px 0 10px;
    color: #333;
}

.shici-ziliao {
    margin: 10px 0;
}

.ziliao {
    margin-bottom: 15px;
}

.ziliao h2 {
    font-size: 15px;
    margin-bottom: 8px;
    color: #444;
}

.jianjie {
    line-height: 1.6;
    margin: 10px 0;
}

.chaodai-zuozhe {
    color: #666;
    margin: 10px 0;
}

/* 相关词汇 */
.related-words {
    margin-top: 20px;
}

.related-words h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.related-words ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.related-words li {
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 4px;
}

.related-words a {
    color: #333;
    text-decoration: none;
}

.related-words a:hover {
    color: #007bff;
}