/* ================================
   Amelie L. — Portfolio
   ================================ */

/* 本地字体 */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Serif Display';
    src: url('../fonts/dm-serif-display-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Serif Display';
    src: url('../fonts/dm-serif-display-400-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Serif SC';
    src: url('../fonts/noto-serif-sc-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Serif SC';
    src: url('../fonts/noto-serif-sc-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* 基础变量 */
:root {
    --baby-pink: #F2C4D8;
    --primary-pink: #F28FB0;
    --light-pink: #FDF0F5;
    --dark-pink: #E080A4;
    --deep-pink: #F28FB0;
    
    /* 辅助色 — 以 #F28FB0 为主色的粉色系 */
    --accent-warm: #E888A8;
    --accent-coral: #F0A0C0;
    --accent-rose: #F28FB0;
    --accent-sky: #E0789C;
    --accent-sage: #F0A8C0;
    --accent-purple: #D87098;
    
    --text-dark: #2D2A32;
    --text-medium: #6B6575;
    --text-light: #A09AA8;
    --white: #FFFFFF;
    --bg-light: #F8F0F5;
    --bg-warm: #FDF2F8;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow: 0 4px 24px rgba(0,0,0,0.07);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.10);
    --radius: 12px;
    --radius-lg: 20px;
    --max-width: 1100px;
}

/* 重置样式 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', 'Noto Serif SC', serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.8;
    overflow-x: hidden;
    font-size: 15px;
    letter-spacing: 0.02em;
}

section {
    scroll-margin-top: 64px;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* ================================
   导航栏
   ================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    display: flex;
    align-items: baseline;
}

.logo-cn {
    font-family: 'DM Serif Display', serif;
    font-size: 21px;
    font-weight: 400;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

.logo-en {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-left: 2px;
    position: relative;
    top: -3px;
}

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

.nav-menu a {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-medium);
    transition: var(--transition);
    position: relative;
    letter-spacing: 0.02em;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: var(--primary-pink);
    border-radius: 1px;
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-menu a:hover,
.nav-menu a.nav-active {
    color: var(--text-dark);
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-light);
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-medium);
    transition: var(--transition);
    font-family: inherit;
}

.lang-switch:hover {
    background: var(--light-pink);
}

.lang-current {
    font-weight: 600;
    color: var(--text-dark);
}

.lang-divider {
    color: var(--text-light);
    margin: 0 1px;
}

.lang-other {
    color: var(--text-light);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 22px;
    height: 1.5px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ================================
   Hero Section
   ================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(165deg, var(--white) 0%, var(--light-pink) 30%, var(--baby-pink) 60%, #83C5BE 100%);
    position: relative;
    overflow: hidden;
    padding-top: 64px;
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-subtitle {
    font-size: 11px;
    color: var(--dark-pink);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 24px;
    font-weight: 600;
}

.hero-title {
    font-family: 'DM Serif Display', 'Noto Serif SC', serif;
    font-size: 56px;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

.title-line {
    display: block;
    font-size: 72px;
}

.title-dim {
    font-weight: 300;
    font-size: 0.75em;
    opacity: 0.7;
}

.title-accent {
    font-weight: 700;
    font-size: 1.15em;
}

/* 默认（英文）：Weaving 大，with 小 */
.title-line .title-dim:first-child {
    font-weight: 700;
    font-size: 1.15em;
    opacity: 1;
}

.title-line .title-accent:nth-child(2) {
    font-weight: 300;
    font-size: 0.75em;
    opacity: 0.7;
}

/* 中文模式下反转：纤维大，用/编织小 */
html[data-lang="zh"] .title-zh-accent {
    font-weight: 700;
    font-size: 1.15em;
    opacity: 1;
}

html[data-lang="zh"] .title-zh-dim {
    font-weight: 300;
    font-size: 0.75em;
    opacity: 0.7;
}

html[data-lang="zh"] .title-line .title-dim:first-child {
    font-weight: 300;
    font-size: 0.75em;
    opacity: 0.7;
}

html[data-lang="zh"] .title-line .title-accent:nth-child(2) {
    font-weight: 700;
    font-size: 1.15em;
    opacity: 1;
}

.title-line.highlight {
    color: var(--deep-pink);
    font-size: 44px;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.title-connector {
    font-size: 0.6em;
    opacity: 0.6;
    margin: 0 2px;
}

.hero-desc {
    font-size: 15px;
    color: var(--text-medium);
    max-width: 400px;
    margin-bottom: 40px;
    line-height: 1.8;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 14px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--text-dark);
    color: var(--white);
}

.btn-primary:hover {
    background: #1a1820;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45, 42, 50, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 1.5px solid rgba(0,0,0,0.15);
}

.btn-secondary:hover {
    border-color: var(--text-dark);
    transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fiber-circle {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--baby-pink) 0%, var(--accent-rose) 100%);
    opacity: 0.5;
    animation: float 8s ease-in-out infinite;
}

.fiber-circle.circle-2 {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--accent-warm) 0%, var(--dark-pink) 100%);
    animation-delay: -3s;
    opacity: 0.35;
}

.fiber-circle.circle-3 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--accent-coral) 0%, var(--baby-pink) 100%);
    animation-delay: -5s;
    opacity: 0.25;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(3deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 20px;
    height: 32px;
    border: 1.5px solid var(--baby-pink);
    border-radius: 10px;
    position: relative;
    opacity: 0.6;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 6px;
    background: var(--dark-pink);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

/* ================================
   Section 通用
   ================================ */
section {
    padding: 100px 0;
}

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

.section-tag {
    display: inline-block;
    font-size: 11px;
    color: var(--text-light);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 14px;
    font-weight: 600;
}

.section-title {
    font-family: 'DM Serif Display', 'Noto Serif SC', serif;
    font-size: 36px;
    font-weight: 400;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

/* Section tag 颜色变体 */
#about .section-tag { color: var(--deep-pink); }
#experience .section-tag { color: var(--accent-coral); }
#portfolio .section-tag { color: var(--accent-rose); }
#contact .section-tag { color: var(--accent-warm); }

#contact .section-title {
    font-size: 20px;
    letter-spacing: 0.08em;
    color: var(--text-medium);
}

#contact .section-header {
    margin-bottom: 4px;
}

/* ================================
   About Section
   ================================ */
.about {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 56px;
    align-items: start;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.about-text h3 {
    font-family: 'DM Serif Display', 'Noto Serif SC', serif;
    font-size: 26px;
    margin-bottom: 16px;
    color: var(--text-dark);
    font-weight: 400;
    letter-spacing: -0.01em;
}

.about-text > p {
    color: var(--text-medium);
    margin-bottom: 14px;
    line-height: 1.85;
    font-size: 14px;
}

.about-stats {
    display: flex;
    gap: 24px;
    margin: 28px 0;
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,0.04);
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    font-weight: 400;
    color: var(--deep-pink);
    margin-bottom: 2px;
}

.stat-item:nth-child(2) .stat-number { color: var(--accent-coral); }
.stat-item:nth-child(3) .stat-number { color: var(--accent-rose); }

.stat-label {
    font-size: 11px;
    color: var(--text-light);
    letter-spacing: 0.5px;
    font-weight: 500;
}

.skills {
    margin-top: 28px;
}

.skills h4 {
    font-size: 12px;
    margin-bottom: 14px;
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 荣誉奖项 */
.honors {
    margin-top: 28px;
}

.honors h4 {
    font-size: 12px;
    margin-bottom: 14px;
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.honor-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(242, 143, 176, 0.06) 0%, rgba(242, 196, 216, 0.06) 100%);
    border-radius: var(--radius);
    border: 1px solid rgba(242, 143, 176, 0.12);
}

.honor-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.honor-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.honor-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.honor-from {
    font-size: 12px;
    color: var(--text-light);
}

.honor-link {
    font-size: 12px;
    color: var(--deep-pink);
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
}

.honor-link:hover {
    color: var(--accent-rose);
}

/* 实习证明链接 */
.cert-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 12px;
    color: var(--deep-pink);
    font-weight: 500;
    transition: var(--transition);
}

.cert-link:hover {
    color: var(--accent-rose);
}

.skill-tag {
    padding: 7px 16px;
    background: var(--bg-light);
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-medium);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
    font-weight: 500;
}

.skill-tag:nth-child(2n) {
    background: rgba(242, 143, 176, 0.08);
    border-color: rgba(242, 143, 176, 0.12);
}

.skill-tag:nth-child(3n) {
    background: rgba(224, 120, 156, 0.08);
    border-color: rgba(224, 120, 156, 0.12);
}

.skill-tag:nth-child(4n) {
    background: rgba(216, 112, 152, 0.08);
    border-color: rgba(216, 112, 152, 0.15);
}

.skill-tag:hover {
    background: var(--primary-pink);
    color: var(--white);
    border-color: transparent;
}

.skill-linked {
    cursor: pointer;
}

.skill-linked:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.skill-more-trigger {
    cursor: pointer;
    position: relative;
}

.skill-popup {
    position: absolute;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 8px 30px rgba(242, 143, 176, 0.2), 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid rgba(242, 143, 176, 0.15);
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: skillPopupIn 0.25s ease;
    min-width: 180px;
}

@keyframes skillPopupIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.skill-popup-item {
    padding: 5px 10px;
    font-size: 12px;
    color: var(--text-medium);
    border-radius: 6px;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

/* 返回专业技能浮动按钮 */
.skill-back-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 90;
    padding: 10px 18px;
    background: rgba(242, 143, 176, 0.9);
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(242, 143, 176, 0.35);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s, background 0.2s;
    pointer-events: none;
    font-family: inherit;
    letter-spacing: 0.5px;
}

.skill-back-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.skill-back-btn:hover {
    background: rgba(224, 120, 156, 0.95);
}



/* ================================
   Experience Section
   ================================ */
.experience {
    background: var(--bg-light);
}

.experience-content {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.experience-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
}

.experience-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 8px;
}

.experience-header h4 {
    font-size: 17px;
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.experience-date {
    font-size: 11px;
    color: var(--primary-pink);
    font-weight: 600;
    background: var(--light-pink);
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.experience-company {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.experience-list {
    list-style: none;
    padding: 0;
}

.experience-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
    color: var(--text-medium);
    line-height: 1.75;
    font-size: 13px;
}

.experience-list li:last-child {
    margin-bottom: 0;
}

.experience-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 4px;
    height: 4px;
    background: var(--primary-pink);
    border-radius: 50%;
}

/* ================================
   Portfolio Section
   ================================ */
.portfolio {
    background: var(--white);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 18px;
    background: var(--bg-light);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 50px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-medium);
    transition: var(--transition);
    font-family: inherit;
    font-weight: 500;
}

.filter-btn:hover {
    border-color: var(--filter-color, var(--primary-pink));
    color: var(--filter-color, var(--deep-pink));
}

.filter-btn.active {
    background: var(--filter-color, var(--text-dark));
    border-color: var(--filter-color, var(--text-dark));
    color: var(--white);
}

.portfolio-grid {
    columns: 3 280px;
    column-gap: 16px;
}

.portfolio-item {
    break-inside: avoid;
    margin-bottom: 16px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-light);
}

.portfolio-item:hover {
    box-shadow: var(--shadow-hover);
}

.portfolio-item .portfolio-img {
    position: relative;
    overflow: hidden;
}

.portfolio-item .portfolio-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.05);
}

.portfolio-item .portfolio-info {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.88) 0%, rgba(26, 26, 46, 0.15) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    z-index: 3;
}

.portfolio-item:hover .portfolio-info {
    opacity: 1;
}

.portfolio-item .portfolio-info h4 {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.portfolio-item .portfolio-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    line-height: 1.5;
}

.portfolio-item .portfolio-desc {
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
    line-height: 1.6;
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portfolio-image {
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.88) 0%, rgba(26, 26, 46, 0.15) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

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

.portfolio-info h4 {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.portfolio-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.portfolio-category {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border-radius: 6px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
}

/* ================================
   Contact Section
   ================================ */
.contact {
    background: linear-gradient(165deg, var(--white) 0%, var(--light-pink) 30%, var(--baby-pink) 60%, #B79473 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h3 {
    font-family: 'DM Serif Display', 'Noto Serif SC', serif;
    font-size: 30px;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-weight: 400;
}

.contact-info > p {
    color: var(--text-medium);
    margin-bottom: 32px;
    line-height: 1.8;
    font-size: 14px;
}

.contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 36px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.7);
    padding: 14px 16px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(255,255,255,0.95);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.contact-icon {
    font-size: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.contact-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
}

.contact-label {
    font-size: 10px;
    color: var(--text-light);
    letter-spacing: 1px;
    margin-bottom: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.contact-text a,
.contact-text span:last-child {
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 500;
}

.contact-text a:hover {
    color: var(--deep-pink);
}

.btn-download {
    display: inline-flex;
}

.contact-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 320px;
}

.contact-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--baby-pink) 0%, var(--accent-rose) 50%, var(--dark-pink) 100%);
    opacity: 0.4;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.08); opacity: 0.25; }
}

/* ================================
   Gallery 全屏画廊
   ================================ */
.gallery {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    flex-direction: column;
    animation: galleryFadeIn 0.25s ease;
}

.gallery.active {
    display: flex;
}

@keyframes galleryFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gallery-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 100%);
    gap: 12px;
}

.gallery-controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 10;
}

.gallery-counter {
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    letter-spacing: 2px;
    order: 2;
}

.gallery-link {
    position: fixed;
    bottom: 66px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(242, 143, 176, 0.7);
    font-size: 12px;
    font-weight: 500;
    z-index: 10;
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}

.gallery-link {
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.08);
}

.gallery-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.gallery-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
    z-index: 10;
    background: transparent;
    letter-spacing: 0;
}

.gallery-close:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.gallery-viewport {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 70px 50px;
    overflow: hidden;
}

.gallery-viewport img {
    max-width: 100%;
    max-height: 100vh;
    object-fit: contain;
    border-radius: 4px;
    user-select: none;
    transition: opacity 0.3s ease;
}

/* 画廊图片加载指示器 */
.gallery-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--primary-pink);
    border-radius: 50%;
    animation: gallerySpin 0.8s linear infinite;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gallery-loading.visible {
    opacity: 1;
}

@keyframes gallerySpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.gallery-nav {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    border-radius: 50%;
    border: none;
    transition: var(--transition);
    user-select: none;
    background: rgba(80, 80, 80, 0.5);
    backdrop-filter: blur(4px);
    flex-shrink: 0;
}

.gallery-nav:hover {
    background: rgba(80, 80, 80, 0.7);
    color: #fff;
}

.gallery-prev {
    order: 1;
}

.gallery-next {
    order: 3;
}

/* ================================
   Footer
   ================================ */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 48px 0 24px;
}

.footer-content {
    text-align: center;
    margin-bottom: 32px;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}

.footer-logo .logo-cn {
    color: var(--primary-pink);
    font-size: 20px;
}

.footer-logo .logo-en {
    color: rgba(255, 255, 255, 0.4);
    position: relative;
    top: -3px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    transition: var(--transition);
    font-weight: 500;
}

.social-link:hover {
    background: var(--primary-pink);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
}

/* ================================
   响应式设计
   ================================ */
@media (max-width: 1024px) {
    .portfolio-grid {
        columns: 2 220px;
        column-gap: 12px;
    }
    
    .about-content {
        grid-template-columns: 260px 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 72px 0;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 24px;
        gap: 0;
        box-shadow: var(--shadow);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 14px 0;
        font-size: 15px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    
    .hero-title {
        font-size: 40px;
    }

    .title-line {
        font-size: 52px;
    }

    .title-line.highlight {
        font-size: 32px;
    }
    
    .hero-desc {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .about-image {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .about-stats {
        gap: 16px;
        padding: 20px;
    }
    
    .portfolio-grid {
        columns: 2 180px;
        column-gap: 10px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .contact-details {
        grid-template-columns: 1fr;
        align-items: center;
    }
    
    .contact-visual {
        display: none;
    }
    
    .lightbox {
        padding: 16px;
    }
    
    .lightbox-content {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        columns: 1 160px;
        column-gap: 0;
    }
    
    .portfolio-filter {
        gap: 6px;
    }
    
    .filter-btn {
        padding: 6px 14px;
        font-size: 11px;
        border-radius: 40px;
    }
    
    .hero-title {
        font-size: 34px;
    }

    .title-line {
        font-size: 44px;
    }

    .title-line.highlight {
        font-size: 28px;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 12px;
    }
}

/* ================================
   动画
   ================================ */
.fade-in {
    animation: fadeIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-item.hide {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

/* ================================
   首页作品集入口卡片
   ================================ */
.portfolio-cta {
    background: var(--white);
    padding: 100px 0 80px;
}

.portfolio-cta-card {
    display: flex;
    align-items: center;
    gap: 48px;
    background: var(--bg-light);
    border-radius: 24px;
    padding: 48px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s;
    box-shadow: 0 4px 30px rgba(242, 143, 176, 0.08);
}

.portfolio-cta-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(242, 143, 176, 0.18);
}

.portfolio-cta-text {
    flex: 1;
    min-width: 0;
}

.portfolio-cta-text h3 {
    font-family: 'DM Serif Display', 'Noto Serif SC', serif;
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.portfolio-cta-text p {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 24px;
}

.portfolio-cta-btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--primary-pink);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s, transform 0.3s;
}

.portfolio-cta-card:hover .portfolio-cta-btn {
    background: var(--dark-pink);
    transform: translateX(4px);
}

.portfolio-cta-preview {
    flex-shrink: 0;
}

.portfolio-cta-imgs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 220px;
}

.portfolio-cta-imgs img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s;
}

.portfolio-cta-card:hover .portfolio-cta-imgs img {
    transform: scale(1.03);
}

.portfolio-cta-imgs img:first-child {
    transform: rotate(-2deg);
}
.portfolio-cta-imgs img:nth-child(2) {
    transform: rotate(1.5deg);
    margin-top: -8px;
}
.portfolio-cta-imgs img:nth-child(3) {
    transform: rotate(1deg);
    margin-top: -6px;
}
.portfolio-cta-imgs img:last-child {
    transform: rotate(-1.5deg);
    margin-top: -10px;
}

@media (max-width: 768px) {
    .portfolio-cta {
        padding: 60px 0 40px;
    }
    .portfolio-cta-card {
        flex-direction: column;
        padding: 32px 24px;
        gap: 32px;
    }
    .portfolio-cta-text h3 {
        font-size: 22px;
    }
    .portfolio-cta-imgs {
        width: 100%;
        max-width: 320px;
    }
    .portfolio-cta-imgs img {
        height: 100px;
    }
}

/* ================================
   独立作品集页面（works.html）
   ================================ */
.portfolio-fullpage {
    padding-top: 100px;
    min-height: 100vh;
}

/* works.html 页面筛选按钮区域 */
.works-page .filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 32px;
}

/* ================================
   启动页 Splash Screen
   ================================ */
.splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(160deg, #FDF2F8 0%, #F8F0F5 40%, #F2C4D8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.splash.fade-out {
    opacity: 0;
    pointer-events: none;
}

.splash-content {
    text-align: center;
    animation: splashIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.splash-subtitle {
    font-family: 'DM Serif Display', 'Noto Serif SC', serif;
    font-size: 16px;
    letter-spacing: 4px;
    color: var(--primary-pink);
    opacity: 0;
    animation: splashFadeUp 0.6s 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.splash-title {
    font-family: 'DM Serif Display', 'Noto Serif SC', serif;
    font-size: 42px;
    font-weight: 400;
    color: var(--text-dark);
    margin: 8px 0 16px;
    opacity: 0;
    animation: splashFadeUp 0.6s 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.splash-line {
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--primary-pink), transparent);
    margin: 0 auto;
    animation: splashLine 0.8s 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes splashIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes splashFadeUp {
    from { transform: translateY(12px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes splashLine {
    from { width: 0; }
    to { width: 60px; }
}

/* ================================
   骨架屏 Loading Skeleton
   ================================ */
.portfolio-item .skeleton {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--bg-light) 25%, #f0e4ec 50%, var(--bg-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 10px 10px 0 0;
    z-index: 2;
    transition: opacity 0.4s ease;
}

.portfolio-item .skeleton.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.portfolio-item .portfolio-img img {
    position: relative;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item .portfolio-img img.loaded {
    opacity: 1;
}

/* ================================
   缺省页 / 空状态
   ================================ */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    display: none;
}

.empty-state.visible {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state-text {
    font-size: 15px;
    color: var(--text-medium);
    font-weight: 400;
}

.hidden {
    display: none !important;
}

/* 打印样式 */
.printing .navbar,
.printing .footer,
.printing .gallery {
    display: none !important;
}

/* ================================
   优化补充
   ================================ */

/* 回访时跳过启动页（同一次浏览只播放一次） */
.splash-seen .splash {
    display: none;
}

/* 键盘操作时显示清晰的焦点框 */
:focus-visible {
    outline: 2px solid var(--dark-pink);
    outline-offset: 3px;
    border-radius: 6px;
}

.portfolio-item:focus-visible {
    outline-offset: 4px;
    border-radius: 10px;
}

.portfolio-item:focus-visible .portfolio-info {
    opacity: 1;
}

.gallery :focus-visible {
    outline-color: #fff;
}

/* 手机等触屏设备没有悬停：作品标题直接显示在图片底部 */
@media (hover: none) {
    .portfolio-item .portfolio-info {
        opacity: 1;
        top: auto;
        padding: 36px 14px 12px;
        background: linear-gradient(to top, rgba(26, 26, 46, 0.78) 0%, transparent 100%);
    }

    .portfolio-item .portfolio-info h4 {
        font-size: 13px;
        margin-bottom: 0;
    }

    .portfolio-item .portfolio-info p,
    .portfolio-item .portfolio-desc {
        display: none;
    }

    .portfolio-item:hover .portfolio-img img {
        transform: none;
    }
}

/* 手机端筛选按钮横向滑动，不再堆成好几行 */
@media (max-width: 600px) {
    .works-page .filter-buttons {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        margin: 0 -24px 24px;
        padding: 4px 24px;
        scrollbar-width: none;
    }

    .works-page .filter-buttons::-webkit-scrollbar {
        display: none;
    }

    .works-page .filter-btn {
        flex-shrink: 0;
    }

    .skill-popup {
        max-width: calc(100vw - 32px);
    }
}

/* 系统开启“减弱动态效果”时，关闭装饰动画 */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .splash {
        display: none;
    }
}
