/* 
 * 全局样式设计 - 极简主义风格
 * 字体：Inter
 * 配色：黑白灰
 */

/* 引入字体 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Noto+Serif+SC:wght@300;400;500&display=swap');

/* CSS 变量定义 */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #666666;
    --accent-color: #999999;
    --bg-color: #ffffff;
    --border-color: #f0f0f0;
    --transition-speed: 0.4s;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: 'Noto Serif SC', serif; /* 用于标题增加时尚感 */
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--primary-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

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

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

ul {
    list-style: none;
}

/* 导航栏样式 */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--primary-color);
}

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

.nav-links li a {
    position: relative;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--secondary-color);
    letter-spacing: 1px;
    padding-bottom: 5px;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-color);
}

/* 导航链接下划线动效 */
.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

/* 首页：全屏轮播图 */
.hero-slider {
    position: relative;
    width: 100%;
    height: calc(100vh - 80px); /* 减去导航高度 */
    min-height: 600px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.slider-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.indicator {
    width: 40px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: #fff;
}

/* 首页：精选展示区域 */
.featured-section {
    padding: 6rem 5%;
}

.section-title {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 4rem;
    letter-spacing: 3px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--primary-color);
    margin: 1.5rem auto 0;
}

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

.featured-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.image-container {
    overflow: hidden;
    aspect-ratio: 3/4;
}

.image-container img {
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.featured-item:hover .image-container img {
    transform: scale(1.08);
}

.item-info {
    margin-top: 1.5rem;
    text-align: center;
}

.item-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.item-desc {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 300;
}

/* 系列展示页面 */
.collections-page {
    padding: 4rem 5%;
}

.collection-group {
    margin-bottom: 6rem;
}

.group-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
    letter-spacing: 2px;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 默认桌面端3列 */
    gap: 2rem;
}

.collection-card {
    position: relative;
    group: hover;
}

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2/3;
}

.card-image img {
    transition: transform 0.6s ease;
}

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

.view-details {
    color: #fff;
    border: 1px solid #fff;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.collection-card:hover .card-image img {
    transform: scale(1.05);
}

.collection-card:hover .card-overlay {
    opacity: 1;
}

.card-text {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-align: center;
    letter-spacing: 0.5px;
}

/* 工艺美学页面 */
.craft-section {
    padding: 0;
}

.craft-block {
    display: flex;
    min-height: 80vh;
}

.craft-block:nth-child(even) {
    flex-direction: row-reverse;
}

.craft-image {
    width: 60%;
    position: relative;
    overflow: hidden;
}

.craft-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.craft-content {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 5%;
    background-color: #fafafa;
}

.craft-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.craft-desc {
    font-size: 1rem;
    color: var(--secondary-color);
    line-height: 2;
    font-weight: 300;
}

/* 页脚 */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    margin-top: auto;
}

.footer-content {
    font-family: var(--font-sans);
    color: #999;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

/* 动态槽位占位符，不影响布局但预留空间 */
.slot-container {
    display: none; 
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .collection-grid {
        grid-template-columns: repeat(2, 1fr); /* 平板2列 */
    }
    
    .craft-block {
        min-height: auto;
        flex-direction: column !important;
    }
    
    .craft-image, .craft-content {
        width: 100%;
    }
    
    .craft-image {
        aspect-ratio: 16/9;
    }
    
    .craft-content {
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem;
    }

    .logo {
        margin-bottom: 1rem;
    }

    .nav-links {
        gap: 1.5rem;
        width: 100%;
        justify-content: center;
    }

    .hero-slider {
        height: 60vh;
        min-height: 400px;
    }

    .featured-grid,
    .collection-grid {
        grid-template-columns: 1fr; /* 手机1列 */
    }

    .section-title {
        font-size: 1.5rem;
    }

    .craft-title {
        font-size: 1.5rem;
    }
}