/*
Theme Name: 易姝模特主题
Theme URI: http://shuzijun.com.cn
Author: Assistant
Description: 复刻原静态网站的高端时尚模特作品集主题
Version: 1.0
*/

/* 基础变量 */
:root {
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-gray-bg: #F3F3F3;
    --color-text: #000000;
    --ease-expo-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--color-black);
    color: var(--color-white);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', 'Noto Serif SC', serif;
    font-weight: 400;
}

/* 导航 */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5vw;
    transition: all 0.4s var(--ease-expo-out);
}

.nav.scrolled {
    height: 60px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 8px;
    color: var(--color-white);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-menu a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: opacity 0.3s;
    position: relative;
}

.nav-menu a:hover {
    opacity: 0.7;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-white);
    transition: width 0.3s var(--ease-expo-out);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.hero-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: #000;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1.5s var(--ease-smooth), transform 8s var(--ease-smooth);
}

.hero-image.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* 指示器 */
.hero-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.hero-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
}

.hero-indicator.active {
    background: var(--color-white);
    transform: scale(1.3);
}

/* 滚动提示 */
.hero-scroll {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.hero-scroll-icon {
    width: 24px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.hero-scroll-dot {
    width: 4px;
    height: 4px;
    background: var(--color-white);
    border-radius: 50%;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(12px); opacity: 0.3; }
}

.hero-subtitle {
    font-size: 12px;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.8;
}

.hero-title {
    font-size: clamp(48px, 10vw, 120px);
    font-weight: 300;
    letter-spacing: 20px;
    margin-bottom: 30px;
    line-height: 1.1;
}

.hero-cta {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--color-white);
    color: var(--color-white);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    transition: all 0.4s var(--ease-expo-out);
    margin-top: 40px;
}

.hero-cta:hover {
    background: var(--color-white);
    color: var(--color-black);
}

/* Section通用 */
.section {
    padding: 120px 5vw;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 300;
    letter-spacing: 10px;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 14px;
    letter-spacing: 4px;
    opacity: 0.7;
}

/* 作品集网格 */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

.portfolio-card {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    cursor: pointer;
    display: block;
    text-decoration: none;
}

.portfolio-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.8s var(--ease-expo-out);
    display: block;
}

.portfolio-card:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 40px;
    opacity: 0;
    transition: opacity 0.5s var(--ease-smooth);
}

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

.portfolio-category {
    color: var(--color-white);
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* 关于区域 */
.about {
    background: var(--color-gray-bg);
    color: var(--color-text);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 18px;
    line-height: 2;
    margin-bottom: 40px;
}

/* 联系区域 */
.contact {
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
}

.contact-link {
    color: var(--color-white);
    font-size: 24px;
    transition: transform 0.3s, opacity 0.3s;
}

.contact-link:hover {
    transform: translateY(-5px);
    opacity: 0.7;
}

/* Footer */
.footer {
    padding: 40px 5vw;
    text-align: center;
    font-size: 12px;
    opacity: 0.5;
    letter-spacing: 2px;
}

/* 动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-expo-out), transform 0.8s var(--ease-expo-out);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 管理栏调整 */
body.admin-bar .nav {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .nav {
        top: 46px;
    }
}
/* ===== 桌面端和移动端图片分离显示 ===== */
.hero-desktop { display: block; }
.hero-mobile { display: none; }

@media (max-width: 768px) {
    .hero-desktop { display: none !important; }
    .hero-mobile { display: block !important; }
}

/* Logo 桌面端和手机端分离显示 */
.logo-desktop { display: inline; }
.logo-mobile { display: none; }

@media (max-width: 768px) {
    .logo-desktop { display: none; }
    .logo-mobile { 
        display: flex; 
        flex-direction: column; 
        align-items: flex-start;
        line-height: 1.3;
    }
    .logo-name { font-size: 1.1em; font-weight: 600; }
    .logo-title { font-size: 0.75em; opacity: 0.9; margin-top: 2px; }
}

/* Hero 图片移动端适配 */
.hero-mobile { display: none !important; }
.hero-desktop { display: block; }

@media (max-width: 768px) {
    .hero-desktop { display: none !important; }
    .hero-mobile { display: block !important; }
}

/* 手机端联系链接适配 */
@media (max-width: 768px) {
    .contact-links {
        gap: 20px;
        flex-wrap: wrap;
    }
    .contact-link {
        font-size: 20px;
    }
}

/* ===== 联系部分图标对齐修复 ===== */
.contact-links {
    display: flex;
    justify-content: center;
    align-items: center; /* 垂直居中对齐 */
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 60px; /* 统一最小宽度 */
    color: var(--color-white);
    font-size: 24px;
    transition: transform 0.3s, opacity 0.3s;
    text-decoration: none;
}

.contact-link:hover {
    transform: translateY(-5px);
    opacity: 0.7;
}

/* Font Awesome 图标统一大小 */
.contact-link i {
    font-size: 24px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 图片图标统一大小 */
.contact-link img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* 文字标签样式 */
.contact-link span {
    font-size: 12px;
    color: inherit;
    white-space: nowrap;
}

/* 手机端适配 */
@media (max-width: 768px) {
    .contact-links {
        gap: 20px;
    }
    
    .contact-link {
        min-width: 50px;
    }
    
    .contact-link i,
    .contact-link img {
        font-size: 20px;
        width: 20px;
        height: 20px;
    }
}
