/*
Theme Name: 123
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Source Han Serif CN', serif;
    line-height: 1.8;
    color: #6D4C41;
    background-color: #F5F1E6;
    background-image: url('linen-texture.svg');
    background-repeat: repeat;
    background-size: 50px 50px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Garamond', 'Source Han Serif CN', serif;
    color: #3E2723;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    font-family: 'Playlist Script', 'FangZheng YanTi', cursive;
}

a {
    color: #8D6E63;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #8B0000;
    text-decoration: underline;
    text-decoration-style: wavy;
}

/* Header Styles */
.site-header {
    background-color: #3E2723;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.site-title {
    font-family: 'Garamond', serif;
    font-size: 2.5rem;
    color: #D4AF37;
    text-align: center;
    margin-bottom: 10px;
}

.site-title a {
    color: #D4AF37;
    text-decoration: none;
}

/* Navigation */
.main-navigation {
    background-color: #3E2723;
    padding: 10px 0;
}

.menu-toggle {
    display: none;
    background-color: #D4AF37;
    color: #3E2723;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.2rem;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #D4AF37;
    font-family: 'Garamond', serif;
    font-size: 1.1rem;
    padding: 10px 15px;
    display: block;
    position: relative;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: #F5F1E6;
    text-decoration: none;
}

.nav-menu a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-image: url('pencil-underline.svg');
    background-repeat: repeat-x;
}

/* Main Content Area */
.site-content {
    padding: 40px 0;
}

.content-area {
    width: 75%;
    float: left;
    padding-right: 30px;
}

.widget-area {
    width: 25%;
    float: right;
}

/* Article Cards */
.article-card {
    background-color: #FFF;
    border: 1px solid #D4AF37;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.1);
    position: relative;
    transform: rotate(-0.5deg);
    transition: transform 0.3s ease;
}

.article-card:nth-child(even) {
    transform: rotate(0.5deg);
}

.article-card:hover {
    transform: rotate(0deg);
}

.article-card::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
}

.entry-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.entry-meta {
    font-size: 0.9rem;
    color: #8B0000;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #D4AF37;
}

.entry-meta span {
    margin-right: 15px;
}

.entry-thumbnail {
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

.entry-thumbnail img {
    width: 100%;
    height: auto;
    filter: sepia(20%);
    transition: filter 0.3s ease;
}

.entry-thumbnail:hover img {
    filter: sepia(0%);
}

.entry-summary {
    font-family: 'Playlist Script', cursive;
    color: #6D4C41;
    line-height: 1.8;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #8D6E63 0%, #8B0000 100%);
    color: #FFF;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-decoration: none;
}

/* Sidebar */
.widget {
    background-color: #FFF;
    border: 3px solid #3E2723;
    padding: 20px;
    margin-bottom: 30px;
    position: relative;
    background-blend-mode: multiply;
    background-opacity: 0.1;
}

.widget-title {
    font-size: 1.5rem;
    color: #3E2723;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #D4AF37;
}

.widget ul {
    list-style: none;
}

.widget li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.widget li::before {
    content: '➤';
    position: absolute;
    left: 0;
    color: #C9A87C;
}

.tagcloud a {
    display: inline-block;
    padding: 5px 10px;
    margin: 5px;
    background-color: #4A5D23;
    color: #FFF;
    border-radius: 3px;
    font-size: 0.9rem !important;
    transition: all 0.3s ease;
}

.tagcloud a:hover {
    background-color: #8B0000;
    text-decoration: none;
}

/* Single Post */
.breadcrumb {
    background-color: #F5F1E6;
    padding: 15px 0;
    margin-bottom: 30px;
    border-bottom: 2px dashed #3E2723;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    gap: 15px;
}

.breadcrumb-list li::after {
    content: '>';
    margin-left: 15px;
    color: #8D6E63;
}

.breadcrumb-list li:last-child::after {
    content: '';
}

.single-post-content {
    background-color: #FFF;
    padding: 40px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.post-navigation {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #D4AF37;
    display: flex;
    justify-content: space-between;
}

.nav-previous, .nav-next {
    flex: 1;
}

.nav-links a {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #8D6E63 0%, #8B0000 100%);
    color: #FFF;
    border-radius: 5px;
    filter: blur(0.5px);
    transition: all 0.3s ease;
}

.nav-links a:hover {
    filter: blur(0);
    transform: scale(1.05);
}

/* Archive Page Styles */
.archive-header {
    background-color: #FFF;
    padding: 30px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.archive-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, transparent 49%, #D4AF37 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, #D4AF37 50%, transparent 51%);
    background-size: 50px 50px, 50px 50px;
    opacity: 0.1;
    z-index: 0;
}

.archive-header .page-title {
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
    padding-bottom: 15px;
    border-bottom: 3px double #D4AF37;
}

.archive-description {
    position: relative;
    z-index: 1;
    font-style: italic;
    color: #6D4C41;
}

/* Pagination Styles */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination .nav-links {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    background-color: #F5F1E6;
    color: #3E2723;
    border: 1px solid #D4AF37;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: #8D6E63;
    color: #FFF;
    border-color: #8D6E63;
}

.pagination .dots {
    background: none;
    border: none;
    padding: 8px 5px;
}

/* Search Form */
.search-form {
    display: flex;
    margin: 20px 0;
    border: 2px solid #D4AF37;
    border-radius: 5px;
    overflow: hidden;
    background-color: #FFF;
}

.search-field {
    flex: 1;
    padding: 10px 15px;
    border: none;
    font-family: 'Georgia', serif;
    font-size: 1rem;
    color: #3E2723;
    background: transparent;
}

.search-field:focus {
    outline: none;
    background-color: #FEFEFA;
}

.search-submit {
    padding: 10px 20px;
    background: linear-gradient(135deg, #8D6E63 0%, #8B0000 100%);
    color: #FFF;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.search-submit:hover {
    background: linear-gradient(135deg, #8B0000 0%, #8D6E63 100%);
}

/* 404 Page */
.error-404 .page-content {
    text-align: center;
    padding: 40px 20px;
}

.error-404 .page-title {
    font-size: 3rem;
    color: #8B0000;
    margin-bottom: 30px;
}

.error-404 .widget {
    text-align: left;
    max-width: 600px;
    margin: 30px auto;
}

/* Footer */
.site-footer {
    background-color: #6E6B6B;
    color: #F5F1E6;
    padding: 40px 0 20px;
    margin-top: 60px;
    text-align: center;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background-size: contain;
    background-repeat: no-repeat;
}

.site-info {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        margin: 0 auto;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #3E2723;
        position: absolute;
        left: 0;
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .content-area,
    .widget-area {
        width: 100%;
        float: none;
        padding: 0;
    }
    
    .widget-area {
        margin-top: 40px;
    }
    
    .article-card {
        transform: none !important;
        margin-bottom: 20px;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 20px;
    }
}

/* Clearfix */
.site-content::after {
    content: '';
    display: table;
    clear: both;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

.responsive-img {
    display: block;
    margin: 20px auto;
    border: 10px solid #FFF;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    position: relative;
}

.responsive-img::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background-image: url('film-border.svg');
    background-repeat: repeat;
    z-index: -1;
}

/* Loading Animation */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .widget-area,
    .post-navigation {
        display: none;
    }
    
    .content-area {
        width: 100%;
    }
    
    body {
        background: white;
        color: black;
    }
}

div.entry-summary { /* 列表内容 */
  line-height: 1.5;
  height: 6em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
  word-break: break-word;
}

h2.entry-title{ /* 列表标题 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

div.entry-thumbnail > a  > img{ /* 列表缩略图 */
  aspect-ratio: 2/1;
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: block;
}

@media (min-width: 768px) { /* 分类隐藏 */
  ul.nav-menu>*:nth-child(n+6) {
    display: none;
  }
}


figure.wp-block-image >img { /* 详情页图片 */
  max-width: 100%;
}
@media (min-width: 768px) {
  figure.wp-block-image >img {
    max-width: 66%;
  }
}
@media (min-width: 992px) {
  figure.wp-block-image >img {
    max-width: 33%;
  }
}