@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,700;1,400&family=Noto+Serif+SC:wght@400;500;700&display=swap');

/* =============================================
   TABLE OF CONTENTS
   =============================================
   1. CSS Variables (Root)
   2. Base & Typography Styles (Global)
   3. Reusable Components (Buttons, etc.)
   4. Header Styles
   5. Footer Styles
   6. Page-Specific Styles：Profile Page
   7. Page-Specific Styles：Programs Page
   8. Page-Specific Styles：Journey Page 
   ============================================= */


/* --- 1. CSS Variables (Root) --- */
:root {
    --font-main: 'Lora', serif;
    --font-chinese-stack: 'Lora', "Source Han Serif", serif;

    --color-text: #3A5D6C;          /* Deep Blue/Teal for main text */
    --color-text-light: #758a95;    /* A slightly lighter, muted version of the main text color */
    --color-background: #F0E7D8;    /* Cream for the main background */
    --color-border: #e2d8c7;        /* A slightly darker version of the background for borders */
    --color-primary-accent: #7AB6B1;/* Calming Teal for primary buttons and links */
    --color-secondary-accent: #D97C62;/* Terracotta for hover effects or special CTAs */
    --color-tertiary-accent: #108B96;

    --color-card-1: #A57E74; /* Warm Brown */
    --color-card-2: #D79E8F; /* Muted Rose */
    --color-card-3: #C3AB8C; /* Sandy Beige */
}

/* --- 2. Base & Typography Styles (Global) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
}

/* --- 3. Reusable Components (Buttons, etc.) --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 1rem;
    border: 1px solid transparent; /* Reserve space for border */
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: transparent;
}

/* Primary Button Modifier (Solid) */
.btn.btn-primary {
    color: var(--color-text);
    border-color: transparent;
}

.btn.btn-primary:hover {
    animation: breathing-text-glow 2s ease-in-out infinite;
}

/* --- Keyframe Animations --- */
@keyframes breathing-text-glow {
    0% {
        box-shadow: 0 0 10px 2px hsla(from var(--color-secondary-accent) h s l / 0.5);
    }
    50% {
        box-shadow: 0 0 25px 8px hsla(from var(--color-secondary-accent) h s l / 0.8);
    }
    100% {
        box-shadow: 0 0 10px 2px hsla(from var(--color-secondary-accent) h s l / 0.5);
    }
}

/* Secondary Button Modifier (Outline) */
.btn.btn-secondary {
    border-color: var(--color-primary-accent);
    color: var(--color-primary-accent);
    padding: 4px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
    font-weight: 600;
}

.btn.btn-secondary:hover {
    background-color: var(--color-primary-accent);
    color: var(--color-background); /* 文字变为背景色，以保证清晰可读 */
}

/* --- Reusable Card Component --- */
.card {
    border-radius: 12px;
    overflow: hidden; /* Ensures content respects the rounded corners */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; /* Use flexbox for internal layout */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

/* Card Layout Modifiers */
.card-vertical {
    flex-direction: column;
}
.card-horizontal {
    flex-direction: row;
}

/* Modifier for default light-background cards */
.card-default {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
}

/* --- Automatic Card Coloring --- */
/* 1. 分别应用背景色 */
.card:nth-last-child(3n + 1) { background-color: var(--color-card-1); }
.card:nth-last-child(3n + 2) { background-color: var(--color-card-2); }
.card:nth-last-child(3n + 3) { background-color: var(--color-card-3); }

/* 2. 为所有彩色卡片设置一个通用的浅色文字方案 */
.card:nth-last-child(3n + 1),
.card:nth-last-child(3n + 2),
.card:nth-last-child(3n + 3) {
    /*
     * 这将自动应用于 <p> 标签和 <li> 标签。
     */
    color: var(--color-border); /* Semi-transparent cream */
}

/* 3. 单独将标题设为不透明的奶油色，以示强调 */
.card:nth-child(n) h2,
.card:nth-child(n) h3 {
    color: var(--color-background); /* Solid cream */
}

/* 这是组件的容器，负责整体布局，如居中对齐和与下方内容的间距 */
.page-header {
    background: rgba(255, 255, 255, 0.1); /* 1. 半透明背景色，白色/25%透明度 */
    backdrop-filter: blur(12px);          /* 2. 背景模糊，这是玻璃效果的关键 */
    -webkit-backdrop-filter: blur(12px);  /* 兼容 Safari 浏览器 */
    border-radius: 20px;                  /* 3. 圆角，让边缘更柔和 */
    border: 1px solid rgba(255, 255, 255, 0.18); /* 4. 细微的亮色边框，模拟玻璃边缘高光 */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1); /* 5. 柔和的阴影，增加立体感 */

    text-align: center;
    margin-bottom: 3.5rem; /* 可根据需要调整标题区域与下方内容的距离 */
    padding: 2rem 1.5rem; /* 增加内边距，让文字与玻璃边缘有呼吸空间 */
    max-width: 800px; /* 设定一个最大宽度 */
    margin-left: auto;  /* 配合 max-width 实现居中 */
    margin-right: auto; /* 配合 max-width 实现居中 */
}

/* --- Reusable Title Component --- */
/* 这是主标题 (h1) 的样式 */
.page-header-title {
    font-size: 2.8rem; /* 字体大小 */
    font-weight: 700;  /* 字体粗细 */
    color: var(--color-text);
    margin-top: 0;
    margin-bottom: 1rem; /* 标题与副标题之间的距离 */
}

/* 这是副标题 (p) 的样式 */
.page-header-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.7;
    max-width: 700px; /* 限制最大宽度，防止在宽屏上过于拉伸 */
    margin-left: auto;   /* 配合 max-width 实现居中 */
    margin-right: auto;  /* 配合 max-width 实现居中 */
}

/* --- 4. Header & Navigation Styles --- */

/* 桌面端 Header */
.site-header {
    width: 100%;
    padding: 0.3rem     5%           0.1rem;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: padding 0.3s ease-in-out;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* 1. Logo */
.header-logo .logo-image {
    height: 100px;
    width: auto;
    display: block;
}

/* 2. 中间导航 (悬浮下划线效果) */
.header-nav-center {
    display: flex;
    gap: 3rem;
}

.header-nav-center a {
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    color: var(--color-text-light);
    position: relative;
    padding-bottom: 0.5rem; /* 为下划线留出空间 */
    transition: color 0.3s ease;
}

.header-nav-center a:hover {
    color: var(--color-text);
}

.header-nav-center a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.5px;
    background-color: var(--color-text);
    
    /* 核心动画逻辑 */
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.header-nav-center a:hover::after {
    transform: scaleX(1);
}

/* 3. 社交图标 */
.header-nav-social {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.icon-container {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.icon-container:hover {
    transform: translateY(-3px);
}

.social-icon {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.icon-container:hover .social-icon {
    opacity: 1;
}

/* --- 移动端导航样式 --- */
.mobile-nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-background);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-nav-container.active {
    transform: translateY(0);
}

.menu-toggle {
    display: none;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s ease-in-out;
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    transform: translateY(-5px) rotate(-45deg);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.mobile-nav a {
    font-size: 2rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--color-text-light);
    transition: color 0.3s ease;
}

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

/* This styles the container for the icons */
.mobile-nav-social {
    display: flex; /* Arranges the icons in a horizontal row */
    justify-content: center; /* Centers the icons horizontally */
    gap: 2.5rem; /* Sets the space between each icon */
    margin-top: 2.5rem; /* Adds space above the icons, separating them from the main navigation links */
}

/* This makes the icons larger and easier to tap on mobile */
.mobile-nav-social .icon-container {
    width: 28px;
    height: 28px;
}

/* --- 媒体查询: 切换桌面/移动视图的核心逻辑 --- */
@media (max-width: 992px) {
    .header-nav-center, .header-nav-social {
        display: none;
    }
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .header-logo .logo-image {
        /* 将高度从 110px 缩小到适合移动端的值 */
        height: 70px; 
    }
}

@media (min-width: 993px) {
    .header-nav-center, .header-nav-social {
        display: flex;
    }
    .menu-toggle {
        display: none;
    }
    /* 强制隐藏手机菜单，防止窗口从窄变宽时残留 */
    .mobile-nav-container {
        transform: translateY(-100%) !important;
    }
}

/* --- 5. Footer Styles --- */

footer {
    position: relative;
    background-color: var(--color-primary-accent);
    overflow: hidden;
    padding: 1rem 5%; /* 增加上、下空间，与上方内容保持距离 */
    
    background-image: url("images/foot_pattern.svg"); /* 使用 Footer 区域专属的墙纸 */
    background-repeat: repeat;
    background-position: top center;        /* 与上面完全一致 */
    background-size: 180px;                 /* 与上面完全一致 */
    background-attachment: fixed;
}

footer::after {
    content: "";
    position: absolute;
    inset: 0; /* 铺满整个 footer */
    background-color: rgba(253, 250, 245, 0.4);
    z-index: 1; /* 将薄膜置于背景之上 */
}

footer > * {
    position: relative;
    z-index: 2;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    font-family: var(--font-main);
    color: var(--color-text);
    font-size: 0.9rem;
}

/* Style for each of the three sections */
.footer-brand,
.footer-copyright,
.footer-action {
    flex: 1; /* Each section takes up equal space */
}

.footer-brand {
    text-align: left;
}

.footer-logo-image {
    height: 75px; /* Control logo size */
    width: auto;
    display: block;
    opacity: 0.7; /* Subtly fade the logo for a softer look */
    transition: opacity 0.3s ease;
}

.footer-logo-image:hover {
    opacity: 1; /* Bring to full opacity on hover */
}

.footer-copyright {
    text-align: center;
}

.footer-action {
    flex: 1;
    text-align: right;
}

.footer-action .btn-secondary {
    background-color: var(--color-background); /* Default background is cream */
}

/* --- Responsive Adjustments for Footer --- */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column; /* Stack the elements vertically */
        gap: 1.5rem;
    }

    /* Center all sections on mobile */
    .footer-action,
    .footer-copyright,
    .footer-brand {
        text-align: center;
    }
}

/* --- 6. Page-Specific Styles: Profile Page --- */

/* General Section Styling */
main section {
    padding: 6rem 5%;
}
main section:nth-child(even) {
    background-color: #f9f9f9;
}
.container {
    max-width: 1280px;
    margin: 0 auto;
}
.section-heading {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--color-text);
}

/* 1. Hero Section */
.hero-section {
    background-color: var(--color-background);
    padding-top: 10rem;
    padding-bottom: 6rem;
}
.hero-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}
.hero-text { flex: 1.5; }

.hero-text h1 {
    font-size: 3.6rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.1;
}
.hero-text .tagline {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-top: 1rem;
    margin-bottom: 2rem;
}
.quick-facts {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    font-size: 1rem;
    color: var(--color-text-light);
}
.fact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.fact-item i {
    color: var(--color-text);
    width: 20px; /* Ensures consistent alignment */
    text-align: center;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.hero-buttons .btn {
    padding: 9px 21px;
    font-size: 0.9rem;
}

.hero-photo {
    flex: 1;
    max-width: 350px;
}
.hero-photo img {
    width: 100%;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 2. About Section */
.about-section p {
    max-width: 75ch;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

/* 3. Journey (Timeline) Section */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 5px; /* Start line at the dot */
    bottom: 5px; /* End line at the last dot */
    width: 2px;
    background-color: var(--color-border);
}
.timeline-item {
    position: relative;
    padding-left: 40px;
    padding-bottom: 3rem; /* Changed from margin-bottom for better line alignment */
}
.timeline-item:last-child {
    padding-bottom: 0;
}
.timeline-dot {
    position: absolute;
    left: 0;
    top: 5px;
    width: 18px;
    height: 18px;
    border: 3px solid var(--color-text);
    border-radius: 50%;
    background-color: var(--color-background);
}
.timeline-date {
    font-weight: 500;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}
.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.timeline-content p {
    color: var(--color-text-light);
}

/* 4. Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.skill-category {
    padding: 2.5rem; /* Increased padding for a better look */
}
.skill-category h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.skill-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.skill-category li {
    font-size: 1rem; /* 建议：为列表项设置一个标准、清晰的字号 */
    line-height: 1.7; /* 建议：增加行高，让列表更疏朗，易于阅读 */
    margin-bottom: 0.8rem;
}

/* 5. Call to Action (CTA) & Button Styles */
.cta-section { text-align: center; }
.cta-section p {
    max-width: 60ch;
    margin: 1.5rem auto 2.5rem;
    color: var(--color-text-light);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* --- Responsive Media Queries (for Profile Page) --- */
@media (max-width: 768px) {
    main section { padding: 4rem 5%; }
    .section-heading {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

    /* Hero Section on Mobile */
    .hero-section { padding-top: 8rem; }
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
    }
    .hero-text h1 { font-size: 2rem; }
    .hero-text .tagline {font-size: 1.1rem;}
    .quick-facts { align-items: center; }
    .hero-buttons { justify-content: center; }
    
    /* Timeline on Mobile */
    .timeline::before { left: 8px; }
    .timeline-item { padding-left: 40px; }
}

/* --- 7. Page-Specific Styles: Programs Page --- */

.programs-section {
    padding: 10rem 5% 6rem; /* 顶部留出更多空间以避开固定的 Header */
    background-color: #fbf8f3;

    background-image: url("images/prog_pattern.svg"); /* 使用 Program 区域专属的墙纸 */
    background-repeat: repeat;
    background-position: top center;        /* 统一对齐到视口顶部中心 */
    background-size: 180px;                 /* 统一设置一个固定的尺寸 */
    background-attachment: fixed;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr; /* 默认单列 */
    gap: 2.5rem;
    align-items: stretch;
}

.project-header {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative; /* Keep this for other potential uses if needed */
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Aligns items to the top */
    gap: 1rem; /* Adds space between text and badge */
}

.project-header-main {
    flex-grow: 1; /* Allows the main content to take up available space */
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.5rem; /* 行间距和列间距 */
    font-size: 0.9rem;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.project-content p {
    line-height: 1.7;
}

.project-links {
    margin-top: auto; /* Pushes the links to the bottom of the card */
    padding-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* --- 1. Project Card State Controller (显示/隐藏逻辑) --- */

/* 默认状态：隐藏“进行中”专属元素 */
.project-card .status-badge,
.project-card .links-upcoming {
    display: none;
}

/* 默认状态：显示正常的链接 */
.project-card .links-available {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* 当 .in-progress 类存在时：显示“进行中”专属元素 */
.project-card.in-progress .status-badge,
.project-card.in-progress .links-upcoming {
    display: block; /* 或者 inline-block, flex 等 */
}

/* 当 .in-progress 类存在时：隐藏正常的链接 */
.project-card.in-progress .links-available {
    display: none;
}


/* --- 2. "In Progress" 状态的特殊视觉样式 --- */

/* 为“进行中”卡片添加左侧边框 */
.project-card.in-progress {
    border-left: 6px solid var(--color-tertiary-accent);
}

/* “进行中”状态徽章的样式 */
.status-badge {
    display: inline-block; /* 确保 display 属性在这里被正确设置 */
    flex-shrink: 0;
    margin-top: 4px;
    background-color: var(--color-tertiary-accent);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 99px;
    animation: pulse 2s infinite; /* 你可以暂时注释掉动画，方便调试 */
}

/* “即将推出”文字的样式 */
.links-upcoming p {
    font-size: 0.9rem;
    color: var(--color-tertiary-accent);
    font-style: italic;
    font-weight: bold;
    margin: 0; /* 最好重置一下p标签的默认外边距 */
}

/* 呼吸动画 */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 139, 150, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 139, 150, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 139, 150, 0); }
}

/* 响应式设计: 桌面端变为两列网格 */
@media (min-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .project-header {
        flex-direction: column; /* Stack the badge below the text */
        align-items: flex-start;
    }

    .status-badge {
        margin-top: 1rem; /* Add some space when stacked */
    }
}

/* --- 8. Page-Specific Styles: Journey Page --- */

.journey-section {
    padding: 10rem 5% 6rem;
    background-color: #fdfaf5;

    background-image: url("images/jou_pattern.svg");
    background-repeat: repeat;
    background-position: top center;
    background-size: 180px;
    background-attachment: fixed;
} 

.journey-feed {
    column-count: 2;
    column-gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* 针对 .journey-feed 里的每一个子元素 */
.journey-feed > * {
    /* * 瀑布流的关键: 防止一个卡片在两列之间被切断*/
    break-inside: avoid-column;
    /* 创建卡片之间的垂直间距 */
    margin-bottom: 3rem;
}

.post-card {
    display: flex;
    flex-direction: column; /* 关键：让 .post-card-image 和 .post-card-content 垂直堆叠 */
}

.post-card-image {
    aspect-ratio: 16 / 10;
    height: auto;
    position: relative;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops the image to fill the container */
}

/* --- NEW: Photo Stack Styles --- */
/* 1. JS 会为多图容器添加 'photo-stack' 类 */
.post-card-image.photo-stack {
    position: relative; /* 用于定位图片和箭头 */
    
    /* 留出空间让堆叠和旋转效果更好看 */
    padding: 10px; 
    box-sizing: border-box;
    
    /* 居中照片堆 */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* 允许旋转的照片溢出一点 */
    overflow: visible; 
    /* 确保多图容器也和单图容器有一样的高度 */
    height: 350px;
}
/* 2. 堆叠中所有照片的通用样式 */
.post-card-image.photo-stack img {
    position: absolute; /* 关键：将所有照片堆叠在一起 */
    
    /* 减去 padding，并添加边框 */
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    object-fit: cover;
    
    /* 实体照片样式 */
    border: 5px solid #fff;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    border-radius: 2px;
    
    --rotation: 0deg; /* 默认/回退值 */
    /* 关键：DOM 顺序改变时，平滑地播放 transform 动画 */
    transition: scale 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    
    rotate: var(--rotation);
    /* 防止拖拽图片 */
    pointer-events: none; 
    user-select: none;
}
/* 3. 定义堆叠顺序 (z-index) 和位置 (transform) */

/* 第 1 张 (最顶层) */
.post-card-image.photo-stack img:nth-child(1) {
    scale: 1;
    z-index: 3;
}
/* 第 2 张 (中间) */
.post-card-image.photo-stack img:nth-child(2) {
    scale: 0.97;
    z-index: 2;
}
/* 第 3 张 (底层) */
.post-card-image.photo-stack img:nth-child(3) {
    scale: 0.94;
    z-index: 1;
}
/* 第 4 张及以后 (堆在最底层) */
.post-card-image.photo-stack img:nth-child(n+4) {
    scale: 0.9;
    z-index: 0;
    opacity: 1; 
}

/* 4. 翻页箭头 */
.post-card-image.photo-stack .stack-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100; /* 在所有照片之上 */

    width: 30px;
    height: 30px;
    border-radius: 50%;

    /* --- 默认无痕状态 --- */
    background: none;
    border: none;
    opacity: 0;
    visibility: hidden;
    backdrop-filter: none; /* 默认无滤镜 */

    /* 居中 ::before 形状 */
    display: flex;
    align-items: center;
    justify-content: center;

    /* --- 隐藏 JS 添加的文本 --- */
    color: transparent; 
    font-size: 0; 
    
    /* --- 动画 --- */
    cursor: pointer;
    /* 注意: backdrop-filter 很难平滑地过渡，所以我们只过渡背景和不透明度 */
    transition: opacity 0.3s ease, background-color 0.3s ease;
    pointer-events: auto;
}

/* --- 使用 ::before 伪元素创建形状 --- */
.post-card-image.photo-stack .stack-nav::before {
    content: '';
    display: block;
    width: 10px; /* 形状大小 */
    height: 10px;
    
    /* 形状颜色和粗细 */
    border-top: 2px solid rgba(255, 255, 255, 0.8);
    border-right: 2px solid rgba(255, 255, 255, 0.8);
    
    /* --- 关键修正：添加圆角以柔化箭头 --- */
    border-radius: 2px;

    transition: border-color 0.3s ease;
}

/* --- 旋转形状以创建左/右箭头 --- */
.post-card-image.photo-stack .stack-nav-next::before {
    transform: rotate(45deg);
    margin-left: -2px; /* 视觉微调 */
}

.post-card-image.photo-stack .stack-nav-prev::before {
    transform: rotate(-135deg);
    margin-right: -2px; /* 视觉微调 */
}

/* 调整箭头位置以适应 padding */
.post-card-image.photo-stack .stack-nav-prev { left: 20px; } /* 20px padding + 15px */
.post-card-image.photo-stack .stack-nav-next { right: 20px; }

@media (pointer: fine) {
    
    /* 1. 鼠标悬停在 *图片区域* 时显示箭头 */
    .post-card-image.photo-stack:hover .stack-nav {
        opacity: 1;
        visibility: visible;
        /* --- 液态玻璃效果 --- */
        background-color: rgba(255, 255, 255, 0.15); /* 半透明背景 */
        backdrop-filter: blur(8px); /* 模糊背景 */
        -webkit-backdrop-filter: blur(8px); /* 兼容 Safari */
        border: 1px solid rgba(255, 255, 255, 0.2); /* 增加一个微妙的边缘 */
    }
    
    /* 2. 鼠标悬停在 *箭头本身* 时，箭头形状变白 */
    .post-card-image.photo-stack .stack-nav:hover::before {
        border-color: #ffffff; /* 悬停时变实心白 */
    }
}

/* --- 原有的卡片内容样式 --- */
.post-card-content {
    flex: 1;
    padding: 2.5rem;
}

.post-card .post-title {
    font-family: var(--font-chinese-stack);
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.post-card .post-text p {
    font-family: var(--font-chinese-stack);
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
}

/* --- Responsive Adjustments for Journey Cards --- */
@media (max-width: 768px) {
    .journey-feed {
        column-count: 1;
    }

    .post-card-image {
       max-height: 325px;
    }
    
    /* 为照片堆设置特定高度 */
    .post-card-image.photo-stack {
        padding: 15px;
    }
    
    /* 调整堆叠照片的大小 */
    .post-card-image.photo-stack img {
        width: calc(100% - 30px);
        height: calc(100% - 30px);
    }
    
    .post-card-content {
        padding: 2rem;
    }

    .post-card .post-title {
        font-size: 1.5rem;
    }
}

/* --- 9. Page-Specific Styles: Landing Page  --- */

.landing-body {
    display: grid;
    place-items: center;
    min-height: 100vh;
    /* Changed from dark theme to your new light background */
    background-color: var(--color-background); 
    /* Default text color now uses your main text variable */
    color: var(--color-text); 
    overflow: hidden;
    cursor: pointer;
}

.landing-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-container {
    text-align: center;
    animation: fadeIn 1.5s ease-out both;
}

/* This new wrapper will act as the positioning container */
.clock-wrapper {
    position: relative; /* Establishes a positioning context for the icon */
    width: 200px; /* Should match the width of your .time-chart */
    height: 200px; /* Should match the height of your .time-chart */
    margin: 0 auto; /* Keeps the whole clock component centered */
}

/* This styles and centers your new SVG icon */
.clock-center-icon {
    /* Absolute positioning to place it on top of the clock */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* The key to perfect centering */
    
    /* [ADJUSTABLE] Set the size of your icon */
    width: 60px;
    height: 54px;
    
    /* Ensure the icon is on top of the SVG arcs */
    z-index: 10;
}

.time-chart {
    width: 200px;
    height: 200px;
    transform: rotate(-90deg); /* Start arcs from the top */
}

.time-track {
    fill: none;
    /* Faint track using a transparent version of the main text color */
    stroke: hsla(from var(--color-text) h s l / 0.15); 
    stroke-width: 8;
}

.time-arc {
    fill: none;
    stroke: var(--color-text); 
    stroke-width: 8;
    stroke-linecap: round; /* Rounded ends for the arcs */
    transition: stroke-dashoffset 0.1s linear; /* Smooths out tiny jumps */
}

/* Hours arc uses the vibrant Terracotta accent */
#hours-arc { 
    stroke: var(--color-secondary-accent); 
    stroke-width: 10; 
} 
/* Minutes arc uses the calming Teal accent */
#minutes-arc { 
    stroke: var(--color-primary-accent); 
    stroke-width: 8; 
} 
/* Seconds arc uses the lighter text color for a subtle look */
#seconds-arc { 
    stroke: var(--color-text-light); 
    stroke-width: 4; 
    opacity: 0.8;
}

.landing-phrase {
    font-family: var(--font-main);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-text); 
    margin-top: 2.5rem;
    letter-spacing: 0.5px;
}

.landing-instruction {
    font-family: var(--font-main); /* 确保使用英文字体 */
    font-size: 0.9rem; /* 尺寸比主标语小一些 */
    font-weight: 400; /* 字重轻一些 */
    color: var(--color-text-light); /* 使用更柔和的文字颜色 */
    opacity: 0.7; /* 降低不透明度，让它不那么突出 */
    margin-top: 2.5rem; /* 这将在它和上面的标语之间创建出空间 */
    letter-spacing: 0.5px;
    text-transform: lowercase; /* 全部小写，看起来更像一个提示 */

    animation: breathing-effect 3s ease-in-out infinite;
}
/* A simple fade-in animation for the whole container */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* --- Animation for Breathing Effect --- */
@keyframes breathing-effect {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

/* 当屏幕宽度小于或等于 480px 时 (典型的手机竖屏宽度) */
@media (max-width: 480px) {
    .clock-wrapper {
        width: 160px;
        height: 160px;
    }

    .time-chart {
        /* 将图表尺寸从 200px 缩小到 160px */
        width: 160px;
        height: 160px;
    }

    .clock-center-icon {
        width: 48px;
        height: 43.2px;
    }

    .landing-phrase {
        /* 将文字大小稍微减小 */
        font-size: 1rem;
        /* 调整与上方图表的间距，使其更协调 */
        margin-top: 2rem;
    }

    /* 您也可以微调SVG线条的粗细，让其在小尺寸下更精致 */
    .time-track {
        stroke-width: 6;
    }
    .time-arc {
        stroke-width: 6;
    }
    #hours-arc { stroke-width: 8; }
    #seconds-arc { stroke-width: 3; }
}