/* 猎金联盟 — Arcane 主题样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Trebuchet MS', Helvetica, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 30%, #1f1f1f 70%, #0f0f0f 100%);
    color: #f0f0f0;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

/* 背景金色粒子效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
                      radial-gradient(circle at 80% 80%, rgba(255, 165, 0, 0.06) 0%, transparent 50%),
                      radial-gradient(circle at 40% 60%, rgba(218, 165, 32, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

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

/* 金色光效类 */
.arcane-glow {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3), inset 0 0 20px rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.5);
    background: rgba(255, 215, 0, 0.05);
}

.arcane-text {
    background: linear-gradient(45deg, #FFD700, #FFA500, #DAA520, #B8860B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.gold-text {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #2d2d2d 0%, #1f1f1f 100%);
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 12px;
}

.site-logo {
    height: 85px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
    transition: all 0.3s ease;
}

.site-title:hover .site-logo {
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.3));
}

.site-title:hover {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.title-text {
    display: flex;
    flex-direction: column;
}

.title-text h1 {
    font-size: 2.5rem;
    margin: 0;
    line-height: 1.2;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    font-weight: 900;
}

.site-subtitle {
    font-size: 1rem;
    color: #DAA520;
    margin-top: -5px;
    font-style: italic;
    text-shadow: 0 0 10px rgba(218, 165, 32, 0.5);
    letter-spacing: 0.1em;
}

/* 等级徽章样式 */
.rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 8px;
    text-transform: uppercase;
    border: 1px solid;
}

.rank-badge .rank-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.rank-badge:hover .rank-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.4));
}

/* 特殊等级徽章效果 */
.rank-Arcane .rank-icon {
    animation: arcane-glow 2s ease-in-out infinite alternate;
}

@keyframes arcane-glow {
    0% { 
        filter: drop-shadow(0 0 3px rgba(139, 0, 255, 0.5)) hue-rotate(0deg);
    }
    100% { 
        filter: drop-shadow(0 0 8px rgba(139, 0, 255, 0.8)) hue-rotate(10deg);
    }
}

.rank-Obsidian .rank-icon:hover {
    filter: drop-shadow(0 0 8px rgba(255, 165, 0, 0.6));
}

.rank-Gold .rank-icon:hover {
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.8));
}

/* 等级系统样式 */
.level-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid currentColor;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
}

.level-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.points-display {
    color: rgba(255, 215, 0, 0.8);
    font-size: 0.8rem;
    font-weight: normal;
    margin-left: 8px;
}

.rank-Bronze {
    background: linear-gradient(45deg, #CD7F32, #B8860B);
    color: #FFF;
    border-color: #CD7F32;
    text-shadow: 0 0 5px rgba(205, 127, 50, 0.5);
}

.rank-Silver {
    background: linear-gradient(45deg, #C0C0C0, #A8A8A8);
    color: #000;
    border-color: #C0C0C0;
    text-shadow: 0 0 5px rgba(192, 192, 192, 0.5);
}

.rank-Gold {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
    border-color: #FFD700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.rank-Obsidian {
    background: linear-gradient(45deg, #36454F, #2F4F4F);
    color: #FFF;
    border-color: #36454F;
    text-shadow: 0 0 5px rgba(54, 69, 79, 0.5);
}

.rank-Arcane {
    background: linear-gradient(45deg, #8B00FF, #4B0082);
    color: #FFF;
    border-color: #8B00FF;
    text-shadow: 0 0 10px rgba(139, 0, 255, 0.8);
    box-shadow: 0 0 15px rgba(139, 0, 255, 0.4);
}

/* 按钮样式 */
nav button, button {
    background: linear-gradient(45deg, #B8860B, #DAA520);
    color: #000;
    border: 1px solid rgba(218, 165, 32, 0.5);
    padding: 10px 20px;
    margin-left: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

nav button:hover, button:hover {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    transform: translateY(-2px);
}

.gold-button {
    background: linear-gradient(45deg, #FFD700, #FFA500) !important;
    color: #000 !important;
    border-color: #FFD700 !important;
}

.gold-button:hover {
    background: linear-gradient(45deg, #FFA500, #FF8C00) !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5) !important;
}

/* 用户信息区域 */
.user-info-container {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 215, 0, 0.1);
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* 导航按钮样式 */
.nav-btn {
    background: linear-gradient(45deg, #B8860B, #DAA520);
    color: #000;
    border: 1px solid rgba(218, 165, 32, 0.5);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-btn:hover {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    transform: translateY(-1px);
}

/* 游客信息样式 */
.guest-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.guest-text {
    color: #f0f0f0;
    font-size: 1rem;
    font-weight: 500;
}

.guest-actions {
    display: flex;
    gap: 10px;
}

/* 用户头像 */
.user-avatar {
    flex-shrink: 0;
}

.avatar-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 215, 0, 0.5);
    background: rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
}

.avatar-image:hover {
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    transform: scale(1.05);
}

.user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.points-display {
    font-size: 0.9rem;
    color: #FFD700;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.user-actions {
    display: flex;
    gap: 10px;
}

.points-btn {
    background: linear-gradient(45deg, #27ae60, #2ecc71) !important;
    font-size: 0.8rem;
    padding: 8px 16px !important;
}

.points-btn:hover {
    background: linear-gradient(45deg, #229954, #27ae60) !important;
}

.location-btn {
    background: linear-gradient(45deg, #3498db, #2980b9) !important;
    font-size: 0.8rem;
    padding: 8px 16px !important;
}

.location-btn:hover {
    background: linear-gradient(45deg, #2980b9, #3498db) !important;
}

.avatar-btn {
    background: linear-gradient(45deg, #9b59b6, #8e44ad) !important;
    font-size: 0.8rem;
    padding: 8px 16px !important;
}

.avatar-btn:hover {
    background: linear-gradient(45deg, #8e44ad, #9b59b6) !important;
}

.task-btn {
    background: linear-gradient(45deg, #e67e22, #d35400) !important;
    font-size: 0.8rem;
    padding: 8px 16px !important;
}

.task-btn:hover {
    background: linear-gradient(45deg, #d35400, #e67e22) !important;
}

/* 主内容区域 */
main {
    padding: 2rem 0;
}

/* 表单样式 */
#auth-forms, #post-form {
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.9), rgba(31, 31, 31, 0.9));
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.2);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

#auth-forms {
    max-width: 400px;
    margin: 0 auto 2rem auto;
}

#auth-forms h2, #post-form h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(45deg, #FFD700, #FFA500, #DAA520);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.8rem;
    font-weight: bold;
}

#auth-forms input, #auth-forms textarea, 
#post-form input, #post-form textarea, #post-form select {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255, 215, 0, 0.05);
    color: #f0f0f0;
    transition: all 0.3s ease;
}

#auth-forms input:focus, #auth-forms textarea:focus,
#post-form input:focus, #post-form textarea:focus, #post-form select:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.1);
}

#auth-forms input::placeholder, #auth-forms textarea::placeholder,
#post-form input::placeholder, #post-form textarea::placeholder {
    color: rgba(240, 240, 240, 0.6);
}

/* 悬赏任务区域 */
.bounty-section {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.05));
    padding: 1.5rem;
    border-radius: 12px;
    margin: 15px 0;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 8px;
    color: #FFD700;
    font-size: 0.9rem;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.form-group small {
    color: rgba(232, 232, 240, 0.7);
    font-size: 0.8rem;
    margin-top: 5px;
}

/* 任务列表 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
}

.section-header h2 {
    background: linear-gradient(45deg, #FFD700, #B8860B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2rem;
}

.post-item {
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.8), rgba(31, 31, 31, 0.8));
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.post-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.post-item:hover::before {
    left: 100%;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
}

/* 帖子头部布局 */
.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    gap: 15px;
}

.post-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #f0f0f0;
    text-shadow: 0 0 5px rgba(240, 240, 240, 0.3);
    flex: 1;
}

/* 帖子操作按钮 */
.post-actions {
    flex-shrink: 0;
    margin-left: auto;
}

.delete-post-btn {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.8), rgba(192, 57, 43, 0.8));
    color: white;
    border: 1px solid rgba(231, 76, 60, 0.5);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.2);
}

.delete-post-btn:hover {
    background: linear-gradient(135deg, rgba(231, 76, 60, 1), rgba(192, 57, 43, 1));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    border-color: rgba(231, 76, 60, 0.8);
}

.post-meta {
    color: rgba(240, 240, 240, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* 悬赏人标签特殊样式 */
.post-meta .publisher-label {
    color: #FFD700;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.post-preview {
    color: rgba(240, 240, 240, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* 悬赏信息 */
.bounty-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.bounty-amount {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    text-shadow: none;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.task-status {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-open { 
    background: linear-gradient(45deg, #2ecc71, #27ae60); 
    color: white; 
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.3);
}
.status-in-progress { 
    background: linear-gradient(45deg, #3498db, #2980b9); 
    color: white; 
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}
.status-submitted {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.3);
}
.status-completed { 
    background: linear-gradient(45deg, #95a5a6, #7f8c8d); 
    color: white; 
    box-shadow: 0 0 10px rgba(149, 165, 166, 0.3);
}
.status-closed { 
    background: linear-gradient(45deg, #e74c3c, #c0392b); 
    color: white; 
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.3);
}

.difficulty-badge {
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-left: 8px;
    font-weight: bold;
    text-transform: uppercase;
}

.difficulty-easy { 
    background: linear-gradient(45deg, #2ecc71, #27ae60); 
    color: white; 
    box-shadow: 0 0 5px rgba(46, 204, 113, 0.3);
}
.difficulty-normal { 
    background: linear-gradient(45deg, #3498db, #2980b9); 
    color: white; 
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}
.difficulty-hard { 
    background: linear-gradient(45deg, #f39c12, #e67e22); 
    color: white; 
    box-shadow: 0 0 5px rgba(243, 156, 18, 0.3);
}
.difficulty-expert { 
    background: linear-gradient(45deg, #e74c3c, #c0392b); 
    color: white; 
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.3);
}

/* 徽章系统 */
.user-badges {
    display: inline-flex;
    gap: 5px;
    margin-left: 8px;
}

.badge {
    background: linear-gradient(45deg, #f1c40f, #f39c12);
    color: #000;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: bold;
    box-shadow: 0 0 5px rgba(241, 196, 15, 0.3);
}

.badge-rare {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
    color: white;
    box-shadow: 0 0 8px rgba(155, 89, 182, 0.4);
}

.badge-legendary {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
    animation: pulse 2s infinite;
}

/* 用户位置显示 */
.user-location {
    background: linear-gradient(45deg, #16a085, #1abc9c);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: bold;
    box-shadow: 0 0 5px rgba(26, 188, 156, 0.3);
    margin-left: 5px;
    cursor: help;
    transition: all 0.3s ease;
}

.user-location:hover {
    background: linear-gradient(45deg, #1abc9c, #16a085);
    box-shadow: 0 0 8px rgba(26, 188, 156, 0.5);
    transform: translateY(-1px);
}

/* 帖子地图显示 */
.post-location-map {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    margin: 10px 0;
    background: rgba(255, 215, 0, 0.05);
}

.post-location-map .leaflet-container {
    border-radius: 8px;
    background: #2c3e50;
}

.location-toggle-btn {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.4);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px 0;
}

.location-toggle-btn:hover {
    background: rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.6);
}

/* 地图区域标记样式 */
.area-marker {
    text-align: center;
    line-height: 30px;
    font-size: 18px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

@keyframes pulse {
    0% { box-shadow: 0 0 10px rgba(231, 76, 60, 0.5); }
    50% { box-shadow: 0 0 20px rgba(231, 76, 60, 0.8); }
    100% { box-shadow: 0 0 10px rgba(231, 76, 60, 0.5); }
}

/* 评分系统 */
.rating-section {
    background: linear-gradient(135deg, rgba(255, 243, 205, 0.1), rgba(255, 234, 167, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.rating-stars {
    display: flex;
    gap: 8px;
    margin: 15px 0;
    justify-content: center;
}

.rating-star {
    font-size: 2rem;
    color: rgba(255, 215, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.2);
}

.rating-star:hover,
.rating-star.active {
    color: #FFD700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    transform: scale(1.2);
}

/* 回复区域 */
.replies-section {
    background: rgba(255, 215, 0, 0.05);
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.reply-item {
    background: rgba(45, 45, 45, 0.6);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    border-left: 4px solid #FFD700;
    backdrop-filter: blur(5px);
}

.reply-meta {
    color: rgba(240, 240, 240, 0.7);
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.reply-content {
    color: #f0f0f0;
    line-height: 1.6;
}

/* 消息提示 - 页面中心显示 */
.message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    padding: 20px 30px;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    animation: messageSlideIn 0.4s ease-out;
    backdrop-filter: blur(5px);
}

.message.error {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    border: 2px solid #c0392b;
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.4);
}

.message.success {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
    border: 2px solid #27ae60;
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.4);
}

/* 通用模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

/* 位置设置模态框 */
.location-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

/* 位置模态框内容容器 */
.location-modal .modal-content {
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    animation: locationModalFadeIn 0.3s ease-out;
}

.modal-content {
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.95), rgba(31, 31, 31, 0.95));
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.modal-header h2 {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
    margin: 0;
}

.close-btn {
    font-size: 2rem;
    color: #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: none;
    padding: 0;
    line-height: 1;
}

.close-btn:hover {
    color: #FFD700;
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

/* 删除确认模态框样式 */
.delete-confirm-content {
    max-width: 500px;
    animation: deleteModalFadeIn 0.3s ease-out;
}

.delete-warning {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.warning-icon {
    font-size: 3rem;
    color: #e74c3c;
    min-width: 50px;
    text-align: center;
}

.warning-text h4 {
    color: #e74c3c;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.task-title-preview {
    background: rgba(255, 215, 0, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 4px solid #FFD700;
    margin-bottom: 15px;
    font-weight: bold;
    color: #FFD700;
}

.warning-list p {
    margin-bottom: 8px;
    color: #f0f0f0;
    font-size: 0.95rem;
}

.warning-list p strong {
    color: #e74c3c;
}

.danger-btn {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.danger-btn:hover {
    background: linear-gradient(45deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.danger-btn:active {
    transform: translateY(0);
}

.cancel-btn {
    background: rgba(127, 140, 141, 0.8);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: rgba(127, 140, 141, 1);
}

@keyframes deleteModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) translateY(0);
    }
}

@keyframes messageSlideOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9) translateY(-10px);
    }
}

/* 位置开关 */
.location-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background: linear-gradient(45deg, #FFD700, #FFA500);
}

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

.toggle-label {
    font-size: 1.1rem;
    font-weight: bold;
    color: #f0f0f0;
}

/* 地图容器 */
.map-container {
    margin: 1rem 0;
    position: relative;
}

.location-map-view {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.1);
    color: #f0f0f0;
    font-size: 1rem;
    z-index: 1;
}

/* Leaflet 地图样式覆盖 */
.location-map-view .leaflet-container {
    border-radius: 10px;
    background: #2c3e50;
}

.location-map-view .leaflet-control-container {
    font-size: 14px;
}

.location-map-view .leaflet-popup-content {
    color: #2c3e50;
    font-size: 0.9rem;
}

/* 自定义地图控制按钮样式 */
.location-map-view .leaflet-control-zoom a {
    background-color: rgba(255, 215, 0, 0.9);
    color: #000;
    border: 1px solid rgba(255, 215, 0, 0.5);
}

.location-map-view .leaflet-control-zoom a:hover {
    background-color: rgba(255, 215, 0, 1);
}

.location-detect-btn {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 15px;
    transition: all 0.3s ease;
    width: 100%;
}

.location-detect-btn:hover {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

/* 表单组 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #FFD700;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.optional {
    color: rgba(240, 240, 240, 0.6);
    font-weight: normal;
    font-size: 0.85rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    background: rgba(255, 215, 0, 0.05);
    color: #f0f0f0;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.1);
}

/* 高对比度隐私范围选择器 - 合并优化版本 */
#privacy-radius {
    /* 基础样式 */
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(45, 45, 45, 0.8));
    border: 2px solid rgba(255, 215, 0, 0.6);
    color: #FFD700;
    font-weight: bold;
    font-size: 15px;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
    
    /* 移除默认样式以获得更好的自定义控制 */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    
    /* 自定义下拉箭头 */
    background-image: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(45, 45, 45, 0.8)), 
                      url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23FFD700" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat, no-repeat;
    background-position: 0 0, right 15px center;
    background-size: 100%, 12px;
    padding-right: 40px;
    min-height: 45px;
}

#privacy-radius:focus {
    border-color: #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 4px 15px rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.05)), 
                url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23FFD700" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat, no-repeat;
    background-position: 0 0, right 15px center;
    background-size: 100%, 12px;
}

#privacy-radius:hover {
    border-color: #FFA500;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    transform: translateY(-1px);
}

/* 增强的高对比度选项样式 */
#privacy-radius option {
    background: #0f0f0f !important;
    color: #ffffff !important;
    padding: 12px 15px !important;
    font-weight: bold !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
}

/* 精确位置 - 高对比度红色警告 */
#privacy-radius option[value="0"] {
    background: #dc2626 !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9) !important;
    border-color: #fca5a5 !important;
}

/* 500米范围 - 高对比度橙色 */
#privacy-radius option[value="500"] {
    background: #ea580c !important;
    color: #ffffff !important;
    font-weight: bold !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8) !important;
    border-color: #fed7aa !important;
}

/* 1公里范围 - 高对比度琥珀色 */
#privacy-radius option[value="1000"] {
    background: #d97706 !important;
    color: #ffffff !important;
    font-weight: bold !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8) !important;
    border-color: #fde68a !important;
}

/* 2公里范围 - 高对比度绿色推荐 */
#privacy-radius option[value="2000"] {
    background: #16a34a !important;
    color: #ffffff !important;
    font-weight: bold !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8) !important;
    border-color: #bbf7d0 !important;
}

/* 浏览器兼容性增强 - 确保所有浏览器都能显示高对比度 */
@supports (-webkit-appearance: none) or (-moz-appearance: none) or (appearance: none) {
    #privacy-radius option {
        background-color: #0f0f0f;
        color: #ffffff;
    }
    #privacy-radius option[value="0"] {
        background-color: #dc2626;
        color: #ffffff;
    }
    #privacy-radius option[value="500"] {
        background-color: #ea580c;
        color: #ffffff;
    }
    #privacy-radius option[value="1000"] {
        background-color: #d97706;
        color: #ffffff;
    }
    #privacy-radius option[value="2000"] {
        background-color: #16a34a;
        color: #ffffff;
    }
}

/* 任务难度选择器 - 高对比度样式 */
#difficulty option {
    background: #0f0f0f !important;
    color: #ffffff !important;
    padding: 12px 15px !important;
    font-weight: bold !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
}

/* 简单难度 - 绿色 */
#difficulty option[value="easy"] {
    background: #16a34a !important;
    color: #ffffff !important;
    font-weight: bold !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8) !important;
    border-color: #bbf7d0 !important;
}

/* 普通难度 - 蓝色 */
#difficulty option[value="normal"] {
    background: #2563eb !important;
    color: #ffffff !important;
    font-weight: bold !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8) !important;
    border-color: #93c5fd !important;
}

/* 困难难度 - 橙色 */
#difficulty option[value="hard"] {
    background: #ea580c !important;
    color: #ffffff !important;
    font-weight: bold !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8) !important;
    border-color: #fed7aa !important;
}

/* 专家难度 - 红色 */
#difficulty option[value="expert"] {
    background: #dc2626 !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9) !important;
    border-color: #fca5a5 !important;
}

/* 浏览器兼容性增强 - 任务难度选择器 */
@supports (-webkit-appearance: none) or (-moz-appearance: none) or (appearance: none) {
    #difficulty option {
        background-color: #0f0f0f;
        color: #ffffff;
    }
    #difficulty option[value="easy"] {
        background-color: #16a34a;
        color: #ffffff;
    }
    #difficulty option[value="normal"] {
        background-color: #2563eb;
        color: #ffffff;
    }
    #difficulty option[value="hard"] {
        background-color: #ea580c;
        color: #ffffff;
    }
    #difficulty option[value="expert"] {
        background-color: #dc2626;
        color: #ffffff;
    }
}

/* 通用选择器高对比度样式 - 应用于所有其他select元素 */
select:not(#privacy-radius):not(#difficulty) option {
    background: #0f0f0f !important;
    color: #ffffff !important;
    padding: 12px 15px !important;
    font-weight: bold !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
}

/* 通用选择器兼容性 */
@supports (-webkit-appearance: none) or (-moz-appearance: none) or (appearance: none) {
    select:not(#privacy-radius):not(#difficulty) option {
        background-color: #0f0f0f;
        color: #ffffff;
    }
}

/* 切换视图按钮基础样式 */
.toggle-view-btn {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    border-radius: 25px !important;
    border: 2px solid !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer !important;
}

.toggle-view-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.toggle-view-btn:hover::before {
    left: 100%;
}

.toggle-view-btn:active {
    transform: translateY(-1px) scale(1.02) !important;
}

.btn-icon {
    font-size: 1.1em !important;
    transition: transform 0.3s ease !important;
}

.btn-text {
    font-weight: 600 !important;
}

/* 创建新任务状态样式 */
.toggle-view-btn.create-task-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
    color: white !important;
    border-color: #27ae60 !important;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3) !important;
}

.toggle-view-btn.create-task-btn:hover {
    background: linear-gradient(135deg, #229954, #27ae60) !important;
    box-shadow: 0 6px 25px rgba(39, 174, 96, 0.5) !important;
    transform: translateY(-3px) scale(1.05) !important;
}

.toggle-view-btn.create-task-btn:hover .btn-icon {
    transform: rotate(90deg) scale(1.1) !important;
}

/* 返回大厅状态样式 */
.toggle-view-btn.return-btn {
    background: linear-gradient(135deg, #e67e22, #f39c12) !important;
    color: white !important;
    border-color: #e67e22 !important;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3) !important;
}

.toggle-view-btn.return-btn:hover {
    background: linear-gradient(135deg, #d35400, #e67e22) !important;
    box-shadow: 0 6px 25px rgba(230, 126, 34, 0.5) !important;
    transform: translateY(-3px) scale(1.05) !important;
}

.toggle-view-btn.return-btn:hover .btn-icon {
    transform: translateX(-3px) scale(1.1) !important;
}

/* 发布任务按钮样式 */
.publish-task-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500) !important;
    color: #1a1a1a !important;
    border: 3px solid #FFD700 !important;
    padding: 18px 40px !important;
    font-size: 1.2rem !important;
    font-weight: bold !important;
    border-radius: 15px !important;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.4) !important;
    transition: all 0.4s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    position: relative !important;
    overflow: hidden !important;
    margin: 30px auto 20px auto !important;
    display: block !important;
    width: fit-content !important;
    text-shadow: 0 1px 2px rgba(26, 26, 26, 0.3) !important;
}

.publish-task-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.8s ease;
}

.publish-task-btn:hover {
    background: linear-gradient(135deg, #FFA500, #FF8C00) !important;
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.6) !important;
    transform: translateY(-5px) scale(1.08) !important;
    border-color: #FFA500 !important;
}

.publish-task-btn:hover::before {
    left: 100%;
}

.publish-task-btn:active {
    transform: translateY(-2px) scale(1.04) !important;
}

/* 发布确认区域样式 */
.publish-confirmation-area {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 165, 0, 0.03));
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    padding: 25px;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.publish-confirmation-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FF8C00);
}

.publish-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

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

.info-text h4 {
    color: #FFD700;
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: bold;
}

.info-text p {
    color: rgba(240, 240, 240, 0.8);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.publish-tips {
    text-align: center;
    margin-top: 20px;
    padding: 12px;
    background: rgba(255, 215, 0, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.publish-tips small {
    color: rgba(255, 215, 0, 0.8);
    font-size: 0.85rem;
    line-height: 1.4;
    display: block;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .toggle-view-btn {
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
        gap: 6px !important;
    }
    
    .btn-icon {
        font-size: 1em !important;
    }
    
    .publish-task-btn {
        padding: 15px 30px !important;
        font-size: 1rem !important;
        letter-spacing: 1px !important;
    }
    
    .section-header {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .publish-confirmation-area {
        padding: 20px 15px !important;
        margin-top: 25px !important;
    }
    
    .publish-info {
        flex-direction: column !important;
        text-align: center !important;
        gap: 10px !important;
    }
    
    .info-text h4 {
        font-size: 1rem !important;
    }
    
    .info-text p {
        font-size: 0.85rem !important;
    }
}

/* 隐私范围说明卡片 */
.privacy-info-card {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.05));
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 10px;
    padding: 12px;
    margin: 10px 0;
    position: relative;
    overflow: hidden;
}

.privacy-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 2px;
}

.privacy-info-card h4 {
    color: #3498db;
    margin: 0 0 10px 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.privacy-info-card p {
    color: rgba(240, 240, 240, 0.8);
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.privacy-levels {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
}

.privacy-level {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.privacy-level:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.privacy-level .icon {
    font-size: 1.2em;
    width: 24px;
    text-align: center;
}

.privacy-level .level-0 { border-left: 3px solid #e74c3c; }
.privacy-level .level-1000 { border-left: 3px solid #16a085; }
.privacy-level .level-2000 { border-left: 3px solid #f39c12; }
.privacy-level .level-5000 { border-left: 3px solid #3498db; }

.privacy-level .text {
    flex: 1;
}

.privacy-level .range {
    font-weight: bold;
    color: #FFD700;
}

.privacy-level .desc {
    font-size: 0.8rem;
    color: rgba(240, 240, 240, 0.6);
}

/* 隐私说明 */
.location-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 10px;
}

.privacy-note {
    color: #f0f0f0;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.privacy-note strong {
    color: #3498db;
}

/* 按钮样式 */
.cancel-btn {
    background: linear-gradient(45deg, #95a5a6, #7f8c8d);
    color: white;
    border: 1px solid #7f8c8d;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.cancel-btn:hover {
    background: linear-gradient(45deg, #7f8c8d, #95a5a6);
    transform: translateY(-2px);
}

/* 头像设置模态框样式 */
.avatar-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-preview-section {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.current-avatar {
    text-align: center;
}

.avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 215, 0, 0.5);
    background: rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
}

.avatar-preview:hover {
    border-color: rgba(255, 215, 0, 0.8);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.avatar-preview-label {
    margin-top: 10px;
    color: #f0f0f0;
    font-size: 0.9rem;
    font-weight: bold;
}

.avatar-upload-section {
    margin: 2rem 0;
}

.upload-area {
    border: 2px dashed rgba(255, 215, 0, 0.5);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 215, 0, 0.05);
    margin-bottom: 1rem;
}

.upload-area:hover {
    border-color: rgba(255, 215, 0, 0.8);
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.upload-main-text {
    font-size: 1.1rem;
    font-weight: bold;
    color: #f0f0f0;
    margin-bottom: 0.5rem;
}

.upload-hint {
    font-size: 0.9rem;
    color: rgba(240, 240, 240, 0.7);
}

.new-avatar-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    background: rgba(255, 215, 0, 0.05);
    position: relative;
}

.remove-avatar-btn {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.remove-avatar-btn:hover {
    background: linear-gradient(45deg, #c0392b, #e74c3c);
    transform: translateY(-2px);
}

.avatar-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 10px;
}

.avatar-note {
    color: #f0f0f0;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.avatar-note strong {
    color: #3498db;
}

/* 图片上传区域样式 */
.image-upload-section {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    background: rgba(255, 215, 0, 0.05);
}

.image-upload-section label {
    display: block;
    color: #FFD700;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.image-upload-area {
    border: 2px dashed rgba(255, 215, 0, 0.4);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 215, 0, 0.03);
    margin-bottom: 15px;
}

.image-upload-area:hover {
    border-color: rgba(255, 215, 0, 0.7);
    background: rgba(255, 215, 0, 0.08);
    transform: translateY(-2px);
}

.upload-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.upload-icon {
    font-size: 2rem;
    opacity: 0.7;
}

.upload-prompt span {
    color: #f0f0f0;
    font-size: 0.95rem;
}

.upload-prompt small {
    color: rgba(240, 240, 240, 0.6);
    font-size: 0.8rem;
}

.image-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.image-preview {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.1);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

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

.image-preview .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.image-preview .remove-btn:hover {
    background: rgba(192, 57, 43, 1);
    transform: scale(1.1);
}

/* 帖子和回复中的图片显示 */
.post-images, .reply-images {
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-image, .reply-image {
    max-width: 300px;
    max-height: 200px;
    border-radius: 8px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    object-fit: cover;
}

.post-image:hover, .reply-image:hover {
    border-color: rgba(255, 215, 0, 0.6);
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

/* 图片查看模态框 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.image-modal .close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-modal .close-modal:hover {
    color: #FFD700;
    transform: rotate(90deg);
}

.more-images {
    color: rgba(240, 240, 240, 0.7);
    font-size: 0.85rem;
    margin-top: 5px;
    text-align: center;
}

/* 宣传视频区域样式 */
.promotion-section {
    margin: 2rem 0;
    padding: 0;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.9), rgba(31, 31, 31, 0.9));
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    /* 使用padding-bottom技巧创建4:3宽高比 (75% = 3/4) */
    padding-bottom: 75%;
    overflow: hidden;
    border-radius: 15px;
    background: #000;
}

/* 现代浏览器使用aspect-ratio属性 */
@supports (aspect-ratio: 4 / 3) {
    .video-container {
        aspect-ratio: 4 / 3;
        height: auto;
        padding-bottom: 0;
    }
}

.promotion-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(255, 215, 0, 0.1) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    pointer-events: none;
}

.video-container:hover .video-overlay {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(255, 215, 0, 0.15) 100%
    );
}

.video-info {
    text-align: center;
    margin-bottom: 2rem;
    z-index: 2;
}

.video-info h3 {
    font-size: 2rem;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.video-info p {
    color: rgba(240, 240, 240, 0.9);
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.video-controls {
    pointer-events: auto;
    z-index: 3;
}

.play-btn {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
    border: none;
    padding: 1.5rem 3rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.play-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.play-btn:hover::before {
    left: 100%;
}

.play-btn:hover {
    background: linear-gradient(45deg, #FFA500, #FF8C00);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.5);
}

.play-icon {
    font-size: 1.5rem;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.play-text {
    font-size: 1rem;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

/* 视频播放状态样式 */
.video-container.playing .video-overlay {
    opacity: 0;
    pointer-events: none;
}

.video-container.playing .promotion-video {
    transform: scale(1.02);
}

/* 视频暂停状态 */
.video-container.paused .video-overlay {
    opacity: 1;
    pointer-events: auto;
}

.video-container.paused .play-btn {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.video-container.paused .play-icon::before {
    content: '⏸️';
}

.video-container.paused .play-text::before {
    content: '点击继续';
}

/* 响应式设计 */
@media (max-width: 768px) {
    .site-logo {
        height: 70px;
    }
    
    .site-title h1 {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .user-info-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .post-item {
        padding: 1.5rem;
    }
    
    .bounty-info {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    
    .location-toggle {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    /* 移动端视频播放器适配 */
    .video-container {
        /* 保持4:3比例，移除固定高度 */
        padding-bottom: 75%;
    }
    
    .video-info h3 {
        font-size: 1.5rem;
    }
    
    .video-info p {
        font-size: 0.9rem;
    }
    
    .play-btn {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }
    
    .play-icon {
        font-size: 1.2rem;
    }
}

/* 公会奖励与荣誉部分 */
#guild-section {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(218, 165, 32, 0.05) 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(10px);
}

.guild-header {
    text-align: center;
    margin-bottom: 2rem;
}

.guild-header h2 {
    background: linear-gradient(45deg, #FFD700, #FFA500, #DAA520);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.2rem;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.guild-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.guild-image-container {
    position: relative;
    text-align: center;
}

.guild-rank-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.4);
    border: 3px solid rgba(255, 215, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guild-rank-image:hover {
    transform: scale(1.05);
    box-shadow: 0 16px 50px rgba(255, 215, 0, 0.6);
}

.guild-description {
    color: #f0f0f0;
    font-size: 1.1rem;
}

.guild-description p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.honor-levels {
    list-style: none;
    padding: 0;
}

.honor-levels li {
    margin: 1rem 0;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 215, 0, 0.08);
    border-left: 4px solid rgba(255, 215, 0, 0.5);
    border-radius: 8px;
    transition: background 0.3s ease;
}

.honor-levels li:hover {
    background: rgba(255, 215, 0, 0.15);
}

.rank-bronze {
    color: #CD7F32;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(205, 127, 50, 0.6);
}

.rank-silver {
    color: #C0C0C0;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(192, 192, 192, 0.6);
}

.rank-gold {
    color: #FFD700;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.rank-obsidian {
    color: #36454F;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(54, 69, 79, 0.8);
}

.rank-arcane {
    color: #8B00FF;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(139, 0, 255, 0.8);
}

/* 响应式设计 */
@media (max-width: 768px) {
    #guild-section {
        padding: 1.5rem;
    }
    
    .guild-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .guild-header h2 {
        font-size: 1.8rem;
    }
    
    .guild-description {
        font-size: 1rem;
    }
    
    .honor-levels li {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    /* 删除确认模态框移动端适配 */
    .delete-confirm-content {
        max-width: 90%;
        margin: 10px;
    }
    
    .delete-warning {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .warning-icon {
        font-size: 2.5rem;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .danger-btn,
    .cancel-btn {
        width: 100%;
        padding: 15px 20px;
    }
    
    /* 位置设置模态框移动端适配 */
    .location-modal .modal-content {
        max-width: 95%;
        max-height: 85vh;
        margin: 10px;
    }
    
    .location-toggle {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .location-map-view {
        height: 250px;
    }
    
    .privacy-levels {
        gap: 6px;
    }
    
    .privacy-level {
        padding: 8px 10px;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-header,
    .modal-footer {
        padding: 1rem;
    }
    
    /* 消息提示移动端适配 */
    .message {
        max-width: 85%;
        padding: 15px 20px;
        font-size: 1rem;
        border-radius: 10px;
    }
}

/* Google登录按钮样式 */
.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    margin: 20px 0;
}

.google-login-btn:hover {
    background: #f8f9fa;
    border-color: #c1c1c1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.google-login-btn img {
    width: 20px;
    height: 20px;
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 215, 0, 0.3);
}

.divider span {
    background: #1a1a1a;
    padding: 0 15px;
    color: rgba(255, 215, 0, 0.7);
    font-size: 14px;
}

/* coin icon */
.icon-coin { 
    width: 1.1em; 
    height: 1.1em; 
    vertical-align: -0.15em; 
    display: inline-block; 
}

.icon-coin-wrap { 
    display: inline-flex; 
    align-items: center; 
}

.user-stat.user-coin .icon-coin { 
    margin-right: .25rem; 
}

/* ===== Center Toast (global) ===== */
#app-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.96);
  z-index: 9999;
  min-width: 220px;
  max-width: min(86vw, 520px);
  padding: 14px 18px;
  border-radius: 12px;
  color: #fff;
  background: rgba(20, 20, 20, .96);
  border: 1px solid var(--line, #444);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  text-align: center;
  pointer-events: none; /* 不挡住页面点击 */
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease, border-color .18s ease;
  backdrop-filter: saturate(140%) blur(4px);
  -webkit-backdrop-filter: saturate(140%) blur(4px);
}
#app-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* 状态色（可按需调整） */
#app-toast.info    { border-color: #8a8a8a; }
#app-toast.success { border-color: #27ae60; }
#app-toast.error   { border-color: #e74c3c; }
#app-toast.warn    { border-color: #f39c12; }