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

 :root {
     --bg-0: #070A12;
     --bg-1: #0B1022;
     --glass: rgba(255, 255, 255, 0.07);
     --glass-2: rgba(255, 255, 255, 0.10);
     --border: rgba(255, 255, 255, 0.14);
     --border-strong: rgba(255, 255, 255, 0.22);
     --text: rgba(255, 255, 255, 0.92);
     --text-muted: rgba(255, 255, 255, 0.62);
     --text-dim: rgba(255, 255, 255, 0.46);
     --primary: #7C5CFF;
     --primary-2: #00D1FF;
     --danger: #FF4D6D;
     --success: #2DE2A6;
     --warning: #FFD166;
     --shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
     --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.32);
     --r-sm: 10px;
     --r-md: 14px;
     --r-lg: 18px;
 }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: radial-gradient(1200px 700px at 20% 10%, rgba(124, 92, 255, 0.28), transparent 60%),
        radial-gradient(900px 600px at 85% 25%, rgba(0, 209, 255, 0.22), transparent 55%),
        linear-gradient(160deg, var(--bg-0), var(--bg-1));
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-attachment: fixed;
}

 body::before {
     content: "";
     position: fixed;
     inset: 0;
     background:
         radial-gradient(600px 400px at 30% 80%, rgba(255, 77, 109, 0.10), transparent 65%),
         radial-gradient(700px 500px at 80% 75%, rgba(45, 226, 166, 0.10), transparent 60%);
     filter: blur(0px);
     pointer-events: none;
     z-index: 0;
 }

 body > * {
     position: relative;
     z-index: 1;
 }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

.text-muted { color: var(--text-muted); font-size: 0.9rem; }
.link-primary { color: rgba(0, 209, 255, 0.95); font-weight: 600; }
.link-primary:hover { color: rgba(124, 92, 255, 0.95); }

 a:focus-visible,
 button:focus-visible,
 input:focus-visible,
 select:focus-visible,
 textarea:focus-visible {
     outline: 2px solid rgba(0, 209, 255, 0.65);
     outline-offset: 2px;
 }

/* ========== 导航栏 ========== */
.navbar {
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.40), rgba(0, 209, 255, 0.18));
    padding: 0 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    white-space: nowrap;
    position: relative;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(124, 92, 255, 0.8), rgba(0, 209, 255, 0.8));
    transition: width 0.25s ease, left 0.25s ease;
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 60%;
    left: 20%;
}

.btn-publish {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
}

.btn-publish:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ========== Flash消息 ========== */
.flash-container {
    margin-top: 12px;
}

.alert {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.3s ease;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

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

.alert-error { background: rgba(255, 77, 109, 0.12); color: rgba(255, 255, 255, 0.92); border: 1px solid rgba(255, 77, 109, 0.28); }
.alert-success { background: rgba(45, 226, 166, 0.12); color: rgba(255, 255, 255, 0.92); border: 1px solid rgba(45, 226, 166, 0.28); }
.alert-warning { background: rgba(255, 209, 102, 0.12); color: rgba(255, 255, 255, 0.92); border: 1px solid rgba(255, 209, 102, 0.28); }
.alert-close {
    cursor: pointer;
    font-size: 1.3rem;
    opacity: 0.6;
    padding: 0 4px;
}
.alert-close:hover { opacity: 1; }

/* ========== 主内容区 ========== */
.main-content {
    flex: 1;
    padding-top: 20px;
    padding-bottom: 40px;
}

/* ========== 顶部横幅 ========== */
.hero {
    text-align: center;
    padding: 40px 20px;
    background:
        radial-gradient(1200px 600px at 30% 20%, rgba(124, 92, 255, 0.45), transparent 55%),
        radial-gradient(900px 520px at 70% 40%, rgba(0, 209, 255, 0.30), transparent 60%),
        rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.96);
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

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

.hero-actions {
    margin-top: 20px;
    display: flex;
    gap: 14px;
    justify-content: center;
}

.btn-hero {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.95), rgba(0, 209, 255, 0.85));
    color: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    box-shadow: 0 14px 40px rgba(124, 92, 255, 0.22);
}
.btn-hero:hover { transform: scale(1.05); }

.btn-hero-outline {
    display: inline-block;
    padding: 12px 32px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
    border-radius: 24px;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s;
}
.btn-hero-outline:hover { background: rgba(255,255,255,0.15); }

/* ========== 搜索和筛选 ========== */
.search-section {
    margin-bottom: 24px;
}

.search-form {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
    outline: none;
    background: rgba(0, 0, 0, 0.20);
    color: rgba(255, 255, 255, 0.92);
}

.search-input:focus {
    border-color: rgba(0, 209, 255, 0.55);
    box-shadow: 0 0 0 4px rgba(0, 209, 255, 0.14);
}

.search-btn {
    padding: 12px 28px;
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.95), rgba(0, 209, 255, 0.85));
    color: rgba(255, 255, 255, 0.96);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    box-shadow: 0 14px 40px rgba(124, 92, 255, 0.18);
}

.search-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-group label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.70);
    white-space: nowrap;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
    background: rgba(0, 0, 0, 0.20);
    color: rgba(255, 255, 255, 0.88);
    cursor: pointer;
    color-scheme: dark;
}

.filter-select option,
.filter-select optgroup {
    background: #0B1022;
    color: rgba(255, 255, 255, 0.92);
}

.filter-select option:checked {
    background: rgba(124, 92, 255, 0.40);
    color: rgba(255, 255, 255, 0.96);
}

.filter-select:focus {
    border-color: rgba(0, 209, 255, 0.55);
    box-shadow: 0 0 0 4px rgba(0, 209, 255, 0.14);
}

.filter-btn {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}

.reset-btn {
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
    border-radius: 6px;
    transition: color 0.2s;
}

.reset-btn:hover {
    color: rgba(0, 209, 255, 0.95);
}

/* ========== 统计信息 ========== */
.stats-section {
    margin-bottom: 20px;
}

.stat-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ========== 物品卡片列表 ========== */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.item-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.item-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    border-left: 4px solid transparent;
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.item-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(124, 92, 255, 0.2);
    border-color: rgba(124, 92, 255, 0.3);
}

.lost-card {
    border-left-color: rgba(255, 77, 109, 0.95);
}

.found-card {
    border-left-color: rgba(45, 226, 166, 0.95);
}

.item-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.22);
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.item-body {
    padding: 18px 20px;
}

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

.item-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-lost {
    background: rgba(255, 77, 109, 0.14);
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 77, 109, 0.22);
}

.badge-found {
    background: rgba(45, 226, 166, 0.14);
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(45, 226, 166, 0.22);
}

.item-status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
}

.status-unclaimed {
    background: rgba(255, 209, 102, 0.14);
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 209, 102, 0.22);
}

.status-claimed {
    background: rgba(45, 226, 166, 0.14);
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(45, 226, 166, 0.22);
}

.item-title {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.92);
}

.item-info p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.70);
    margin-bottom: 4px;
}

.info-label {
    color: rgba(255, 255, 255, 0.56);
}

.item-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.62);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.item-poster {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.56);
}

.detail-link {
    color: rgba(0, 209, 255, 0.92);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.detail-link:hover {
    color: rgba(124, 92, 255, 0.95);
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 8px;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 24px;
}

/* ========== 按钮样式 ========== */
.btn-primary {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.95), rgba(0, 209, 255, 0.85));
    color: rgba(255, 255, 255, 0.96);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s, box-shadow 0.3s ease;
    box-shadow: 0 14px 40px rgba(124, 92, 255, 0.18);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.05);
    box-shadow: 0 18px 48px rgba(124, 92, 255, 0.28);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s, box-shadow 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 32px rgba(255, 255, 255, 0.1);
}

.btn-danger {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(255, 77, 109, 0.90);
    color: rgba(255, 255, 255, 0.96);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
}

.btn-danger:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.btn-large {
    padding: 14px 36px;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
    text-align: center;
}

.btn-sm {
    padding: 5px 14px;
    font-size: 0.82rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.btn-edit {
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.btn-edit:hover { background: rgba(255, 255, 255, 0.16); }

/* ========== 发布/编辑页面 ========== */
.publish-section {
    max-width: 650px;
    margin: 0 auto;
}

.page-title {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.94);
}

.publish-form {
    background: rgba(255, 255, 255, 0.06);
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.95rem;
}

.required {
    color: rgba(255, 77, 109, 0.92);
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
    outline: none;
    font-family: inherit;
    background: rgba(0, 0, 0, 0.20);
    color: rgba(255, 255, 255, 0.90);
}

.form-input:hover {
    border-color: rgba(255, 255, 255, 0.22);
}

.form-input:focus {
    border-color: rgba(0, 209, 255, 0.65);
    box-shadow: 0 0 0 4px rgba(0, 209, 255, 0.12), 0 0 20px rgba(0, 209, 255, 0.15);
    transform: translateY(-1px);
}

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

.radio-group {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.04);
}

.radio-label:has(input:checked) {
    border-color: rgba(0, 209, 255, 0.55);
    background: rgba(0, 209, 255, 0.10);
}

.radio-label input[type="radio"] {
    accent-color: rgba(0, 209, 255, 0.95);
}

.form-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 30px;
}

/* ========== 图片上传 ========== */
.upload-area {
    position: relative;
    border: 1px dashed rgba(255, 255, 255, 0.30);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
}

.upload-area:hover {
    border-color: rgba(0, 209, 255, 0.60);
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 20px;
    color: rgba(255, 255, 255, 0.70);
}

.upload-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.upload-hint {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.52);
    margin-top: 4px;
}

.upload-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
}

.upload-preview img {
    max-height: 240px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.upload-remove {
    margin-top: 10px;
    color: rgba(255, 77, 109, 0.92);
    font-size: 0.85rem;
    cursor: pointer;
    z-index: 3;
    position: relative;
}
.upload-remove:hover { text-decoration: underline; }

.current-image {
    margin-bottom: 12px;
    text-align: center;
}
.current-image img {
    max-height: 200px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.current-image p {
    margin-top: 6px;
}

/* ========== 详情页 ========== */
.detail-section {
    max-width: 740px;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: rgba(0, 209, 255, 0.92);
    font-weight: 500;
    transition: color 0.2s;
}

.back-link:hover {
    color: rgba(124, 92, 255, 0.95);
}

.detail-card {
    background: rgba(255, 255, 255, 0.06);
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

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

.detail-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.94);
}

.detail-image {
    margin-bottom: 24px;
    text-align: center;
    background: rgba(0, 0, 0, 0.22);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.detail-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.56);
}

.detail-value {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
}

.contact-value {
    color: rgba(0, 209, 255, 0.92);
    font-weight: 700;
}

.detail-description {
    padding: 20px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-description h3 {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 8px;
}

.detail-description p {
    color: rgba(255, 255, 255, 0.70);
    line-height: 1.8;
}

/* 联系方式卡片 */
.contact-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.contact-card h3 {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 12px;
}

.contact-info p {
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.detail-actions {
    display: flex;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    align-items: center;
}

/* ========== 评论区 ========== */
.comments-section {
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.comments-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.92);
}

.comments-list {
    margin-bottom: 24px;
}

.comment-item {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

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

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

.comment-author {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.9rem;
}

.comment-time {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.46);
}

.comment-content {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.95rem;
    line-height: 1.7;
}

.comments-empty {
    text-align: center;
    padding: 24px;
    color: rgba(255, 255, 255, 0.56);
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-form .form-textarea {
    min-height: 80px;
}

.comment-form .btn-primary {
    align-self: flex-end;
}

.comment-login-hint {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ========== 登录/注册页面 ========== */
.auth-section {
    max-width: 440px;
    margin: 40px auto;
}

.auth-card {
    background: rgba(255, 255, 255, 0.06);
    padding: 40px 36px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.auth-title {
    font-size: 1.6rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.94);
    margin-bottom: 6px;
}

.auth-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.95rem;
    margin-bottom: 28px;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
}

/* ========== 个人中心 ========== */
.profile-section {
    max-width: 800px;
    margin: 0 auto;
}

.profile-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    margin-bottom: 28px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.95), rgba(0, 209, 255, 0.85));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    flex-shrink: 0;
}

.profile-basic h3 {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.92);
}

.profile-basic p {
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.88rem;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.section-title {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 16px;
}

.my-items-section {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.my-items-list {
    display: flex;
    flex-direction: column;
}

.my-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    gap: 12px;
}

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

.my-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.my-item-title {
    color: rgba(255, 255, 255, 0.90);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.my-item-title:hover {
    color: rgba(0, 209, 255, 0.92);
}

.my-item-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.my-item-date {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.46);
}

/* ========== 通知铃铛 ========== */
.notif-link {
    position: relative;
    font-size: 1.15rem;
    padding: 4px 8px !important;
}

.notif-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    background: rgba(255, 77, 109, 0.95);
    color: rgba(255, 255, 255, 0.96);
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0 4px;
    animation: notifPulse 2s infinite;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 24px rgba(255, 77, 109, 0.16);
}

@keyframes notifPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ========== 通知页面 ========== */
.notif-section {
    max-width: 700px;
    margin: 0 auto;
}

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

.notif-list {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.25s ease, transform 0.2s ease, padding-left 0.2s ease;
}

.notif-item:last-child { border-bottom: none; }
.notif-item:hover { 
    background: rgba(124, 92, 255, 0.08); 
    transform: translateX(4px);
    padding-left: 24px;
}

.notif-unread {
    background: rgba(0, 209, 255, 0.06);
    border-left: 3px solid rgba(0, 209, 255, 0.6);
}
.notif-unread:hover { 
    background: rgba(0, 209, 255, 0.10); 
}

.notif-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.24);
    flex-shrink: 0;
    margin-top: 6px;
}

.dot-unread {
    background: rgba(0, 209, 255, 0.92);
}

.notif-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notif-content {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.95rem;
    line-height: 1.5;
}

a.notif-content:hover {
    color: rgba(0, 209, 255, 0.95);
}

.notif-time {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.46);
}

/* ========== 管理后台 ========== */
.admin-section {
    max-width: 1100px;
    margin: 0 auto;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.admin-stat-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 3px solid rgba(0, 209, 255, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.admin-stat-card.card-lost { border-top-color: rgba(255, 77, 109, 0.80); }
.admin-stat-card.card-found { border-top-color: rgba(45, 226, 166, 0.80); }
.admin-stat-card.card-claimed { border-top-color: rgba(255, 209, 102, 0.80); }

.admin-stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.94);
    line-height: 1.2;
}

.admin-stat-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.56);
    margin-top: 4px;
}

.admin-panel {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    margin-bottom: 24px;
}

.admin-panel-title {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th {
    background: linear-gradient(180deg, rgba(124, 92, 255, 0.08) 0%, rgba(0, 209, 255, 0.05) 100%);
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
    padding: 12px 14px;
    text-align: left;
    white-space: nowrap;
    border-bottom: 2px solid rgba(124, 92, 255, 0.3);
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.78);
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: rgba(124, 92, 255, 0.06);
}

.action-cell {
    white-space: nowrap;
}

.role-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
}

.role-admin {
    background: rgba(0, 209, 255, 0.10);
    color: rgba(255, 255, 255, 0.90);
    border: 1px solid rgba(0, 209, 255, 0.22);
}

.role-user {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-del {
    background: rgba(255, 77, 109, 0.14);
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 77, 109, 0.22);
}
.btn-del:hover { background: rgba(255, 77, 109, 0.20); }

/* ========== 页脚 ========== */
.footer {
    background: rgba(255, 255, 255, 0.04);
    padding: 20px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.50);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    margin-top: auto;
}

 @media (prefers-reduced-motion: reduce) {
     *, *::before, *::after {
         animation-duration: 0.001ms !important;
         animation-iteration-count: 1 !important;
         transition-duration: 0.001ms !important;
         scroll-behavior: auto !important;
     }
 }

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    /* 导航栏优化 - 移动端可横向滚动 */
    .nav-links { 
        gap: 6px; 
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        max-width: calc(100% - 130px);
    }
    .nav-links::-webkit-scrollbar { display: none; }
    .nav-link { 
        padding: 4px 6px; 
        font-size: 0.8rem;
        flex-shrink: 0;
    }
    .logo { 
        font-size: 1rem; 
        gap: 4px;
    }
    .logo-icon { font-size: 1.2rem; }
    .nav-content { height: 56px; }

    /* Hero 区域紧凑 */
    .hero { padding: 28px 16px; }
    .hero h1 { font-size: 1.35rem; }
    .hero p { font-size: 0.95rem; }
    .hero-actions { 
        flex-direction: column; 
        align-items: stretch;
        gap: 12px;
    }
    .hero-actions .btn-large { text-align: center; }

    /* 搜索表单紧凑 */
    .search-form { padding: 16px; }
    .search-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .search-input { min-width: 100%; }
    .search-btn { width: 100%; justify-content: center; }

    /* 筛选栏移动端优化 */
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .filter-group {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }
    .filter-group label {
        font-size: 0.85rem;
        flex-shrink: 0;
    }
    .filter-select {
        flex: 1;
        max-width: 140px;
    }
    .filter-btn {
        width: 100%;
        text-align: center;
    }

    /* 物品卡片单列紧凑 */
    .items-grid { 
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .item-card { border-radius: 10px; }
    .item-image { height: 160px; }
    .item-body { padding: 14px 16px; }
    .item-title { font-size: 1.05rem; }
    .item-footer { 
        flex-direction: column; 
        align-items: flex-start;
        gap: 8px;
    }

    /* 详情页紧凑 */
    .detail-card { padding: 20px; }
    .detail-title { font-size: 1.25rem; }
    .detail-image img { max-height: 280px; }
    .detail-info-grid { grid-template-columns: 1fr; gap: 14px; }
    .detail-actions { flex-wrap: wrap; }
    .detail-actions .btn-primary,
    .detail-actions .btn-secondary {
        flex: 1;
        min-width: 120px;
    }

    /* 评论区紧凑 */
    .comments-section { padding: 20px; }
    .comment-header { flex-direction: column; align-items: flex-start; gap: 4px; }
    .comment-form .btn-primary { align-self: stretch; width: 100%; }

    /* 个人中心紧凑 */
    .profile-card { padding: 20px; }
    .profile-header { 
        flex-direction: column; 
        text-align: center;
        gap: 12px;
    }
    .profile-avatar { width: 56px; height: 56px; font-size: 1.4rem; }
    .profile-form-grid { grid-template-columns: 1fr; }
    .my-items-section { padding: 20px; }
    .my-item-row { 
        flex-direction: column; 
        align-items: flex-start;
        gap: 10px;
    }
    .my-item-right { 
        width: 100%; 
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    /* 表单紧凑 */
    .radio-group { flex-direction: column; gap: 10px; }
    .radio-label { padding: 8px 14px; }
    .form-actions { flex-direction: column; }
    .form-actions .btn-primary,
    .form-actions .btn-secondary { width: 100%; text-align: center; }
    .btn-large { padding: 12px 24px; font-size: 1rem; }
    .publish-form { padding: 20px; }
    .auth-card { padding: 24px 20px; }

    /* 管理后台表格优化 */
    .admin-table-wrap { 
        margin: 0 -16px; 
        padding: 0 16px;
        -webkit-overflow-scrolling: touch;
    }
    .admin-table { font-size: 0.85rem; min-width: 600px; }
    .admin-table th,
    .admin-table td { padding: 8px 10px; }
    .action-cell { display: flex; flex-wrap: wrap; gap: 6px; }
    .action-cell .btn-sm { padding: 4px 10px; font-size: 0.75rem; }

    /* 通知页面紧凑 */
    .notif-item { padding: 12px 16px; }
    .notif-content { font-size: 0.9rem; }

    /* 页面容器紧凑 */
    .container { padding: 0 16px; }
    .main-content { padding-top: 16px; padding-bottom: 32px; }
    
    /* Flash 消息紧凑 */
    .alert { padding: 12px 16px; font-size: 0.9rem; }
}

/* 更小屏幕的额外优化 */
@media (max-width: 480px) {
    .nav-links { 
        gap: 2px; 
    }
    .nav-link { 
        padding: 3px 5px; 
        font-size: 0.75rem;
    }
    .logo { font-size: 1rem; }
    .nav-content { height: 52px; }
    
    .hero { padding: 20px 14px; }
    .hero h1 { font-size: 1.2rem; }
    
    .items-grid { gap: 12px; }
    .item-image { height: 140px; }
    .item-body { padding: 12px 14px; }
    .item-title { font-size: 1rem; }
    
    .filter-group label { font-size: 0.8rem; }
    .filter-select { font-size: 0.85rem; padding: 6px 10px; }
    
    .detail-card { padding: 16px; }
    .detail-title { font-size: 1.1rem; }
    
    .auth-card { padding: 20px 16px; }
    .page-title { font-size: 1.3rem; }
    
    .admin-table th,
    .admin-table td { padding: 6px 8px; font-size: 0.8rem; }
    .admin-stat-num { font-size: 1.6rem; }
}
