:root {
    --primary-color: #2c3e50;
    --secondary-color: #7f8c8d;
    --accent-color: #e0c9a6;
    --light-color: #f9f5f0;
    --text-color: #333;
    --text-light: #7f8c8d;
}

/* =============== 基础样式 =============== */
body {
    font-family: 'Noto Serif SC', serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* =============== 艺术容器布局 =============== */
.art-container {
    width: 80vw;
    max-width: none;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    min-height: 80vh;
    border-radius: 8px;
    overflow: hidden;
    padding: 20px 0;
}

.art-image {
    position: relative;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    cursor: zoom-in;
}

.art-image img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border-radius: 6px;
    user-select: none;
    -webkit-user-drag: none;
}

.art-image img:hover {
    transform: scale(1.01);
}

/* =============== 全屏预览层 =============== */
.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: zoom-out;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.fullscreen img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    animation: fadeIn 0.3s ease;
    border-radius: 6px;
    user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
    transform-origin: center center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.close-btn:hover {
    transform: rotate(90deg);
    color: var(--accent-color);
}

/* =============== 作品详情 =============== */
.art-details {
    padding: 40px 30px 40px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.art-title {
    font-size: 2.4rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    position: relative;
}

.art-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
    border-radius: 2px;
}


.art-meta {
    margin: 30px 0;
    font-size: 1.2rem;
    color: var(--text-light);
}

.art-meta-item {
    margin-bottom: 12px;
    display: flex;
}

.art-meta-item strong {
    width: 90px;
    display: inline-block;
    color: var(--primary-color);
}
.art-meta-item span {
    color: #333;  
    font-weight: normal;  
}



.art-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
    padding-right: 30px;
}

.art-number {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 1.3rem;
    color: var(--secondary-color);
    font-weight: 500;
}


/* =============== 导航按钮 =============== */
.art-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(44, 62, 80, 0.1);
    gap: 15px;
}

.nav-button,
.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.nav-button {
    color: white;
    background-color: var(--primary-color);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.nav-button:hover {
    background-color: #3a516b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.back-link {
    color: var(--primary-color);
    background-color: var(--accent-color);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.back-link:hover {
    background-color: #d4b98c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* 合并按钮图标样式 */
.nav-button svg,
.back-link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.nav-button:hover svg,
.back-link:hover svg {
    transform: translateX(-2px);
}




@media (max-width: 992px) {
    .art-container {
        grid-template-columns: 1fr;
        width: 95%;
        margin: 20px auto;
        gap: 0;
    }

    .art-number {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    margin: 2px 0 2px 0;        /* 上下紧凑外边距 */
    padding: 0 8px;             /* 减少左右内边距 */
    text-align: center;
    font-size: 1rem;            /* 较小字体 */
    line-height: 1.2;           /* 紧凑行高 */
    color: var(--secondary-color);
    font-weight: 500;
    z-index: 10;
    }


    .art-details {
        padding: 30px;
    }

    .art-image {
        padding: 0;
    }

    .art-image img {
        width: 95%;
        height: auto;
        max-width: 95%;
        max-height: none;
        object-fit: contain;
    }

    .art-title {
        font-size: 1.6rem;
    }

    .art-description {
        font-size: 1rem;
        padding-right: 0;
    }

    .art-meta {
        font-size: 0.95rem;
    }

    .fullscreen {
        padding: 15px;
        overflow: auto;
    }

    .close-btn {
        top: 10px;
        right: 10px;
        font-size: 1.5rem;
    }

    .art-links {
        flex-direction: column;
        gap: 12px;
    }

    .nav-button,
    .back-link {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }

    .nav-label,
    .back-link span {
        display: inline;
    }

    .back-link::after {
        content: none;
    }
}
