/* 简洁白色调主题 - 完美适配手机、平板、电脑 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    color: #333333;
    line-height: 1.6;
    min-height: 100vh;
    font-size: 16px;
}

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

/* 头部样式 */
header {
    text-align: center;
    padding: 15px 15px;
    background: white;
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    font-size: 1.5em;
    color: #333333;
    margin-bottom: 0;
    font-weight: 600;
    flex: 1;
}

header p {
    color: #888888;
    font-size: 0.95em;
    display: none;
}

/* 侧边栏菜单按钮 */
.menu-toggle {
    padding: 8px 10px;
    background: transparent;
    color: #333333;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    order: -1;
    margin-right: 15px;
}

.menu-toggle:hover {
    background: #f8f8f8;
    border-color: #d0d0d0;
}

.menu-toggle.active {
    background: #333333;
    color: white;
    border-color: #333333;
}

/* 侧边栏 */
.sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: left 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.sidebar.open {
    left: 0;
}

.sidebar-header {
    padding: 20px 15px;
    background: white;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    z-index: 1002;
}

.sidebar-header h2 {
    font-size: 1.3em;
    color: #333333;
    margin-bottom: 5px;
    font-weight: 600;
    display: block;
    visibility: visible;
}

.sidebar-header p {
    color: #888888;
    font-size: 0.85em;
    display: block;
    visibility: visible;
}

.sidebar-nav {
    padding: 10px 0;
    flex: 1;
    position: relative;
    z-index: 1002;
    display: flex;
    flex-direction: column;
}

.sidebar-nav-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 12px 15px;
    color: #666666;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
    position: relative;
    z-index: 1003;
    background: white;
    width: 100%;
}

.sidebar-nav-item:hover {
    background: #f8f8f8;
    color: #333333;
}

.sidebar-nav-item.active {
    background: #333333;
    color: white;
}

.sidebar-nav-item-icon {
    margin-right: 10px;
    font-size: 1.1em;
    display: inline-block;
    visibility: visible;
}

.sidebar-footer {
    padding: 15px;
    border-top: 1px solid #f0f0f0;
    position: relative;
    z-index: 1002;
    background: white;
}

.sidebar-footer p {
    color: #888888;
    font-size: 0.8em;
    text-align: center;
    display: block;
    visibility: visible;
}

/* 侧边栏遮罩层 */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    display: block;
}

/* 主内容区域 */
.main-content {
    transition: margin-left 0.3s ease;
}

.main-content.shifted {
    margin-left: 280px;
}

/* 原导航栏隐藏 */
nav {
    display: none;
}

/* 搜索区域 */
.search-section {
    background: white;
    padding: 12px 15px;
    border-radius: 0;
    margin-bottom: 0;
    display: flex;
    gap: 8px;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.95em;
    transition: all 0.2s ease;
    background: #fafafa;
}

.search-input:focus {
    outline: none;
    border-color: #d0d0d0;
    background: white;
}

.map-filter {
    padding: 8px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: white;
    font-size: 0.95em;
    cursor: pointer;
}

.search-btn {
    padding: 8px 16px;
    background: #333333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.95em;
}

.search-btn:hover {
    background: #555555;
}

/* 景点网格 */
.spots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
    padding: 15px;
}

/* 景点卡片 */
.spot-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid #f0f0f0;
}

.spot-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border-color: #e0e0e0;
}

.card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #f8f8f8;
}

.card-content {
    padding: 12px;
}

.card-content h3 {
    font-size: 1.1em;
    color: #333333;
    margin-bottom: 6px;
    font-weight: 600;
}

.card-map {
    color: #666666;
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 0.9em;
}

.card-coords {
    color: #888888;
    font-size: 0.85em;
    margin-bottom: 4px;
}

.card-time {
    color: #aaaaaa;
    font-size: 0.8em;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px;
    display: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top: 3px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 8px;
    color: #666;
}

.upload-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: #333;
    color: white;
    border-radius: 6px;
    text-decoration: none;
}

/* 上传表单 */
.upload-form-container {
    background: white;
    padding: 20px 15px;
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 0;
    border-bottom: 1px solid #f0f0f0;
}

.upload-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.95em;
    transition: all 0.2s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d0d0d0;
    background: white;
}

.form-hint {
    display: block;
    margin-top: 4px;
    color: #888;
    font-size: 0.85em;
}

.image-preview {
    margin-top: 8px;
    border-radius: 6px;
    overflow: hidden;
}

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

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

.submit-btn,
.reset-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.95em;
}

.submit-btn {
    background: #333333;
    color: white;
}

.submit-btn:hover {
    background: #555555;
}

.reset-btn {
    background: #f8f8f8;
    color: #666666;
    border: 1px solid #e0e0e0;
}

.upload-tips {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
}

.upload-tips h3 {
    color: #333;
    margin-bottom: 10px;
}

.upload-tips ul {
    list-style: none;
    padding-left: 0;
}

.upload-tips li {
    margin-bottom: 6px;
    padding-left: 15px;
    position: relative;
}

.upload-tips li::before {
    content: "•";
    color: #666;
    position: absolute;
    left: 0;
}

/* 成功消息 */
.success-message {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.success-message h3 {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.success-message p {
    color: #666;
    margin-bottom: 8px;
}

.continue-btn,
.view-link {
    display: inline-block;
    margin: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.continue-btn {
    background: #333;
    color: white;
    border: none;
    cursor: pointer;
}

.view-link {
    background: #f0f0f0;
    color: #666;
}

/* 管理页面 */
.admin-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 0;
    background: white;
    padding: 10px 15px;
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 6px 12px;
    background: #f8f8f8;
    color: #666666;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.9em;
}

.tab-btn.active {
    background: #333333;
    color: white;
    border-color: #333333;
}

.admin-tab {
    display: none;
}

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

.stats {
    background: white;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-weight: 500;
    color: #333;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 15px;
}

.admin-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.admin-card .card-image {
    height: 160px;
}

.card-actions {
    padding: 12px;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.approve-btn,
.reject-btn,
.delete-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.approve-btn {
    background: #333;
    color: white;
}

.reject-btn,
.delete-btn {
    background: #f0f0f0;
    color: #666;
}

.approve-btn:hover,
.reject-btn:hover,
.delete-btn:hover {
    transform: translateY(-1px);
}

/* 图片管理 */
.image-upload-section {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.image-upload-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

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

.image-card {
    background: white;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.preview-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

.image-info p {
    margin-bottom: 4px;
    color: #666;
}

.image-url {
    width: 100%;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85em;
    background: #f5f5f5;
}

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

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-btn {
    position: absolute;
    right: 15px;
    top: 12px;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
}

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

.reject-form {
    margin-top: 15px;
}

.reject-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    resize: vertical;
}

.modal-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 15px;
}

.cancel-btn {
    padding: 8px 16px;
    background: #f0f0f0;
    color: #666;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

/* Toast提示 */
.toast {
    position: fixed;
    top: 15px;
    right: 15px;
    padding: 12px 20px;
    background: #333;
    color: white;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    animation: slideIn 0.2s ease;
}

.toast.error {
    background: #f0f0f0;
    color: #333;
}

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

/* 页脚 */
footer {
    text-align: center;
    padding: 15px;
    color: #666;
    margin-top: 20px;
}

/* 登录页面 */
.login-container {
    max-width: 380px;
    margin: 30px auto;
    padding: 25px 20px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.login-container h2 {
    text-align: center;
    color: #333333;
    margin-bottom: 18px;
    font-weight: 600;
    font-size: 1.5em;
}

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

.login-btn {
    padding: 10px;
    background: #333333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.95em;
}

.login-btn:hover {
    background: #555555;
}

/* 版本信息 */
.version-info {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.version-info h3 {
    color: #333;
    margin-bottom: 10px;
}

.version-info p {
    color: #666;
    margin-bottom: 5px;
}

.version-announcement {
    background: #f9f9f9;
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
}

/* 响应式设计 - 完美适配各种设备 */

/* 超大屏幕 (1200px+) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .spots-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 15px;
    }
    
    .admin-grid {
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    }
    
    /* 大屏幕显示侧边栏 */
    .sidebar {
        left: 0 !important;
        display: flex !important;
        visibility: visible !important;
    }
    
    .sidebar-header,
    .sidebar-nav,
    .sidebar-nav-item,
    .sidebar-footer {
        visibility: visible !important;
        display: flex !important;
    }
    
    .sidebar-header h2,
    .sidebar-header p,
    .sidebar-nav-item-icon {
        visibility: visible !important;
        display: block !important;
    }
    
    .sidebar-overlay {
        display: none !important;
    }
    
    .main-content {
        margin-left: 280px;
    }
    
    .menu-toggle {
        display: none;
    }
}

/* 大屏幕 (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .spots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* 大屏幕显示侧边栏 */
    .sidebar {
        left: 0 !important;
        display: flex !important;
        visibility: visible !important;
    }
    
    .sidebar-header,
    .sidebar-nav,
    .sidebar-nav-item,
    .sidebar-footer {
        visibility: visible !important;
        display: flex !important;
    }
    
    .sidebar-header h2,
    .sidebar-header p,
    .sidebar-nav-item-icon {
        visibility: visible !important;
        display: block !important;
    }
    
    .sidebar-overlay {
        display: none !important;
    }
    
    .main-content {
        margin-left: 280px;
    }
    
    .menu-toggle {
        display: none;
    }
}

/* 中等屏幕 (768px - 991px) - 平板 */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .spots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .admin-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    header h1 {
        font-size: 1.4em;
    }
    
    /* 平板隐藏侧边栏，使用按钮打开 */
    .sidebar {
        left: -280px;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
}

/* 小屏幕 (576px - 767px) - 大手机 */
@media (min-width: 576px) and (max-width: 767px) {
    .container {
        padding: 12px;
    }
    
    header {
        padding: 12px 12px;
    }
    
    header h1 {
        font-size: 1.2em;
    }
    
    /* 手机隐藏侧边栏 */
    .sidebar {
        left: -280px;
        width: 260px;
    }
    
    .sidebar.open {
        left: 0;
    }
    
    .main-content.shifted {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: flex;
        padding: 6px 8px;
        font-size: 1.1em;
    }
    
    .search-section {
        padding: 10px 12px;
        gap: 6px;
    }
    
    .spots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 12px;
    }
    
    .card-image {
        height: 140px;
    }
    
    .card-content {
        padding: 10px;
    }
    
    .card-content h3 {
        font-size: 1em;
    }
    
    .admin-tabs {
        padding: 8px 12px;
        gap: 4px;
    }
    
    .tab-btn {
        padding: 5px 10px;
        font-size: 0.85em;
    }
    
    .login-container {
        max-width: 350px;
        margin: 25px auto;
        padding: 20px 15px;
    }
}

/* 超小屏幕 (< 576px) - 手机 */
@media (max-width: 575px) {
    body {
        font-size: 15px;
    }
    
    .container {
        padding: 8px;
    }
    
    header {
        padding: 10px 8px;
        border-radius: 0;
    }
    
    header h1 {
        font-size: 1.1em;
        margin-bottom: 0;
    }
    
    /* 手机隐藏侧边栏 */
    .sidebar {
        left: -260px;
        width: 260px;
    }
    
    .sidebar.open {
        left: 0;
    }
    
    .main-content.shifted {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: flex;
        padding: 5px 7px;
        font-size: 1em;
        margin-right: 10px;
    }
    
    .sidebar-header {
        padding: 15px 10px;
    }
    
    .sidebar-header h2 {
        font-size: 1.1em;
    }
    
    .sidebar-nav-item {
        padding: 10px 12px;
        font-size: 0.9em;
    }
    
    .search-section {
        padding: 8px;
        gap: 6px;
        flex-direction: column;
    }
    
    .search-input {
        width: 100%;
        min-width: auto;
        padding: 7px 10px;
        font-size: 0.9em;
    }
    
    .map-filter {
        width: 100%;
        padding: 7px 8px;
        font-size: 0.9em;
    }
    
    .search-btn {
        width: 100%;
        padding: 7px 12px;
        font-size: 0.9em;
    }
    
    .spots-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px;
    }
    
    .spot-card {
        border-radius: 3px;
    }
    
    .card-image {
        height: 120px;
    }
    
    .card-content {
        padding: 8px;
    }
    
    .card-content h3 {
        font-size: 0.95em;
        margin-bottom: 4px;
    }
    
    .card-map {
        font-size: 0.85em;
        margin-bottom: 3px;
    }
    
    .card-coords {
        font-size: 0.8em;
        margin-bottom: 3px;
    }
    
    .card-time {
        font-size: 0.75em;
    }
    
    .upload-form-container {
        padding: 12px 8px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group label {
        font-size: 0.9em;
        margin-bottom: 4px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 7px 8px;
        font-size: 0.9em;
    }
    
    .form-hint {
        font-size: 0.8em;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 6px;
        margin-top: 15px;
    }
    
    .submit-btn,
    .reset-btn {
        width: 100%;
        padding: 7px 12px;
        font-size: 0.9em;
    }
    
    .admin-tabs {
        padding: 6px 8px;
        gap: 3px;
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        padding: 5px 8px;
        font-size: 0.85em;
        border-radius: 3px;
    }
    
    .admin-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px;
    }
    
    .admin-card {
        border-radius: 3px;
    }
    
    .admin-card .card-image {
        height: 120px;
    }
    
    .card-actions {
        padding: 8px;
        gap: 6px;
        flex-direction: column;
    }
    
    .approve-btn,
    .reject-btn,
    .delete-btn {
        width: 100%;
        padding: 6px 12px;
        font-size: 0.85em;
        border-radius: 3px;
    }
    
    .login-container {
        max-width: 100%;
        margin: 15px 8px;
        padding: 15px 12px;
        border-radius: 3px;
    }
    
    .login-container h2 {
        font-size: 1.2em;
        margin-bottom: 15px;
    }
    
    .login-form {
        gap: 10px;
    }
    
    .login-btn {
        padding: 8px;
        font-size: 0.9em;
        border-radius: 3px;
    }
    
    .modal-content {
        width: 95%;
        padding: 15px 12px;
        border-radius: 3px;
    }
    
    .close-btn {
        right: 10px;
        top: 8px;
        font-size: 24px;
    }
    
    .toast {
        top: 8px;
        right: 8px;
        left: 8px;
        padding: 8px 12px;
        font-size: 0.85em;
        border-radius: 3px;
    }
    
    .version-info {
        padding: 10px 8px;
        border-radius: 3px;
    }
    
    .version-info h3 {
        font-size: 0.95em;
    }
    
    .version-info p {
        font-size: 0.85em;
    }
    
    .upload-tips {
        padding: 10px 8px;
        border-radius: 3px;
    }
    
    .upload-tips h3 {
        font-size: 0.95em;
    }
    
    .upload-tips li {
        font-size: 0.85em;
        margin-bottom: 4px;
    }
}

/* 超超小屏幕 (< 320px) - 小手机 */
@media (max-width: 320px) {
    body {
        font-size: 14px;
    }
    
    header h1 {
        font-size: 1.1em;
    }
    
    .nav-link {
        padding: 4px 8px;
        font-size: 0.75em;
    }
    
    .card-content h3 {
        font-size: 0.9em;
    }
    
    .login-container h2 {
        font-size: 1.2em;
    }
}

/* 横屏手机优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .login-container {
        margin: 10px auto;
        padding: 12px 15px;
    }
    
    .login-container h2 {
        font-size: 1.2em;
        margin-bottom: 10px;
    }
    
    .login-form {
        gap: 8px;
    }
    
    header {
        padding: 10px 8px;
    }
    
    header h1 {
        font-size: 1.1em;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    body {
        background: white;
        color: black;
    }
    
    .nav-link,
    .search-input,
    .form-group input {
        border-width: 2px;
    }
    
    .submit-btn,
    .login-btn {
        background: black;
    }
}

/* 打印样式 */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .search-section,
    nav,
    .form-actions,
    .card-actions,
    .admin-tabs {
        display: none;
    }
    
    .spots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .spot-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}