/* code2-unique.css */
/* 引入字体 */
.title-text {
    font-family: 'MaintitleFont', 'KaiTi', 'SimSun', sans-serif;
    color: #333;
}

body {
    background-color: #ffffff; /* MODIFIED: Changed body background to white */
}

.hero-sticky-container {
    height: 100vh;
    position: sticky;
    top: 0; 
    z-index: 1; 
    overflow: hidden;
    pointer-events: none;
}

.hero-section {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 10vh; 
    box-sizing: border-box;
    background-color: #ffffff; 
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    will-change: transform, opacity;
    pointer-events: auto;
}

.hero-section .container {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 1200px; 
    padding: 0 20px; 
}
.hero-text { flex: 1; padding-right: 20px; }

.hero-text h1 {
    font-size: 2.8em; color: #333; margin-bottom: 20px;
}
.hero-text p {
    font-size: 1.1em; color: #666; margin-bottom: 30px;
}

.cta-button {
    display: inline-block; background-color: var(--theme-green); color: white;
    padding: 12px 25px; text-decoration: none; border-radius: 5px;
    font-weight: bold; transition: background-color 0.3s ease;
}
.cta-button:hover { background-color: var(--theme-green-darker); }

.hero-animation {
    flex: 1; display: flex; justify-content: center;
    align-items: center; min-height: 450px; position: relative;
}
#three-canvas { width: 100%; max-width: 450px; height: 450px; display: block; }

        /* 新的圆形和图标样式 */
        .hero-sloth-container {
            position: relative;
            width: 300px;
            height: 300px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .sloth-circle {
            width: 250px;
            height: 250px;
            background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 50%, #c3e6cb 100%);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 10px 30px rgba(40, 167, 69, 0.2);
            animation: gentleFloat 4s ease-in-out infinite;
            position: relative;
            overflow: visible;
        }

        .sloth-icon {
            font-size: 10em;
            animation: slothSway 3s ease-in-out infinite;
            transform-origin: center;
            z-index: 10;
            /* 让图标突出圆形 */
            position: relative;
            top: -20px;
        }

        @keyframes gentleFloat {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            50% { transform: translateY(-10px) rotate(2deg); }
        }

        @keyframes slothSway {
            0%, 100% { transform: rotate(-2deg) scale(1); }
            50% { transform: rotate(2deg) scale(1.05); }
        }

        /* 装饰性小圆圈 */
        .sloth-circle::before,
        .sloth-circle::after {
            content: '';
            position: absolute;
            border-radius: 50%;
            background: rgba(40, 167, 69, 0.1);
            animation: decorativeFloat 5s ease-in-out infinite;
        }

        .sloth-circle::before {
            width: 40px;
            height: 40px;
            top: -20px;
            right: 20px;
            animation-delay: -1s;
        }

        .sloth-circle::after {
            width: 25px;
            height: 25px;
            bottom: -10px;
            left: 30px;
            animation-delay: -2.5s;
        }

        @keyframes decorativeFloat {
            0%, 100% { transform: translateY(0px) scale(1); opacity: 0.3; }
            50% { transform: translateY(-15px) scale(1.2); opacity: 0.6; }
        }

.main-content-card {
    background-color: #ffffff;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    box-shadow: 0 -15px 18px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2; 
    padding-top: 1px; 
}


.article-list-section, .timeline-section, .ten-year-section {
     padding: 60px 0 40px;
}
.article-list-section h2, .timeline-section h2, .ten-year-section h2.section-title {
    text-align: center; font-size: 2.2em;
    margin-bottom: 50px; color: #333;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.article-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.article-card img.placeholder-image, .placeholder-image {
    width: 100%; height: 200px; background-color: #e9ecef;
    display: flex; align-items: center; justify-content: center;
    color: #adb5bd; font-size: 1.2em;
}
.article-content h3 a { text-decoration: none; color: var(--theme-green); }
.article-meta { margin-bottom: 15px; }
.read-more-link { display: inline-block; color: var(--theme-green); text-decoration: none; font-weight: bold; }

.timeline-section { padding: 60px 0; margin-top: 0; }
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding: 20px 0; }
.timeline::before {
    content: ''; position: absolute; left: 20px; top: 0; bottom: 0;
    width: 4px; background-color: #e0e0e0;
    border-radius: 2px;
}
.timeline-item {
    position: relative; margin-bottom: 40px; padding-left: 60px;
}
.timeline-dot {
    position: absolute; left: 12px; top: 5px; width: 16px; height: 16px;
    background-color: var(--theme-green); border-radius: 50%;
    border: 3px solid #ffffff; z-index: 1;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-date { display: block; font-size: 0.9em; color: #888; margin-bottom: 5px; font-weight: 500; }
.timeline-content h3 { font-size: 1.3em; margin-top: 0; margin-bottom: 8px; color: #333; }
.timeline-content p { font-size: 1em; color: #666; margin: 0; }

/* 十年之约板块样式 */
.ten-year-section .part-title {
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 10px;
    margin-top: 0;
    line-height: 1.2;
    color: hsl(var(--font-color-ten-year) / 1);
    text-align: center;
}
.ten-year-section .progress-container {
    max-width: 90%;
    margin-top: 40px;
    margin-left: auto;
    margin-right: auto;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--ten-year-box-shadow);
}
.ten-year-section .progress-bar-holder {
    width: 100%;
    background-color: rgba(220, 220, 220, 0.5);
    border-radius: 8px;
    height: 30px;
    overflow: hidden;
}
.ten-year-section #tenYearProgressBar {
    background-color: var(--theme-green-lighter);
    height: 100%;
    border-radius: 8px;
    width: 0%;
    transition: width 0.5s ease-in-out;
}
.ten-year-section .date-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 90%;
    margin: 12px auto 0;
    padding: 0 8px;
    font-size: 0.95em;
    color: #555;
}
.ten-year-section .date-left, .ten-year-section .date-right {
    margin: 0;
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#loading-overlay.visible {
    opacity: 1;
    visibility: visible;
}
.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid var(--theme-green);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
#loading-overlay p {
    font-size: 1.2em;
    color: #333;
}

@media (max-width: 768px) {
    .hero-section {
        padding-bottom: 5vh;
        padding-top: 5vh; /* 给顶部也加点空间，避免内容太靠上 */
    }
    .hero-section .container {
        flex-direction: column;
        text-align: center;
        gap: 20px; /* 减小堆叠元素间的 gap */
    }
    .hero-text {
        padding-right: 0;
        margin-bottom: 30px;
    }
    .hero-text h1 {
        font-size: 2em; /* 减小 H1 字体 */
    }
    .hero-text p {
        font-size: 1em; /* 减小段落字体 */
    }
    .hero-animation {
        min-height: 280px; /* 调整动画区域最小高度 */
        width: 100%; /* 确保动画容器宽度 */
    }
    #three-canvas {
        max-width: 250px; /* 减小 Canvas 最大宽度 */
        height: 250px;    /* 减小 Canvas 高度 */
    }
    
    .article-list-section, .timeline-section, .ten-year-section {
        padding: 40px 0 30px; /* 减小区块上下内边距 */
    }
    .article-list-section h2, .timeline-section h2, .ten-year-section h2.section-title,
    .ten-year-section .part-title { /* 确保十年之约标题也调整 */
        font-size: 1.8em; /* 减小区块标题字体 */
        margin-bottom: 30px; /* 减小标题下边距 */
    }

    .timeline::before { left: 10px; } /* 已有 */
    .timeline-item {
        padding-left: 40px; /* 已有 */
        margin-bottom: 30px; /* 减小时间轴项目间距 */
    }
    .timeline-dot {
        left: 2px; /* 已有 */
        width: 14px; /* 略微减小点的大小 */
        height: 14px;
        border-width: 2px;
    }
    .timeline-content h3 {
        font-size: 1.15em; /* 减小时间轴内容标题 */
    }
    .footer-left p {
        font-size: 0.85em; /* 减小页脚文字 */
    }

    .main-content-card {
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }

    /* 十年之约部分，大部分已有规则是响应式的，这里微调 */
    .ten-year-section .progress-container,
    .ten-year-section .date-container {
        max-width: 95%; /* 允许更宽一点，因为手机屏幕窄 */
    }
    .ten-year-section .progress-bar-holder {
         height: 22px; /* 已有 */
    }
    .ten-year-section .date-container {
        font-size: 0.85em; /* 减小日期字体 */
    }
}

/* 针对非常窄的屏幕，例如小于360px */
@media (max-width: 359px) {
    .hero-text h1 {
        font-size: 1.8em;
    }
    .article-list-section h2, .timeline-section h2, .ten-year-section h2.section-title,
    .ten-year-section .part-title {
        font-size: 1.6em;
    }
    .articles-grid {
        grid-template-columns: 1fr; /* 强制单列 */
    }
    #three-canvas {
        max-width: 220px;
        height: 220px;
    }
}
/* 根元素变量，用于暗黑模式的颜色切换 */
:root {
  --arrow-button-bg: #d1d5db; /* from bg-gray-300 */
  --arrow-button-ring-color: #e5e7eb; /* from ring-gray-200 */
  --arrow-icon-stroke-color: #0d1117;
}

/* 暗黑模式下的颜色变量 */
.dark {
  --arrow-button-bg: #374151; /* from dark:bg-gray-700 */
  --arrow-button-ring-color: #9ca3af; /* from dark:ring-gray-400 */
  --arrow-icon-stroke-color: #f3f4f6;
}

/* From Uiverse.io by cssbuttons-io */ 
.button-learn-more {
  position: relative;
  display: inline-block;
  cursor: pointer;
  outline: none;
  border: 0;
  vertical-align: middle;
  text-decoration: none;
  background: transparent;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  width: 12rem;
  height: auto;
}

.button-learn-more .circle {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: relative;
  display: block;
  margin: 0;
  width: 3rem;
  height: 3rem;
  background: #28a745;
  border-radius: 1.625rem;
}

.button-learn-more .circle .icon {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  background: #fff;
}

.button-learn-more .circle .icon.arrow {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  left: 0.625rem;
  width: 1.125rem;
  height: 0.125rem;
  background: none;
}

.button-learn-more .circle .icon.arrow::before {
  position: absolute;
  content: "";
  top: -0.29rem;
  right: 0.0625rem;
  width: 0.625rem;
  height: 0.625rem;
  border-top: 0.125rem solid #fff;
  border-right: 0.125rem solid #fff;
  transform: rotate(45deg);
}

.button-learn-more .button-text {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 0;
  margin: 0 0 0 1.85rem;
  color: #282936;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
}

.button-learn-more:hover .circle {
  width: 100%;
}

.button-learn-more:hover .circle .icon.arrow {
  background: #fff;
  transform: translate(1rem, 0);
}

.button-learn-more:hover .button-text {
  color: #fff;
}

/* ===== 开始：更新后的卡片样式 ===== */
.card-link-wrapper {
    text-decoration: none; /* 移除a标签的下划线 */
    color: inherit; /* 继承父元素颜色 */
    display: block; /* 使a标签作为块级元素，撑满整个网格单元 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-link-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-radius: 16px; /* 确保悬浮效果的阴影也有圆角 */
}

.card {
    border: 1px solid #e9e9e9;
    width: 100%;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    /* MODIFIED: 移除内边距并添加overflow, 使图片可以贴合边框 */
    padding: 0; 
    overflow: hidden;
}

.card-top {
    height: 220px;
    background-color: #fff8e8; /* 默认背景色 */
    background-size: cover;
    background-position: center;
    /* MODIFIED: 移除了margin和border-radius，由父容器.card负责裁剪 */
}

/* MODIFIED: 将内边距从.card移到.card-bottom */
.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* NEW: 作者头像的样式 */
.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%; /* 圆形头像 */
    object-fit: cover; /* 确保图片不变形 */
}

/* 占位符文字样式保持不变 */
.text-placeholder div {
    height: auto;
    background-color: transparent;
}

.text-placeholder-line1 {
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.text-placeholder-line2 {
    font-size: 0.9em;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
}

/* MODIFIED: view-button 的完整修改 */
.view-button {
    width: 40px;            /* 设置宽度 */
    height: 40px;           /* 设置高度 */
    background-color: #e0e0e0; /* 改为灰色 */
    border-radius: 50%;     /* 改为圆形 */
    display: flex;          /* 使用flex布局来居中SVG */
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.view-button:hover {
    background-color: #cccccc; /* 添加一个悬浮效果 */
}

/* NEW: 按钮内SVG图标的样式 */
.view-button svg {
    width: 18px;
    height: 18px;
}
/* ===== 结束：更新后的卡片样式 ===== */