:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --text-light: #666;
    --font-serif: 'Times New Roman', 'Songti SC', serif; /* 加入宋体优化中文标题 */
    --font-sans: 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif; /* 苹方/微软雅黑 */
}

body, html {
    margin: 0; padding: 0;
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    scroll-behavior: smooth;
    line-height: 1.6;
}

/* --- 导航栏 --- */
header {
    position: fixed; top: 0; width: 100%; padding: 20px 50px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000; color: white; box-sizing: border-box;
    mix-blend-mode: difference; /* 保持文字在任何背景可见 */
}
.logo a { 
    font-family: var(--font-serif); font-size: 24px; font-weight: bold; 
    letter-spacing: 2px; text-decoration: none; color: white; 
}
nav ul { list-style: none; display: flex; gap: 40px; margin: 0; padding: 0; }
nav a { 
    text-decoration: none; color: white; font-size: 13px; 
    text-transform: uppercase; letter-spacing: 1px; display: flex; flex-direction: column; align-items: center;
}
/* 菜单中的中文小字 */
.cn-menu {
    font-size: 10px; opacity: 0.7; margin-top: 2px; font-weight: normal; letter-spacing: 0;
}
nav a:hover, nav a.active { opacity: 1; text-decoration: underline; }

/* --- 首屏 Hero --- */
.hero {
    height: 90vh; width: 100%;
    /* 记得换成你的首屏大图 */
    background-image: url('uploads/hero.jpg'); 
    background-size: cover; background-position: center;
    display: flex; justify-content: center; align-items: center;
    text-align: center; position: relative;
}
/* 加深一点遮罩让白字更清晰 */
.hero::after {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.15);
}
.hero-content { z-index: 2; color: white; }
.hero h1 { 
    font-family: var(--font-serif); font-size: 5vw; margin: 0; line-height: 1.1; 
    letter-spacing: 2px;
}
/* 穿衣即表达 - 样式 */
.slogan-cn {
    font-family: var(--font-sans); font-size: 1.5rem; font-weight: 300;
    margin-top: 15px; letter-spacing: 12px; text-indent: 12px; /* 增加字间距 */
    opacity: 0.9;
}
.sub-title { 
    font-size: 0.9rem; margin-top: 30px; letter-spacing: 3px; 
    text-transform: uppercase; opacity: 0.8;
}

/* --- 筛选器 --- */
.filters {
    padding: 40px 0; text-align: center; position: sticky; top: 0;
    background: rgba(255,255,255,0.95); z-index: 900; backdrop-filter: blur(5px);
    border-bottom: 1px solid #f0f0f0;
}
.filter-btn {
    border: none; background: none; margin: 0 15px; font-size: 13px;
    cursor: pointer; text-transform: uppercase; color: #999; transition: 0.3s;
    letter-spacing: 1px;
}
.filter-btn.active, .filter-btn:hover { color: black; font-weight: bold; }

/* --- 瀑布流作品 --- */
.gallery-container { padding: 40px 4% 100px; max-width: 1600px; margin: 0 auto; }
.masonry { column-count: 3; column-gap: 30px; }
@media (max-width: 1024px) { .masonry { column-count: 2; } }
@media (max-width: 600px) { .masonry { column-count: 1; } }

.item { break-inside: avoid; margin-bottom: 30px; position: relative; cursor: pointer; }
.item img { width: 100%; height: auto; display: block; transition: transform 0.6s ease; }
.item:hover img { transform: scale(1.02); }

.overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4); color: white;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s ease; text-align: center;
}
.item:hover .overlay { opacity: 1; }
.project-title { font-family: var(--font-serif); font-size: 24px; margin-bottom: 10px; }
.project-category { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; border: 1px solid white; padding: 4px 12px; }

/* --- About 页面样式 --- */
.page-about header { mix-blend-mode: normal; background: white; border-bottom: 1px solid #eee; }
.page-about .logo a, .page-about nav a { color: black; }
.page-about nav a:hover { color: #666; }

.about-container {
    max-width: 1200px; margin: 120px auto 80px; padding: 0 40px;
    display: flex; gap: 60px; align-items: flex-start;
}
.about-image { flex: 1; }
.about-image img { width: 100%; display: block; filter: grayscale(10%); }

.about-text { flex: 1.2; padding-top: 20px; }
.about-name { font-family: var(--font-serif); font-size: 32px; margin: 0 0 10px; }
.about-role { font-size: 14px; color: #888; text-transform: uppercase; margin: 0 0 40px; font-weight: normal; letter-spacing: 1px; line-height: 1.5; }

.about-bio p { margin-bottom: 20px; color: #333; text-align: justify; font-size: 15px; }
.about-bio strong { color: black; font-weight: 600; }

.quote {
    border-left: 3px solid #000; padding-left: 20px; margin: 40px 0;
    font-family: var(--font-serif); font-size: 18px; font-style: italic; color: #000;
}
.about-signature { margin-top: 50px; font-family: var(--font-serif); font-size: 18px; letter-spacing: 2px; }

@media (max-width: 768px) {
    .about-container { flex-direction: column; margin-top: 100px; }
    .about-text { padding-top: 0; }
    .hero h1 { font-size: 10vw; }
}

/* --- 页脚与联系方式 --- */
footer { background: #111; color: white; padding: 80px 20px; text-align: center; }
footer h2 { font-family: var(--font-serif); font-weight: normal; letter-spacing: 1px; margin-bottom: 5px; }
.footer-cn { color: #666; font-size: 14px; margin-bottom: 40px; letter-spacing: 3px; }

.contact-details { display: flex; justify-content: center; gap: 50px; margin-bottom: 50px; flex-wrap: wrap; }
.contact-item { display: flex; flex-direction: column; align-items: center; position: relative; }
.contact-item .label { font-size: 10px; color: #666; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.contact-item .value { color: white; text-decoration: none; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 2px; }

/* 微信二维码悬停特效 */
.wechat-trigger { cursor: pointer; }
.qr-popup {
    position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
    background: white; padding: 10px; border-radius: 4px;
    width: 150px; box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    opacity: 0; visibility: hidden; transition: all 0.3s ease; pointer-events: none;
    z-index: 99;
}
.qr-popup img { width: 100%; display: block; }
.qr-popup::after {
    content: ''; position: absolute; top: 100%; left: 50%; margin-left: -6px;
    border-width: 6px; border-style: solid; border-color: white transparent transparent transparent;
}
/* 悬停时显示 */
.wechat-trigger:hover .qr-popup { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(-10px); }

.copyright { color: #444; font-size: 12px; }

/* =========================================
   右上角 Contact 弹出卡片样式 (新增)
   ========================================= */

/* 1. 设置触发器的父级容器 */
nav ul li.contact-trigger-li {
    position: relative; /* 作为定位基准 */
    padding-bottom: 20px; /* 增加底部热区，防止鼠标移向卡片时消失 */
    margin-bottom: -20px; /* 抵消掉增加的 padding，保持视觉位置不变 */
}

/* 2. 弹出卡片基础样式 */
.header-contact-popup {
    position: absolute;
    top: 100%; /* 在按钮正下方 */
    left: 50%; /* 水平居中对齐 */
    width: 180px; /* 卡片宽度 */
    background: white; /* 白底 */
    color: #1a1a1a; /* 黑字 */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15); /* 柔和的阴影 */
    text-align: center;
    z-index: 1100; /* 确保在最上层 */

    /* 默认隐藏状态 */
    opacity: 0;
    visibility: hidden;
    /* 初始位置向下偏移，带一点缩放效果 */
    transform: translateX(-50%) translateY(10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* 顺滑的过渡动画 */
}

/* 3. 鼠标悬停时的显示状态 */
nav ul li.contact-trigger-li:hover .header-contact-popup {
    opacity: 1;
    visibility: visible;
    /* 恢复到正常位置和大小 */
    transform: translateX(-50%) translateY(0) scale(1);
}

/* 4. 卡片顶部的小三角箭头 */
.header-contact-popup::before {
    content: '';
    position: absolute;
    top: -8px; /* 位于卡片顶部外面 */
    left: 50%;
    margin-left: -8px; /* 居中校正 */
    /* 画一个白色向上箭头 */
    border-width: 0 8px 8px 8px;
    border-style: solid;
    border-color: transparent transparent white transparent;
}

/* 5. 卡片内部元素样式 */
.header-contact-popup .popup-item {
    margin-bottom: 15px;
    display: flex; flex-direction: column; align-items: center;
}
.header-contact-popup .popup-item:last-child { margin-bottom: 0; }

.header-contact-popup .label {
    font-size: 11px; color: #999; text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 8px;
}

.header-contact-popup .value {
    font-size: 13px; color: #333; text-decoration: none;
    font-weight: 500; border-bottom: 1px dotted #ccc;
    font-family: var(--font-sans);
}

.header-contact-popup img {
    width: 110px; height: 110px; /* 二维码大小 */
    display: block; margin-bottom: 8px;
    border-radius: 4px;
}

.header-contact-popup .scan-hint {
    font-size: 10px; color: #aaa;
}

/* 修复：确保 About 页面下的导航文字颜色正确 */
.page-about nav a.contact-link { color: black; }
.page-about nav a.contact-link:hover { color: #666; }

/* 当你上传好自己的图片后，改成下面这样： */
background-image: url('uploads/hero.jpg');