/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 副标题样式 */
.page-subtitle {
    color: #e67e22; /* 与导航栏橙色相呼应 */
    font-weight: 500;
}

/* 所有语言通用的流水式多彩效果 */
.page-subtitle, #home-subtitle, #discover-subtitle, #upload-subtitle {
    /* 流水式多彩效果 */
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ffeaa7, #ff6b6b);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbowFlow 8s ease infinite;
    
    /* 添加文字阴影增强视觉效果 */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    
    /* 让文字看起来更加流畅自然 */
    line-height: 1.3;
    font-size: 2rem;
}

/* 中文模式下的副标题特殊样式 - 行楷字体 */
body[data-language="zh"] .page-subtitle,
body[data-language="zh"] #home-subtitle,
body[data-language="zh"] #discover-subtitle,
body[data-language="zh"] #upload-subtitle {
    /* 使用行楷字体 */
    font-family: 'Ma Shan Zheng', 'ZCOOL XiaoWei', 'STKaiti', 'KaiTi', '楷体', serif;
    font-weight: normal;
}

/* 英文模式下的副标题特殊样式 - Bauer Bodoni字体 */
body[data-language="en"] .page-subtitle,
body[data-language="en"] #home-subtitle,
body[data-language="en"] #discover-subtitle,
body[data-language="en"] #upload-subtitle {
    /* 使用Bauer Bodoni字体 */
    font-family: 'Bauer Bodoni', 'Times New Roman', serif;
    font-weight: 400;
}

/* 德文模式下的副标题特殊样式 - Futura字体 */
body[data-language="de"] .page-subtitle,
body[data-language="de"] #home-subtitle,
body[data-language="de"] #discover-subtitle,
body[data-language="de"] #upload-subtitle {
    /* 使用Futura字体 */
    font-family: 'Futura', 'Futura Std', 'Helvetica Neue', sans-serif;
    font-weight: 400;
}

/* 流水彩虹动画 */
@keyframes rainbowFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(135deg, #f8e1d2 0%, #fde8c9 50%, #f8d7c9 100%);
    color: #5d4037;
    line-height: 1.6;
    min-height: 100vh;
}

/* 背景装饰元素 */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(255,250,245,0.4) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: -1;
    animation: float 15s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255,250,245,0.4) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: -1;
    animation: float 20s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10px, 10px) scale(1.05); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 卡片阴影效果 */
.card-shadow {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 1px 5px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.card-shadow:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* 导航栏样式 */
.navbar {
    background: linear-gradient(90deg, #e67e22 0%, #f39c12 100%);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.navbar-brand .logo {
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
    background: linear-gradient(45deg, #ffffff, #fff9c4, #fffde7, #ffffff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logoShine 3s ease-in-out infinite;
}

@keyframes logoShine {
    0% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
    100% {
        background-position: 0% center;
    }
}

.search-container {
    position: relative;
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
}

.navbar-menu {
    display: flex;
    gap: 15px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.language-selector {
    display: flex;
    gap: 10px;
    margin-left: 25px; /* 增加与导航菜单之间的距离 */
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.lang-btn:hover,
.lang-btn.active {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 主内容区样式 */
.main-content {
    min-height: 80vh;
    padding: 40px 0;
    position: relative;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.page-title {
    font-size: 38px;
    color: white;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #1dd1a1, #c678dd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 300% 300%;
    animation: gradient 15s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 中文模式下的标题特殊样式 - 楷体字体 */
body[data-language="zh"] #home-title,
body[data-language="zh"] #discover-title,
body[data-language="zh"] #upload-title {
    /* 使用楷体字体 */
    font-family: 'Ma Shan Zheng', 'ZCOOL XiaoWei', 'STKaiti', 'KaiTi', '楷体', serif;
    /* 字体大小进一步增大 */
    font-size: 56px;
    font-weight: normal;
    /* 文字间距，大约两个空格大小 */
    letter-spacing: 0.5em;
}

/* 英文模式下的标题特殊样式 - Bauer Bodoni字体 */
body[data-language="en"] #home-title,
body[data-language="en"] #discover-title,
body[data-language="en"] #upload-title {
    /* 使用Bauer Bodoni字体 */
    font-family: 'Bauer Bodoni', 'Times New Roman', serif;
    font-weight: 400;
    /* 字体大小调大两号 */
    font-size: 48px;
}

/* 德文模式下的标题特殊样式 - Futura字体 */
body[data-language="de"] #home-title,
body[data-language="de"] #discover-title,
body[data-language="de"] #upload-title {
    /* 使用Futura字体 */
    font-family: 'Futura', 'Futura Std', 'Helvetica Neue', sans-serif;
    font-weight: 400;
}

.page-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 首页样式 */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.category-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 320px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.3), transparent);
    color: white;
    padding: 40px 20px;
    transition: all 0.3s ease;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 50%);
    pointer-events: none;
}

.category-title {
    font-size: 28px;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #ffffff, #ffeb3b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.category-desc {
    font-size: 16px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 发现页样式 */
.discover-sections {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.discover-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(248, 215, 201, 0.5);
}

.section-title {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #3498db;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #9b59b6);
    border-radius: 3px;
}

.photo-slider {
    position: relative;
    overflow: hidden;
    height: 350px;
}

.slider-wrapper {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
    height: 100%;
}

.photo-item {
    flex: 0 0 auto;
    width: 300px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid rgba(52, 152, 219, 0.2);
}

.photo-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.photo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.photo-caption {
    padding: 15px;
    font-size: 15px;
    color: #2c3e50;
    flex: 1;
    font-weight: 500;
}

.photo-author {
    padding: 0 15px 15px;
    font-size: 13px;
    color: #3498db;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.photo-author::before {
    content: '📸';
    font-size: 14px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    color: #333;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background-color: #3498db;
    color: white;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* 上传页样式 */
.upload-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(248, 215, 201, 0.5);
}

.drop-area {
    border: 3px dashed #3498db;
    border-radius: 15px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(240,248,255,0.8) 100%);
    position: relative;
    overflow: hidden;
}

.drop-area:hover,
.drop-area.drag-over {
    border-color: #3498db;
    background-color: #f0f8ff;
}

.drop-area i {
    color: #3498db;
    margin-bottom: 20px;
    font-size: 48px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.drop-text {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.browse-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.browse-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.browse-btn:hover::before {
    left: 100%;
}

.browse-btn:hover {
    background-color: #d35400;
    transform: translateY(-2px);
}

.file-input {
    display: none;
}

.file-info {
    margin-top: 15px;
    font-size: 14px;
    color: #95a5a6;
}

.preview-container {
    position: relative;
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
}

.image-preview {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.remove-preview-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-preview-btn:hover {
    background-color: #e74c3c;
}

.upload-form {
    margin-top: 30px;
}

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

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 10px;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 200px; /* 最小高度，足够容纳约200字 */
    line-height: 1.5; /* 设置合适的行高，提高可读性 */
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
    transform: translateY(-1px);
}

.tag-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-option {
    position: relative;
    cursor: pointer;
}

.tag-input {
    position: absolute;
    opacity: 0;
}

.tag-label {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f0f0f0;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    user-select: none;
}

.tag-input:checked + .tag-label {
    background-color: #3498db;
    color: white;
}

.upload-btn {
    width: 100%;
    padding: 15px;
    background-color: #e67e22;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    background-color: #d35400;
    transform: translateY(-2px);
}

.upload-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

/* 个人主页样式 */
.profile-header {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(240,255,255,0.95) 100%);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(52,152,219,0.1) 0%, rgba(52,152,219,0) 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

/* 个人主页顶部区域 */
.profile-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.profile-avatar-container {
    position: relative;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.edit-avatar-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #9b59b6);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.edit-avatar-btn:hover {
    background-color: #2980b9;
    transform: scale(1.1);
}

.avatar-input {
    display: none;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: bold;
    background: linear-gradient(45deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 可点击昵称样式 */
.profile-name.clickable {
    cursor: pointer;
    position: relative;
    display: inline-block;
}

.profile-name.clickable:hover {
    color: #3498db;
}

.profile-name.clickable::after {
    content: '✏️';
    font-size: 16px;
    margin-left: 5px;
    opacity: 0;
    transition: opacity 0.3s;
}

.profile-name.clickable:hover::after {
    opacity: 1;
}

/* 默认简介灰度样式 */
.default-bio {
    color: #95a5a6;
    font-style: italic;
}

.profile-email {
    font-size: 16px;
    color: #95a5a6;
    font-style: italic;
    margin-bottom: 15px;
}

.profile-meta {
    margin-bottom: 20px;
}

.join-date {
    font-size: 16px;
    color: #95a5a6;
    font-style: italic;
}

.profile-bio {
    font-size: 16px;
    color: #95a5a6;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 15px;
    min-height: 60px;
}

/* 编辑个人资料按钮 */
.edit-bio-btn,
.save-bio-btn,
.cancel-bio-btn,
.logout-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.edit-bio-btn {
    background-color: #ecf0f1;
    color: #2c3e50;
}

.edit-bio-btn:hover {
    background-color: #bdc3c7;
}

/* 个人操作按钮容器 */
.profile-actions {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

/* 退出登录按钮 */
.logout-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    align-self: flex-start;
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
}

/* 隐藏元素 */
.hidden {
    display: none !important;
}

/* 图片查看器样式 */
.photo-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.photo-viewer-content {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248, 215, 201, 0.95) 100%);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.photo-viewer-header {
    padding: 15px 20px;
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.close-viewer-btn {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.close-viewer-btn:hover {
    background: linear-gradient(135deg, #d35400 0%, #e67e22 100%);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.photo-viewer-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#viewer-image {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.8);
}

.photo-viewer-info {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(248, 215, 201, 0.5);
}

#viewer-caption {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.6;
    font-weight: 500;
}

#viewer-author {
    font-size: 16px;
    color: #e67e22;
    font-weight: 600;
    font-style: italic;
}

/* 评论区域样式 */
.photo-viewer-comments {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.comments-title {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.comments-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #e67e22 0%, #f39c12 100%);
    border-radius: 3px;
}

.comment-form {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#comment-input {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 2px solid rgba(230, 126, 34, 0.3);
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

#comment-input:focus {
    outline: none;
    border-color: #e67e22;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
    transform: translateY(-2px);
}

#comment-input::placeholder {
    color: #95a5a6;
    font-style: italic;
}

.submit-comment-btn {
    align-self: flex-start;
    padding: 12px 24px;
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.submit-comment-btn:hover {
    background: linear-gradient(135deg, #d35400 0%, #e67e22 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.submit-comment-btn:active {
    transform: translateY(0);
}

/* 评论列表样式 */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(248, 215, 201, 0.5);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.comment-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.9);
}

.comment-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(248, 215, 201, 0.5);
}

.delete-comment-btn {
    background-color: #ff4d4f;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.delete-comment-btn:hover {
    background-color: #ff7875;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.comment-author {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.comment-time {
    font-size: 14px;
    color: #95a5a6;
    font-style: italic;
}

.comment-content {
    font-size: 16px;
    color: #34495e;
    line-height: 1.6;
    word-wrap: break-word;
}

/* 无评论提示 */
.no-comments {
    text-align: center;
    color: #95a5a6;
    font-style: italic;
    padding: 40px 20px;
    font-size: 16px;
}

/* 响应式设计调整 */
@media (max-width: 768px) {
    .photo-viewer-comments {
        margin-top: 20px;
        padding-top: 20px;
    }
    
    .comments-title {
        font-size: 18px;
    }
    
    #comment-input {
        min-height: 80px;
        padding: 12px;
        font-size: 14px;
    }
    
    .submit-comment-btn {
        padding: 10px 20px;
        font-size: 14px;
        align-self: stretch;
    }
    
    .comment-item {
        padding: 15px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .comment-author {
        font-size: 15px;
    }
    
    .comment-time {
        font-size: 13px;
    }
    
    .comment-content {
        font-size: 14px;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .photo-viewer-content {
        width: 95%;
        max-height: 95vh;
        margin: 10px;
    }
    
    .photo-viewer-body {
        padding: 15px;
    }
    
    #viewer-caption {
        font-size: 16px;
    }
    
    #viewer-author {
        font-size: 14px;
    }
}

.logout-btn:hover {
    background-color: #c0392b;
}

.logout-btn i {
    margin-right: 5px;
}

/* 保存和取消按钮 */
.save-bio-btn {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    box-shadow: 0 3px 10px rgba(39, 174, 96, 0.3);
}

.save-bio-btn:hover {
    background-color: #d35400;
}

.cancel-bio-btn {
    background-color: #95a5a6;
    color: white;
}

.cancel-bio-btn:hover {
    background-color: #7f8c8d;
}

.bio-editor {
    margin-top: 15px;
}

.bio-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 10px;
    resize: vertical;
}

.save-bio-btn {
    background-color: #e67e22;
    color: white;
}

.save-bio-btn:hover {
    background-color: #229954;
}

.cancel-bio-btn {
    background-color: #e74c3c;
    color: white;
}

.cancel-bio-btn:hover {
    background-color: #c0392b;
}

.user-photos {
    background: rgba(255, 255, 255, 0.95);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(248, 215, 201, 0.5);
}

.photos-title {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
}

/* 移除绿色条样式 */
/* .photos-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
} */

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.user-photo-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.9);
}

.user-photo-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.user-photo-item:hover {
    transform: translateY(-5px);
}

.user-photo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.photo-desc {
    padding: 15px;
    font-size: 15px;
    color: #2c3e50;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    font-weight: 500;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.delete-photo-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.user-photo-item:hover .delete-photo-btn {
    opacity: 1;
}

.delete-photo-btn:hover {
    background-color: #c0392b;
    transform: scale(1.1);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(240,255,255,0.98) 100%);
    padding: 45px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 48%, rgba(52,152,219,0.05) 50%, transparent 52%);
    transform: rotate(45deg);
    animation: shimmer 5s linear infinite;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #7f8c8d;
    transition: color 0.3s ease, transform 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.close-modal:hover {
    color: #e74c3c;
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.9);
}

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

.modal-title {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
    background: linear-gradient(45deg, #3498db, #9b59b6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

.modal-subtitle {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 30px;
    text-align: center;
}

.login-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.login-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.login-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(230, 126, 34, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.login-btn:hover {
    background-color: #d35400;
    transform: translateY(-2px);
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    padding: 18px 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    z-index: 3000;
    animation: slideIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 400px;
}

.notification.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.notification.warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.notification.error {
    background-color: #e74c3c;
}

.notification.warning {
    background-color: #f39c12;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.hidden {
    display: none;
}

/* 全局评论容器样式 */
.global-comments-container {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 全局评论标题样式 */
.global-comments-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

/* 全局评论列表样式 */
.global-comments-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

/* 调整全局评论列表的滚动条样式 */
.global-comments-list::-webkit-scrollbar {
    width: 6px;
}

.global-comments-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.global-comments-list::-webkit-scrollbar-thumb {
    background: #ff8c00;
    border-radius: 3px;
}

.global-comments-list::-webkit-scrollbar-thumb:hover {
    background: #ff7000;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .photo-viewer-comments {
        padding: 15px;
    }
    
    .comments-title {
        font-size: 16px;
    }
    
    #comment-input {
        font-size: 14px;
    }
    
    .submit-comment-btn {
        font-size: 14px;
        padding: 8px 16px;
    }
    
    .comments-list {
        max-height: 300px;
    }
    
    /* 全局评论响应式样式 */
    .global-comments-container {
        padding: 15px;
    }
    
    .global-comments-title {
        font-size: 16px;
    }
    
    .global-comments-list {
        max-height: 300px;
    }
}

/* 辅助类 */
.hidden {
    display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .search-container {
        order: 3;
        margin: 0;
        width: 100%;
    }
    
    .navbar-menu {
        gap: 10px;
    }
    
    .nav-link span {
        display: none;
    }
    
    .language-selector {
        gap: 5px;
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-card {
        height: 250px;
    }
    
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }
    
    .profile-avatar {
        width: 120px;
        height: 120px;
    }
    
    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .photo-item {
        width: 250px;
    }
    
    .upload-container {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 24px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    .profile-name {
        font-size: 24px;
    }
    
    .photos-grid {
        grid-template-columns: 1fr;
    }
    
    .photo-slider {
        height: 300px;
    }
    
    .photo-item {
        width: 200px;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
}