* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: "Microsoft YaHei", Arial, sans-serif; background: #f5f2eb; color: #333; }

.logo-banner {
    height: 120px;
    display: flex;
    align-items: center;
    background-image: url('/images/logo-front.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.logo-banner-inner { max-width: 1330px; width: 100%; margin: 0 auto; }
.logo-banner-inner span { font-size: 40px; font-weight: bold; letter-spacing: 8px; color: #d4af37; }

.navbar {
    background: linear-gradient(90deg, #5c1a1a 0%, #8b0000 100%);
    border-bottom: 2px solid #d4af37;
}
.navbar .container {
    max-width: 1330px; margin: 0 auto; display: flex; padding: 0;
    justify-content: space-around;
}
.navbar a {
    display: block; text-align: center;
    padding: 14px 0; color: #f0d78c; text-decoration: none;
    font-size: 15px; border-right: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
    flex: 1;
}
.navbar a:last-child { border-right: none; }
.navbar a:hover { background: #f0d78c; color: #8b0000; }
.navbar a.active { background: #f0d78c; color: #8b0000; }

.content-panel { display: none; }
.content-panel.active { display: block; }

.main-row {
    display: flex; gap: 30px; margin: 40px auto; width: fit-content; align-items: stretch; height: 550px;
}

.artist-box {
    width: 650px; height: 100%; background: #fff; border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1); overflow: hidden; position: relative;
}
.slide-container { position: relative; width: 100%; height: 100%; }
.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 0.6s;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    pointer-events: none; background: transparent; 
}
.slide.active { opacity: 1; pointer-events: auto;}
.slide a { display: block; width: 100%; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.slide .caption {
    position: absolute; bottom: 40px; left: 0; width: 100%;
    text-align: center; font-size: 24px; font-weight: bold; color: #fff;
    background: rgba(0,0,0,0.5); padding: 6px 0; z-index: 5;
}
.dots {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 10px; z-index: 10;
}
.dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(128,128,128,0.6); cursor: pointer; transition: background 0.3s;
}
.dot.active { background: rgba(255,0,0,0.8); }

.arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    color: rgba(255,255,255,0.8); font-size: 24px; font-weight: normal;
    width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; cursor: pointer; z-index: 20; user-select: none;
    transition: background 0.3s, color 0.3s;
    background: rgba(0,0,0,0.2);
}
.arrow:hover { background: rgba(212,175,55,0.7); color: #fff; }
.arrow-left { left: 10px; }
.arrow-right { right: 10px; }

.login-box {
    width: 650px; height: 100%; background: #fff; border-radius: 12px; padding: 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 30px;
}
.login-bg { width: 280px; height: auto; border-radius: 8px; object-fit: cover; }
.login-form { width: 320px; display: flex; flex-direction: column; align-items: center; }
.login-form h3 {
    font-size: 1.5em; font-weight: bold; color: #d4af37; text-align: center; margin-bottom: 20px;
}
.login-form input {
    width: 100%; padding: 10px; margin: 10px 0; border: 1px solid #ddd; border-radius: 6px;
}
.login-form button {
    width: 100%; padding: 10px; background: #d4af37; border: none; color: #fff;
    border-radius: 6px; cursor: pointer; margin-top: 10px;
}
.captcha-row { display: flex; align-items: center; gap: 10px; width: 100%; margin: 10px 0; }
.captcha-row input { flex: 1; margin: 0; }
.captcha-row img { height: 40px; cursor: pointer; border-radius: 4px; border: 1px solid #ddd; }
.error { color: red; text-align: center; margin-bottom: 10px; }
.success { color: green; text-align: center; margin-bottom: 10px; }

.section-title {
    display: flex; justify-content: space-between; align-items: center;
    width: 1330px; margin: 30px auto 20px;
}
.section-title h2 {
    font-size: 24px; color: #8b0000; border-left: 5px solid #d4af37; padding-left: 12px;
    margin-left: 20px;
}
.section-title a {
    color: #8b0000; text-decoration: none; font-size: 14px; margin-right: 20px;
}

.exhibit-grid {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px;
    width: 1330px; margin: 0 auto 40px;
}
.exhibit-item {
    background: #fff; border-radius: 8px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); text-align: center;
}
.exhibit-item img { width: 100%; height: 220px; object-fit: cover; cursor: pointer; }
.exhibit-item .info { padding: 10px; font-size: 14px; font-weight: bold; }

.info-panel {
    max-width: 1330px; margin: 40px auto; background: #fff; padding: 40px;
    border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.info-panel h2 {
    color: #8b0000;
    border-left: 5px solid #d4af37;
    border-right: 5px solid #d4af37;
    padding-left: 12px;
    padding-right: 12px;
    text-align: center;
    margin-bottom: 20px;
}
.info-panel p { line-height: 1.8; color: #555; }

.strip-logo { text-align: center; margin: 30px 0; }
.strip-logo img { max-width: 100%; height: auto; }

.footer-links { display: flex; justify-content: center; gap: 40px; margin: 30px 0; }
.footer-links a { color: #666; text-decoration: none; font-size: 14px; }

.friendship {
    padding: 20px;                /* 上下左右统一20px */
    border-top: 1px solid #ddd;
    max-width: 1330px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px 15px;                /* 行间距5px，列间距15px */
    background: transparent;
}
.friendship h4 {
    color: #8b0000;
    margin: 0;                    /* 移除默认margin，标题间距完全由gap控制 */
    font-size: 14px;
    width: 100%;
    text-align: center;
}
.friendship a {
    color: #8b0000;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    transition: color 0.2s;
}
.friendship a:hover {
    color: #d4af37;
}

.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 1000; align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }

.modal-content {
    background: #fff; border-radius: 12px; padding: 30px; width: 90%; max-width: 900px;
    max-height: 80vh; overflow-y: auto; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative; animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.modal-close {
    position: absolute; top: 10px; right: 15px; font-size: 28px; font-weight: bold;
    color: #999; cursor: pointer; transition: color 0.2s; background: none; border: none; line-height: 1;
}
.modal-close:hover { color: #333; }
.modal-content h2 {
    color: #8b0000;
    border-left: 5px solid #d4af37;
    border-right: 5px solid #d4af37;
    padding-left: 12px;
    padding-right: 12px;
    text-align: center;
    margin-bottom: 20px;
}

.modal-content p {
    font-size: 12px;
    line-height: 1.8;
    color: #555;
}

/* 图片导航按钮 */
.image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    font-size: 36px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}
.image-nav:hover { background: rgba(212,175,55,0.7); }
#prevImage { left: 15px; }
#nextImage { right: 15px; }

/* 图片查看器容器 */
.image-viewport {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
    background: transparent;
    border-radius: 8px;
    margin: 0 auto;
}
.image-viewport img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.1s ease;
    cursor: grab;
}
.image-viewport img:active {
    cursor: grabbing;
}

/* 缩放控制栏 */
.zoom-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}
.zoom-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    border: 1px solid #ccc;
    font-size: 24px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}
.zoom-btn:hover {
    background: #d4af37;
    color: #fff;
    border-color: #d4af37;
}

/* 艺术家之声详情内容容器 */
.artist-voice-content {
    white-space: pre-wrap;   /* 保留空格、换行，同时自动换行 */
    word-wrap: break-word;
    line-height: 1.8;
    color: #555;
}
.artist-voice-content p {
    margin: 8px 0;
}
.artist-voice-content img {
    margin-bottom: 5px;    /* 图片底部只留 5px 呼吸感 */
}
.artist-voice-content p:first-of-type {
    margin-top: 0;         /* 紧跟图片的第一个段落顶部不留空白 */
}
.artist-detail { max-width: 600px; margin: 40px auto; }
.artist-detail img { max-width: 100%;  border-radius: 8px; margin-bottom: 20px; }

/* ========== 网站底部备案号 ========== */
.site-footer {
    text-align: center;
    padding: 20px 0;
    background: #f5f2eb;
    border-top: 1px solid #e0d8c8;
    margin-top: 20px;
}
.site-footer .icp-record {
    color: #939393;
    font-size: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}
.site-footer .icp-record:hover {
    color: #8b0000;
}
.site-footer .icp-record .icp-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23939393"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-0.5 15h-1v-1h1v1zm1-3.5c0 0.28-0.22 0.5-0.5 0.5s-0.5-0.22-0.5-0.5v-4c0-0.28 0.22-0.5 0.5-0.5s0.5 0.22 0.5 0.5v4z"/></svg>') no-repeat center;
    background-size: contain;
    vertical-align: middle;
}
.site-footer .icp-record:hover .icp-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%238b0000"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-0.5 15h-1v-1h1v1zm1-3.5c0 0.28-0.22 0.5-0.5 0.5s-0.5-0.22-0.5-0.5v-4c0-0.28 0.22-0.5 0.5-0.5s0.5 0.22 0.5 0.5v4z"/></svg>');
}

/* 公安备案号样式 */
.site-footer .ga-record {
    color: #939393;
    font-size: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 10px;          /* 与 ICP 备案号保持间距 */
    transition: color 0.2s;
}
.site-footer .ga-record:hover {
    color: #8b0000;
}
.site-footer .ga-record .ga-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

/* 全局默认隐藏汉堡按钮 */
.mobile-menu-toggle {
    display: none;
}

/* ================= 平板端适配 (最大宽度 1024px) ================= */
@media (max-width: 1024px) {
    .main-row {
        flex-direction: column;
        width: 90%;
        height: auto;
        gap: 20px;
        margin: 30px auto;
    }
    .artist-box,
    .login-box {
        width: 100%;
        height: auto;
    }
    .artist-box {
        height: 60vw;
    }
    /* 平板端依然保持左右布局，不改为纵向 */
    .login-box {
        flex-direction: row;        /* 左右排列 */
        padding: 20px;
        gap: 20px;
    }
    .login-bg {
        width: 180px;               /* 适当缩小图片 */
    }
    .login-form {
        width: auto;                /* 表单宽度自适应剩余空间 */
        flex: 1;
    }
    .section-title {
        width: 90%;
        margin: 30px auto 20px;
    }
    .exhibit-grid {
        width: 90%;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    .info-panel {
        width: 90%;
        margin: 30px auto;
        padding: 30px;
    }
    .navbar a {
        font-size: 14px;
        padding: 12px 0;
    }
    .logo-banner {
        height: 100px;
    }
    .logo-banner-inner span {
        font-size: 32px;
        letter-spacing: 6px;
    }
}

/* ================= 手机端适配 (最大宽度 768px) ================= */
@media (max-width: 768px) {
    .navbar {
        position: relative;        /* 仅为移动端设置相对定位 */
    }
    .logo-banner {
        height: 80px;
    }
    .logo-banner-inner span {
        font-size: 24px;
        letter-spacing: 3px;
        padding: 0 10px;
        display: block;
    }
    /* 导航栏转为汉堡菜单 */
    .navbar .container {
        display: none;            /* 默认隐藏链接 */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(90deg, #5c1a1a 0%, #8b0000 100%);
        z-index: 100;
        border-top: 2px solid #d4af37;
    }
    .navbar .container.active {
        display: flex;
    }
    .navbar .container a {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.15);
        padding: 12px 0;
        font-size: 16px;
        text-align: center;
    }
    .mobile-menu-toggle {
        display: block;
        background: transparent;
        border: none;
        color: #f0d78c;
        font-size: 28px;
        line-height: 1;
        padding: 10px 20px;
        cursor: pointer;
        margin: 0 auto;
        text-align: center;
    }
    .mobile-menu-toggle:hover {
        color: #fff;
    }

    .main-row {
        width: 95%;
        gap: 15px;
        margin: 20px auto;
    }
    .artist-box {
        height: 70vw;
    }
    .slide .caption {
        font-size: 18px;
        bottom: 30px;
    }

    /* 手机端改为上下排列，并隐藏左侧图片 */
    .login-box {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }
    .login-bg {
        display: none;               /* 手机默认模式隐藏图片 */
    }
    .login-form {
        width: 100%;
    }
    .login-form h3 {
        font-size: 1.3em;
    }
    .exhibit-grid {
        width: 95%;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .exhibit-item img {
        height: 160px;
    }
    .section-title {
        width: 95%;
    }
    .section-title h2 {
        font-size: 20px;
        margin-left: 10px;
    }
    .section-title a {
        margin-right: 10px;
    }
    .info-panel {
        width: 95%;
        margin: 20px auto;
        padding: 20px;
    }
    .info-panel h2 {
        font-size: 1.5em;
    }
    .footer-links {
        flex-wrap: wrap;
        gap: 20px;
    }
    .friendship {
        max-width: 95%;
        padding: 16px 10px;
        gap: 16px 10px;               /* 手机端间距适当缩小，但仍保持统一 */
    }
    .friendship a {
        font-size: 13px;
    }

    /* 图片查看器适配 */
    .image-viewport {
        height: 50vh;
    }
    .modal-content {
        width: 95%;
        padding: 20px;
    }

    /* 新增公安备案适配 */
    .site-footer .ga-record {
        font-size: 11px;
        margin-left: 10px;
        color: #939393 !important;
        text-decoration: none !important;
    }
    .site-footer .ga-record .ga-icon {
        width: 14px;
        height: 14px;
    }
}

/* ================= 小屏手机 (最大宽度 480px) ================= */
@media (max-width: 480px) {
    .exhibit-grid {
        grid-template-columns: 1fr;
    }
    .artist-box {
        height: 90vw;
    }
    .slide .caption {
        font-size: 16px;
        bottom: 20px;
    }
    .dots {
        bottom: 10px;
    }
}
