/* --- 果儿新版：图文内容卡片样式 (非时间轴) --- */

/* 1. 文章主内容卡片盒子 (Card Box) */
.article-card-box {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 3rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.article-card-box:hover {
    transform: translateY(-3px); /* 悬浮时轻微上浮，表示卡片很开心！ */
}

/* 2. 图片样式限制 (阿白老爷的要求) */
.article-card-box img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 0.5rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.article-card-box img:hover {
    transform: scale(1.02); 
}

/* --- 图片尺寸选择器 (新增) --- */

/* 小图：适合插图或装饰，或当作人物头像 */
.article-card-box img.img-small {
    max-width: 250px; 
}

/* 大图：适合重要的、需要突出展示的图片 (相当于之前650px的尺寸) */
.article-card-box img.img-large {
    max-width: 650px; 
}

/* 全宽图：占满卡片盒子的宽度，适用于背景图或分割线图 */
.article-card-box img.img-full {
    max-width: 100%; /* 占满卡片盒子 (800px) 的 100% */
    /* 全宽图片不需要居中，margin调整一下 */
    margin-left: 0;
    margin-right: 0;
}

/* 4. 图文并茂的浮动样式 (这个保持不变) */
.float-left {
    float: left;
    margin: 0 1.5rem 1rem 0; 
    width: 40%; 
    max-width: 300px; 
    border-radius: 10px; 
}

/* 清除浮动，确保后面的段落不会被前面浮动的图片干扰 */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}
/* 3. 标题和段落样式调整 (恢复分割线) */
.article-card-box h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: #fff;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
}

.article-card-box p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Add a wrapper to control the width */
.container {
    max-width: 900px;
    margin: 2rem auto;
}

/* Image Gallery Styles */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5%; /* Creates space between images */
    margin-bottom: 2rem;
}

.gallery-link {
    flex: 0 0 32%; /* Three items per row, accounting for gap */
    margin-bottom: 1.5%; /* Space below if wrapping */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-link:hover img {
    transform: scale(1.05);
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1001;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: #bbb;
}


/* Access Gate Styles */
#access-gate {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    transition: opacity 0.5s ease;
}

.gate-container {
    text-align: center;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.gate-prompt {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.gate-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.gate-input {
    padding: 12px 50px 12px 20px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1rem;
    width: 300px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.gate-input:focus {
    outline: none;
    border-color: #4a90e2;
}

.gate-submit-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.gate-submit-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.gate-options {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.gate-options label {
    cursor: pointer;
    margin-left: 8px;
}

.gate-options input[type="checkbox"] {
    cursor: pointer;
}
