/* 停车场信息分享平台 - 移动优先样式表 */

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --bg-color: #f8fafc;
    --text-color: #1e293b;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

html {
    /* 防止iOS页面缩放 */
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px; /* 移动端基础字号 */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* 移动端减少边距 */
}

/* 头部 - 移动优先 */
header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 15px;
    gap: 0.75rem;
}

header h1 {
    font-size: 1.3rem;
    color: var(--primary-color);
    text-align: center;
}

nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 0.9rem;
    flex: 0 0 auto;
    white-space: nowrap;
    /* 增加触摸区域 */
    min-height: 44px;
    display: flex;
    align-items: center;
}

nav a:active {
    transform: scale(0.95);
}

nav a.active {
    background-color: var(--primary-color);
    color: white;
}

/* 桌面端导航 */
@media (min-width: 768px) {
    header .container {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 20px;
    }
    
    header h1 {
        font-size: 1.5rem;
        text-align: left;
    }
    
    nav {
        justify-content: flex-end;
        gap: 1rem;
    }
    
    nav a {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    nav a:hover {
        background-color: var(--bg-color);
    }
}

/* 按钮 - 移动优先，大触摸区域 */
.btn {
    display: inline-block;
    padding: 0.8rem 1.2rem; /* 增大触摸区域 */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 1rem;
    background-color: white;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    min-height: 44px; /* iOS推荐的最小触摸区域 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 500;
    /* 防止长按选中文字 */
    user-select: none;
    -webkit-user-select: none;
}

.btn:active {
    transform: scale(0.97);
}

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

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

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

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

.btn-large {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    min-height: 50px;
}

.btn-block {
    width: 100%;
}

/* 桌面端按钮效果 */
@media (min-width: 768px) {
    .btn {
        padding: 0.6rem 1.2rem;
    }
    
    .btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }
    
    .btn:active {
        transform: translateY(0);
    }
}

/* 主要内容 */
main {
    padding: 1rem 0; /* 移动端减少内边距 */
    min-height: calc(100vh - 200px);
}

@media (min-width: 768px) {
    main {
        padding: 2rem 0;
    }
}

/* 首页英雄区域 - 移动优先 */
.hero {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.hero h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    line-height: 1.3;
}

.hero p {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .hero {
        padding: 4rem 2rem;
        margin-bottom: 3rem;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .hero-actions {
        flex-direction: row;
        gap: 1rem;
    }
}

/* 特色功能 - 移动优先 */
.features {
    margin: 2rem 0;
}

.features h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 移动端两列 */
    gap: 1rem;
}

.feature-card {
    background: white;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.2s;
}

.feature-card:active {
    transform: scale(0.97);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.feature-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.feature-card p {
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .features {
        margin: 3rem 0;
    }
    
    .features h3 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
    
    .feature-card {
        padding: 2rem;
    }
    
    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }
    
    .feature-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .feature-card h4 {
        font-size: 1.3rem;
    }
    
    .feature-card p {
        font-size: 1rem;
    }
}

/* 停车场网格 - 移动优先 */
.parking-grid {
    display: grid;
    grid-template-columns: 1fr; /* 移动端单列 */
    gap: 1rem;
    margin: 1rem 0;
}

.parking-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1.2rem;
    transition: all 0.2s;
}

.parking-card:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-lg);
}

.parking-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    line-height: 1.4;
}

.parking-info {
    margin: 0.6rem 0;
    display: flex;
    align-items: start;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.parking-info strong {
    min-width: 70px;
    color: #64748b;
    flex-shrink: 0;
}

/* 平板和桌面端 */
@media (min-width: 600px) {
    .parking-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .parking-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 2rem;
        margin: 2rem 0;
    }
    
    .parking-card {
        padding: 1.5rem;
    }
    
    .parking-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }
    
    .parking-card h3 {
        font-size: 1.3rem;
    }
    
    .parking-info {
        font-size: 1rem;
    }
}

/* 页面头部 - 移动优先 */
.page-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.page-header h2 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.page-header p {
    font-size: 0.95rem;
    color: #64748b;
}

@media (min-width: 768px) {
    .page-header {
        margin-bottom: 3rem;
    }
    
    .page-header h2 {
        font-size: 2.5rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
}

/* 筛选表单 - 移动优先 */
.filter-section {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.filter-form {
    display: grid;
    grid-template-columns: 1fr; /* 移动端单列 */
    gap: 0.8rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .filter-section {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .filter-form {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        align-items: end;
    }
}

/* 表单样式 - 移动优先 */
.form-section {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.submit-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-section-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.form-section-title:first-child {
    margin-top: 0;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr; /* 移动端单列 */
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
}

.required {
    color: var(--danger-color);
}

.input-field {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px; /* 防止iOS自动缩放 */
    transition: all 0.3s;
    -webkit-appearance: none; /* 移除iOS默认样式 */
    appearance: none;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea.input-field {
    resize: vertical;
    font-family: inherit;
    min-height: 100px;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

/* 平板和桌面端 */
@media (min-width: 768px) {
    .form-section {
        padding: 2rem;
    }
    
    .form-section-title {
        font-size: 1.3rem;
        margin: 2rem 0 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .form-group label {
        font-size: 1rem;
    }
    
    .input-field {
        padding: 0.75rem;
    }
    
    .form-actions {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        margin-top: 2rem;
    }
}

/* 消息提示 */
.message {
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}

.message-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.message-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* 加载和空状态 */
.loading, .no-results {
    text-align: center;
    padding: 3rem;
    color: #64748b;
    font-size: 1.1rem;
}

/* 管理后台样式 */
.admin-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.admin-header h1 {
    color: white;
}

.admin-header nav {
    color: white;
}

.admin-header nav a {
    color: white;
}

.admin-header nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-header nav a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.admin-header nav span {
    margin-right: 1rem;
}

/* 登录页面 */
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.login-box h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 2rem;
}

.login-form {
    margin: 2rem 0;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.login-info {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: #64748b;
}

/* 审核列表 */
.admin-container {
    margin-top: 2rem;
}

.stats-bar {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    display: flex;
    gap: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-label {
    font-weight: 500;
    color: #64748b;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.review-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.review-item:hover {
    box-shadow: var(--shadow);
}

.review-item.rejected {
    background-color: #fef2f2;
}

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

.review-item-header h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.review-item-body {
    margin: 1rem 0;
}

.review-item-body p {
    margin: 0.5rem 0;
}

.review-item-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* 徽章 */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-success {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.modal-close {
    font-size: 2rem;
    cursor: pointer;
    color: #64748b;
    line-height: 1;
}

.modal-close:hover {
    color: var(--danger-color);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* 详情网格 */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    padding: 0.75rem;
    background-color: var(--bg-color);
    border-radius: 6px;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-item strong {
    color: #64748b;
    display: block;
    margin-bottom: 0.25rem;
}

/* 工具类 */
.text-center {
    text-align: center;
}

.text-danger {
    color: var(--danger-color);
}

/* 页脚 */
footer {
    background: white;
    padding: 2rem 0;
    margin-top: 4rem;
    box-shadow: 0 -1px 3px rgba(0,0,0,0.1);
}

footer p {
    text-align: center;
    color: #64748b;
}

/* 额外的移动端优化 */
@media (max-width: 480px) {
    /* 超小屏幕优化 */
    body {
        font-size: 15px;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .parking-card h3 {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }
    
    .modal-content {
        max-height: 95vh;
        margin: 10px;
    }
}

/* list.php页面的投票和导航按钮样式 */
.vote-section {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    align-items: center;
}

.vote-btn {
    padding: 10px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: white;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.vote-btn.vote-like:hover {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.vote-btn.vote-dislike:hover {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.vote-btn.user-voted.vote-like {
    background: linear-gradient(135deg, #28a745, #34ce57);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.vote-btn.user-voted.vote-dislike {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.vote-icon {
    font-size: 18px;
}

.vote-count {
    font-weight: 600;
}

.vote-score {
    margin-left: auto;
    padding: 8px 14px;
    background: #f1f3f5;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.vote-score-value {
    color: #2c3e50;
}

/* 统一的评分显示样式（用于首页和详细搜索页）*/
.result-score {
    display: inline-block;
    padding: 6px 14px;
    background: #f1f3f5;
    border-radius: 12px;
    font-weight: bold;
    font-size: 14px;
    margin-top: 10px;
}

.result-score.positive {
    background: #d4edda;
    color: #28a745;
}

.result-score.negative {
    background: #f8d7da;
    color: #dc3545;
}

.nav-btn {
    padding: 10px 16px;
    background: linear-gradient(135deg, #f93a5a, #f7778c);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(249, 58, 90, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 58, 90, 0.4);
}

/* index.php页面的投票和导航按钮样式 */
.result-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.action-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.nav-action-btn {
    background: linear-gradient(135deg, #f93a5a, #f7778c);
    color: white;
    box-shadow: 0 2px 8px rgba(249, 58, 90, 0.3);
}

.nav-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 58, 90, 0.4);
}

.vote-action-btn {
    position: relative;
    border: 2px solid transparent;
}

/* 赞同按钮 - 未投票 */
.vote-action-btn:nth-child(2) {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #28a745;
    border-color: #28a745;
}

.vote-action-btn:nth-child(2):hover {
    background: linear-gradient(135deg, #c3e6cb, #b1dfbb);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

/* 反对按钮 - 未投票 */
.vote-action-btn:nth-child(3) {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #dc3545;
    border-color: #dc3545;
}

.vote-action-btn:nth-child(3):hover {
    background: linear-gradient(135deg, #f5c6cb, #f1b0b7);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

/* 已投票状态 - 颜色加深 */
.vote-action-btn.user-voted {
    border-color: transparent;
}

.vote-action-btn.user-voted.like {
    background: linear-gradient(135deg, #28a745, #34ce57);
    color: white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.4);
}

.vote-action-btn.user-voted.dislike {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: white;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
}

.vote-count-badge {
    background: rgba(0,0,0,0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.vote-action-btn.voted {
    animation: voteAnimation 0.6s ease;
}

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

/* 导航菜单样式 */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nav-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.nav-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 10000;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.nav-menu.show {
    transform: translateY(0);
}

.nav-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.nav-menu-header h3 {
    margin: 0;
    font-size: 18px;
    color: #2c3e50;
}

.nav-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.nav-menu-close:hover {
    background: #f0f0f0;
}

.nav-menu-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.nav-options {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: #2c3e50;
    border-left: 4px solid transparent;
}

.nav-option:hover {
    background: #f8f9fa;
    transform: translateX(4px);
}

.nav-option:last-child {
    border-bottom: none;
}

.nav-option-icon {
    font-size: 24px;
    width: 32px;
    text-align: center;
}

.nav-option-name {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
}

.nav-option-arrow {
    font-size: 18px;
    color: #999;
}

/* 复制通知样式 */
.copy-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}

.copy-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.notification-icon {
    font-size: 20px;
}

.notification-text {
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
}


/* 停车场卡片图片样式 */
.parking-card-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    margin: 0 0 15px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.parking-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.parking-card-image .image-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    backdrop-filter: blur(4px);
}

/* 移动端图片优化 */
@media (max-width: 768px) {
    .parking-card-image {
        height: 150px;
    }
}

/* submit.php 图片预览样式优化 */
.image-preview {
    position: relative;
    max-width: 400px;
    margin-top: 15px;
}

.image-preview img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid #dee2e6;
}

.btn-remove-image {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-remove-image:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* 移动端优化 */
@media (max-width: 768px) {
    .image-preview {
        max-width: 100%;
    }
    
    .image-preview img {
        max-height: 250px;
    }
}

/* 表单错误提示样式 */
.input-error {
    border: 2px solid #dc3545 !important;
    background-color: #fff5f5 !important;
    animation: shake 0.5s;
}

.error-message {
    display: none;
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    padding: 8px 12px;
    background: #fff5f5;
    border-left: 3px solid #dc3545;
    border-radius: 4px;
    animation: slideDown 0.3s ease;
}

.error-message.show {
    display: block;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

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

/* 成功状态 */
.input-success {
    border: 2px solid #28a745 !important;
    background-color: #f0fff4 !important;
}

/* 覆盖之前的错误样式，使用更高优先级 */
input.input-error,
select.input-error,
textarea.input-error,
.searchable-select-input.input-error,
.form-group input.input-error,
.form-group select.input-error,
.form-group textarea.input-error {
    border: 3px solid #dc3545 !important;
    background-color: #fff5f5 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15) !important;
    animation: shake 0.5s !important;
}

/* 覆盖成功状态 */
input.input-success,
select.input-success,
textarea.input-success,
.searchable-select-input.input-success,
.form-group input.input-success,
.form-group select.input-success,
.form-group textarea.input-success {
    border: 2px solid #28a745 !important;
    background-color: #f0fff4 !important;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.15) !important;
}
