/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    height: 100vh;
    overflow: hidden;
}

/* 导航栏 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 60px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    z-index: 100;
}

.nav-brand a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    width: auto;
    height: auto;
    max-height: 48px;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin-left: 0;
    margin-right: auto;
    padding-left: 1rem;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    font-weight: 400;
    transition: color 0.3s ease;
}

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

/* 备案信息 */
.beian-info {
    margin-left: auto;
    margin-right: 0.5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.beian-text {
    font-size: 10px;
    color: #888;
    line-height: 1.2;
    white-space: nowrap;
}

/* 语言切换按钮 */
.language-switch {
    margin-right: 1rem;
}

.lang-btn {
    padding: 6px 14px;
    border: none;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.06);
    color: #333;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(0, 0, 0, 0.12);
    transform: scale(1.05);
}

.lang-btn:active {
    transform: scale(0.98);
}

/* 主内容区域 */
.main-content {
    height: calc(100vh - 60px);
    overflow: hidden;
    background: #fff;
    position: relative;
    z-index: 1;
}

/* 三栏布局 - 默认flex */
.three-column-layout {
    display: flex;
    height: 100%;
    position: relative;
    align-items: flex-start;
}

/* ==================== 区域1：左侧正方形 ==================== */
.area-left {
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    height: 100%;
    border: 1px solid #e0e0e0;
}

.photo-display-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 25px 60px 25px;
    box-sizing: border-box;
    position: relative;
}

.main-photo-display {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
    background: #000;
    box-shadow: 4px 4px 8px rgba(0,0,0,0.6);
}

.main-photo-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}


/* 相机品牌Logo区域 */
/* 相机信息区域：Logo + EXIF文本 */
.camera-info {
    position: absolute;
    bottom: 5px;
    left: 25px;
    right: 145px;
    height: 40px;
    z-index: 5;
    display: none; /* 默认隐藏 */
    align-items: center;
}

.camera-info.visible {
    display: flex;
}

.camera-info img {
    height: 40px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

/* EXIF文本 */
.exif-text {
    margin-left: 12px;
    flex: 1;
    min-width: 0;
}

.exif-line1 {
    font-size: 0.85rem;
    color: #333;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.exif-line2 {
    font-size: 0.85rem;
    color: #333;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: none;
}

/* 地点显示区域 */
.location-info {
    position: absolute;
    bottom: 15px;
    right: 25px;
    z-index: 5;
    display: none;
    align-items: center;
    font-size: 0.85rem;
    color: #333;
}

.location-info.visible {
    display: flex;
}

.location-icon {
    margin-right: 4px;
    font-size: 0.9rem;
    color: #e74c3c;
}

#locationText {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.photo-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: transparent;
    color: #fff;
    padding: 3rem 2rem 1.5rem;
    z-index: 2;
}

#photoDate {
    display: none;
}

.photo-info-overlay h3 {
    font-size: 0.85rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.photo-info-overlay p {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.5;
}

.photo-navigation {
    position: absolute;
    top: 50%;
    left: 30px; /* 左侧白边宽度 */
    right: 30px; /* 右侧白边宽度 */
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 鼠标移到图片容器上时显示导航按钮 */
.photo-display-container:hover .photo-navigation {
    opacity: 1;
}

.nav-arrow {
    background: rgba(255,255,255,0.01);
    backdrop-filter: blur(10px);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: #fff;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.nav-arrow:hover {
    background: rgba(255,255,255,0.1);
}

/* ==================== 侧边栏切换按钮 ==================== */
.sidebar-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 32px;
    height: 64px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #333;
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: #fff;
    width: 36px;
}

.sidebar-toggle.hidden {
    display: none;
}

/* ==================== 右侧面板（区域2+3） ==================== */
.area-right {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    width: 360px;
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s ease;
    overflow: hidden;
}

/* --- 情况1：宽屏居中模式 --- */
.layout-centered .three-column-layout {
    justify-content: center;
}

/* 情况1：区域1右边框和区域2左边框重合，只保留区域1的右边框 */
.layout-centered .area-left {
    border-right: none;
    border-top: none;
    border-bottom: none;
}

.layout-centered .area-right {
    border-left: 1px solid #e0e0e0;
    border-top: none;
    border-bottom: none;
}

.layout-centered .sidebar-toggle {
    display: none;
}

.layout-centered .photo-display-container,
.layout-overflow .photo-display-container {
    padding: 20px 20px 60px 20px;
}

/* --- 情况2：窄屏靠左+覆盖模式 --- */
/* 情况2：区域1独立显示，保留完整边框 */
.layout-overflow .area-left {
    border: 1px solid #e0e0e0;
    border-top: none;
    border-bottom: none;
    overflow: visible;
}

.layout-overflow .area-right {
    position: absolute;
    right: 0;
    top: 0;
    transform: translateX(100%);
    box-shadow: none;
    overflow: visible;
    z-index: 50;
}

.layout-overflow .sidebar-toggle {
    left: -32px;
    right: auto;
}

.layout-overflow .area-right.sidebar-visible {
    transform: translateX(0);
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}

/* --- 情况3：竖屏上下布局 --- */
.layout-stacked .three-column-layout {
    flex-direction: column;
    overflow-y: auto;
    height: auto;
    min-height: 100%;
    border: none; /* 去掉外围边框，让内容贴边 */
}

.layout-stacked .area-left {
    width: 100% !important;
    height: auto;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    border: none;
    border-bottom: 1px solid #e0e0e0;
}

.layout-stacked .area-right {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 100%;
    border: none;
    display: block;
    overflow: visible;
}

.layout-stacked .area-calendar {
    flex-shrink: 0;
}

.layout-stacked .area-comments {
    flex: none; /* 取消flex: 1 */
    display: block;
    min-height: auto;
    padding-bottom: 2rem; /* 底部留出足够空间 */
}

.layout-stacked .sidebar-toggle {
    display: none;
}

/* 情况3：去掉navbar的padding，让内容贴边 */
.layout-stacked .navbar {
    padding: 1rem 5px;
    margin: 0;
}

.layout-stacked .nav-brand {
    margin-left: 0;
    padding-left: 0;
}

.layout-stacked .language-switch {
    margin-right: 0;
    padding-right: 0;
}

/* 情况3：相机信息和位置信息贴边对齐 */
.layout-stacked .camera-info {
    left: 0;
    right: 115px;
    overflow: hidden;
}

.layout-stacked .location-info {
    right: 0;
}

/* 情况3：照片区域左右无间隔 */
.layout-stacked .photo-display-container {
    padding: 0 0 60px 0;
}

/* 区域2：月历 */
.area-calendar {
    padding: 1rem 1.25rem;
    flex-shrink: 0;
    border-bottom: 1px solid #e0e0e0;
}

.calendar-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-header-compact h2 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    margin: 0;
    text-align: center;
    flex: 1;
}

.nav-btn-small {
    background: none;
    border: none;
    font-size: 1rem;
    color: #666;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.3s ease;
}

.nav-btn-small:hover {
    color: #333;
}

.weekdays-compact {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 0.5rem;
}

.weekdays-compact div {
    text-align: center;
    padding: 0.5rem 0;
    font-size: 0.75rem;
    color: #999;
    font-weight: 500;
}

.calendar-grid-compact {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day-compact {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
    background: #f9f9f9;
}

.calendar-day-compact:hover {
    background: #e8e8e8;
}

.calendar-day-compact.empty {
    background: transparent;
    cursor: default;
}

/* 有照片的日期 - 基础样式 */
.calendar-day-compact.has-photo {
    background-color: #333;
    color: #fff;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    opacity: 0.6; /* 默认60%透明度 */
    transition: opacity 0.2s ease;
}

/* 有照片的日期 - 悬停时100% */
.calendar-day-compact.has-photo:hover {
    opacity: 1;
}

/* 选中的日期 - 基础样式 */
.calendar-day-compact.selected {
    background: #007aff;
    color: #fff;
}

/* 有照片且选中的日期 - 100%透明度，最亮 */
.calendar-day-compact.has-photo.selected {
    opacity: 1;
    box-shadow: 0 0 0 2px #007aff;
}

.calendar-day-compact.today {
    border: 2px solid #007aff;
}

/* 区域3：评论区 */
.area-comments {
    padding: 1rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: visible; /* 改为visible，让备案信息显示完整 */
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

.comments-header h3 {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

#commentsCount {
    font-size: 0.8rem;
    color: #999;
}

.comments-list-compact {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 0.75rem;
}

.no-comments {
    color: #999;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}

.comment-item {
    padding: 0.75rem;
    background: #f9f9f9;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.comment-author {
    font-weight: 600;
    color: #333;
}

.comment-reply-to {
    color: #666;
    font-size: 0.8rem;
    background: #e8e8e8;
    padding: 2px 10px;
    border-radius: 12px;
}

/* 回复评论的特殊样式 */
.comment-item.comment-reply {
    background: #f5f5f5;
    border-left: 3px solid #ccc;
    margin-left: 1rem;
}

.comment-text {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    word-break: break-word;
}

.comment-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comment-time {
    font-size: 0.75rem;
    color: #999;
}

.comment-reply-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0;
}

.comment-reply-btn:hover {
    color: #333;
    text-decoration: underline;
}

.reply-form-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

.reply-name-input {
    width: 100%;
    max-width: 120px;
    padding: 0.4rem 0.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
    box-sizing: border-box;
}

.reply-text-input {
    flex: 1;
    min-width: 150px;
    padding: 0.4rem 0.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
    box-sizing: border-box;
}

.reply-submit-btn,
.reply-cancel-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    white-space: nowrap;
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
}

.reply-cancel-btn:hover {
    background: #f5f5f5;
}

.comment-form-compact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comment-form-compact input,
.comment-form-compact textarea {
    padding: 0.6rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.85rem;
    resize: none;
    height: 60px;
}

.comment-form-compact button {
    background: #333;
    color: #fff;
    border: none;
    padding: 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.3s ease;
}

.comment-form-compact button:hover {
    background: #555;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    overflow-y: auto;
}

.modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.admin-modal-content {
    max-width: 700px;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-content h2 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #333;
}

/* 登录模态框 */
.login-modal-content {
    max-width: 400px;
    text-align: center;
}

.login-hint {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.login-form input {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 1rem;
}

/* 上传表单 */
.upload-form .form-group {
    margin-bottom: 1rem;
}

.upload-form label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.upload-form input,
.upload-form textarea,
.upload-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
}

.upload-form textarea {
    resize: vertical;
    min-height: 80px;
}

.image-preview {
    margin-top: 0.5rem;
    width: 100%;
    aspect-ratio: 1/1;
    background: #f0f0f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.85rem;
    overflow: hidden;
    position: relative;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* EXIF日期提示 */
.exif-hint {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #4ade80;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin: 0;
}

/* EXIF预览区域 */
.exif-preview {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
}

.exif-preview h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.exif-item {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.85rem;
    border-bottom: 1px dashed #eee;
}

.exif-item:last-child {
    border-bottom: none;
}

.exif-item span:first-child {
    color: #666;
}

.exif-item span:last-child {
    color: #333;
    font-weight: 500;
}

.exif-item .missing {
    color: #ff6b6b;
    font-style: italic;
}

.exif-hint.exif-warning {
    color: #fbbf24;
}

.upload-btn {
    width: 100%;
    background: #333;
    color: #fff;
    border: none;
    padding: 0.875rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.3s ease;
}

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

/* 管理后台工具栏 */
.admin-toolbar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.admin-toolbar-btn {
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.admin-toolbar-btn:hover {
    background: #555;
}

/* 管理后台 */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.admin-tab {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.admin-tab:hover {
    background: #f0f0f0;
}

.admin-tab.active {
    background: #333;
    color: #fff;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.admin-list {
    max-height: 400px;
    overflow-y: auto;
}

.admin-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
    animation: fadeIn 0.3s ease forwards;
}

.admin-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.admin-item-info {
    flex: 1;
}

.admin-item-title {
    font-weight: 500;
    font-size: 0.9rem;
    color: #333;
}

.admin-item-date {
    font-size: 0.8rem;
    color: #999;
}

.admin-item-actions {
    display: flex;
    gap: 0.5rem;
}

.admin-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.admin-btn:hover {
    background: #f0f0f0;
}

.admin-btn.delete {
    border-color: #ff4444;
    color: #ff4444;
}

.admin-btn.delete:hover {
    background: #ff4444;
    color: #fff;
}

/* 管理后台筛选 */
.admin-filter {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    align-items: center;
}

.admin-filter-input {
    padding: 0.4rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #333;
}

.admin-filter-btn {
    padding: 0.4rem 0.75rem;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.admin-filter-btn:hover {
    background: #555;
}

.admin-filter-btn.secondary {
    background: #f0f0f0;
    color: #666;
}

.admin-filter-btn.secondary:hover {
    background: #e0e0e0;
}

/* 分页控件 */
.admin-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.admin-page-btn {
    padding: 0.3rem 0.6rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    color: #666;
    transition: all 0.3s ease;
    min-width: 32px;
    text-align: center;
}

.admin-page-btn:hover {
    background: #f0f0f0;
}

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

.admin-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.admin-page-info {
    font-size: 0.8rem;
    color: #999;
    margin: 0 0.5rem;
}

/* 年度排名徽章 */
.rank-badge {
    position: absolute;
    top: -8px;
    left: -9px;
    width: auto !important;
    height: auto !important;
    object-fit: unset !important;
    z-index: 10;
    pointer-events: none;
}

/* 点赞按钮 */
.like-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: none;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 16px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.like-btn.visible {
    display: flex;
}

.like-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.05);
}

.like-icon {
    font-size: 1rem;
    color: #fff;
    width: 1em;
    text-align: center;
    transition: color 0.2s ease;
}

.like-icon.liked {
    color: #ff4757;
}

.like-count {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 500;
}

/* 浮动操作按钮 */
.fab-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000 !important;
    min-width: 56px;
    min-height: 56px;
}

.fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: #333;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab:hover {
    background: #555;
    transform: scale(1.05);
}

.fab-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 10001;
}

.fab-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-menu .fab {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .three-column-layout {
        height: auto;
    }

    .area-left {
        min-height: 500px;
    }

    .area-right {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .area-calendar,
    .area-comments {
        flex: 1;
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
    }

    .main-content {
        padding: 0;
    }

    .area-right {
        flex-direction: column;
    }

    .area-calendar,
    .area-comments {
        min-width: auto;
    }

    .main-photo-display {
        max-width: 100%;
        box-shadow: none;
    }

    .photo-display-container {
        padding: 0 0 80px 0;
    }

    .photo-navigation {
        left: 0;
        right: 0;
        padding: 0;
        opacity: 1;
    }

    .nav-arrow {
        width: 40px;
        height: 52px;
        border-radius: 0;
        background: rgba(255,255,255,0.01);
        font-size: 1.3rem;
    }

    .nav-arrow-left {
        padding-left: 10px;
        justify-content: flex-start;
    }

    .nav-arrow-right {
        padding-right: 10px;
        justify-content: flex-end;
    }

    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
    }

    /* 灯箱移动端适配 */
    .lightbox-content {
        flex-direction: column;
    }

    .lightbox-image-wrapper {
        flex: none;
        height: 50vh;
        padding: 1rem;
    }

    .lightbox-info {
        width: 100%;
        flex: 1;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    /* 画廊移动端适配 */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.5rem;
        padding: 0.5rem 1rem 2rem;
    }

    .gallery-header {
        padding: 1.5rem 1rem 0.75rem;
    }

    .gallery-header h1 {
        font-size: 1.3rem;
    }

    /* 关于页面移动端适配 */
    .about-header {
        flex-direction: column;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .about-container {
        padding: 1.5rem 1rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 加载状态 */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #999;
}

/* 错误提示 */
.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

/* 成功提示 */
.success-message {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

/* ==================== Toast 通知 ==================== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    pointer-events: auto;
    animation: toastIn 0.3s ease forwards;
    max-width: 360px;
    backdrop-filter: blur(10px);
}

.toast.toast-out {
    animation: toastOut 0.3s ease forwards;
}

.toast.success {
    background: rgba(34, 197, 94, 0.95);
    color: #fff;
}

.toast.error {
    background: rgba(239, 68, 68, 0.95);
    color: #fff;
}

.toast.info {
    background: rgba(59, 130, 246, 0.95);
    color: #fff;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(40px); }
}

/* ==================== 关于页面 ==================== */
.about-main-content {
    height: calc(100vh - 60px) !important;
    max-height: calc(100vh - 60px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: block !important;
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
    padding-bottom: 3rem;
}

.about-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.profile-image {
    flex-shrink: 0;
}

.profile-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e0e0e0;
}

.profile-info h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.tagline {
    color: #666;
    font-size: 1rem;
    font-style: italic;
}

.about-content section {
    margin-bottom: 1.5rem;
}

.about-content h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #333;
    display: inline-block;
}

.about-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f9f9f9;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    min-width: 0;
    flex-wrap: wrap;
    word-break: break-all;
}

.contact-link:hover {
    background: #f0f0f0;
    border-color: #ccc;
    transform: translateX(4px);
}

.contact-icon {
    font-size: 1.2rem;
}

/* ==================== 工具类 ==================== */
.hidden {
    display: none;
}

.svg-icon {
    vertical-align: middle;
}

.beian-info-home {
    margin-top: 0.75rem;
    justify-content: flex-start;
}

.beian-info-about {
    margin-top: 1.5rem;
    justify-content: center;
    align-items: center;
    margin-left: 0;
    margin-right: 0;
}

.beian-link {
    text-decoration: none;
}

.batb-icon {
    vertical-align: middle;
    margin-right: 4px;
}

/* 数据统计 */
.analytics-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.analytics-card {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.analytics-card-label {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 0.25rem;
}

.analytics-card-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.analytics-section-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    margin: 1rem 0 0.5rem;
}

.analytics-chart {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 120px;
    padding: 0 0.5rem;
    overflow-x: auto;
}

.chart-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 18px;
    height: 100%;
    justify-content: flex-end;
}

.chart-bar {
    width: 100%;
    max-width: 20px;
    background: #007aff;
    border-radius: 2px 2px 0 0;
    transition: height 0.3s ease;
}

.chart-bar.today {
    background: #ff3b30;
}

.chart-label {
    font-size: 0.55rem;
    color: #999;
    margin-top: 4px;
    white-space: nowrap;
}

.analytics-pages {
    max-height: 200px;
    overflow-y: auto;
}

.analytics-page-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.analytics-page-path {
    font-size: 0.85rem;
    color: #333;
    font-family: monospace;
}

.analytics-page-stats {
    font-size: 0.75rem;
    color: #999;
    white-space: nowrap;
}

.analytics-empty {
    text-align: center;
    color: #999;
    font-size: 0.85rem;
    padding: 2rem;
}


