
_/*
伊藤润二 - 长梦回廊 主题CSS
配色方案:
  深灰黑底: #111111
  惨白文字: #d4d0c8
  暗黄点缀: #8b7d3c
  铁锈红点缀: #6b3a3a
  霉绿点缀: #3a4a3a
*/

/* 基础与重置 */
body, html {
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: #111111;
    color: #d4d0c8;
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.6;
}

* {
    box-sizing: border-box;
}

a {
    color: #8b7d3c;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

a:hover {
    color: #d4d0c8;
}

img {
    max-width: 100%;
    height: auto;
    border: none;
}

.long-dream-theme {
    position: relative;
}

/* 无尽走廊透视背景 */
.corridor-lines-bg, .corridor-perspective-wrapper::before, .corridor-perspective-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: rgba(107, 58, 58, 0.2);
    z-index: -1;
}

.corridor-perspective-wrapper::before {
    transform: translateX(-50%) perspective(500px) rotateY(30deg);
}

.corridor-perspective-wrapper::after {
    transform: translateX(-50%) perspective(500px) rotateY(-30deg);
}

@keyframes corridor-scroll {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-100px);
    }
}

.long-dream-theme::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    background-image: linear-gradient(rgba(58, 74, 58, 0.1) 1px, transparent 1px);
    background-size: 100% 50px;
    animation: corridor-scroll 10s linear infinite;
    z-index: -2;
    opacity: 0.3;
}

/* 头部 */
.site-header.long-dream-corridor {
    background: rgba(17, 17, 17, 0.8);
    border-bottom: 1px solid #3a4a3a;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.header-inner {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-image {
    width: 160px;
    filter: grayscale(50%);
    transition: filter 0.3s;
}

.logo-link:hover .logo-image {
    filter: grayscale(0%);
}

.logo-text-main {
    font-size: 1.5em;
    color: #d4d0c8;
    margin-left: 15px;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 0 5px #6b3a3a;
}

.main-navigation .nav-item {
    color: #d4d0c8;
    margin: 0 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.main-navigation .nav-item:hover, .main-navigation .nav-item.active {
    color: #fff;
    border-bottom-color: #8b7d3c;
}

.search-portal .search-form {
    position: relative;
}

.search-input-field {
    background: rgba(0,0,0,0.3);
    border: 1px solid #3a4a3a;
    color: #d4d0c8;
    padding: 8px 12px;
    border-radius: 4px;
    width: 220px;
    transition: all 0.3s;
}

.search-input-field:focus {
    outline: none;
    border-color: #8b7d3c;
    box-shadow: 0 0 10px rgba(139, 125, 60, 0.5);
}

.search-submit-btn {
    background: none;
    border: none;
    color: #d4d0c8;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* 主体内容 */
.main-container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    position: relative;
}

.main-content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.content-main-area {
    transform: perspective(1000px) rotateY(1deg);
    transition: transform 0.5s ease-out;
}

body:hover .content-main-area {
     transform: perspective(1000px) rotateY(-0.5deg);
}

.section-header-title {
    border-bottom: 2px solid #6b3a3a;
    padding-bottom: 10px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header-title h2 {
    margin: 0;
    font-size: 1.8em;
    color: #d4d0c8;
    text-shadow: 0 0 3px #6b3a3a;
}

.more-link-btn {
    color: #8b7d3c;
    font-size: 0.9em;
}

/* 卡片样式 - 门框 */
.post-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.post-card-item {
    background: #1a1a1a;
    border: 1px solid #333;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.post-card-item.door-frame-style {
    border: 10px solid #2a2a2a;
    border-image: linear-gradient(45deg, #3a4a3a, #222) 1;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.7);
}

.post-card-item:hover {
    transform: translateY(-10px) rotateZ(-1deg);
    box-shadow: 0 15px 25px rgba(0,0,0,0.5);
}

.card-image-container {
    position: relative;
}

.card-thumbnail-image {
    display: block;
    width: 100%;
    filter: sepia(30%) contrast(1.1) brightness(0.9);
    transition: filter 0.4s, transform 0.4s;
}

.post-card-item:hover .card-thumbnail-image {
    filter: sepia(0%) contrast(1) brightness(1);
    transform: scale(1.05);
}

.image-overlay-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(17,17,17,0.8), transparent 50%);
}

.card-content-area {
    padding: 20px;
}

.card-title-text {
    margin: 0 0 10px;
    font-size: 1.2em;
    color: #d4d0c8;
}

.card-excerpt-text {
    font-size: 0.9em;
    color: #aaa;
    margin: 0 0 15px;
}

.card-meta-info {
    font-size: 0.8em;
    color: #666;
    display: flex;
    justify-content: space-between;
}

/* 卡片样式 - 窗户 */
.post-card-item.window-frame-style {
    border: 2px solid #3a4a3a;
    padding: 8px;
    background: #111;
}

.window-frame-style .card-main-link {
    display: block;
    background: #1a1a1a;
    padding: 15px;
}

/* 侧边栏 */
.sidebar-container {
    padding-top: 20px;
}

.sidebar-widget-frame {
    background: rgba(26, 26, 26, 0.5);
    border: 1px solid #3a4a3a;
    margin-bottom: 30px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(58, 74, 58, 0.1);
}

.widget-title-bar {
    font-size: 1.3em;
    color: #8b7d3c;
    margin: -20px -20px 20px -20px;
    padding: 10px 20px;
    background: #222;
    border-bottom: 1px solid #3a4a3a;
}

.widget-list-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-list-items li {
    margin-bottom: 10px;
    border-bottom: 1px dashed #333;
    padding-bottom: 10px;
}

.widget-list-items li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ranking-list .rank-index {
    color: #6b3a3a;
    font-weight: bold;
    margin-right: 10px;
}

.widget-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-link {
    background: #3a4a3a;
    color: #d4d0c8;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.9em;
    transition: background 0.3s;
}

.tag-link:hover {
    background: #8b7d3c;
    color: #111;
}

/* 页脚 */
.site-footer.long-dream-corridor-footer {
    background: #1a1a1a;
    color: #aaa;
    padding: 40px 0;
    border-top: 2px solid #6b3a3a;
    position: relative;
}

.footer-shadow-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    pointer-events: none;
}

.footer-content-wrapper {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-heading {
    color: #8b7d3c;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.footer-logo-img {
    max-width: 150px;
    margin-bottom: 15px;
    filter: grayscale(80%);
}

.footer-description, .footer-contact-list li {
    font-size: 0.9em;
    color: #777;
}

.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link-list li {
    margin-bottom: 8px;
}

.footer-link-list a {
    color: #777;
}

.footer-link-list a:hover {
    color: #d4d0c8;
}

.footer-legal-section {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85em;
    color: #555;
}

.footer-eeat-links {
    margin-bottom: 15px;
}

.footer-eeat-links a {
    color: #555;
    margin: 0 10px;
}

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

.footer-copyright-info p {
    margin: 5px 0;
}

/* 详情页 */
.page-detail .post-detail-content {
    background: rgba(20, 20, 20, 0.7);
    padding: 30px;
    border: 1px solid #3a4a3a;
    transform: perspective(800px) rotateX(1deg);
}

.breadcrumb-navigation {
    margin-bottom: 20px;
    color: #777;
}

.breadcrumb-navigation a {
    color: #8b7d3c;
}

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

.post-title-text {
    font-size: 2.5em;
    color: #d4d0c8;
    text-shadow: 0 0 10px #6b3a3a;
    margin: 0 0 15px;
}

.post-meta-info span {
    margin: 0 10px;
    color: #777;
    font-size: 0.9em;
}

.post-body-content {
    color: #bbb;
    line-height: 1.8;
}

.post-body-content .post-featured-image {
    margin: 0 auto 30px;
    text-align: center;
}

.post-body-content img {
    border: 5px solid #222;
    box-shadow: 0 0 15px #000;
}

.post-navigation-links {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #333;
}

.related-posts-section, .faq-section {
    margin-top: 40px;
}

.section-title {
    font-size: 1.6em;
    color: #d4d0c8;
    border-bottom: 1px solid #6b3a3a;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

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

.related-post-item a {
    display: block;
    position: relative;
}

.related-post-item img {
    width: 100%;
    filter: grayscale(50%);
    transition: all 0.3s;
}

.related-post-item a:hover img {
    filter: grayscale(0);
    transform: scale(1.05);
}

.related-post-item span {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(17,17,17,0.8);
    color: #d4d0c8;
    padding: 10px;
    font-size: 0.9em;
    text-align: center;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-q {
    font-size: 1.2em;
    color: #8b7d3c;
    margin: 0 0 10px;
    cursor: pointer;
}

.faq-a {
    padding-left: 20px;
    border-left: 2px solid #3a4a3a;
    color: #999;
}

/* 列表页 */
.category-header-area {
    padding: 20px;
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid #3a4a3a;
    margin-bottom: 30px;
    text-align: center;
}

.category-title-text {
    font-size: 2.2em;
    color: #d4d0c8;
    margin: 0;
}

.category-description-text {
    color: #999;
    margin-top: 10px;
}

.pagination-container {
    text-align: center;
    margin-top: 40px;
}

.page-number-link {
    color: #d4d0c8;
    border: 1px solid #3a4a3a;
    padding: 8px 15px;
    margin: 0 5px;
    transition: all 0.3s;
}

.page-number-link:hover, .page-number-link.current {
    background: #8b7d3c;
    color: #111;
    border-color: #8b7d3c;
}

/* 动画效果 */
@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-title-text {
    animation: flicker 3s infinite alternate;
}

@keyframes slow-move-shadow {
    0% { transform: translateX(-5%) translateY(-5%); }
    50% { transform: translateX(5%) translateY(5%); }
    100% { transform: translateX(-5%) translateY(-5%); }
}

.footer-shadow-overlay {
    animation: slow-move-shadow 20s ease-in-out infinite;
}

/* 反干扰随机CSS类名 */
.r-a-n-d-o-m-class-1 { color: #6b3a3a; }
.junji-ito-vibe { border-style: dotted; }
.nightmare-fuel-text { letter-spacing: 1.5px; }
.uzumaki-spiral-effect { transform: rotate(0.1deg); }
.tomie-beauty-filter { filter: saturate(1.1); }

/* 响应式布局 */
@media (max-width: 1024px) {
    .main-content-grid {
        grid-template-columns: 1fr;
    }
    .sidebar-container {
        margin-top: 40px;
    }
    .header-inner {
        flex-direction: column;
    }
    .main-navigation {
        margin: 15px 0;
    }
    .post-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-inner {
        width: 95%;
    }
    .main-container {
        width: 95%;
    }
    .logo-text-main {
        display: none;
    }
    .search-input-field {
        width: 180px;
    }
    .post-title-text {
        font-size: 2em;
    }
    .related-posts-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    .main-navigation .nav-item {
        margin: 0 8px;
        font-size: 0.9em;
    }
    .post-card-grid {
        grid-template-columns: 1fr;
    }
    .post-detail-content {
        padding: 20px;
    }
    .post-title-text {
        font-size: 1.8em;
    }
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
