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

body {
    font-family: 'Noto Serif SC', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f3e9;
}

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

/* 全站频道导航条 */
.site-nav {
    background-color: #5a3921;
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
}

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

.site-nav-links {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

.site-nav-links li {
    margin-right: 15px;
}

.site-nav-links a {
    color: #e8dfca;
    text-decoration: none;
    transition: color 0.3s;
    font-family: 'Noto Serif SC', serif;
    white-space: nowrap;
}

.site-nav-links a:hover {
    color: #f8d568;
}

.site-nav-links .current a {
    color: #f8d568;
    font-weight: bold;
}

.user-actions a {
    color: #e8dfca;
    text-decoration: none;
    margin-left: 10px;
    font-family: 'Noto Serif SC', serif;
    white-space: nowrap;
}

.user-actions a:hover {
    color: #f8d568;
}

/* 古诗文站点导航 */
.gushi-nav {
    background-color: #784620;
    padding: 12px 0;
}

.gushi-nav .container {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo .sitename {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.8rem;
    color: white;
    margin-left: 8px;
}

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

.gushi-nav-links {
    display: flex;
    list-style: none;
    margin-left: 30px;
    flex-wrap: wrap;
}

.gushi-nav-links li {
    margin-right: 20px;
}

.gushi-nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
    font-family: 'Noto Serif SC', serif;
    white-space: nowrap;
}

.gushi-nav-links a:hover {
    color: #f8d568;
}

.gushi-nav-links .current a {
    color: #f8d568;
    font-weight: bold;
}

.nav-right {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.nav-search {
    display: flex;
}

.nav-search input {
    padding: 6px 12px;
    border: none;
    border-radius: 20px 0 0 20px;
    width: 220px;
    font-size: 0.9rem;
    outline: none;
    font-family: 'Noto Serif SC', serif;
}

.nav-search button {
    background: #f8d568;
    color: #5a3921;
    border: none;
    padding: 6px 12px;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    font-family: 'Noto Serif SC', serif;
}

.nav-search button:hover {
    background: #e6c350;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 12px 0;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #784620;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 主体内容 */
.main-content {
    display: flex;
    margin: 15px 0 30px;
    gap: 20px;
}

.content-left {
    flex: 1;
}

.content-right {
    width: 300px;
}

/* 作者基本信息卡片 - 半包围布局 */
.author-card {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.author-grid {
    display: grid;
    grid-template-columns: 150px 1fr;
    grid-template-rows: auto auto;
    gap: 15px;
    align-items: start;
}

.author-avatar {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 150px;
    height: 200px;
    border-radius: 8px;
    background-color: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #784620;
    font-size: 4rem;
    overflow: hidden;
    border: 1px solid #eee;
}

.author-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.author-avatar-fallback--hidden {
    display: none;
}

.author-avatar.is-image-error .author-avatar-image {
    display: none;
}

.author-avatar.is-image-error .author-avatar-fallback {
    display: flex;
}

.author-info {
    grid-column: 2;
    grid-row: 1;
}

.author-name {
    font-size: 1.8rem;
    color: #5a3921;
    margin-bottom: 8px;
    font-family: 'Ma Shan Zheng', cursive;
}

.author-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 0.95rem;
}

.meta-item i {
    color: #666;
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.author-intro {
    grid-column: 2;
    grid-row: 2;
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* 其他信息模块 */
.info-section {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 1.3rem;
    color: #5a3921;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-family: 'Ma Shan Zheng', cursive;
}

.info-content {
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
}

.info-content p {
    margin-bottom: 15px;
}
.info-content a {
    color: #136ec2;
}

/* 右侧边栏 */
.sidebar-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar-card h3 {
    font-size: 1.2rem;
    color: #5a3921;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.sidebar-card h3 a{
    float: right;
}
/* 作品列表 */
.works-list {
    list-style: none;
}

.work-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.work-item:last-child {
    border-bottom: none;
}

.work-icon {
    color: #666;
    margin-right: 10px;
    font-size: 0.9rem;
}

.work-title {
    color: #784620;
    text-decoration: none;
    font-size: 0.95rem;
    flex: 1;
}

.work-title:hover {
    text-decoration: underline;
}

.work-type {
    color: #999;
    font-size: 0.8rem;
    background-color: #f8f8f8;
    padding: 2px 6px;
    border-radius: 8px;
}



/* 响应式设计 */
@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }

    .content-right {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .site-nav .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav-links {
        margin-bottom: 8px;
        flex-wrap: wrap;
    }

    .site-nav-links li {
        margin: 3px 8px;
    }

    .gushi-nav .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .gushi-nav-links {
        margin-left: 0;
        margin-top: 12px;
        flex-wrap: wrap;
    }

    .gushi-nav-links li {
        margin: 3px 8px;
    }

    .nav-right {
        width: 100%;
        margin-top: 12px;
        margin-left: 0;
        justify-content: space-between;
    }

    .nav-search {
        width: 100%;
        margin-top: 8px;
    }

    .nav-search input {
        width: 100%;
    }

    /* 移动端调整半包围布局 */
    .author-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .author-avatar {
        grid-column: 1;
        grid-row: 1;
        width: 120px;
        height: 160px;
        margin: 0 auto 15px;
    }

    .author-info {
        grid-column: 1;
        grid-row: 2;
        text-align: center;
    }

    .author-meta {
        justify-content: center;
    }

    .author-intro {
        grid-column: 1;
        grid-row: 3;
    }
}

@media (max-width: 480px) {
    .logo .sitename {
        font-size: 1.5rem;
    }

    .author-name {
        font-size: 1.5rem;
    }

    .author-avatar {
        width: 100px;
        height: 140px;
        font-size: 3rem;
    }

    .section-title {
        font-size: 1.2rem;
    }
}
