/* ============================================
   野钓标点分享 - 主题样式
   大气、简约、户外钓鱼风格
   ============================================ */

/* 强力样式重置 - 移除Docusaurus默认空白 */
#__docusaurus {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* 移除文档侧边栏预留空间 */
:root {
    --doc-sidebar-width: 0px !important;
    --doc-sidebar-hidden-width: 0px !important;
    --ifm-container-width: 100% !important;
    --ifm-spacing-horizontal: 0 !important;
    --ifm-navbar-sidebar-width: 0px !important;
    --max-width: 1200px;
    --header-height: 64px;
    
    /* 主题颜色变量 */
    --color-primary: #4a90d9;
    --color-primary-dark: #357abd;
    --color-accent: #f0a040;
    --color-accent-dark: #d4892a;
    --color-bg: #f5f7fa;
    --color-bg-card: #ffffff;
    --color-bg-header: #ffffff;
    --color-text: #2c3e50;
    --color-text-light: #7f8c8d;
    --color-text-muted: #bdc3c7;
    --color-border: #e8ecf1;
    --color-shadow: rgba(0, 0, 0, 0.06);
    --color-success: #27ae60;
    --color-danger: #e74c3c;
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.25s ease;
}

/* 隐藏docusaurus侧边栏元素 */
.sidebarWithHideableNavbar_wUlq,
.sidebarViewport_aRkj,
.docSidebarContainer_gCkm,
.navbar-sidebar,
.navbar-sidebar__backdrop {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* 确保页面全屏 */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* 确保main-content紧贴导航栏 */
.main-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Dark Theme */
html[data-theme="dark"] {
    --color-bg: #1a1d23;
    --color-bg-card: #252830;
    --color-bg-header: #1e2128;
    --color-text: #e0e0e0;
    --color-text-light: #a0a0a0;
    --color-text-muted: #666;
    --color-border: #333840;
    --color-shadow: rgba(0, 0, 0, 0.3);
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
    text-decoration: none !important;
}

/* 全局移除所有链接hover时的下划线 */
a:hover,
a:focus,
a:active,
*:hover a,
*:focus a,
*:active a {
    text-decoration: none !important;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Header - irobot-header 样式覆盖
   ============================================ */
.irobot-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-bg-header) !important;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 1px 4px var(--color-shadow);
    padding: 10px 0;
}

.irobot-header .logo,
.irobot-header .logo-text {
    color: var(--color-text) !important;
}

.irobot-header .header-nav a,
.irobot-header .nav-link {
    color: var(--color-text-light) !important;
}

.irobot-header .header-nav a:hover,
.irobot-header .nav-link:hover {
    color: var(--color-primary) !important;
}

.irobot-header .login-btn {
    color: var(--color-text) !important;
}

.irobot-header .user-avatar {
    border-color: var(--color-border);
}

/* 主题切换按钮样式 */
.irobot-header .toggleButton_gllP {
    color: var(--color-text-light) !important;
    background: transparent !important;
    border: none !important;
    padding: 6px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: all var(--transition) !important;
}

.irobot-header .toggleButton_gllP:hover {
    color: var(--color-primary) !important;
    background: rgba(74, 144, 217, 0.1) !important;
}

/* 主题图标显示控制 */
html[data-theme="dark"] .irobot-header .lightToggleIcon_pyhR {
    display: none !important;
}

html[data-theme="light"] .irobot-header .darkToggleIcon_wfgR {
    display: none !important;
}

/* ============================================
   Header
   ============================================ */
.fishing-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-bg-header);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 1px 4px var(--color-shadow);
    height: var(--header-height);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text);
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.logo-img {
    height: 32px;
    width: auto;
}

.logo-text {
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--color-text-light);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--color-primary);
    background: rgba(74, 144, 217, 0.08);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.theme-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    color: var(--color-text-light);
    transition: all var(--transition);
    display: flex;
    align-items: center;
}

.theme-btn:hover {
    color: var(--color-accent);
    background: rgba(240, 160, 64, 0.1);
}

html[data-theme="dark"] .icon-sun { display: none; }
html[data-theme="light"] .icon-moon { display: none; }

.search-box {
    position: relative;
}

.search-input {
    padding: 8px 14px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 0.85rem;
    background: var(--color-bg);
    color: var(--color-text);
    width: 180px;
    transition: all var(--transition);
    outline: none;
}

.search-input:focus {
    border-color: var(--color-primary);
    width: 220px;
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15);
}

/* 搜索弹窗 - 默认隐藏 */
.search-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.search-panel {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; max-width: 90vw; max-height: 80vh;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    overflow: hidden;
}

.user-area {
    position: relative;
}

.btn-login {
    padding: 8px 20px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition);
}

.btn-login:hover {
    background: var(--color-primary-dark);
    color: #fff;
}

.user-menu {
    position: relative;
}

.user-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
}

.user-link:hover {
    background: var(--color-bg);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px var(--color-shadow);
    min-width: 160px;
    padding: 8px 0;
    z-index: 100;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--color-text);
    font-size: 0.85rem;
    transition: all var(--transition);
}

.dropdown-menu a:hover {
    background: var(--color-bg);
    color: var(--color-primary);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* Mobile nav */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1001;
}

.mobile-nav-overlay.active {
    display: block;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--color-bg-card);
    z-index: 1002;
    transition: right var(--transition);
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-light);
}

.mobile-nav-list {
    list-style: none;
    padding: 8px 0;
}

.mobile-nav-list li a {
    display: block;
    padding: 12px 20px;
    color: var(--color-text);
    font-size: 0.95rem;
    transition: all var(--transition);
}

.mobile-nav-list li a:hover {
    background: var(--color-bg);
    color: var(--color-primary);
}

/* ============================================
   Hero Banner
   ============================================ */
.hero-banner {
    background: linear-gradient(135deg, #1a3a5c 0%, #2d6a9f 50%, #4a90d9 100%);
    padding: 35px 20px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: &#39;&#39;;
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width=&#39;60&#39; height=&#39;60&#39; viewBox=&#39;0 0 60 60&#39; xmlns=&#39;http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero-desc {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-publish {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--color-accent);
    color: #fff;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}

.btn-publish:hover {
    background: var(--color-accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 160, 64, 0.4);
}

/* ============================================
   Category Navigation
   ============================================ */
.category-nav {
    background: var(--color-bg-card);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: var(--header-height);
    z-index: 99;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.category-tabs {
    display: flex;
    gap: 4px;
    padding: 12px 0;
    flex-wrap: nowrap;
}

.category-tab {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-light);
    white-space: nowrap;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.category-tab:hover {
    color: var(--color-primary);
    background: rgba(74, 144, 217, 0.06);
}

.category-tab.active {
    color: #fff;
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* ============================================
   Spot Cards
   ============================================ */
.spot-list {
    padding: 32px 0 60px;
}

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

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text);
}

.section-count {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.spot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.spot-card {
    background: var(--color-bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all var(--transition);
    box-shadow: 0 2px 8px var(--color-shadow);
    margin: 0 !important;
    padding: 0 !important;
}

.spot-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--color-shadow);
    border-color: var(--color-primary);
}

.spot-card-link {
    display: block;
    color: inherit;
    margin: 0;
    padding: 0;
}

.spot-map-container {
    width: 100%;
    height: 100px !important;
    max-height: 100px !important;
    background: #e8f0fe;
    position: relative;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    top: 0 !important;
}

/* 全局地图容器高度（首页卡片等） */
[id^="map-"],
[id^="pinmap-"] {
    height: 100px !important;
    max-height: 100px !important;
    min-height: 100px !important;
    line-height: 0 !important;
    background: #f5f5f5 !important;
    position: relative !important;
}

/* 详情页地图容器高度 - 使用更强的选择器 */
.detail-content [id^="pinmap-"],
.detail-content [id^="map-"] {
    height: 240px !important;
    max-height: 240px !important;
    min-height: 240px !important;
}

/* 详情页地图容器 - 更强优先级 */
body.detail-page .detail-content [id^="pinmap-"],
body.detail-page .detail-content [id^="map-"] {
    height: 240px !important;
    max-height: 240px !important;
    min-height: 240px !important;
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--color-text-light);
    font-size: 0.85rem;
    gap: 8px;
}

.spot-card-body {
    padding: 16px 20px;
}

.spot-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--color-text);
}

html[data-theme="dark"] .detail-content pre {
    background: #1e1e2e;
    color: #ffffff;
    border-color: #313244;
}

html[data-theme="dark"] .detail-content code {
    background: rgba(77, 171, 247, 0.15);
    color: #ffffff;
}

.spot-card-meta {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.spot-card-meta a {
    color: var(--color-text-light);
}

.spot-card-meta a:hover {
    color: var(--color-primary);
}

.spot-card-desc {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.spot-card-footer {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
}

.badge-top {
    display: inline-block;
    padding: 2px 8px;
    background: var(--color-accent);
    color: #fff;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: auto;
}

/* ============================================
   Detail Page
   ============================================ */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    padding: 32px 0;
}

.detail-main {
    min-width: 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.breadcrumb a {
    color: var(--color-text-light);
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.breadcrumb .current {
    color: var(--color-text);
}

.detail-header {
    margin-bottom: 24px;
}

.detail-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--color-text-light);
    align-items: center;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-edit {
    padding: 4px 12px;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    font-size: 0.8rem;
}

.detail-content {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 24px;
    color: var(--color-text-primary);
}

.detail-content h2,
.detail-content h3,
.detail-content h4 {
    margin: 24px 0 12px;
    font-weight: 600;
}

.detail-content h2 { font-size: 1.5rem; }
.detail-content h3 { font-size: 1.25rem; }
.detail-content h4 { font-size: 1.1rem; }

.detail-content p {
    margin-bottom: 16px;
}

.detail-content img {
    border-radius: var(--radius-sm);
    margin: 16px 0;
}

.detail-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding: 12px 20px;
    margin: 16px 0;
    background: var(--color-bg);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.detail-content pre {
    background: #282c34;
    color: #abb2bf;
    padding: 16px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 16px 0;
    font-size: 0.9rem;
}

.detail-content code {
    background: rgba(74, 144, 217, 0.08);
    color: #e83e8c;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
}

.detail-content pre {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 20px 24px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 20px 0;
    font-size: 0.9rem;
    line-height: 1.6;
    border: 1px solid #313244;
}

.detail-content pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.detail-content th,
.detail-content td {
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    text-align: left;
}

.detail-content th {
    background: var(--color-bg);
    font-weight: 600;
}

/* Tags */
.detail-tags {
    margin-bottom: 20px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    padding: 4px 14px;
    background: var(--color-bg);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--color-text-light);
    transition: all var(--transition);
}

.tag-item:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Actions */
.detail-actions {
    display: flex;
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 20px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid var(--color-border);
    background: var(--color-bg-card);
    color: var(--color-text-light);
}

.action-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.action-btn.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* Detail Nav */
.detail-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    font-size: 0.9rem;
}

.nav-prev,
.nav-next {
    flex: 1;
    padding: 12px 16px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-light);
    transition: all var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-prev:hover,
.nav-next:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.nav-next {
    text-align: right;
}

/* ============================================
   Sidebar
   ============================================ */
.detail-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 32px);
    align-self: start;
}

.sidebar-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

.author-card {
    text-align: center;
}

.author-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 3px solid var(--color-border);
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.author-info p {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

.author-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.stat-item {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.btn-view-profile {
    display: block;
    padding: 8px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all var(--transition);
}

.btn-view-profile:hover {
    background: var(--color-primary-dark);
    color: #fff;
}

.related-item {
    display: block;
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition);
}

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

.related-item:hover {
    color: var(--color-primary);
    padding-left: 8px;
}

.no-data {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-align: center;
    padding: 16px 0;
}

/* ============================================
   Comments
   ============================================ */
.comments-section,
.detail-comments {
    margin-top: 32px;
}

/* 覆盖 main.css 中的 .comment 样式 */
.comments-section .comment,
.detail-comments .comment,
.comments-section .comment-item,
.detail-comments .comment-item {
    display: flex !important;
    gap: 12px !important;
    padding: 16px 0 !important;
    border-bottom: 1px solid var(--color-border) !important;
    overflow: visible !important;
    float: none !important;
    margin: 0 !important;
    font-size: inherit !important;
    color: inherit !important;
    align-items: flex-start !important;
}

.comments-section .comment-avatar,
.detail-comments .comment-avatar {
    flex-shrink: 0 !important;
    width: 40px !important;
    height: 40px !important;
    float: none !important;
    margin: 0 !important;
}

.comments-section .comment-avatar img,
.detail-comments .comment-avatar img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: none !important;
}

.comments-section .comment-body,
.detail-comments .comment-body {
    flex: 1 !important;
    min-width: 0 !important;
    float: none !important;
}

.comments-section .comment-header,
.detail-comments .comment-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 6px !important;
    font-size: 0.85rem !important;
    flex-wrap: wrap !important;
}

.comments-section .comment-author,
.detail-comments .comment-author {
    font-weight: 600 !important;
    color: var(--color-text) !important;
}

.comments-section .comment-time,
.detail-comments .comment-time {
    color: var(--color-text-muted) !important;
    font-size: 0.8rem !important;
}

.comments-section .comment-reply,
.detail-comments .comment-reply {
    color: var(--color-primary) !important;
    cursor: pointer !important;
    font-size: 0.8rem !important;
    margin-left: auto !important;
}

.comments-section .comment-content,
.detail-comments .comment-content {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    word-break: break-word !important;
}

/* 覆盖 main.css 中 .comment .avatar 样式 */
.comments-section .comment .avatar,
.detail-comments .comment .avatar {
    float: none !important;
    margin: 0 !important;
    width: 40px !important;
    height: 40px !important;
}

.comments-section .comment .avatar img,
.detail-comments .comment .avatar img {
    border-radius: 50% !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    object-fit: cover !important;
}

/* 覆盖 main.css 中 .comment .comment-infos 样式 */
.comments-section .comment .comment-infos,
.detail-comments .comment .comment-infos {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    color: inherit !important;
    border: none !important;
    position: static !important;
    margin: 0 !important;
}

/* 覆盖 main.css 中 .comment .comment-reply 样式 */
.comments-section .comment .comment-reply,
.detail-comments .comment .comment-reply {
    float: none !important;
    font-size: 0.8rem !important;
    color: var(--color-primary) !important;
    margin-left: auto !important;
}

.comments-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.comments-empty {
    text-align: center;
    padding: 32px;
    color: var(--color-text-muted);
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}

.comment-child {
    margin-left: 48px;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    border: 1px solid var(--color-border);
}

.comment-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 0.85rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 600;
    color: var(--color-text);
}

.comment-time {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.comment-reply {
    color: var(--color-primary);
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: auto;
}

.comment-reply:hover {
    text-decoration: underline;
}

.comment-content {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Comment Form */
.comment-form {
    margin-bottom: 32px;
    padding: 20px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.comment-form h4 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.comment-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    resize: vertical;
    background: var(--color-bg);
    color: var(--color-text);
    outline: none;
    transition: border-color var(--transition);
}

.comment-textarea:focus {
    border-color: var(--color-primary);
}

.comment-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.btn-emoji {
    padding: 6px 14px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.btn-emoji:hover {
    border-color: var(--color-primary);
}

.btn-submit {
    padding: 8px 24px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
}

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

.comment-login-tip {
    text-align: center;
    padding: 20px;
    color: var(--color-text-light);
}

.emoji-popup {
    display: none;
    position: absolute;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: 0 4px 16px var(--color-shadow);
    z-index: 100;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
}

.emoji-item {
    font-size: 1.2rem;
    cursor: pointer;
    text-align: center;
    padding: 4px;
    border-radius: 4px;
    transition: background var(--transition);
}

.emoji-item:hover {
    background: var(--color-bg);
}

/* ============================================
   Page Layout
   ============================================ */
.page-layout {
    padding: 32px 0;
}

.page-main {
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-light);
}

.empty-state svg {
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
    transition: all var(--transition);
}

.pagination a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pagination .current {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* ============================================
   Back to Top
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    box-shadow: 0 4px 12px rgba(74, 144, 217, 0.4);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

/* ============================================
   Pinmap Map Styling Override
   ============================================ */
[id^="pinmap-"] {
    border-radius: var(--radius-sm);
    overflow: hidden;
}

[id^="pinmap-"] .amap-icon img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

[id^="pinmap-"] .amap-icon {
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .search-input {
        width: 120px;
    }

    .search-input:focus {
        width: 150px;
    }

    .hero-banner {
        padding: 40px 16px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .spot-grid {
        grid-template-columns: 1fr;
    }

    .detail-title {
        font-size: 1.4rem;
    }

    .detail-meta {
        gap: 10px;
    }

    .detail-actions {
        flex-wrap: wrap;
    }

    .comment-child {
        margin-left: 24px;
    }

    .category-tabs {
        gap: 2px;
    }

    .category-tab {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 0 12px;
        gap: 8px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .search-box {
        display: none;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .spot-card-body {
        padding: 12px 16px;
    }

    .spot-card-title {
        font-size: 1rem;
    }

    .detail-nav {
        flex-direction: column;
    }
}

/* ============================================
   Stats Bar (inside hero)
   ============================================ */
.hero-banner .stats-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.hero-banner .stat-item {
    text-align: center;
    min-width: 120px;
}

.hero-banner .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 4px;
}

.hero-banner .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .hero-banner .stats-grid {
        gap: 30px;
        margin-top: 24px;
    }
    .hero-banner .stat-number {
        font-size: 1.5rem;
    }
    .hero-banner .stat-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-banner .stats-grid {
        gap: 20px;
    }
    .hero-banner .stat-item {
        min-width: 80px;
    }
    .hero-banner .stat-number {
        font-size: 1.2rem;
    }
}

/* 独立统计栏样式（保留兼容） */
.stats-bar {
    background: var(--color-bg-card);
    border-bottom: 1px solid var(--color-border);
    padding: 24px 0;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-light);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .stats-grid {
        gap: 30px;
    }
    .stat-number {
        font-size: 1.5rem;
    }
    .stat-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        gap: 20px;
    }
    .stat-item {
        min-width: 80px;
    }
    .stat-number {
        font-size: 1.2rem;
    }
}

/* ============================================
   Author Card (Detail Sidebar)
   ============================================ */
.author-card {
    text-align: center;
}

.author-avatar {
    margin-bottom: 12px;
}

.author-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-border);
}

.author-info h4 {
    font-size: 1.1rem;
    margin: 8px 0 4px;
    word-break: break-word;
}

.author-info p {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 12px;
    word-break: break-word;
}

.author-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.author-stats .stat-item {
    text-align: center;
}

.author-stats .stat-num {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
}

.author-stats .stat-label {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.btn-view-profile {
    display: block;
    padding: 8px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 20px;
    font-size: 0.85rem;
    text-align: center;
    transition: all var(--transition);
}

.btn-view-profile:hover {
    background: var(--color-primary-dark);
    color: #fff;
}

/* User Menu Avatar Fix */
.user-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* ============================================
   User Menu (Header)
   ============================================ */
.user-area {
    position: relative;
}

.user-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition);
}

.user-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

.dark .user-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-link .user-name {
    font-size: 0.9rem;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 160px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    margin-top: 4px;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--color-text);
    font-size: 0.9rem;
    transition: background var(--transition);
    text-decoration: none;
}

.dropdown-menu a:hover {
    background: rgba(74, 144, 217, 0.08);
    color: var(--color-primary);
}

.dropdown-menu a svg {
    flex-shrink: 0;
}

/* ============================================
   Hero Banner (Optimized Height)
   ============================================ */
.hero-banner {
    background: linear-gradient(135deg, #4a90d9 0%, #6baed6 100%);
    padding: 25px 0 15px;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: &#39;&#39;;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url(&#39;data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="50" cy="70" r="1" fill="rgba(255,255,255,0.06)"/></svg>');
    pointer-events: none;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
}

.hero-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    line-height: 1.6;
}

.btn-publish {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--color-accent);
    color: #fff;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: 0 4px 12px rgba(240, 160, 64, 0.3);
}

.btn-publish:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(240, 160, 64, 0.4);
    color: #fff;
}

/* Stats Container in Hero */
.stats-container {
    display: inline-flex;
    align-items: center;
    gap: 40px;
    margin-top: 24px;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-container .stat-item {
    text-align: center;
    min-width: 100px;
}

.stats-container .stat-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 4px;
}

.stats-container .stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .hero-banner {
        padding: 36px 0 24px;
    }
    .hero-title {
        font-size: 1.6rem;
    }
    .hero-desc {
        font-size: 0.9rem;
    }
    .stats-container {
        gap: 24px;
        padding: 12px 20px;
    }
    .stats-container .stat-number {
        font-size: 1.3rem;
    }
    .stats-container .stat-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        padding: 28px 0 20px;
    }
    .hero-title {
        font-size: 1.4rem;
    }
    .stats-container {
        gap: 16px;
        padding: 10px 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .stats-container .stat-item {
        min-width: 80px;
    }
    .stats-container .stat-number {
        font-size: 1.1rem;
    }
}

/* ============================================
   Spot Card Map Container
   ============================================ */
.spot-map-container {
    width: 100%;
    height: 180px;
    background: #e8f0fe;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    overflow: hidden;
    position: relative;
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #4a90d9;
    font-size: 0.85rem;
}

.map-placeholder svg {
    margin-bottom: 8px;
    opacity: 0.8;
}

.spot-card-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.meta-favorites {
    color: var(--color-accent);
}

/* Detail Actions */
.detail-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin: 24px 0;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition);
}

.action-btn:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.action-btn.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* ============================================
   Footer
   ============================================ */
.fishing-footer {
    background: var(--color-bg-card);
    border-top: 1px solid var(--color-border);
    padding: 32px 0;
    margin-top: 48px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-info p {
    margin: 6px 0;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.footer-info a {
    color: var(--color-primary);
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

.footer-copy {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* Hero Banner 垂直居中布局 */
.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-publish-centered {
    margin: 24px auto 32px;
    display: inline-flex;
}

/* Hero Banner 垂直居中布局 */
.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-publish-centered {
    margin: 24px auto 32px;
    display: inline-flex;
}

.stats-container {
    margin-top: 0;
}

/* Main Content & Detail Layout - CRITICAL FIX */
.main-content {
    padding: 0 !important;
    min-height: calc(100vh - 200px);
    margin-top: 0 !important;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    padding: 24px 0;
}

.detail-main {
    background: var(--color-bg-card);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: 0 1px 3px var(--color-shadow);
    overflow-wrap: break-word;
}

@media (max-width: 1024px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Comments Section - Fix Alignment & Spacing
   ============================================ */
.comments-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.comments-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--color-text);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.comment-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 24px;
    background: var(--color-bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.comment-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.comment-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    margin-top: 0;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
}

.comment-author:hover {
    color: var(--color-primary);
}

.comment-time {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.comment-reply {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--color-primary);
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
    transition: all var(--transition);
    white-space: nowrap;
}

.comment-reply:hover {
    background: rgba(74, 144, 217, 0.1);
}

.comment-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text);
    word-break: break-word;
}

/* Child Comment (Nested Reply) */
.comment-child {
    margin-left: 56px;
    margin-top: 16px;
    background: var(--color-bg);
    border-color: transparent;
}

@media (max-width: 768px) {
    .comment-child {
        margin-left: 32px;
    }
}

@media (max-width: 480px) {
    .comment-item {
        gap: 12px;
        padding: 12px 16px;
    }
    .comment-avatar,
    .comment-avatar img {
        width: 32px;
        height: 32px;
    }
    .comment-child {
        margin-left: 20px;
    }
    .comment-header {
        gap: 8px;
    }
    .comment-reply {
        margin-left: 0;
    }
}

/* ============================================
   Recent Comments Sidebar Module
   ============================================ */
.recent-comment-item {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
    transition: background var(--transition);
}

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

.recent-comment-item:hover {
    background: rgba(74, 144, 217, 0.03);
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    border-radius: 6px;
}

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

.recent-comment-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
}

.recent-comment-date {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.recent-comment-content {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-comment-post-title {
    font-size: 0.8rem;
    color: var(--color-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   Home Card Cover Image (replaces map)
   ============================================ */
.spot-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
   Detail Page Dark Theme - Complete Fix
   ============================================ */
html[data-theme="dark"] .detail-title {
    color: #ffffff;
}

html[data-theme="dark"] .breadcrumb .current {
    color: #e0e0e0;
}

html[data-theme="dark"] .detail-meta,
html[data-theme="dark"] .meta-item {
    color: rgba(255, 255, 255, 0.7);
}

html[data-theme="dark"] .detail-content {
    color: #e0e0e0;
}

html[data-theme="dark"] .detail-content h2,
html[data-theme="dark"] .detail-content h3,
html[data-theme="dark"] .detail-content h4 {
    color: #ffffff;
}

html[data-theme="dark"] .detail-content p {
    color: #e0e0e0;
}

html[data-theme="dark"] .detail-content a {
    color: #4dabf7;
}

html[data-theme="dark"] .detail-content blockquote {
    background: rgba(255, 255, 255, 0.05);
    border-color: #4dabf7;
    color: #c0c0c0;
}

html[data-theme="dark"] .detail-content th {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

html[data-theme="dark"] .detail-content td {
    color: #e0e0e0;
}

html[data-theme="dark"] .sidebar-card-title {
    color: #ffffff;
}

html[data-theme="dark"] .related-item {
    color: #e0e0e0;
}

html[data-theme="dark"] .recent-comment-author {
    color: #e0e0e0;
}

html[data-theme="dark"] .recent-comment-content {
    color: rgba(255, 255, 255, 0.7);
}

html[data-theme="dark"] .comment-author {
    color: #e0e0e0;
}

html[data-theme="dark"] .comment-content {
    color: #e0e0e0;
}

html[data-theme="dark"] .comments-title {
    color: #ffffff;
}