/* ==========================================================
    全局变量与 CSS Reset
    ========================================================== */
:root {
    /* 色彩系统 */
    --bg-color: #FAF8F5;
    --card-bg: #FFFFFF;
    --text-main: #2D2B2A;
    --text-muted: #6B6560;
    --text-soft: #5C5652;
    --accent-color: #8C6D58;
    --accent-light: #EFE9E3;
    --border-color: #E6DFD5;

    /* 视觉效果 */
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --radius-card: 12px;
    --radius-pill: 20px;

    /* 排版 */
    --font-family: 'Outfit', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-title: 'Outfit', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* 布局宽度 */
    --width-main: 1100px;
    --width-content: 1000px;
}

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

/* ==========================================================
    基础全局样式
    ========================================================== */
body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-family);
    font-weight: 300;
    line-height: 1.7;
    letter-spacing: 0.3px;
    padding: 0 20px;
}

/* 标题类通用字体 */
.profile-title,
.section-title,
.item-title,
.service-title,
.footer-title,
.channel-label {
    font-family: var(--font-title);
}

/* 二级标题通用字重与字间距 */
.section-title,
.item-title,
.service-title,
.footer-title {
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-main);
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.bio-text,
.item-desc,
.service-list li {
    font-weight: 300;
}

main {
    max-width: var(--width-main);
    margin: 50px auto;
}

.bio-text {
    max-width: 680px;
    margin: 0 auto 25px auto;
    color: var(--text-muted);
    font-size: 0.98rem;
}

.bio-text p {
    margin-bottom: 20px;
}

.bio-text p:last-child {
    margin-bottom: 0;
}


/* 胶囊标签 */
.tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background-color: var(--accent-light);
    color: var(--accent-color);
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ==========================================================
    Header
    ========================================================== */
header {
    max-width: var(--width-content);
    margin: 0 auto;
    padding: 60px 0 40px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--accent-light);
}

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

.profile-title {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
    color: var(--text-main);
}

.profile-subtitle {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 20px;
}

/* ==========================================================
    Gallery
    ========================================================== */
.gallery {
    max-width: var(--width-content);
    margin: 0 auto 60px auto;
    padding: 0 10px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.gallery-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 卡片圆角裁切，配合 mask-image 避免子元素圆角处出现锯齿/溢出 */
.gallery-item {
    background-color: var(--card-bg);
    border-radius: var(--radius-card);
    overflow: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    transform: translateZ(0);
    isolation: isolate;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.img-container {
    width: 100%;
    height: auto;
    display: block;
    overflow: hidden;
    position: relative;
}

.img-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

/* 悬停放大效果 */
.gallery-item:hover .img-container img {
    transform: scale(1.03);
}

.item-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.item-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.item-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex-grow: 1;
}

.item-meta {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #F0ECE6;
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 500;
    text-align: right;
}

/* ==========================================================
    Services
    ========================================================== */
.services-section {
    max-width: var(--width-content);
    margin: 80px auto 40px auto;
    padding: 0 10px;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 30px 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-title {
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0 0 6px 0;
}

/* 小星星图标 */
.service-icon {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin: 4px 0 16px 0;
    opacity: 0.85;
}

.service-list {
    list-style: none;
    text-align: left;
    width: 100%;
}

.service-list li {
    font-size: 0.88rem;
    color: var(--text-soft);
    line-height: 1.5;
    margin-bottom: 8px;
    position: relative;
    padding-left: 18px;
}

/* 列表的小圆点样式 */
.service-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent-color);
    font-size: 1rem;
    line-height: 1;
}

/* ==========================================================
    Footer
    ========================================================== */
.site-footer {
    width: 100%;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 70px 0 40px 0;
    margin-top: 100px;
}

.footer-container {
    max-width: var(--width-content);
    margin: 0 auto;
    padding: 0 10px;
}

.footer-header {
    text-align: center;
    margin-bottom: 50px;
}

.footer-title {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.footer-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* 三栏网格布局 */
.contact-channels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 40px;
}

.channel-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 25px;
    position: relative;
}

/* 列间分隔线 */
.channel-column:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 5%;
    height: 90%;
    width: 1px;
    background-color: var(--border-color);
    opacity: 0.6;
}

.channel-label {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-main);
    margin: 0 0 2px 0;
    min-height: 28px;
    display: flex;
    align-items: center;
}

.channel-hint {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.4;
    margin: 0 0 20px 0;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.channel-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    align-items: center;
    width: 100%;
}

/* 按钮胶囊样式 */
.channel-tag {
    font-size: 0.82rem;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    user-select: none;
}

a.channel-tag:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.channel-tag.highlight {
    background-color: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
}

a.channel-tag.highlight:hover {
    opacity: 0.9;
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 25px;
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* ==========================================================
    动态交互与动画
    ========================================================== */
/* 复制按钮专属重置 */
.channel-tag.copy-btn {
    font-family: inherit;
    outline: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 点击复制成功后的高亮反馈 */
.channel-tag.copied {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background-color: var(--bg-color);
}

/* 中/英文切换按钮：固定在右上角，风格与 .tag / .channel-tag 胶囊按钮保持一致 */
.lang-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;

    font-family: var(--font-family);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.3px;

    padding: 6px 16px;
    border-radius: var(--radius-pill);
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--accent-color);

    box-shadow: var(--shadow);
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}

.lang-toggle:hover {
    background-color: var(--accent-light);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.lang-toggle:active {
    transform: translateY(0);
}

/* ==========================================================
    响应式适配
    ========================================================== */
@media (max-width: 768px) {
    .gallery {
        display: grid;
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .gallery-column {
        display: contents;
    }

    .gallery-column:nth-child(1) .gallery-item:nth-child(1) { order: 1; }
    .gallery-column:nth-child(2) .gallery-item:nth-child(1) { order: 2; }
    
    .gallery-column:nth-child(1) .gallery-item:nth-child(2) { order: 3; }
    .gallery-column:nth-child(2) .gallery-item:nth-child(2) { order: 4; }

    .gallery-column:nth-child(1) .gallery-item:nth-child(3) { order: 5; }
    .gallery-column:nth-child(2) .gallery-item:nth-child(3) { order: 6; }

    .gallery-column:nth-child(1) .gallery-item:nth-child(4) { order: 7; }
    .gallery-column:nth-child(2) .gallery-item:nth-child(4) { order: 8; }

    .gallery-column:nth-child(1) .gallery-item:nth-child(5) { order: 9; }
    .gallery-column:nth-child(2) .gallery-item:nth-child(5) { order: 10; }

    .gallery-column:nth-child(1) .gallery-item:nth-child(6) { order: 11; }
    .gallery-column:nth-child(2) .gallery-item:nth-child(6) { order: 12; }
    
    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-section {
        margin-top: 50px;
    }

    .contact-channels-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .channel-column:not(:last-child)::after {
        display: none;
    }

    .channel-column {
        padding: 0 0 25px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .channel-label,
    .channel-hint {
        min-height: auto;
    }
}

@media (max-width: 600px) {
    header {
        padding: 40px 0 30px 0;
    }

    .profile-title {
        font-size: 1.8rem;
    }

    .lang-toggle {
        top: 12px;
        left: 12px;
    }
}
