
/* 专题详情页样式文件 - 按功能类别组织 */

/* 头部样式 */
.collection-header {
    position: relative;
    height: 3.2rem;
    overflow: hidden;
    margin-bottom: 0;
}

.collection-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
}

.collection-info {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 0.3rem;
    color: white;
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.9) 90%);
}

.collection-title {
    font-weight: 600;
    margin-bottom: 0.15rem;
    color: white;
    text-shadow: 0 .02rem .04rem rgba(0, 0, 0, 0.5);
    font-size: 0.40rem;
}

.collection-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    opacity: 0.9;
}

.collection-meta span {
    display: inline-block;
    font-size: 0.26rem;
}

/* 金黄色数字样式 */
.highlight-number {
    color: #ffd700; /* 金黄色 */
    font-weight: bold;
}

/* 专题内容样式 */
.collection-content {
    padding: 0.3rem 0.3rem 0.3rem;
    background-color: #f5f5f5;
    min-height: 5rem;
    margin-top: 0;
    margin-bottom: 0.15rem;
}

.collection-detail {
    background-color: #ffffff;
    padding: 0.1rem;
    border-radius: 0.12rem;
    position: relative;
}

/* 文本展开容器样式 */
.intro-text-container {
    position: relative;
    margin-bottom: 0.2rem;
}

/* 文本展开样式 */
.intro-text {
    color: #666;
    text-align: justify;
    text-indent: 2em;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    padding: 0;
    transition: all .3s ease;
    font-size: 0.30rem;
    line-height: 1.8;
    word-break: break-word;
    white-space: normal;
    -webkit-hyphens: auto;
    hyphens: auto;
    max-height: 3.24rem; /* 0.30rem * 1.8 * 6 = 3.24rem */
    height: 3.24rem;
}

.intro-text.expanded {
    display: block;
    max-height: none;
    height: auto;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: unset;
    box-orient: unset;
}

.expand-btn {
    position: absolute !important;
    bottom: 0.03rem !important;
    right: 0 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: #667eea !important;
    border: none !important;
    padding: 0 0.1rem !important;
    height: 0.30rem !important;
    font-size: 0.28rem !important;
    line-height: 0.30rem !important;
    cursor: pointer !important;
    border-radius: .04rem !important;
    transition: all 0.3s !important;
    z-index: 10 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0.6rem;
}

.expand-btn.expanded {
    background: rgba(255, 255, 255, 0.95) !important;
}

/* 时间树基础样式 */
.timeline-list {
    width: 100%;
    margin-top: 0.5rem;
}

.timeline {
    position: relative;
    padding: 0.2rem 0 0.2rem 0.25rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.15rem;
    top: 0.6rem;
    bottom: 0.2rem;
    width: 0.03rem;
    background-color: transparent;
    border-left: 0.03rem dashed #e0e0e0;
    z-index: 0;
}

/* 时间树项目样式 */
.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.timeline-item.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* 时间树左侧样式 */
.timeline-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 0.15rem;
    width: 0.7rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    margin-left: -0.45rem;
}

.timeline-icon {
    width: 0.28rem;
    height: 0.28rem;
    background-color: #ffffff;
    border: 0.025rem solid #4285f4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4285f4;
    font-size: 0.12rem;
    margin-bottom: 0.06rem;
    box-shadow: 0 0.015rem 0.03rem rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

/* 时间树时间样式 */
.timeline-time {
    font-size: 0.20rem;
    color: #667eea;
    text-align: center;
    line-height: 1.2;
    font-family: 'Helvetica Neue', Arial, 'PingFang SC', sans-serif;
    white-space: normal;
    flex-shrink: 0;
    width: 100%;
    padding: 0;
    word-break: break-all;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.timeline-year {
    font-size: 0.18rem;
    font-weight: 400;
    color: #667eea;
    line-height: 1.2;
}

.timeline-month-day {
    font-size: 0.20rem;
    font-weight: 500;
    color: #667eea;
    line-height: 1.2;
}

/* 时间树右侧内容样式 */
.timeline-content {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
    padding-left: 0.03rem;
    background-color: #667eea;
    border-radius: 0.12rem;
    overflow: hidden;
}

.timeline-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease;
}

.timeline-link:hover {
    transform: translateX(0.05rem);
}

.timeline-card {
    background-color: #fff;
    border-radius: 0.1rem;
    padding: 0.2rem;
    box-shadow: 0 0.04rem 0.16rem rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    overflow: hidden;
    position: relative;
}

.timeline-card:hover {
    box-shadow: 0 0.06rem 0.24rem rgba(0, 0, 0, 0.2);
    transform: translateY(-0.02rem);
}

.timeline-title {
    font-size: 0.36rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.1rem 0;
    line-height: 1.4;
    transition: color 0.2s ease;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
}

.timeline-link:hover .timeline-title {
    color: #4285f4;
}

.timeline-description {
    font-size: 0.26rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0.1rem;
    overflow: hidden;
    display: -webkit-box;
    display: box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    box-orient: vertical;
}

/* 初始HTML结构样式 */
.timeline-dot {
    position: absolute;
    left: -0.065rem;
    top: 0.15rem;
    width: 0.13rem;
    height: 0.13rem;
    border-radius: 50%;
    background-color: #4285f4;
    border: 0.025rem solid #ffffff;
    box-shadow: 0 0.015rem 0.03rem rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* 隐藏项目样式 */
.hidden-item {
    display: none;
}

/* 响应式设计 - 已移至main.js动态控制 */

/* 加载指示器样式 */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.05rem 0.1rem;
    margin-top: 0.05rem;
    margin-bottom: 0.05rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    min-height: 0.5rem;
    max-height: 0.5rem;
}

.loading-indicator.active {
    opacity: 1;
}

.loading-indicator.error {
    cursor: pointer;
}

.loading-spinner {
    width: 0.3rem;
    height: 0.3rem;
    border: 0.03rem solid rgba(102, 126, 234, 0.1);
    border-top-color: #667eea;
    border-left-color: #667eea;
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 0.02rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(255, 255, 255, 0.5) 100%);
    box-shadow: 0 0 0.1rem rgba(102, 126, 234, 0.3);
}

.loading-text {
    text-align: center;
    color: #667eea;
    font-size: 0.24rem;
    line-height: 1;
    margin: 0;
    font-weight: 500;
    text-shadow: 0 .01rem .02rem rgba(0, 0, 0, 0.05);
}

.loading-message,
.loading-error {
    margin: 0;
}

.loading-error {
    color: #ff6b6b;
}

/* 动画效果 */
@keyframes spin {
    0% {
        transform: rotate(0deg);
        box-shadow: 0 0 0.1rem rgba(102, 126, 234, 0.3);
    }
    50% {
        transform: rotate(180deg);
        box-shadow: 0 0 0.15rem rgba(102, 126, 234, 0.5);
    }
    100% {
        transform: rotate(360deg);
        box-shadow: 0 0 0.1rem rgba(102, 126, 234, 0.3);
    }
}

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

/* 淡入动画效果 */
.fade-in {
    animation: fadeIn 0.3s ease-out;
    animation-fill-mode: both;
}


