* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000000;
    --secondary-color: #3498db;
    --text-color: #ffffff;
    --dark-gray: #000000;
    --medium-gray: #000000;
    --white: #ffffff;
    --transition: all 0.2s ease;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    text-rendering: optimizeSpeed;
}

/* 背景 */
.bg-blur {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: -1;
    will-change: background-image;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

/* 垂直标题 - BIGSHOW */
.vertical-title {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-lr;
    text-orientation: upright;
    font-size: 80px;
    font-weight: 900;
    color: rgba(150, 150, 150, 0.08);
    letter-spacing: -15px;
    z-index: 0;
    user-select: none;
    pointer-events: none;
}

/* 主内容区域 */
main {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 1000px;
    padding: 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 卡片样式 - 无边框版本 */
.image-card {
    background-color: transparent;
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

.card-header {
    padding: 10px;
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
}

.card-info {
    font-size: 14px;
    opacity: 0.8;
}

.card-content {
    position: relative;
    flex: 1;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
}

.main-image {
    width: auto;
    height: auto;
    display: block;
    max-height: 75vh;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
    cursor: pointer; /* 添加指针样式，表明可点击 */
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.1);
    color: white;
    width: 40px;
    height: 80px;
    border-radius: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 5;
    font-size: 24px;
    opacity: 0.6;
    will-change: opacity, background-color;
}

.nav-button:hover {
    background-color: rgba(52, 152, 219, 0.3);
    opacity: 1;
}

.prev-button {
    left: 0;
}

.next-button {
    right: 0;
}

.image-counter {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    z-index: 2;
}

.card-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 12px 0;
    background-color: transparent;
    border: none;
}

.action-button {
    background-color: rgba(52, 152, 219, 0.7);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.action-button i {
    margin-right: 5px;
}

.action-button:hover {
    background-color: rgba(41, 128, 185, 0.9);
}

/* 全屏图片浏览模式 */
.fullscreen-view {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fullscreen-image {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    cursor: pointer;
}

.close-fullscreen {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1002;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    transition: var(--transition);
}

.close-fullscreen:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 多图展示模式 */
.gallery-view {
    display: flex;
    flex-direction: column;
}

.gallery-content {
    overscroll-behavior: contain;
}

.gallery-item img {
    box-shadow: var(--shadow);
    backface-visibility: hidden;
}

/* 响应式调整 */
@media (max-width: 767px) {
    .vertical-title {
        display: none;
    }
    
    .nav-button {
        width: 30px;
        height: 60px;
        font-size: 18px;
    }
    
    .prev-button {
        left: 0;
    }
    
    .next-button {
        right: 0;
    }
    
    .main-image {
        max-height: 70vh;
    }
}

/* 针对触摸设备 */
@media (hover: none) {
    .nav-button {
        opacity: 0.8;
        background-color: rgba(0, 0, 0, 0.3);
    }
}

/* 针对较小高度的屏幕 */
@media (max-height: 600px) {
    .image-card {
        max-height: 95vh;
    }
    
    .card-header, .card-actions {
        padding: 5px 0;
    }
    
    .main-image {
        max-height: 80vh;
    }
}

/* 加载状态 */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.image-card.loading .main-image {
    animation: pulse 1.5s infinite;
} 