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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    min-height: 100vh;
    /* 斑驳水泥墙背景 - 裂缝和条纹质感 */
    background-color: #e5e5e5;
    background-image:
        /* 基础砂砾纹理 */
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)' opacity='0.18'/%3E%3C/svg%3E"),
        /* 线性条纹 - 模拟水泥涂刷痕迹 - 偏向左侧 */
        linear-gradient(45deg, transparent 45%, rgba(160, 160, 160, 0.3) 45%, rgba(160, 160, 160, 0.3) 55%, transparent 55%),
        linear-gradient(135deg, transparent 48%, rgba(150, 150, 150, 0.25) 48%, rgba(150, 150, 150, 0.25) 52%, transparent 52%),
        linear-gradient(60deg, transparent 40%, rgba(170, 170, 170, 0.2) 40%, rgba(170, 170, 170, 0.2) 45%, transparent 45%),
        linear-gradient(120deg, transparent 55%, rgba(155, 155, 155, 0.22) 55%, rgba(155, 155, 155, 0.22) 60%, transparent 60%),
        /* 水平条纹 - 模拟水泥层 */
        linear-gradient(90deg, transparent 30%, rgba(145, 145, 145, 0.15) 30%, rgba(145, 145, 145, 0.15) 70%, transparent 70%),
        linear-gradient(90deg, transparent 20%, rgba(165, 165, 165, 0.12) 20%, rgba(165, 165, 165, 0.12) 80%, transparent 80%),
        /* 垂直细微裂纹 */
        linear-gradient(180deg, transparent 45%, rgba(140, 140, 140, 0.08) 45%, rgba(140, 140, 140, 0.08) 55%, transparent 55%),
        /* 不规则斑块 - 少量使用 */
        linear-gradient(110deg, transparent 35%, rgba(130, 130, 130, 0.1) 35%, rgba(130, 130, 130, 0.1) 40%, transparent 40%),
        linear-gradient(70deg, transparent 60%, rgba(125, 125, 125, 0.08) 60%, rgba(125, 125, 125, 0.08) 65%, transparent 65%),
        /* 细小噪点 */
        url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise2'%3E%3CfeTurbulence type='turbulence' baseFrequency='2.0' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise2)' opacity='0.06'/%3E%3C/svg%3E");
    background-blend-mode: multiply, normal, normal, normal, normal, normal, normal, normal, normal, normal, normal;
    background-position: 25% center;
}

/* 固定头部 */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(245, 245, 245, 0.9);
    backdrop-filter: blur(10px);
}

.artist-name {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #333;
    text-decoration: none;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: color 0.3s;
    text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
    color: #333;
}

/* 语言切换按钮 */
.lang-switch {
    display: flex;
    gap: 8px;
}

.lang-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: rgba(255, 255, 255, 0.5);
    color: #666;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.8);
}

.lang-btn.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* 英文模式下隐藏中文Bio */
.bio-english {
    display: block;
}

body.lang-zh .bio-english {
    display: none;
}

body.lang-en .bio-english {
    display: block;
}

body.lang-en .bio-chinese {
    display: none;
}

body.lang-zh .bio-chinese {
    display: block;
}

/* Portfolio容器 */
.portfolio-container {
    padding: 120px 40px 60px;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
}

/* 左侧导览栏 */
.sidebar {
    width: 200px;
    flex-shrink: 0;
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sidebar-section {
    margin-bottom: 40px;
}

.sidebar-section h3 {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 15px;
    color: #666;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav-item {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
    padding: 5px 0;
}

.sidebar-nav-item:hover,
.sidebar-nav-item.active {
    color: #333;
}

/* 主内容区 */
.main-content {
    flex: 1;
}

/* 筛选标签 */
.filter-section {
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid #ddd;
    background: rgba(255, 255, 255, 0.5);
    color: #666;
    font-size: 13px;
    cursor: default;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.filter-btn.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* 作品网格 */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.artwork-item {
    position: relative;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.artwork-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.artwork-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.artwork-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s;
}

.artwork-item:hover .artwork-info {
    opacity: 1;
}

.artwork-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.artwork-year {
    font-size: 12px;
    opacity: 0.8;
}

/* About页面 */
.about-container {
    padding: 120px 40px 60px;
    max-width: 800px;
    margin: 0 auto;
}

.about-content h1 {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

.about-section {
    margin-bottom: 40px;
}

.about-section h2 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: 0.3px;
}

.about-section p {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

/* Exhibitions页面 */
.exhibitions-container {
    padding: 120px 40px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.exhibitions-grid {
    display: grid;
    gap: 40px;
}

.exhibition-item {
    background: rgba(255, 255, 255, 0.7);
    padding: 30px;
    border-radius: 4px;
}

.exhibition-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: 0.3px;
}

.exhibition-description {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.exhibition-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.exhibition-images img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s;
}

.exhibition-images img:hover {
    transform: scale(1.05);
}

.exhibition-list {
    display: grid;
    gap: 15px;
}

.exhibition-list-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

.exhibition-list-item-info {
    flex: 1;
}

.exhibition-list-item-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.exhibition-list-item-desc {
    font-size: 12px;
    color: #666;
}

/* Admin页面 */
.admin-container {
    padding: 120px 40px 60px;
    max-width: 900px;
    margin: 0 auto;
}

.admin-section {
    background: rgba(255, 255, 255, 0.7);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.admin-section h2 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #666;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    background: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #333;
}

.btn-primary {
    padding: 12px 30px;
    background: #333;
    color: #fff;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    background: #555;
}

.artwork-list {
    display: grid;
    gap: 15px;
}

.artwork-list-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

.artwork-list-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.artwork-list-item-info {
    flex: 1;
}

.artwork-list-item-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.artwork-list-item-desc {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.btn-delete {
    padding: 6px 15px;
    background: #ff4444;
    color: #fff;
    border: none;
    font-size: 12px;
    cursor: pointer;
    text-transform: uppercase;
}

.btn-delete:hover {
    background: #cc0000;
}

/* 响应式 */
@media (max-width: 768px) {
    .fixed-header {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        gap: 20px;
    }

    .portfolio-container,
    .about-container,
    .admin-container {
        padding: 100px 20px 40px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .portfolio-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
        margin-bottom: 30px;
    }

    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }
}

/* 密码验证界面 */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(245, 245, 245, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.password-container {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%;
}

.password-container h2 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 25px;
    letter-spacing: 0.3px;
    text-align: center;
}

.password-container .form-group {
    margin-bottom: 20px;
}

.password-container .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #666;
}

.password-container input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: border-color 0.3s;
}

.password-container input:focus {
    outline: none;
    border-color: #333;
}

.password-container .btn-primary {
    width: 100%;
    padding: 12px;
    background: #333;
    color: #fff;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.password-container .btn-primary:hover {
    background: #555;
}

/* 全屏图片查看器 */
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    z-index: 3000;
    overflow: auto;
}

.image-viewer.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.close-viewer {
    position: fixed;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 3001;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.close-viewer:hover {
    opacity: 1;
}

.zoom-in,
.zoom-out,
.zoom-reset {
    position: fixed;
    bottom: 40px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 18px;
    cursor: pointer;
    z-index: 3001;
    transition: background 0.3s;
}

.zoom-in {
    right: 160px;
}

.zoom-out {
    right: 100px;
}

.zoom-reset {
    right: 40px;
}

.zoom-in:hover,
.zoom-out:hover,
.zoom-reset:hover {
    background: rgba(255, 255, 255, 0.3);
}

.image-viewer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
}

#viewerImage {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: grab;
}

#viewerImage:active {
    cursor: grabbing;
}

.image-info {
    margin-top: 20px;
    text-align: center;
    color: #fff;
}

.image-info h3 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 10px;
}

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

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 4000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #ddd;
}

.btn-secondary {
    padding: 12px 30px;
    background: #ddd;
    color: #333;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.btn-secondary:hover {
    background: #ccc;
}

/* 作品列表操作按钮 */
.artwork-list-item-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.btn-edit {
    padding: 6px 15px;
    background: #4CAF50;
    color: #fff;
    border: none;
    font-size: 12px;
    cursor: pointer;
    text-transform: uppercase;
}

.btn-edit:hover {
    background: #45a049;
}

.btn-move-up,
.btn-move-down {
    padding: 6px 12px;
    background: #2196F3;
    color: #fff;
    border: none;
    font-size: 12px;
    cursor: pointer;
}

.btn-move-up:hover {
    background: #0b7dda;
}

.btn-move-down:hover {
    background: #0b7dda;
}
