/* ======================================================= */
/* Fora Style x JIMUSE - 修正版 (2025-12-07) */
/* ======================================================= */

/* ================== 1. 字体引入 ================== */
@font-face {
    font-family: 'MingChao';
    src: url('font/ming/I.MingCP-8.10.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Montserrat';
    src: url('font/Montserrat/fonts/ttf/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
}
@font-face {
    font-family: 'Montserrat';
    src: url('font/Montserrat/fonts/ttf/Montserrat-Medium.ttf') format('truetype');
    font-weight: 500;
}
@font-face {
    font-family: 'Montserrat';
    src: url('font/Montserrat/fonts/ttf/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
}

/* ================== 2. 全局变量 & 基础设置 ================== */
:root {
    --bg-color: #fcfbf9;
    --text-primary: #1a1a1a;
    --text-secondary: #555;
    --brand-green: #9DB97F;
    --border-color: #e0e0e0;
    
    /* 字体栈：英文优先 Montserrat，中文后备 MingChao */
    --font-unified: 'Montserrat', 'MingChao', "Songti SC", serif;
    --font-en-only: 'Montserrat', sans-serif;
}

body.fora-style {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-unified) !important;
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
}

/* 强制覆盖所有默认字体为统一字体栈 */
h1, h2, h3, h4, h5, h6, p, span, a, div, li {
    font-family: var(--font-unified);
}

/* ================== 4. Hero 区域 (标题字体 & 海报修正) ================== */
.fc-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 60px;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 左右 1:1 分布 */
    gap: 60px;
    align-items: center;
}

.hero-meta {
    font-family: var(--font-en-only);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 30px;
    border-left: 3px solid var(--brand-green);
    padding-left: 15px;
    font-weight: 600;
}

/* [修改点 1] 强制大标题使用 Montserrat */
.hero-title {
    font-family: var(--font-en-only) !important; 
    font-weight: 700; /* 加粗 */
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 30px;
    letter-spacing: -2px;
    color: #1a1a1a;
}

.hero-title i {
    font-family: var(--font-en-only) !important; /* "Years" 也用 Montserrat */
    font-weight: 300; /* 可以细一点形成对比 */
    font-style: italic;
    color: var(--brand-green);
}

/* [修改点 3] 海报展示优化 - 悬浮完整展示 */
.hero-img-wrap {
    width: 100%;
    display: flex;
    justify-content: center; /* 居中海报 */
    perspective: 1000px; /* 增加3D透视感 */
}

.hero-img {
    width: auto;      /* 宽度自动 */
    max-width: 80%;   /* 限制最大宽度，防止太大 */
    max-height: 80vh; /* 限制最大高度，防止超出一屏 */
    object-fit: contain; /* 保证完整显示，绝不裁剪 */
    border-radius: 4px;
    box-shadow: 0 30px 60px -10px rgba(0,0,0,0.25); /* 强烈的高级阴影 */
    transform: rotateY(-5deg) rotateX(2deg); /* 微微偏转，更有质感 */
    transition: transform 0.5s ease;
}

.hero-img-wrap:hover .hero-img {
    transform: rotateY(0) rotateX(0) scale(1.02); /* 悬停回正 */
    box-shadow: 0 40px 80px -10px rgba(0,0,0,0.3);
}

/* ================== 5. 展览章节 (手风琴布局修正) ================== */
.program-grid {
    border-top: 1px solid #1a1a1a;
    margin-top: 60px;
}

.program-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 30px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.program-item:hover {
    background-color: #f9f9f9;
}

/* [修改点 4] 强制 Flexbox 布局撑开 */
.p-header {
    display: flex;
    justify-content: space-between; /* 关键：两端对齐 */
    align-items: center; /* 垂直居中 */
    width: 100%;
}

.p-main-info {
    display: flex;
    align-items: center; /* 确保序号和标题垂直对齐 */
    gap: 30px; /* 序号和标题的间距 */
}

.p-idx {
    font-family: var(--font-en-only);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--brand-green);
    min-width: 30px; /* 保证序号不被压缩 */
}

.p-info {
    display: flex;
    flex-direction: column;
}

.p-title {
    font-family: var(--font-en-only) !important;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.2;
}

.p-sub {
    font-family: 'MingChao', serif !important; /* 中文强制宋体 */
    font-size: 1rem;
    color: #666;
    margin-top: 5px;
}

.p-type {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-en-only);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid #ddd;
    padding: 6px 16px;
    border-radius: 50px;
    color: #555;
    background: #fff;
    white-space: nowrap; /* 防止标签换行 */
}

.arrow-icon {
    font-size: 0.8rem;
    margin-left: 0; /* 在按钮内部不需要额外大间距 */
    transition: transform 0.3s;
}

/* 简介展开区域 */
.p-description {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, margin-top 0.3s;
    opacity: 0;
    padding-left: 60px; /* 与标题对齐 */
    width: 80%;
}

.p-description.open {
    opacity: 1;
    margin-top: 20px;
}

/* ================== 6. 地图与通用 ================== */
.fc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.fc-section {
    padding: 100px 0;
}

.fc-intro-text {
    font-family: 'MingChao', serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

.fc-intro-text span {
    color: var(--brand-green);
    border-bottom: 1px solid var(--brand-green);
}

.intro-desc {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    color: #666;
}

/* [修改点 5] 地图不可下载保护 */
.static-map-wrapper {
    width: 100%;
    margin-top: 40px;
    border-radius: 8px;
    overflow: hidden;
    /* CSS 层面禁止操作 */
    pointer-events: none; /* 禁止鼠标点击事件 */
    user-select: none;    /* 禁止选中 */
    -webkit-user-select: none;
}

.static-map-img {
    width: 100%;
    height: auto;
    display: block;
}

/* 地图按钮 */
.map-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.nav-btn-group {
    display: flex;
    gap: 15px;
}

.map-link-btn {
    text-decoration: none;
    font-family: var(--font-en-only);
    font-weight: 600;
    padding: 10px 20px;
    border: 1px solid #9DB97F;
    color: #9DB97F;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.map-link-btn:hover {
    background: #9DB97F;
    color: #fff;
}

.map-link-btn.google {
    border-color: #9DB97F;
    background: #9DB97F;
    color: #fff;
}
.map-link-btn.google:hover { background: #9DB97F; }

/* 预约表单样式保持原样 (略微美化) */
.rsvp-wrapper {
    background: #fff;
    padding: 60px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}
.fc-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 15px 0;
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-family: 'MingChao', serif;
}
.fc-btn {
    background: #9DB97F;
    color: #fff;
    border: none;
    padding: 15px 50px;
    font-family: var(--font-en-only);
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
}
.fc-btn:hover { background: var(--brand-green); }

/* 移动端适配 */
@media (max-width: 768px) {
    .hero-layout { grid-template-columns: 1fr; text-align: center; }
    .hero-title { font-size: 3.5rem; }
    .hero-img { max-width: 80%; margin-top: 40px; }
    .hero-meta { border-left: none; padding-left: 0; border-bottom: 3px solid var(--brand-green); padding-bottom: 10px; display: inline-block; }
    
    .p-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .p-type { width: 100%; justify-content: space-between; margin-top: 10px; }
    .map-actions { flex-direction: column; gap: 20px; text-align: center; }
    .nav-btn-group { flex-wrap: wrap; justify-content: center; }
}