/**
 * 全局样式
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body::-webkit-scrollbar {
  display: none; /* 直接隐藏滚动条元素 */
}

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: 40px 20px;
}
/* 容器 */
.head-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 20px;
}

/* 导航栏 */
header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.5));
    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: 80px;
    flex: 1;
    min-height: calc(100vh - 80px);
}

/* 展开区域 */
.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;
    padding-bottom: 30px;
    background-color: #f7f7f7;
}

.imageflow-wrapper {
    display: flex;
    align-items: center;
    height: 100%;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.imageflow-buffer {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 10px;
    padding-right: 10px;
}

.imageflow-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.imageflow-row:last-child {
    margin-bottom: 0;
}

.imageflow-item {
    width: 180px;
    height: 180px;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.5s ease;
    will-change: transform;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
}

.imageflow-item.loaded {
    opacity: 1;
}

.imageflow-item:hover {
    transform: scale(1.1);
    z-index: 1000;
}

.imageflow-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    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.3s ease, opacity 0.3s 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;
    user-select: none;
}

.imageflow-hint a {
    color: #ccc;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.imageflow-hint a:hover {
    color: #888;
    text-decoration: underline;
}

.imageflow-hint {
    color: #ccc;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.imageflow-hint:hover {
    color: #888;
    text-decoration: underline;
}

/* 模态框样式 */
.imageflow-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.imageflow-modal-image-container {
    max-height: 80vh;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.imageflow-modal-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 5px;
}

/* 模态框信息区域 */
.imageflow-modal-info {
    margin-top: 20px;
    color: #fff;
    text-align: center;
    max-width: 80%;
}

.imageflow-modal-info h2 {
    margin-bottom: 10px;
}

/* Markdown描述样式 */
.imageflow-description {
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.imageflow-description p {
    margin-bottom: 10px;
}

.imageflow-description p:last-child {
    margin-bottom: 0;
}

.imageflow-description a {
    color: #4a9eff;
    text-decoration: underline;
}

.imageflow-description a:hover {
    color: #7bbaff;
}

.imageflow-description u {
    text-decoration: underline;
}

.imageflow-description strong,
.imageflow-description b {
    font-weight: bold;
}

.imageflow-description em,
.imageflow-description i {
    font-style: italic;
}

.imageflow-description code {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.imageflow-description pre {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 10px 0;
}

.imageflow-description pre code {
    background-color: transparent;
    padding: 0;
}

.imageflow-description ul,
.imageflow-description ol {
    margin: 10px 0;
    padding-left: 30px;
}

.imageflow-description li {
    margin: 5px 0;
}

.imageflow-description blockquote {
    border-left: 4px solid #4a9eff;
    padding-left: 15px;
    margin: 10px 0;
    color: #ccc;
}

.imageflow-description hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 20px 0;
}

/* 概率计算器模态框 */
.imageflow-probability-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.imageflow-probability-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.imageflow-probability-content {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.imageflow-probability-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.imageflow-probability-close:hover {
    color: #333;
}

.imageflow-probability-content h2 {
    margin: 0 0 1.5rem 0;
    font-size: 1.3rem;
    color: #333;
}

.imageflow-probability-content .control-group {
    margin: 1.5rem 0;
}

.imageflow-probability-content .slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.8rem 0;
}

.imageflow-probability-content input[type="range"] {
    flex: 1;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
}

.imageflow-probability-content .value-display {
    width: 50px;
    text-align: center;
    font-weight: 500;
    color: #666;
}

.imageflow-probability-content .progress-bar {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.imageflow-probability-content .progress-fill {
    height: 100%;
    background: #2196F3;
    width: 0%;
    transition: width 0.3s ease;
}

.imageflow-probability-content .probability-text {
    text-align: center;
    margin: 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2196F3;
}

/* 页脚 */
footer {
    background-color: #eee;
    padding: 5px 0;
    text-align: center;
    font-size: 12px;
    color: #999;
}

/* 旧的模态框样式（保留兼容） */
.imageflow-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.imageflow-modal-image-container {
    max-height: 80vh;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.imageflow-modal-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 5px;
}

/* 模态框信息区域 */
.imageflow-modal-info {
    margin-top: 20px;
    color: #fff;
    text-align: center;
    max-width: 80%;
}

.imageflow-modal-info h2 {
    margin-bottom: 10px;
}

/* Markdown描述样式 */
.imageflow-description {
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.imageflow-description p {
    margin-bottom: 10px;
}

.imageflow-description p:last-child {
    margin-bottom: 0;
}

.imageflow-description a {
    color: #4a9eff;
    text-decoration: underline;
}

.imageflow-description a:hover {
    color: #7bbaff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .site-links {
        flex-direction: column;
        align-items: center;
    }
    
    .site-link {
        width: 100%;
        max-width: 300px;
    }

    .imageflow-item {
        width: 100px;
        height: 100px;
    }
}
