/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html, body {
    overflow-y: auto;
}

/* 去除所有超链接的下划线 */
a {
    text-decoration: none;
    color: inherit; /* 继承父元素的颜色 */
}

body {
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* 设置最小高度为视口高度 */
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.logo img {
    height: 32px; /* 调整图片高度，使其与文字协调 */
    margin-right: 8px;
}

/* 主要内容区 */
main {
    margin-top: 100px;
    flex: 1; /* 让main部分自动扩展占据可用空间 */
}


/* 展开区域 */
.expandable-section {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: visible;
}

/* 主要按钮样式 */
.primary-btn {
    display: inline-block;
    background-color: #0068d6; /* 蓝色背景 */
    color: white;
    padding: 2px 30px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    line-height: 38px;
    font-weight: 500;
    border: 1px solid #0068d6; /* 匹配蓝色的边框 */
    transition: all 0.3s;
    margin: 15px 15px;
    z-index: 10;
    position: relative;
}

.primary-btn:hover {
    background-color: #006ce0; /* 深蓝色 */
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.primary-btn:active {
    transform: translateY(0);
}

.expand-btn {
    display: inline-block;
    background-color: transparent;
    color: #666;
    padding: 2px 30px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    line-height: 38px;
    font-weight: 500; /* 与主按钮保持一致的字重 */
    border: 1px solid #ccc;
    transition: all 0.3s;
    margin: 15px 15px;
    z-index: 10;
    position: relative;
}

.expand-btn:hover {
    background-color: #f5f5f7;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.expand-btn:active {
    transform: translateY(0);
}

.hidden-content {
    height: 0;
    overflow: hidden;
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #f5f5f7;
    border-radius: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-shadow: inset 0 15px 10px -10px rgba(0, 0, 0, 0.1),
                inset 0 -15px 10px -10px rgba(0, 0, 0, 0.1);
}

.hidden-content-inner {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.site-link {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    width: 250px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.site-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.site-link h3 {
    margin-bottom: 10px;
    color: #007aff;
}

/* 流动相册样式 - 整合相关属性 */
.imageflow-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 40px;
    height: auto;
    background-color: #f7f7f7;
}

.imageflow-rows {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.imageflow-row {
    display: flex;
    flex-direction: row;
    position: relative;
    overflow: visible;
}

.imageflow-row:last-child {
    margin-bottom: 0;
}

.imageflow-track {
    display: flex;
    height: 100%;
    position: relative;
}

.imageflow-item {
    position: absolute;
    left: 0;
    top: 0;
    cursor: pointer;
    /* overflow: hidden; */
    transition: transform 0.5s ease, box-shadow 0.5s ease, z-index 0s;
    will-change: transform, z-index;
    border-radius: 3px; /* 移动到这里，统一边框圆角样式 */
}

.imageflow-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    border-radius: inherit; /* 继承父元素的圆角 */
}

/* 信息区域样式 - 合并相似属性 */
.imageflow-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.5s ease, opacity 0.5s ease;
    text-align: center;
}

.imageflow-title {
    font-size: 14px;
    font-weight: bold; /* 移到这里，避免内联样式 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.imageflow-hint {
    text-align: right;
    color: #bbb;
    font-size: 12px;
    margin: 20px 10px 0 0;
    user-select: none;
    /* pointer-events: none; 移除，允许点击 */
}
.imageflow-hint a {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}
.imageflow-hint a:hover {
    color: #888;
    text-decoration: underline;
}

/* 页脚 */
footer {
    background-color: #eee;
    padding: 15px 0;
    text-align: center;
    font-size: 12px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .slideshow-container {
        height: 50vh;
    }
    
    .site-links {
        flex-direction: column;
        align-items: center;
    }
    
    .site-link {
        width: 100%;
        max-width: 300px;
    }
    
    .slide-control {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}