/* 引入高端衬线字体与现代无衬线字体 */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500&family=Lato:wght@300;400&family=Noto+Serif+SC:wght@200;300;400&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

/* =========================================
   1. 全局基础设置 (Base & Reset)
   ========================================= */
:root {
    --color-bg: #ffffff;
    --color-text-primary: #111111;
    --color-text-secondary: #555555;
    --color-text-light: #f5f5f5;
    --color-accent: #783e2c; /* 陶土红 */
    --color-border: #e0e0e0;
    
    --font-family-title: 'Playfair Display', 'Cinzel', serif;
    --font-family-body: 'Lato', sans-serif;
    --font-family-cn: 'Noto Serif SC', serif;

    --transition-smooth: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-hover: all 0.3s ease-out;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family-cn), var(--font-family-body);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-hover);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* =========================================
   2. 极简导航 (Minimal Navbar)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0); /* 初始透明 */
    transition: background 0.4s ease, padding 0.4s ease;
    mix-blend-mode: difference; /* 让文字在深色图片上自动反白，浅色上变黑 */
    color: #fff;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 3rem;
    mix-blend-mode: normal;
    color: var(--color-text-primary);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.brand-logo {
    width: 32px;
    height: 32px;
    border: 1px solid currentColor;
    border-radius: 50%; /* 抽象圆形符号 */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-link {
    font-family: var(--font-family-cn);
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    position: relative;
    opacity: 0.7;
}

.nav-link:hover, .nav-link.active {
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
    left: 0;
}

/* 移动端汉堡菜单适配 */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .navbar { padding: 1rem 1.5rem; }
    .nav-links {
        display: none; /* JS控制显示 */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        color: var(--color-text-primary);
    }
    .nav-links.open { display: flex; }
    .mobile-menu-btn { display: block; }
    .navbar { mix-blend-mode: normal; color: var(--color-text-primary); background: rgba(255,255,255,0.9); }
}

/* =========================================
   3. 首页：静界 (Home - Visual Curtain)
   ========================================= */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 8s linear;
    transform: scale(1.05); /* 初始略微放大，用于产生视差移动 */
    z-index: 1;
}

.hero-slider .slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.hero-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2); /* 轻微遮罩确保文字可读 */
    z-index: 3;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 4;
    width: 80%;
}

.hero-word {
    font-family: var(--font-family-cn);
    font-size: 3rem;
    font-weight: 200;
    letter-spacing: 0.5em;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease-out 0.5s;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.slide.active .hero-word {
    opacity: 1;
    transform: translateY(0);
}

.hero-quote {
    position: absolute;
    bottom: 10%;
    right: 5%;
    color: rgba(255,255,255,0.8);
    font-family: var(--font-family-cn);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    height: 200px;
    border-right: 1px solid rgba(255,255,255,0.3);
    padding-right: 1rem;
}

/* =========================================
   4. 辑录页：风格篇章 (Collection)
   ========================================= */
.page-container {
    padding-top: 100px;
    padding-bottom: 60px;
    max-width: 1400px;
    margin: 0 auto;
    width: 90%;
}

.page-title {
    font-family: var(--font-family-cn);
    font-size: 2.5rem;
    font-weight: 200;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: 0.3em;
    position: relative;
    padding-bottom: 1rem;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background-color: var(--color-text-primary);
}

/* 风格主题网格 */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 6rem;
}

.theme-card {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    cursor: pointer;
}

.theme-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1), filter 0.5s ease;
    filter: grayscale(20%);
}

.theme-card:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.theme-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.theme-card:hover .theme-overlay {
    background: rgba(0,0,0,0.3);
}

.theme-name {
    color: #fff;
    font-family: var(--font-family-cn);
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    border: 1px solid rgba(255,255,255,0.5);
    padding: 0.8rem 1.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    backdrop-filter: blur(2px);
}

.theme-card:hover .theme-name {
    opacity: 1;
    transform: translateY(0);
}

/* 选中后的内容展示区 */
.collection-detail {
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.8s ease;
}

.collection-detail.active {
    opacity: 1;
    height: auto;
    padding-top: 4rem;
    border-top: 1px solid #eee;
}

.detail-desc {
    max-width: 600px;
    margin: 0 auto 4rem auto;
    text-align: center;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 2;
}

.gallery-flow {
    column-count: 3;
    column-gap: 2rem;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.collection-detail.active .gallery-item {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item img {
    width: 100%;
    display: block;
}

@media (max-width: 768px) {
    .gallery-flow { column-count: 1; }
    .theme-card { height: 40vh; }
}

/* =========================================
   5. 形溯页：细节之境 (Details)
   ========================================= */
.intro-quote {
    text-align: center;
    font-family: var(--font-family-title);
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 4rem;
    color: var(--color-text-secondary);
}

/* 交互式细节展示 - 方式A */
.interactive-model {
    position: relative;
    max-width: 800px;
    margin: 0 auto 6rem auto;
}

.model-img {
    width: 100%;
    display: block;
}

.hotspot {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    animation: pulse 2s infinite;
    z-index: 10;
}

.hotspot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: var(--color-text-primary);
    border-radius: 50%;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.hotspot-tooltip {
    position: absolute;
    left: 30px;
    top: -10px;
    width: 200px;
    background: rgba(255,255,255,0.95);
    padding: 1rem;
    border: 1px solid #eee;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.hotspot:hover .hotspot-tooltip {
    opacity: 1;
    transform: translateX(0);
}

.tooltip-title {
    font-family: var(--font-family-cn);
    font-weight: bold;
    display: block;
    margin-bottom: 0.3rem;
    color: var(--color-text-primary);
}

/* 面料情绪板 */
.fabric-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #f0f0f0; /* 用于边框效果 */
    border: 1px solid #f0f0f0;
}

.fabric-item {
    position: relative;
    background: #fff;
    aspect-ratio: 1;
    overflow: hidden;
    group: relative;
}

.fabric-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.fabric-item:hover img {
    transform: scale(1.1);
}

.fabric-label {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: #fff;
    padding: 0.3rem 0.8rem;
    font-family: var(--font-family-cn);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

@media (max-width: 768px) {
    .fabric-board { grid-template-columns: 1fr; }
}

/* =========================================
   6. 页脚 (Footer)
   ========================================= */
footer {
    padding: 3rem 0;
    text-align: center;
    color: #999;
    font-size: 0.75rem;
    font-family: var(--font-family-body);
    font-weight: 300;
    letter-spacing: 0.2em;
    border-top: 1px solid rgba(0,0,0,0.03);
    margin-top: 4rem;
}

/* =========================================
   7. 实用工具类 (Utilities)
   ========================================= */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.hidden { display: none; }
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 占位符: 如果没有图片，显示纯色块 */
.img-placeholder {
    background-color: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 0.8rem;
}