/* 全局样式重置和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主色调 */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    /* 辅助色 */
    --secondary-color: #64748b;
    /* 状态色 */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;
    /* 文本色 */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    /* 背景色 */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    /* 边框色 */
    --border-color: #e2e8f0;
    --border-radius: 8px;
    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    /* 过渡效果 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding: 16px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.navbar nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
}

.navbar nav ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
    font-size: 14px;
}

.navbar nav ul li a:hover,
.navbar nav ul li a.active {
    color: var(--primary-color);
    background-color: var(--bg-tertiary);
}

.navbar nav ul li .btn {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.navbar nav ul li .btn:hover {
    background-color: var(--primary-dark);
    color: white;
}

/* 搜索区域样式 */
.search-section {
    background-color: var(--bg-primary);
    padding: 40px 0;
    box-shadow: var(--shadow-sm);
}

.search-form {
    display: flex;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.search-form input[type="text"] {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
    background-color: var(--bg-secondary);
}

.search-form input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.search-form select {
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
    background-color: var(--bg-secondary);
}

.search-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.search-form button {
    padding: 14px 32px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* 物品列表区域样式 */
.items-section {
    padding: 50px 0;
}

.items-section h2 {
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-primary);
    font-size: 32px;
    font-weight: 700;
}

.search-count {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-secondary);
    font-size: 16px;
}

.no-results {
    text-align: center;
    padding: 80px 0;
    color: var(--text-secondary);
    font-size: 18px;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.item-card {
    background-color: var(--bg-primary);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--border-color);
}

.item-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.item-type {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.item-type.lost {
    background-color: #fef3c7;
    color: #92400e;
}

.item-type.found {
    background-color: #d1fae5;
    color: #065f46;
}

.item-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    background-color: var(--bg-tertiary);
}

.item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.item-card:hover .item-image {
    transform: scale(1.05);
}

.item-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    line-height: 1.3;
}

.item-location, .item-date, .item-contact, .item-username {
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.item-location strong, .item-date strong, .item-contact strong, .item-username strong {
    color: var(--text-primary);
    font-weight: 600;
}

.item-detail {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    text-align: center;
}

.item-detail:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.view-all {
    text-align: center;
    margin-top: 30px;
}

.view-all a {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--bg-primary);
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 600;
}

.view-all a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* 表单样式 */
.submit-section {
    padding: 50px 0;
}

.submit-section h2 {
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-primary);
    font-size: 32px;
    font-weight: 700;
}

.submit-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-primary);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group textarea,
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
    background-color: var(--bg-secondary);
}

.form-group input[type="text"]:focus,
.form-group input[type="date"]:focus,
.form-group textarea:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-group input[type="file"] {
    padding: 12px;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    width: 100%;
    background-color: var(--bg-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.form-group input[type="file"]:hover {
    border-color: var(--primary-color);
    background-color: var(--bg-tertiary);
}

/* 图片懒加载样式 */
.lazyload {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazyload.loaded {
    opacity: 1;
}

.radio-group {
    display: flex;
    gap: 24px;
}

.radio-group label {
    display: flex;
    align-items: center;
    font-weight: 500;
    cursor: pointer;
    gap: 8px;
}

.radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.submit-btn {
    text-align: center;
}

.submit-btn button {
    padding: 14px 32px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.submit-btn button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* 图片上传预览 */
.image-preview {
    width: 100%;
    max-height: 240px;
    margin-top: 12px;
    border-radius: var(--border-radius);
    overflow: hidden;
    display: none;
    border: 2px solid var(--border-color);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition-all);
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.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: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: linear-gradient(135deg, #1e40af 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.2);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #6366f1 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #6366f1 0%, var(--secondary-color) 100%);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.btn-outline:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* 认证表单样式 */
.auth-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
}

.auth-form {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    background-color: white;
    padding: 50px;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

/* 表单顶部装饰 */
.auth-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.auth-form .message {
    margin-bottom: 28px;
    padding: 14px 18px;
    border-radius: var(--border-radius-lg);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-form .message::before {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

.auth-form .message.error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fee2e2;
}

.auth-form .message.error::before {
    background-color: #f87171;
    color: white;
    content: '!';
}

.auth-form .message.success {
    background-color: #f0fdf4;
    color: #065f46;
    border: 1px solid #d1fae5;
}

.auth-form .message.success::before {
    background-color: #34d399;
    color: white;
    content: '✓';
}

.auth-form form {
    margin-bottom: 30px;
}

/* 重新设计的表单组 */
.auth-form .form-group {
    margin-bottom: 24px;
    position: relative;
}

.auth-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

/* 重新设计的输入框 */
.auth-form .form-group input[type="text"],
.auth-form .form-group input[type="password"],
.auth-form .form-group input[type="email"],
.auth-form .form-group input[type="student_id"] {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition-all);
    background-color: white;
    color: var(--text-primary);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.auth-form .form-group input[type="text"]:hover,
.auth-form .form-group input[type="password"]:hover,
.auth-form .form-group input[type="email"]:hover,
.auth-form .form-group input[type="student_id"]:hover {
    border-color: var(--primary-color);
}

.auth-form .form-group input[type="text"]:focus,
.auth-form .form-group input[type="password"]:focus,
.auth-form .form-group input[type="email"]:focus,
.auth-form .form-group input[type="student_id"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgb(37 99 235 / 0.1);
    background-color: white;
    transform: translateY(-1px);
}

/* 密码可见性切换按钮 */
.auth-form .form-group .password-toggle {
    position: absolute;
    right: 12px;
    top: 70%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    padding: 8px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.auth-form .form-group .password-toggle:hover {
    color: var(--primary-color);
    background-color: var(--bg-secondary);
}

/* 重新设计的认证表单按钮 */
.auth-form .btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--border-radius-lg);
    transition: var(--transition-all);
    cursor: pointer;
    border: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.auth-form .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: var(--transition);
}

.auth-form .btn:hover::before {
    left: 100%;
}

.auth-form .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.auth-form .btn-primary:hover {
    background: linear-gradient(135deg, #1e40af 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.auth-form .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* 加载状态 */
.auth-form .btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-form .btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 重新设计的认证链接 */
.auth-link {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.auth-link p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-all);
    position: relative;
    padding: 2px 0;
}

.auth-link a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.auth-link a:hover {
    color: #1d4ed8;
}

.auth-link a:hover::after {
    width: 100%;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .auth-section {
        padding: 40px 20px;
    }
    
    .auth-form {
        padding: 30px 25px;
    }
    
    .auth-form h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .auth-form .form-group input[type="text"],
    .auth-form .form-group input[type="password"],
    .auth-form .form-group input[type="email"] {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .auth-form .btn {
        padding: 14px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .auth-form {
        padding: 25px 20px;
    }
    
    .auth-form h2 {
        font-size: 22px;
        margin-bottom: 25px;
    }
    
    .auth-form .form-group {
        margin-bottom: 20px;
    }
}

/* 消息提示样式 */
.message {
    max-width: 600px;
    margin: 0 auto 24px;
    padding: 16px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 500;
    border: 1px solid transparent;
}

.message.success {
    background-color: #d1fae5;
    color: #065f46;
    border-color: #a7f3d0;
}

.message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

.message.info {
    background-color: #dbeafe;
    color: #1e40af;
    border-color: #bfdbfe;
}

/* 筛选区域样式 */
.filter-section {
    background-color: var(--bg-primary);
    padding: 24px 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-tabs a {
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: 24px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    font-size: 14px;
    font-weight: 500;
    background-color: var(--bg-secondary);
}

.filter-tabs a:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.filter-tabs a.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 物品详情页面样式 */
.detail-section {
    padding: 50px 0;
}

.detail-card {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-primary);
    padding: 48px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    position: relative;
    border: 1px solid var(--border-color);
}

.detail-image-container {
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin: 24px 0;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

.detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info {
    margin-top: 32px;
}

.info-group {
    margin-bottom: 24px;
}

.info-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.info-group p {
    padding: 16px;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    font-size: 16px;
    color: var(--text-primary);
}

.action-buttons {
    margin-top: 32px;
    text-align: center;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination a {
    padding: 10px 16px;
    text-decoration: none;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
    font-size: 14px;
    background-color: var(--bg-primary);
}

.pagination a:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.pagination a.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 页脚样式 */
.footer {
    background-color: var(--text-primary);
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer p {
    opacity: 0.8;
    margin: 0;
}

.footer-links {
    margin-top: 8px;
}

.footer-links h4 {
    margin-bottom: 8px;
    font-size: 16px;
    opacity: 0.9;
}

.footer-links-list {
    display: flex;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.footer-links-list li {
    display: inline-block;
}

.footer-links-list a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
    font-size: 14px;
}

.footer-links-list a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* 登录注册页面样式 */
.auth-container {
    max-width: 400px;
    margin: 60px auto;
    background-color: var(--bg-primary);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 24px;
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 700;
}

.auth-links {
    text-align: center;
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.auth-links a:hover {
    text-decoration: underline;
}

/* 评论功能样式 */
.comments-section {
    max-width: 800px;
    margin: 40px auto 0;
    background-color: var(--bg-primary);
    padding: 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.comments-section h3 {
    margin-bottom: 24px;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 12px;
}

.comment-form h4 {
    margin-bottom: 16px;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 500;
}

.comment-form .form-group {
    margin-bottom: 16px;
}

.comment-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    background-color: var(--bg-secondary);
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.comment-form .form-actions {
    text-align: right;
}

.comment-form button {
    padding: 10px 24px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.comment-form button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.comment-list {
    margin-top: 32px;
}

.comment-item {
    background-color: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.comment-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.comment-username {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.comment-date {
    font-size: 12px;
    color: var(--text-light);
}

.comment-content {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
}

/* 错误和成功消息样式 */
.error {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 14px;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    border: 1px solid #fecaca;
    font-size: 14px;
}

.success {
    background-color: #d1fae5;
    color: #065f46;
    padding: 14px;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    border: 1px solid #a7f3d0;
    font-size: 14px;
}

/* 个人资料页面样式 */
.profile-section {
    padding: 50px 0;
}

.profile-card {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-primary);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: 700;
}

.profile-info h2 {
    margin: 0 0 8px;
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 700;
}

.profile-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 16px;
}

.profile-items {
    margin-top: 32px;
}

.profile-items h3 {
    margin-bottom: 24px;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 16px;
    }
    
    .navbar nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }
    
    .navbar nav ul li {
        margin: 4px;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .detail-card {
        padding: 32px 24px;
    }
    
    .submit-form {
        padding: 24px;
    }
    
    .detail-image-container {
        height: 240px;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .comments-section {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .items-grid {
        grid-template-columns: 1fr;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .search-section {
        padding: 24px 0;
    }
    
    .detail-card {
        padding: 20px 16px;
    }
    
    .submit-form {
        padding: 20px 16px;
    }
    
    .auth-container {
        padding: 32px 20px;
        margin: 40px auto;
    }
    
    .items-section h2, .submit-section h2, .detail-section h2 {
        font-size: 24px;
    }
}

/* 辅助类 */
.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--text-secondary); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }

/* 图片模态框样式 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    justify-content: center;
    align-items: center;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--border-radius);
    animation: zoom 0.3s ease;
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 16px 0;
    height: auto;
    font-size: 14px;
}

@keyframes zoom {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 24px;
    right: 36px;
    color: #fff;
    font-size: 48px;
    font-weight: 300;
    transition: var(--transition);
    cursor: pointer;
    background: rgba(0, 0, 0, 0.2);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.4);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}