/* 全局样式 */
body {
    font-family: 'Noto Serif SC', serif;
    background-color: #f9f5f0;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, #2c3e50, #4a6b8a);
    color: white;
    text-align: center;
    padding: 30px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* margin-bottom: 2rem; */
}


.logo h1 {
    font-size: 2.8rem;              /* 更大，突出古典气势 */
    margin: 0;
    letter-spacing: 4px;            /* 增加字距，更疏朗飘逸 */
    font-weight: 600;               /* 略重，营造书法厚重感 */
    font-family: 'Noto Serif SC', serif;
    /* color: #2c3e50; */
}

.logo p {
    font-size: 1.1rem;                /* 稍小，更显内敛 */
    margin: 10px 0 0;
    font-style: italic;             /* 斜体，营造诗意书卷感 */
    /* color: #666;                    更柔和的灰色，不喧宾夺主 */
    opacity: 0.85;
    font-family: 'Noto Serif SC', serif;
}


.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 20px 0 0;
    margin: 0;
    flex-wrap: wrap;
    gap: 15px;
}

.main-nav a {
    color: white;
    padding: 5px 10px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    color: #e0c9a6;
}
/* 当前激活菜单项高亮 */
.main-nav a.active {
    font-weight: bold;
    color: #e0c9a6;
    border-bottom: 2px solid #e0c9a6;
}


/* 移除所有链接的默认下划线样式 */
a {
    text-decoration: none;
    color: inherit;
}


/* 三栏布局 */
.flex-layout {
    display: flex;
    max-width: 90%;
    margin: 2rem auto;
    padding: 0 10px;
    gap: 30px;
}

.sidebar-left {
    width: 25%;
}

.series-overview {
    width: 50%;
}

.sidebar-right {
    width: 25%;
}

/* 作者简介区域 */
.author-intro {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.author-photo {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.author-text h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 10px;
    border-bottom: 2px solid #e0c9a6;
    padding-bottom: 10px;
}

.author-text .title {
    font-style: italic;
    color: #7f8c8d;
    margin-bottom: 20px;
}

.author-text p {
    margin-bottom: 15px;
    text-align: justify;
}

.signature img {
    width: 100%;
    border-radius: 5px;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 作品系列区域 - 单栏布局 */
.series-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 25px;
}

.series-card:last-child {
    margin-bottom: 0;
}

.series-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
}

.series-card:hover img {
    transform: scale(1.05);
}

.series-card h2 {
    font-size: 1.5rem;
    margin: 15px 20px 5px;
    color: #2c3e50;
}

.series-card p {
    margin: 0 20px 20px;
    color: #7f8c8d;
    font-style: italic;
}



.pub-cert {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 25px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.pub-cert:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}


.pub-cert img {
    width: 90%;
    height: 90%;
    object-fit: cover;
    transition: transform 0.5s;
    display: block;
    margin: 0 auto; /* 水平居中 */
}

.pub-cert:hover img {
    transform: scale(1.05);
}

.pub-cert h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 15px 20px 10px;
    text-align: center;
    border-bottom: 2px solid #e0c9a6;
    padding-bottom: 10px;
}



.expert-comments {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.expert-comments h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0 0 15px;
    text-align: center;
    border-bottom: 2px solid #e0c9a6;
    padding-bottom: 10px;
}

blockquote {
    font-style: italic;
    color: #555;
    padding: 15px;
    margin: 15px 0;
    background-color: #f8f8f8;
    border-left: 4px solid #e0c9a6;
    border-radius: 0 4px 4px 0;
}

/* 页脚样式 */
footer {
  background: linear-gradient(135deg, #2c3e50, #4a6b8a);
  color: white;
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 3rem;
}


.footer-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;

  display: flex;
  justify-content: center; /* 居中两个内容块 */
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-content {
  min-width: 250px;
  text-align: center; /* 可选：让文字居中 */
}

.footer-content p {
  margin: 5px 0;
  opacity: 0.8;
  font-size: 0.9rem;
}

.social-links {
  flex-shrink: 0;
  text-align: center;
  margin-top: 10px;
}

.social-links a {
  margin-left: 12px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.1);
}







/* 响应式设计 */
@media (max-width: 1024px) {
    .flex-layout {
        flex-direction: column;
        gap: 25px;
    }
    
    .sidebar-left, .series-overview, .sidebar-right {
        width: 100%;
    }
    
    .author-intro {
        margin-bottom: 0;
    }
}


@media (max-width: 768px) {
    .logo h1 {
        font-size: clamp(1.4rem, 5.5vw, 2rem);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .logo p {
        font-size: clamp(0.9rem, 3vw, 1rem);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .main-nav ul {
        flex-wrap: wrap;                 
        justify-content: center;
        gap: 8px 12px;
        padding: 10px 15px;
        overflow: visible;              
    }

    .main-nav a {
        font-size: clamp(0.75rem, 2.5vw, 1rem);
        padding: 4px 8px;
        white-space: nowrap;
    }

    .image-container {
        height: 150px;
    }
}