/* ============================================
   style.css - 云岚之约 官网首页样式
   ============================================ */

/* ---- 全局重置 & 变量 ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #c9a96e;
    --primary-light: #e8d5a3;
    --primary-dark: #a8884a;
    --dark: #0a0a0f;
    --dark-2: #12121a;
    --dark-3: #1a1a26;
    --text: #e8e0d0;
    --text-muted: #8a8070;
    --text-dim: #5a5040;
    --transition: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --radius: 12px;
    --radius-lg: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ---- 粒子背景 ---- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   导航栏
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 169, 110, 0.08);
    transition: all 0.4s var(--transition);
}

.navbar.scrolled {
    padding: 0.8rem 4rem;
    background: rgba(10, 10, 15, 0.9);
    border-bottom-color: rgba(201, 169, 110, 0.15);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    color: var(--text);
    text-decoration: none;
}

.nav-logo span {
    color: var(--primary);
    font-weight: 500;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.3rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-light);
}

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

/* ============================================
   Hero 区域
   ============================================ */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero-title {
    text-align: center;
    margin-bottom: 3.5rem;
    z-index: 2;
}

.hero-title h1 {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 200;
    letter-spacing: 0.15em;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary-light) 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1.2s ease;
}

.hero-title .subtitle {
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    color: var(--text-muted);
    letter-spacing: 0.3em;
    margin-top: 1rem;
    animation: fadeInUp 1.2s ease 0.2s both;
}

/* ---- 3D 旋转画廊 ---- */
.gallery-3d {
    position: relative;
    width: 300px;
    height: 400px;
    perspective: 1200px;
    z-index: 2;
}

.gallery-3d .carousel {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateGallery 30s infinite linear;
}

.gallery-3d .carousel.paused {
    animation-play-state: paused;
}

.gallery-3d .slide {
    position: absolute;
    width: 260px;
    height: 360px;
    left: 50%;
    top: 50%;
    margin-left: -130px;
    margin-top: -180px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    backface-visibility: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(201, 169, 110, 0.08);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    cursor: pointer;
}

.gallery-3d .slide:hover {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(201, 169, 110, 0.15);
}

.gallery-3d .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-3d .slide:hover img {
    transform: scale(1.08);
}

.gallery-3d .slide .slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 1.5rem 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-3d .slide:hover .slide-overlay {
    opacity: 1;
}

.gallery-3d .slide .slide-overlay h3 {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--primary-light);
}

.gallery-3d .slide .slide-overlay p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* ---- 画廊控制按钮 ---- */
.gallery-controls {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    z-index: 2;
}

.gallery-controls button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(201, 169, 110, 0.25);
    background: rgba(201, 169, 110, 0.06);
    color: var(--primary-light);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.gallery-controls button:hover {
    background: rgba(201, 169, 110, 0.18);
    border-color: var(--primary);
    transform: scale(1.1);
}

.gallery-controls button:active {
    transform: scale(0.95);
}

/* ---- 滚动指示器 ---- */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    animation: bounceDown 2s infinite;
}

.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background: linear-gradient(var(--primary), transparent);
}

/* ============================================
   通用区块
   ============================================ */
.section {
    position: relative;
    z-index: 1;
    padding: 7rem 4rem;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-tag {
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 200;
    letter-spacing: 0.1em;
    margin-bottom: 1.2rem;
}

.section-title span {
    color: var(--primary);
}

.section-desc {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.8;
}

/* ============================================
   关于我们
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3.5rem;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.4rem;
    font-size: 0.95rem;
    line-height: 1.9;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    border: 1px solid rgba(201, 169, 110, 0.08);
    border-radius: var(--radius);
    background: rgba(201, 169, 110, 0.02);
    transition: all 0.4s ease;
}

.stat-item:hover {
    border-color: rgba(201, 169, 110, 0.25);
    background: rgba(201, 169, 110, 0.05);
    transform: translateY(-4px);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 200;
    color: var(--primary);
    letter-spacing: 0.05em;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    letter-spacing: 0.1em;
}

/* ============================================
   特色功能
   ============================================ */
.section-alt {
    background: rgba(18, 18, 26, 0.4);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
}

.feature-card {
    padding: 2.5rem 2rem;
    border: 1px solid rgba(201, 169, 110, 0.06);
    border-radius: var(--radius-lg);
    background: rgba(18, 18, 26, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.5s var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    border-color: rgba(201, 169, 110, 0.18);
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   作品展示 - 瀑布流
   ============================================ */
.masonry {
    margin-top: 3.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.masonry-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    min-height: 200px;
}

.masonry-item:nth-child(1) { grid-row: span 2; }
.masonry-item:nth-child(4) { grid-column: span 2; }

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

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

.masonry-item .masonry-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.masonry-item:hover .masonry-overlay {
    opacity: 1;
}

.masonry-overlay span {
    color: white;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.5rem 1.4rem;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

/* ============================================
   页脚
   ============================================ */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(201, 169, 110, 0.06);
    padding: 4rem 4rem 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand h3 {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.footer-brand h3 span {
    color: var(--primary);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-bottom: 1.2rem;
    color: var(--text);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.7rem;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(201, 169, 110, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.footer-bottom .icp {
    color: var(--text-muted);
    font-size: 0.78rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom .icp:hover {
    color: var(--primary-light);
}

/* ============================================
   动画关键帧
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotateGallery {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   滚动入场动画
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--transition);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .masonry {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }
    .navbar.scrolled {
        padding: 0.6rem 1.5rem;
    }
    .nav-links {
        gap: 1.2rem;
    }
    .nav-links a {
        font-size: 0.72rem;
    }
    .section {
        padding: 4rem 1.5rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .masonry {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    .masonry-item:nth-child(1) { grid-row: span 1; }
    .masonry-item:nth-child(4) { grid-column: span 1; }
    .footer {
        padding: 3rem 1.5rem 1.5rem;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .gallery-3d {
        width: 240px;
        height: 320px;
    }
    .gallery-3d .slide {
        width: 200px;
        height: 280px;
        margin-left: -100px;
        margin-top: -140px;
    }
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }
    .stat-number {
        font-size: 1.6rem;
    }
    .stat-item {
        padding: 1.2rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 0.6rem;
    }
    .nav-links a {
        font-size: 0.6rem;
        letter-spacing: 0.05em;
    }
    .hero-title h1 {
        font-size: 1.8rem;
    }
    .gallery-3d {
        width: 200px;
        height: 280px;
    }
    .gallery-3d .slide {
        width: 170px;
        height: 240px;
        margin-left: -85px;
        margin-top: -120px;
    }
}
