/* 蘑菇视频 - 复古电影胶片风格 CSS */
:root {
    --color-bg: #fdfbf7;
    --color-text: #3e2723;
    --color-primary: #8d6e63;
    --color-accent: #d84315;
    --color-border: #d7ccc8;
    --font-main: 'Georgia', 'Times New Roman', serif;
    --font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

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

a { color: var(--color-primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--color-accent); }

/* ===== Header ===== */
.site-header {
    background-color: rgba(253,251,247,0.96);
    border-bottom: 2px solid var(--color-border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 8px rgba(62,39,35,0.08);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.logo img { display: block; }

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.main-nav a {
    font-weight: bold;
    font-size: 0.95em;
    letter-spacing: 0.5px;
    color: var(--color-text);
}

.main-nav a:hover { color: var(--color-accent); }

/* ===== Fake Search ===== */
.search-bar-fake {
    background-color: #efebe9;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.search-bar-fake .container {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.search-bar-fake input {
    width: 55%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: 4px 0 0 4px;
    font-family: var(--font-sans);
    font-size: 0.95em;
    outline: none;
}

.search-bar-fake button {
    padding: 10px 22px;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.95em;
    transition: background 0.3s;
}

.search-bar-fake button:hover { background-color: var(--color-accent); }

/* ===== Hero Banner (首页) ===== */
.hero-banner {
    background-image: url('/assets/images/hero.jpg');
    background-size: cover;
    background-position: center;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(40,20,10,0.55);
}

.hero-content { position: relative; z-index: 1; padding: 20px; }

.hero-content h1 {
    font-size: 2.8em;
    margin-bottom: 12px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 20px;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    padding: 13px 34px;
    background-color: var(--color-accent);
    color: white;
    border-radius: 4px;
    font-size: 1.1em;
    margin-top: 10px;
    transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover { background-color: #bf360c; transform: translateY(-2px); color: white; }

/* ===== Page Hero (内页) ===== */
.page-hero {
    background-size: cover;
    background-position: center;
    min-height: 35vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(40,20,10,0.6);
}

.page-hero-content { position: relative; z-index: 1; padding: 20px; }
.page-hero-content h1 { font-size: 2.2em; margin-bottom: 8px; text-shadow: 2px 2px 5px rgba(0,0,0,0.5); }
.page-hero-content p { font-size: 1.1em; opacity: 0.9; }

/* ===== Breadcrumb ===== */
.breadcrumb {
    padding: 12px 0;
    font-size: 0.9em;
    color: #888;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 20px;
}

.breadcrumb a { color: var(--color-primary); }

/* ===== Sections ===== */
.section-block {
    padding: 50px 0;
    border-bottom: 1px dashed var(--color-border);
}

.section-block h2 {
    text-align: center;
    font-size: 1.9em;
    margin-bottom: 36px;
    color: var(--color-primary);
}

.section-block h2::after {
    content: '';
    display: block;
    width: 55px;
    height: 3px;
    background-color: var(--color-accent);
    margin: 12px auto 0;
}

/* ===== Video Grid ===== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.video-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #3e2723;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.4s ease, transform 0.4s ease;
    display: block;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(0,0,0,0.65);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-overlay::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 20px;
    border-color: transparent transparent transparent white;
    margin-left: 4px;
}

.video-card:hover .play-overlay { opacity: 1; }

.video-card:hover .video-thumbnail img {
    filter: sepia(0.6) contrast(1.15) brightness(0.9);
    animation: filmJitter 0.15s infinite;
}

@keyframes filmJitter {
    0%   { transform: translate(0,0) scale(1.02); }
    25%  { transform: translate(1px,-1px) scale(1.02); }
    50%  { transform: translate(-1px,1px) scale(1.02); }
    75%  { transform: translate(1px,1px) scale(1.02); }
    100% { transform: translate(0,0) scale(1.02); }
}

.video-info { padding: 14px; }
.video-info h3 { font-size: 1em; margin: 0 0 8px; font-family: var(--font-sans); line-height: 1.4; }

.stats { font-size: 0.85em; color: #888; margin-bottom: 8px; }

.tags span {
    display: inline-block;
    background: #efebe9;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.78em;
    margin-right: 4px;
    color: var(--color-primary);
}

/* ===== Story List ===== */
.story-list { display: flex; flex-direction: column; gap: 24px; }

.story-item {
    background: white;
    border-left: 4px solid var(--color-accent);
    padding: 20px 24px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.story-item h3 { margin: 0 0 10px; font-size: 1.15em; }
.story-item p { margin: 0 0 8px; color: #555; }

/* ===== AI Tools ===== */
.ai-tools {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.tool-card {
    text-align: center;
    max-width: 340px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    padding-bottom: 16px;
}

.tool-card img { width: 100%; display: block; }
.tool-card h3 { margin: 14px 14px 8px; font-size: 1.1em; }
.tool-card p { margin: 0 14px; color: #666; font-size: 0.95em; }

/* ===== Reviews ===== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.review-card {
    background: #efebe9;
    padding: 20px;
    border-radius: 8px;
    font-style: italic;
    border-left: 3px solid var(--color-primary);
    line-height: 1.6;
}

.review-card span {
    display: block;
    margin-top: 12px;
    font-weight: bold;
    text-align: right;
    font-style: normal;
    color: var(--color-primary);
    font-size: 0.9em;
}

/* ===== FAQ ===== */
.faq-list details {
    background: white;
    border: 1px solid var(--color-border);
    margin-bottom: 10px;
    padding: 14px 18px;
    border-radius: 6px;
    transition: box-shadow 0.2s;
}

.faq-list details[open] { box-shadow: 0 3px 10px rgba(0,0,0,0.08); }
.faq-list summary { font-weight: bold; cursor: pointer; color: var(--color-primary); font-size: 1.02em; }
.faq-list p { margin-top: 10px; color: #666; line-height: 1.6; }

/* ===== Contact Grid ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.contact-item {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 20px;
}

.contact-item h3 { color: var(--color-primary); margin-top: 0; }

/* ===== Poem List ===== */
.poem-list { display: flex; flex-direction: column; gap: 30px; }

.poem-item {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 24px;
}

.poem-item h3 { color: var(--color-primary); margin-top: 0; }

.poem-item blockquote {
    border-left: 4px solid var(--color-accent);
    margin: 14px 0;
    padding: 10px 18px;
    background: #fdf6f0;
    font-style: italic;
    color: #5d4037;
}

/* ===== Footer ===== */
.site-footer {
    background-color: #2d1b15;
    color: #d7ccc8;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-brand img { filter: brightness(0) invert(1); }
.footer-brand p { margin: 8px 0 0; font-style: italic; font-size: 0.9em; }

.footer-links ul, .footer-nav ul { list-style: none; padding: 0; margin: 8px 0 0; }
.footer-links li, .footer-nav li { margin-bottom: 6px; }
.footer-links a, .footer-nav a { color: #bcaaa4; font-size: 0.9em; }
.footer-links a:hover, .footer-nav a:hover { color: white; }

.footer-links h4, .footer-nav h4, .footer-contact h4 {
    color: #efebe9;
    margin: 0 0 8px;
    font-size: 1em;
}

.footer-contact p { margin: 4px 0; font-size: 0.9em; color: #bcaaa4; }

.footer-bottom {
    text-align: center;
    border-top: 1px solid #4e342e;
    padding-top: 18px;
    font-size: 0.85em;
    color: #a1887f;
}

.footer-bottom p { margin: 4px 0; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .main-nav ul { gap: 12px; }
    .hero-content h1 { font-size: 2em; }
}

@media (max-width: 640px) {
    .site-header .container { flex-direction: column; text-align: center; }
    .main-nav ul { justify-content: center; }
    .hero-content h1 { font-size: 1.6em; }
    .search-bar-fake input { width: 70%; }
    .footer-content { flex-direction: column; }
    .video-grid { grid-template-columns: 1fr; }
}
