/* ==========================================
   賨人文化数字化博物馆 - 全局现代高端样式表
   ========================================== */

:root {
    --primary: #0a2463;
    --primary-light: #1e3a8a;
    --secondary: #c8102e;
    --secondary-hover: #a50d25;
    --accent: #d97706;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --border: rgba(10, 36, 99, 0.08);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 12px 30px -4px rgba(10, 36, 99, 0.05), 0 8px 12px -6px rgba(10, 36, 99, 0.03);
    --shadow-lg: 0 22px 45px -5px rgba(10, 36, 99, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Microsoft YaHei", sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

/* 顶级通栏视听体验 */
.top-banner {
    position: relative;
    width: 100%;
    height: 550px;
    background: #000;
    overflow: hidden;
    box-shadow: inset 0 -100px 150px rgba(0,0,0,0.8);
}

.top-banner video, .top-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transform: scale(1.02);
}

.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 52px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.15em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    z-index: 2;
    font-family: "STKaiti", "KaiTi", serif;
}

/* 悬浮有色半透明毛玻璃导航 */
.navbar {
    position: sticky;
    top: 0;
    background-color: rgba(10, 36, 99, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 10px 0;
    transition: var(--transition);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 15px;
}

.nav-item {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.nav-item:hover, .nav-item.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 40%;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-item:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* 现代页面标准头部 */
.page-header {
    max-width: 1200px;
    margin: 45px auto 25px;
    padding: 0 20px;
    text-align: center;
}

.page-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.page-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 24px;
}

.breadcrumb {
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* 现代化标准卡片形态（适配美食、店铺等） */
.food-container, .shops-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.food-card, .shop-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    padding: 28px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.food-card:hover, .shop-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(200, 16, 46, 0.15);
}

.food-title, .shop-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    padding-bottom: 14px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.food-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.food-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.food-image:hover {
    transform: scale(1.03);
    filter: brightness(0.95);
}

/* 高级晶莹感交互按键 */
.food-detail-btn, .navigate-btn, .expand-btn, .control-btn {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(10, 36, 99, 0.15);
}

.food-detail-btn:hover, .navigate-btn:hover, .expand-btn:hover, .control-btn:hover {
    background: var(--secondary);
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
    transform: translateY(-1px);
}

/* 巨幕影院级弹窗组件 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: var(--bg-card);
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 650px;
    position: relative;
    animation: modalReveal 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalReveal {
    from { opacity: 0; transform: scale(0.92) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--secondary);
}

/* 返回顶部魔力圈 */
.back-to-top {
    position: fixed;
    bottom: 35px;
    right: 35px;
    background-color: var(--secondary);
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(200, 16, 46, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    font-size: 18px;
    font-weight: bold;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-4px) rotate(360deg);
}

/* 殿堂级艺术页脚 */
.footer {
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 45px 0;
    margin-top: 60px;
    border-top: 4px solid var(--secondary);
}

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

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 700;
}

.footer-section p {
    font-size: 14px;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}