/* 鱼缸图库 - 前台样式 */

/* 变量定义 */
:root {
    --primary-color: #0984e3;
    --secondary-color: #74b9ff;
    --text-color: #2d3436;
    --text-light: #636e72;
    --bg-color: #f5f6fa;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

/* 背景视频样式 */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.video-background .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(245, 246, 250, 0.85);
}

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

body {
    font-family: 'Inter', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* 头部导航 */
.navbar {
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: rgba(9, 132, 227, 0.1);
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn {
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #0870c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(9, 132, 227, 0.3);
}

.btn-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #0984e3 0%, #74b9ff 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}

.search-box {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 15px 25px;
    padding-right: 50px;
    border-radius: 30px;
    border: none;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.search-box button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 筛选区 */
.filters {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tag {
    padding: 6px 15px;
    background-color: white;
    border-radius: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.2s;
}

.filter-tag:hover,
.filter-tag.active {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* 图片网格 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.gallery-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.card-image {
    position: relative;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 15px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-size: 0.85rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-stats {
    display: flex;
    gap: 10px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 40px 0;
    padding: 1rem 1.5rem;
}

.pagination-info {
    color: var(--text-light);
    font-size: 0.9rem;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination a, .pagination span {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: white;
    color: var(--text-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.2s;
    font-size: 0.9rem;
    text-decoration: none;
}

.pagination a:hover, .pagination .active {
    background-color: var(--primary-color);
    color: white;
}

.pagination .disabled {
    color: #ccc;
    cursor: not-allowed;
}

.pagination .ellipsis {
    background: transparent;
    box-shadow: none;
    color: var(--text-light);
}

/* 页脚 */
footer {
    background-color: white;
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid #eee;
    text-align: center;
    color: var(--text-light);
}

/* 图片详情页 */
.image-detail-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin-top: 20px;
}

.image-full {
    width: 100%;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-full img {
    max-height: 80vh;
    object-fit: contain;
}

.image-info-section {
    padding: 30px;
}

.image-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.image-header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.image-uploader {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.image-stats-large {
    display: flex;
    gap: 20px;
    color: var(--text-light);
}

.image-description {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 30px;
}

.image-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.meta-item label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.meta-item span {
    font-weight: 600;
    color: var(--text-color);
}

/* 登录/注册页面 */
.auth-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    background: white;
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--hover-shadow);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(9, 132, 227, 0.1);
}

.btn-block {
    width: 100%;
    padding: 12px;
}

.auth-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
}

/* 提示框 */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 记住登录复选框样式 */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.checkbox-container label {
    margin: 0;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-container:hover label {
    color: #333;
}

/* 表单文本说明 */
.form-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* 协议链接样式 */
.checkbox-container a {
    color: var(--primary-color);
    text-decoration: underline;
}

.checkbox-container a:hover {
    color: var(--secondary-color);
}

/* 密码强度指示器 */
.password-strength-meter {
    margin-top: 8px;
    font-size: 12px;
}

.strength-bar {
    width: 100%;
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    margin-bottom: 5px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.password-strength-meter.weak .strength-fill {
    width: 25%;
    background-color: #dc3545;
}

.password-strength-meter.medium .strength-fill {
    width: 50%;
    background-color: #ffc107;
}

.password-strength-meter.strong .strength-fill {
    width: 75%;
    background-color: #28a745;
}

.password-strength-meter.very-strong .strength-fill {
    width: 100%;
    background-color: #20c997;
}

.strength-text {
    font-weight: 500;
}

/* 实时验证反馈 */
.username-feedback, .email-feedback, .confirm-password-feedback {
    margin-top: 5px;
    font-size: 12px;
    min-height: 18px;
}

.username-feedback.checking span,
.email-feedback.checking span {
    color: #007bff;
}

.username-feedback.available span,
.email-feedback.available span,
.confirm-password-feedback.match span {
    color: #28a745;
}

.username-feedback.unavailable span,
.email-feedback.unavailable span,
.confirm-password-feedback.nomatch span {
    color: #dc3545;
}

.username-feedback.error span,
.email-feedback.error span {
    color: #dc3545;
}

/* 验证错误消息 */
.validation-errors {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.validation-errors ul {
    margin: 10px 0;
    padding-left: 20px;
}

.validation-errors li {
    margin: 5px 0;
}

/* 认证页面美化 */
.auth-wrapper {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.auth-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    color: var(--text-color);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-light);
    font-size: 16px;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(9, 132, 227, 0.1);
}

.form-control::placeholder {
    color: #adb5bd;
}

.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.auth-footer p {
    color: var(--text-light);
    font-size: 14px;
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* 验证码样式优化 */
.captcha-container img {
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.captcha-container img:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .auth-card {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .auth-header h2 {
        font-size: 24px;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .auth-wrapper {
        padding: 20px 0;
    }
    
    .auth-card {
        margin: 10px;
        padding: 20px 15px;
    }
    
    .auth-header h2 {
        font-size: 22px;
    }
    
    .btn-block {
        padding: 12px;
        font-size: 15px;
    }
}

/* 密码输入框容器 */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-control {
    padding-right: 45px;
}

/* 密码可见性切换按钮 */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    font-size: 1.1rem;
    transition: color 0.2s;
    padding: 5px;
}

.password-toggle:hover {
    color: var(--primary-color);
}

/* 忘记密码链接 */
.forgot-password-link {
    float: right;
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

/* 密码强度指示器 */
.password-strength-meter {
    margin-top: 8px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    display: none;
}

.password-strength-meter.active {
    display: block;
}

.password-strength-meter .strength-fill {
    height: 100%;
    transition: all 0.3s ease;
}

.strength-weak {
    background: #e74c3c;
}

.strength-medium {
    background: #f39c12;
}

.strength-strong {
    background: #27ae60;
}

/* 记住我提示 */
.remember-me-notice {
    font-size: 0.9rem;
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.remember-me-notice i {
    margin-right: 8px;
}

/* 表单验证反馈 */
.username-feedback,
.email-feedback,
.confirm-password-feedback {
    margin-top: 5px;
    font-size: 0.85rem;
}

.username-feedback.available,
.email-feedback.available,
.confirm-password-feedback.match {
    color: #27ae60;
}

.username-feedback.unavailable,
.email-feedback.unavailable,
.confirm-password-feedback.nomatch {
    color: #e74c3c;
}

.username-feedback.checking,
.email-feedback.checking {
    color: #f39c12;
}

/* 验证码容器样式优化 */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-container input {
    flex: 1;
}

.captcha-container img {
    height: 45px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.captcha-container img:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* 表单文本提示 */
.form-text {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    color: #666;
}

/* 按钮图标间距 */
.btn i {
    margin-right: 8px;
}

/* 移动端导航菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    padding: 10px;
}

/* 滑动导航菜单 */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    padding: 20px;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-nav-links a {
    padding: 15px 20px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    background: rgba(9, 132, 227, 0.1);
    color: var(--primary-color);
}

.mobile-nav-divider {
    height: 1px;
    background: #eee;
    margin: 15px 0;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.mobile-user-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
}

.mobile-user-name {
    font-weight: 600;
    color: var(--text-color);
}

/* 平板适配 */
@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

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

    .image-header {
        flex-direction: column;
        gap: 15px;
    }

    .image-stats-large {
        flex-wrap: wrap;
        gap: 15px;
    }

    .card-title {
        font-size: 1rem;
    }
}

/* 手机端适配 */
@media (max-width: 768px) {
    /* 导航栏 */
    .navbar .container {
        height: 60px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* 英雄区域 */
    .hero {
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 20px;
        padding: 0 15px;
    }

    .search-box {
        max-width: 100%;
        margin: 0 15px;
    }

    .search-box input {
        font-size: 16px;
        padding: 12px 20px;
        padding-right: 45px;
    }

    /* 筛选区 */
    .filters {
        padding: 0 15px;
        gap: 8px;
    }

    .filter-tag {
        padding: 5px 12px;
        font-size: 0.85rem;
    }

    /* 图片网格 */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 15px;
    }

    .gallery-card {
        border-radius: 8px;
    }

    .card-image {
        padding-top: 100%;
    }

    .card-content {
        padding: 10px;
    }

    .card-title {
        font-size: 0.9rem;
    }

    .card-meta {
        font-size: 0.75rem;
    }

    .user-info {
        gap: 3px;
    }

    .card-stats {
        gap: 8px;
    }

    /* 分页 */
    .pagination {
        flex-direction: column;
        gap: 1rem;
        margin: 30px 0;
        padding: 1rem;
    }

    .pagination-info {
        font-size: 0.85rem;
        text-align: center;
    }

    .pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    .pagination a, .pagination span {
        min-width: 35px;
        height: 35px;
        padding: 0 8px;
        font-size: 0.85rem;
    }

    /* 页脚 */
    footer {
        padding: 30px 0;
        margin-top: 40px;
    }

    footer p {
        font-size: 0.85rem;
        padding: 0 15px;
    }

    /* 图片详情页 */
    .image-detail-container {
        margin: 15px;
        border-radius: 8px;
    }

    .image-full img {
        max-height: 60vh;
    }

    .image-info-section {
        padding: 20px 15px;
    }

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

    .image-uploader {
        font-size: 0.9rem;
    }

    .avatar-circle {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .image-stats-large {
        gap: 15px;
        font-size: 0.85rem;
    }

    .image-description {
        font-size: 0.95rem;
    }

    .image-meta-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }

    /* 按钮 */
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .btn-sm {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    /* 提示框 */
    .alert {
        padding: 12px;
        font-size: 0.9rem;
        margin: 0 15px 15px;
    }

    /* 表单 */
    .form-group {
        margin-bottom: 15px;
    }

    .form-label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .form-control {
        padding: 10px 12px;
        font-size: 16px;
    }

    /* 卡片 */
    .card {
        margin: 15px;
        border-radius: 8px;
    }

    .card-header {
        padding: 15px;
    }

    .card-header h3 {
        font-size: 1.1rem;
    }

    .card-body {
        padding: 15px;
    }

    /* 列表组 */
    .list-group-item {
        padding: 10px 12px;
        font-size: 0.95rem;
    }

    /* 个人中心 */
    .profile-layout {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .avatar-large {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    .profile-name {
        font-size: 1.1rem;
    }

    .profile-role {
        font-size: 0.8rem;
        padding: 3px 10px;
    }

    .stat-box strong {
        font-size: 1.3rem;
    }

    .stat-box span {
        font-size: 0.8rem;
    }

    .info-group {
        margin-bottom: 1rem;
    }

    .info-group label {
        font-size: 0.85rem;
    }

    .info-group > div {
        font-size: 1rem;
    }

    /* 登录项 */
    .login-item {
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .login-ip {
        font-size: 0.95rem;
    }

    .login-time {
        font-size: 0.8rem;
    }

    .login-status {
        padding: 3px 10px;
        font-size: 0.7rem;
    }

    /* 设置项 */
    .setting-group h4 {
        font-size: 1rem;
    }

    .setting-item {
        padding: 12px 0;
    }

    .setting-label strong {
        font-size: 0.95rem;
    }

    .setting-label small {
        font-size: 0.8rem;
    }

    .switch {
        width: 45px;
        height: 24px;
    }

    .slider:before {
        width: 18px;
        height: 18px;
        left: 3px;
        bottom: 3px;
    }

    input:checked + .slider:before {
        transform: translateX(21px);
    }

    /* 活动日志 */
    .log-item {
        padding: 12px;
        gap: 12px;
    }

    .log-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .log-title {
        font-size: 0.95rem;
    }

    .log-meta {
        font-size: 0.8rem;
    }

    .log-description {
        font-size: 0.85rem;
    }

    /* 上传表单 */
    .upload-form {
        padding: 15px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    /* 图片卡片操作 */
    .actions {
        display: flex;
        gap: 8px;
    }

    .action-btn {
        padding: 5px;
        font-size: 1rem;
    }

    /* 头像上传 */
    .avatar-upload {
        margin-bottom: 1.5rem;
    }

    .avatar-preview {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .avatar-upload-btn {
        font-size: 0.9rem;
    }

    .avatar-upload p {
        font-size: 0.8rem;
    }

    /* 社交链接 */
    .social-links-section h4 {
        font-size: 1rem;
    }

    .social-link-item {
        margin-bottom: 0.8rem;
    }

    .social-link-item i {
        width: 25px;
    }

    /* 空状态 */
    .empty-state {
        padding: 3rem 15px;
    }

    .empty-state i {
        font-size: 3rem;
    }

    .empty-state h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .empty-state p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
}

/* 小屏手机适配 */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .card-image {
        padding-top: 75%;
    }

    .pagination a, .pagination span {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo i {
        font-size: 1.2rem;
    }

    .mobile-nav {
        width: 280px;
    }

    .mobile-nav-links a {
        font-size: 0.95rem;
        padding: 13px 15px;
    }
}

/* 触摸优化 */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .filter-tag,
    .gallery-card,
    .list-group-item,
    .pagination a,
    .action-btn {
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }

    .btn:active,
    .gallery-card:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    .card-image img {
        transition: none;
    }

    .gallery-card:hover .card-image img {
        transform: none;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="url"],
    textarea {
        font-size: 16px;
    }
}

/* 横屏手机适配 */
@media (max-height: 480px) and (orientation: landscape) {
    .hero {
        padding: 20px 0;
    }

    .hero h1 {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }

    .hero p {
        margin-bottom: 15px;
    }

    .search-box input {
        padding: 10px 15px;
        padding-right: 40px;
    }

    .search-box button {
        width: 30px;
        height: 30px;
    }
}
