/*
Theme Name: AI漫剧工作室
Theme URI: http://127.0.0.1
Author: AI Creator
Author URI: http://127.0.0.1
Description: 专业AI漫剧创作工作室主题，高端极简影视风格
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ai-manhua
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, portfolio
*/

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #e94560;
    --accent-gold: #f4d03f;
    --bg-color: #0f0f1a;
    --card-bg: #16162a;
    --card-bg-hover: #1e1e36;
    --text-color: #ffffff;
    --text-muted: #8888a0;
    --text-light: #ccccdd;
    --border-color: #2a2a4a;
    --shadow: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-hover: 0 12px 48px rgba(0,0,0,0.6);
    --radius: 16px;
    --radius-sm: 8px;
}

@font-face {
    font-family: 'SF Pro Display';
    src: local('SF Pro Display'), local('Helvetica Neue'), sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 24px; 
}

.site-header {
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}
.header-inner { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.site-logo { 
    font-size: 1.6rem; 
    font-weight: 700; 
    color: var(--accent-gold); 
    text-decoration: none;
    letter-spacing: -0.5px;
}
.site-logo span { color: var(--accent-color); }
.main-nav ul { 
    display: flex; 
    gap: 2.5rem; 
    list-style: none; 
}
.main-nav a { 
    color: var(--text-light); 
    text-decoration: none; 
    font-weight: 500; 
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}
.main-nav a:hover { 
    color: var(--accent-gold); 
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}
.main-nav a:hover::after { width: 100%; }

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    background:
        linear-gradient(180deg, rgba(9, 14, 24, 0.58) 0%, rgba(9, 15, 24, 0.7) 48%, rgba(8, 12, 20, 0.9) 100%),
        radial-gradient(circle at 18% 38%, rgba(233, 69, 96, 0.12) 0%, transparent 28%),
        radial-gradient(circle at 82% 62%, rgba(244, 208, 63, 0.08) 0%, transparent 24%),
        url('assets/images/haicang-hero-cover.png') center center / cover no-repeat;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -10%;
    width: 40%;
    height: 50%;
    background: radial-gradient(circle, rgba(244, 208, 63, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}
.hero-tagline {
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.hero h1 { 
    font-size: 4rem; 
    font-weight: 800; 
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-color) 0%, var(--text-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p { 
    font-size: 1.25rem; 
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}
.hero-cta {
    display: inline-flex;
    gap: 1rem;
}

.hero-supporting-link {
    margin-top: 1rem;
}

.hero-supporting-link a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 0.15rem;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.hero-supporting-link a:hover {
    color: var(--accent-gold);
    border-color: rgba(244, 208, 63, 0.55);
}

.hero-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: 2.25rem;
    text-align: left;
}

.hero-proof-card {
    position: relative;
    padding: 1.35rem 1.4rem 1.25rem;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
}

.hero-proof-kicker {
    display: inline-flex;
    margin-bottom: 0.8rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(244, 208, 63, 0.2);
    background: rgba(244, 208, 63, 0.1);
    color: var(--accent-gold);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-proof-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    line-height: 1.45;
    color: var(--text-color);
}

.hero-proof-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.internal-entry-section {
    background:
        linear-gradient(180deg, rgba(22, 22, 42, 0.96) 0%, rgba(15, 15, 26, 0.98) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.internal-entry-header {
    max-width: 840px;
    margin: 0 auto 2rem;
    text-align: center;
}

.internal-entry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.internal-entry-card {
    padding: 1.7rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.internal-entry-card .btn {
    margin-top: auto;
    justify-content: center;
}

.internal-handbook-shell {
    padding-top: 8rem;
}

.internal-handbook-hero {
    padding: 2.2rem;
    margin-bottom: 2rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.internal-handbook-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.internal-handbook-aside {
    padding: 1.5rem;
    position: sticky;
    top: 7rem;
}

.internal-handbook-nav {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
}

.internal-handbook-nav a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.internal-handbook-nav a:hover {
    color: var(--accent-gold);
    background: rgba(244, 208, 63, 0.08);
    transform: translateY(-1px);
}

.internal-handbook-actions {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.4rem;
}

.internal-handbook-actions .btn {
    justify-content: center;
}

.internal-handbook-content {
    padding: 2rem 2.1rem;
}

.internal-handbook-content h2,
.internal-handbook-content h3 {
    scroll-margin-top: 7rem;
}

.internal-handbook-content h2 {
    margin-top: 2rem;
    margin-bottom: 0.9rem;
    font-size: 1.8rem;
}

.internal-handbook-content h2:first-of-type {
    margin-top: 0;
}

.internal-handbook-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    color: var(--accent-gold);
}

.internal-handbook-content p,
.internal-handbook-content li {
    color: var(--text-light);
    line-height: 1.85;
}

.internal-handbook-content ul,
.internal-handbook-content ol {
    padding-left: 1.3rem;
    margin: 0.9rem 0 1.1rem;
}

.internal-handbook-content li + li {
    margin-top: 0.45rem;
}

.internal-handbook-content code {
    padding: 0.15rem 0.45rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-gold);
    font-size: 0.95em;
}

.review-batch-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.review-batch-stat,
.review-kpi-card {
    padding: 1.1rem 1.2rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.review-batch-stat-value,
.review-kpi-value {
    display: block;
    font-size: 2rem;
    line-height: 1;
    font-weight: 700;
    color: var(--text-color);
}

.review-batch-stat-label,
.review-kpi-label {
    display: block;
    margin-top: 0.45rem;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.review-compact {
    font-size: 0.92rem;
    line-height: 1.8;
}

.review-muted {
    color: var(--text-muted);
}

.review-episode-list {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.review-episode-link {
    display: grid;
    gap: 0.45rem;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.review-episode-link:hover,
.review-episode-link.is-active {
    transform: translateY(-1px);
    border-color: rgba(244, 208, 63, 0.38);
    background: rgba(244, 208, 63, 0.08);
}

.review-episode-link-title {
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.5;
}

.review-episode-link-meta {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.review-progress-bar {
    display: block;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.review-progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-gold));
}

.review-section + .review-section {
    margin-top: 2.5rem;
}

.review-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.review-section-side {
    display: grid;
    gap: 0.55rem;
    justify-items: end;
}

.review-mini-stat {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-light);
    font-size: 0.82rem;
}

.review-kpi-grid,
.review-detail-grid {
    display: grid;
    gap: 1rem;
}

.review-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1.25rem;
}

.review-detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-detail-grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.review-detail-card,
.review-beat-card,
.review-card,
.review-record-card {
    padding: 1.2rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.review-detail-card h3,
.review-beat-card h3,
.review-subsection h3,
.review-card h4 {
    margin-top: 0;
}

.review-chip-block {
    margin-top: 1.4rem;
}

.review-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.8rem;
}

.review-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(233, 69, 96, 0.12);
    border: 1px solid rgba(233, 69, 96, 0.2);
    color: #ffb9c5;
    font-size: 0.84rem;
}

.review-beat-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.review-beat-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    margin-bottom: 0.85rem;
    border-radius: 999px;
    background: rgba(244, 208, 63, 0.14);
    color: var(--accent-gold);
    font-size: 0.92rem;
    font-weight: 700;
}

.review-list {
    margin: 0.8rem 0 0;
    padding-left: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
}

.review-subsection + .review-subsection {
    margin-top: 1.75rem;
}

.review-section-intro {
    margin-bottom: 1rem;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.review-grid-wide {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.review-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.review-status.is-pending {
    background: rgba(255, 234, 167, 0.15);
    color: #ffeaa7;
}

.review-status.is-approved {
    background: rgba(85, 239, 196, 0.15);
    color: #55efc4;
}

.review-status.is-rejected {
    background: rgba(225, 112, 85, 0.16);
    color: #ff9f8d;
}

.review-status.is-redo {
    background: rgba(116, 185, 255, 0.16);
    color: #8ec5ff;
}

.review-code {
    margin: 0 0 0.85rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-size: 0.84rem;
    line-height: 1.75;
    white-space: pre-wrap;
    word-break: break-word;
}

.review-card-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 0.9rem;
    margin-bottom: 0.85rem;
    color: var(--text-light);
    font-size: 0.88rem;
}

.review-notes-input {
    width: 100%;
    min-height: 88px;
    margin-top: 0.75rem;
    padding: 0.8rem 0.95rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-color);
    font: inherit;
    resize: vertical;
}

.review-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.85rem;
}

.review-action {
    border: 1px solid transparent;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    padding: 0.6rem 0.95rem;
    font: inherit;
    font-size: 0.86rem;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.review-action:hover {
    transform: translateY(-1px);
}

.review-action.is-approve {
    border-color: rgba(85, 239, 196, 0.4);
    color: #55efc4;
}

.review-action.is-reject {
    border-color: rgba(225, 112, 85, 0.4);
    color: #ff9f8d;
}

.review-action.is-redo {
    border-color: rgba(116, 185, 255, 0.4);
    color: #8ec5ff;
}

.review-action.is-save {
    border-color: rgba(244, 208, 63, 0.3);
    color: var(--accent-gold);
}

.review-action:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.review-record-list {
    display: grid;
    gap: 0.85rem;
}

.review-record-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.review-record-note {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0.6rem;
}

.review-empty {
    padding: 1.2rem 1.3rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    line-height: 1.8;
}

.review-subhead {
    margin-top: 0.9rem;
    margin-bottom: 0.45rem;
    font-size: 0.98rem;
    color: var(--accent-gold);
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #c73e54);
    color: white;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.4);
}
.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: var(--card-bg);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.section { 
    padding: 6rem 0; 
    position: relative;
}
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}
.section-title { 
    font-size: 2.25rem; 
    font-weight: 700; 
    margin-bottom: 3rem; 
    color: var(--text-color);
    text-align: center;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-gold));
    border-radius: 2px;
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 4rem;
}

.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 2rem; 
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
}
.card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}
.card-image-wrapper {
    position: relative;
    overflow: hidden;
}
.card-image-link {
    display: block;
}
.card-image { 
    width: 100%; 
    height: 248px; 
    object-fit: cover; 
    transition: transform 0.5s ease;
}
.card-cover-image {
    display: block;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.card:hover .card-image {
    transform: scale(1.05);
}
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}
.card:hover .card-overlay { opacity: 1; }
.card-body { 
    padding: 1.75rem; 
}
.card-title { 
    font-size: 1.25rem; 
    font-weight: 600; 
    margin-bottom: 0.75rem; 
    color: var(--text-color);
}
.card-title a {
    color: inherit;
    text-decoration: none;
}
.card-meta { 
    font-size: 0.875rem; 
    color: var(--text-muted); 
    margin-bottom: 1rem; 
}
.card-excerpt {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-selling-line {
    color: var(--accent-gold);
    font-size: 0.82rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.card-tags { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 0.5rem; 
}
.tag {
    background: rgba(233, 69, 96, 0.15);
    color: var(--accent-color);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(233, 69, 96, 0.3);
}

.character-card {
    text-align: center;
    padding-bottom: 1.75rem;
}
.character-card .avatar-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}
.character-card .avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 1.5rem auto 0;
    display: block;
    border: 4px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}
.character-card:hover .avatar {
    border-color: var(--accent-gold);
    transform: scale(1.05);
}
.character-card .avatar-status {
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(35px);
    width: 20px;
    height: 20px;
    background: #10b981;
    border-radius: 50%;
    border: 3px solid var(--card-bg);
}
.character-card .persona { 
    font-size: 0.9rem; 
    color: var(--text-muted); 
    margin: 0.75rem 0;
    font-style: italic;
}
.character-card .copy-btn {
    width: 100%;
    margin-top: 1rem;
}

.copy-btn {
    background: linear-gradient(135deg, var(--accent-color), #c73e54);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
}
.copy-btn svg { width: 16px; height: 16px; }

.scene-card .scene-image-wrapper {
    height: 200px;
}
.scene-card .scene-image { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}
.prompt-box {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.8rem;
    margin-top: 1rem;
    position: relative;
    border: 1px solid var(--border-color);
}
.prompt-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.prompt-box-label {
    font-size: 0.7rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.prompt-box-copy {
    background: transparent;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: color 0.2s;
}
.prompt-box-copy:hover { color: var(--accent-gold); }

.prompt-card {
    padding: 1.75rem;
}
.prompt-card .prompt-text {
    background: var(--primary-color);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
    margin: 1rem 0;
    border-left: 4px solid var(--accent-color);
    line-height: 1.7;
    color: var(--text-light);
    overflow-x: auto;
}

.project-item {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.project-item:hover {
    border-color: var(--accent-color);
    transform: translateX(8px);
}
.project-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    margin-bottom: 1.25rem; 
}
.project-title { 
    font-size: 1.4rem; 
    font-weight: 700; 
}
.project-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}
.project-title a:hover { color: var(--accent-gold); }
.project-date { 
    font-size: 0.875rem; 
    color: var(--text-muted); 
}
.project-description {
    color: var(--text-light);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}
.project-materials { 
    display: flex; 
    gap: 1.25rem; 
    flex-wrap: wrap; 
}
.material-count { 
    background: var(--primary-color); 
    padding: 0.5rem 1rem; 
    border-radius: 20px; 
    font-size: 0.85rem;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}
.material-count strong { color: var(--accent-gold); }

.site-footer {
    background: var(--primary-color);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0;
    margin-top: 4rem;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}
.footer-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}
.footer-section h4 {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent-gold); }
.footer-social {
    display: flex;
    gap: 1rem;
}
.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}
.footer-social a:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.pagination { 
    display: flex; 
    justify-content: center; 
    gap: 0.5rem; 
    margin-top: 4rem; 
}
.pagination a, .pagination span {
    padding: 0.75rem 1.25rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: all 0.3s;
}
.pagination a:hover {
    background: var(--card-bg-hover);
    border-color: var(--accent-color);
    color: var(--accent-color);
}
.pagination .current { 
    background: var(--accent-color); 
    color: white; 
    border-color: var(--accent-color); 
}

.video-wrapper { 
    position: relative; 
    padding-bottom: 56.25%; 
    height: 0; 
    overflow: hidden; 
    border-radius: var(--radius-sm);
}
.video-wrapper video, .video-wrapper iframe { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
}

.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s;
    z-index: 10000;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}
.toast.show { 
    opacity: 1; 
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 1rem; }
    .main-nav ul { 
        flex-wrap: wrap; 
        justify-content: center; 
        gap: 1.5rem; 
    }
    .hero h1 { font-size: 2.25rem; }
    .hero p { font-size: 1.1rem; }
    .grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .section { padding: 4rem 0; }
    .section-title { font-size: 1.75rem; }
    .project-header { flex-direction: column; gap: 0.5rem; }
    .project-title { font-size: 1.25rem; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero { padding: 6rem 1rem 3rem; }
    .hero h1 { font-size: 1.75rem; }
    .hero-tagline { font-size: 0.875rem; }
    .hero-cta { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }
}

.nav-support {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-main {
    min-height: 70vh;
}

.proposal-container {
    max-width: 1200px;
}

.proposal-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    overflow: hidden;
}

.proposal-hero-copy {
    padding: 2.2rem;
}

.proposal-title {
    font-size: 2.7rem;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.proposal-headline {
    color: var(--text-light);
    font-size: 1.12rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.proposal-summary {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.proposal-hero-media {
    min-height: 420px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.proposal-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.proposal-kpi {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.proposal-kpi-value {
    display: block;
    color: var(--text-color);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.4;
}

.proposal-kpi-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 0.35rem;
}

.proposal-section {
    margin-top: 2rem;
}

.proposal-detail-card {
    padding: 1.5rem;
}

.proposal-richtext-card {
    padding: 2rem;
}

.proposal-paragraph {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}

.proposal-list {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
}

.proposal-list li + li {
    margin-top: 0.5rem;
}

.proposal-link-line + .proposal-link-line {
    margin-top: 0.65rem;
}

.proposal-link-line a {
    color: var(--accent-gold);
    text-decoration: none;
}

.proposal-link-line a:hover {
    color: #fff;
}

.proposal-content {
    color: var(--text-light);
    line-height: 1.9;
}

.empty-state {
    padding: 2rem;
    text-align: center;
}

.empty-state h3 {
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.single-content p + p {
    margin-top: 1rem;
}

.single-featured-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    display: block;
}

.tag-accent {
    background: rgba(244, 208, 63, 0.14);
    color: var(--accent-gold);
    border: 1px solid rgba(244, 208, 63, 0.2);
}

.showcase-grid {
    align-items: stretch;
}

.trust-grid {
    align-items: stretch;
}

.trust-card {
    position: relative;
    padding: 1.9rem;
    overflow: hidden;
}

.trust-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(244, 208, 63, 0.14);
    background:
        radial-gradient(circle at top right, rgba(244, 208, 63, 0.14) 0%, rgba(244, 208, 63, 0) 32%),
        linear-gradient(135deg, rgba(233, 69, 96, 0.08) 0%, rgba(233, 69, 96, 0) 52%);
    pointer-events: none;
}

.trust-index {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 0.35rem 0.7rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(244, 208, 63, 0.1);
    border: 1px solid rgba(244, 208, 63, 0.22);
    color: var(--accent-gold);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.showcase-type-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.showcase-swatch {
    width: 100%;
    height: 10px;
    border-radius: 999px;
}

.showcase-links {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.showcase-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
}

.showcase-links a:hover {
    color: var(--accent-gold);
}

.showcase-fallback {
    padding: 1.5rem;
    text-align: left;
    justify-content: flex-end !important;
    position: relative;
    overflow: hidden;
}

.showcase-fallback::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 11, 18, 0.12) 0%, rgba(9, 11, 18, 0.68) 100%);
}

.showcase-fallback-type,
.showcase-fallback-title {
    position: relative;
    z-index: 1;
    display: block;
}

.showcase-fallback-type {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 0.75rem;
}

.showcase-fallback-title {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.35;
    max-width: 85%;
}

.proposal-process-grid,
.proposal-pricing-grid,
.proposal-module-grid {
    display: grid;
    gap: 1.5rem;
}

.proposal-process-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.proposal-process-card,
.proposal-module-card {
    padding: 1.5rem;
    position: relative;
}

.proposal-process-card::before,
.proposal-pricing-card::before,
.proposal-module-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.proposal-process-card::before {
    background:
        linear-gradient(180deg, rgba(244, 208, 63, 0.1) 0%, rgba(244, 208, 63, 0) 55%),
        linear-gradient(135deg, rgba(233, 69, 96, 0.1) 0%, rgba(233, 69, 96, 0) 100%);
}

.proposal-process-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 0.35rem 0.75rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(244, 208, 63, 0.12);
    border: 1px solid rgba(244, 208, 63, 0.2);
    color: var(--accent-gold);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.proposal-pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.proposal-pricing-card {
    position: relative;
    padding: 1.75rem;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(244, 208, 63, 0.18) 0%, rgba(244, 208, 63, 0) 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%),
        var(--card-bg);
}

.proposal-pricing-card::before {
    border: 1px solid rgba(244, 208, 63, 0.16);
    background: linear-gradient(180deg, rgba(233, 69, 96, 0.12) 0%, rgba(233, 69, 96, 0) 36%);
}

.proposal-pricing-head,
.proposal-module-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.proposal-pricing-label {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.proposal-pricing-badge,
.proposal-module-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.proposal-pricing-badge {
    background: rgba(244, 208, 63, 0.12);
    border: 1px solid rgba(244, 208, 63, 0.24);
    color: var(--accent-gold);
}

.proposal-pricing-title {
    margin: 1.4rem 0 0.9rem;
    color: var(--text-color);
    font-size: 1.5rem;
    line-height: 1.25;
}

.proposal-module-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.proposal-module-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0) 100%),
        var(--card-bg);
}

.proposal-module-card::before {
    border: 1px solid rgba(233, 69, 96, 0.16);
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.1) 0%, rgba(233, 69, 96, 0) 58%);
}

.proposal-module-badge {
    background: rgba(233, 69, 96, 0.14);
    border: 1px solid rgba(233, 69, 96, 0.24);
    color: #ff9faf;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.footer-title {
    font-size: 1.1rem;
    margin-bottom: 0.9rem;
}

.footer-copy {
    color: var(--text-light);
}

.footer-links {
    list-style: none;
    display: grid;
    gap: 0.75rem;
    color: var(--text-light);
}

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .proposal-hero {
        grid-template-columns: 1fr;
    }

    .proposal-title {
        font-size: 2rem;
    }

    .proposal-kpis {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .showcase-fallback-title {
        max-width: 100%;
    }

    .proposal-pricing-head,
    .proposal-module-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-proof-grid {
        grid-template-columns: 1fr;
    }

    .internal-entry-grid {
        grid-template-columns: 1fr;
    }

    .internal-handbook-layout {
        grid-template-columns: 1fr;
    }

    .internal-handbook-aside {
        position: static;
    }

    .review-batch-summary,
    .review-kpi-grid,
    .review-detail-grid,
    .review-detail-grid-wide {
        grid-template-columns: 1fr;
    }

    .review-section-head {
        flex-direction: column;
    }

    .review-section-side {
        justify-items: start;
    }

    .review-card-meta-grid {
        grid-template-columns: 1fr;
    }
}
