@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #2d3748;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

.section-desc {
    text-align: center;
    font-size: 1.1rem;
    color: #4a5568;
    margin: 0 0 3rem 0;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    z-index: -1;
    pointer-events: none;
}

.hidden {
    display: none !important;
}

.empty-state {
    padding: 2rem;
    border-radius: 16px;
    border: 2px dashed rgba(102, 126, 234, 0.3);
    background: rgba(255, 255, 255, 0.85);
    color: #4a5568;
    font-weight: 500;
    text-align: center;
    box-shadow: inset 0 0 20px rgba(102, 126, 234, 0.08);
}

/* ===== 导航栏样式 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* ===== Logo 品牌区域 ===== */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.brand-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-text {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* ===== 桌面导航菜单 ===== */
.navbar-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
    align-items: center;
}

.navbar-item {
    position: relative;
}

.navbar-item.has-dropdown > .navbar-link {
    padding-right: 2.5rem;
}

.navbar-item.has-dropdown::after {
    content: '▾';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: #a0aec0;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.navbar-item.has-dropdown:hover::after,
.navbar-item.has-dropdown:focus-within::after {
    transform: translateY(-50%) rotate(180deg);
    color: #667eea;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(100, 116, 139, 0.18);
    border-radius: 12px;
    padding: 0.75rem 0;
    min-width: 180px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 20;
}

.navbar-item.has-dropdown:hover > .dropdown-menu,
.navbar-item.has-dropdown:focus-within > .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    list-style: none;
}

.dropdown-link {
    display: block;
    padding: 0.65rem 1.5rem;
    color: #4a5568;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-link:hover,
.dropdown-link:focus {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.navbar-link {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.navbar-link:hover::before {
    left: 100%;
}

.navbar-link:hover,
.navbar-link.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.navbar-link.active {
    background: rgba(102, 126, 234, 0.15);
    font-weight: 600;
}

/* ===== 桌面操作按钮 ===== */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.action-btn.favorite-btn.favorited {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.btn-icon {
    font-size: 1.1rem;
}

.btn-text {
    font-size: 0.85rem;
}

/* ===== 移动端切换按钮 ===== */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: rgba(102, 126, 234, 0.1);
}

.toggle-line {
    width: 24px;
    height: 2px;
    background: #4a5568;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.mobile-toggle.active .toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active .toggle-line:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== 移动端菜单覆盖层 ===== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== 移动端菜单 ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1001;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

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

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a202c;
}

.mobile-close {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.close-icon {
    font-size: 1.5rem;
    color: #4a5568;
}

/* ===== 移动端导航列表 ===== */
.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 1rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-item {
    margin: 0;
    border-radius: 12px;
    padding: 0 0.5rem;
}

.mobile-nav-item.has-submenu {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.mobile-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.mobile-nav-link {
    display: block;
    flex: 1 1 auto;
    padding: 0.9rem 1rem;
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.12);
}

.mobile-nav-link.active {
    font-weight: 600;
}

.mobile-submenu-toggle {
    background: rgba(102, 126, 234, 0.12);
    border: none;
    color: #667eea;
    font-size: 0.9rem;
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-submenu-toggle:hover,
.mobile-submenu-toggle:focus {
    background: rgba(102, 126, 234, 0.2);
}

.mobile-submenu-toggle[aria-expanded="true"] {
    transform: rotate(180deg);
}

.mobile-submenu {
    list-style: none;
    padding: 0.25rem 0 0.75rem 1.25rem;
    margin: 0;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-submenu.open {
    display: flex;
}

.mobile-submenu-link {
    display: block;
    padding: 0.75rem 0.9rem;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-submenu-link:hover,
.mobile-submenu-link:focus {
    background: rgba(102, 126, 234, 0.12);
    color: #667eea;
}

/* ===== 移动端操作按钮 ===== */
.mobile-actions {
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    color: #667eea;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
}

.mobile-action-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.mobile-action-btn.favorite-btn.favorited {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

header {
    background: rgba(255, 255, 255, 0.98);
    background-image: url('world.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    backdrop-filter: blur(15px);
    color: #2d3748;
    padding: 8rem 0 4rem 0;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85), rgba(118, 75, 162, 0.85));
    z-index: -1;
}

header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite;
    z-index: -1;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.hero-content {
    max-width: 900px;
    margin: 0 auto 4rem auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 120px;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 1.1rem;
    opacity: 0.95;
    margin-top: 0.5rem;
    font-weight: 600;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

h1 {
    margin: 0 0 1rem 0;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
}

header p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 2.5rem 0;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

#city-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    margin-bottom: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 0 2rem;
    min-height: calc(100vh - 400px);
    position: relative;
    z-index: 2;
}

#city-list h2 {
    margin: 0 0 2rem 0;
    font-size: 2rem;
    color: #2d3748;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#library-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    align-content: start;
}

.city-btn {
    display: inline-block;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    color: #4a5568;
    border: 2px solid #cbd5e0;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.city-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s;
}

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

.city-btn:hover, .city-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    border-color: #667eea;
}

.library-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.library-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.library-card:hover::before {
    transform: scaleX(1);
}

.library-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.library-info {
    padding: 0;
    position: relative;
    z-index: 2;
}

.library-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.library-card h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #2d3748;
    font-weight: 700;
    line-height: 1.3;
}

.library-city-tag {
    background: rgba(102, 126, 234, 0.12);
    color: #4c51bf;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.library-description {
    margin: 0;
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.7;
}

.library-meta-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.library-meta-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a5568;
    font-size: 1rem;
    font-weight: 500;
}

.library-meta-list a {
    color: #4c51bf;
    text-decoration: none;
    word-break: break-all;
}

.library-meta-list a:hover {
    text-decoration: underline;
}

.library-icon {
    width: 1.25rem;
    height: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 1.1rem;
}

/* Modal styles */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    min-width: 320px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f7fafc;
    border: none;
    font-size: 1.5rem;
    color: #718096;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: #e2e8f0;
    color: #2d3748;
    transform: rotate(90deg);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-image-container {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.modal-image-container .image-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    z-index: 1;
}

.modal-image-container .loading-spinner {
    width: 30px;
    height: 30px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.modal-city-overlay {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.modal-city-name {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #2d3748;
    font-weight: 600;
    flex: 1;
}

.modal-body {
    line-height: 1.7;
}

.modal-content h2 {
    margin: 0 0 1.5rem 0;
    font-size: 1.8rem;
    color: #2d3748;
    font-weight: 600;
}

.modal-content p {
    margin: 1rem 0;
    line-height: 1.7;
}

.modal-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.modal-content a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .navbar-container {
        padding: 0 1.5rem;
    }
    
    .navbar-menu {
        gap: 0.25rem;
    }
    
    .navbar-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .action-btn {
        padding: 0.75rem;
    }
    
    .btn-text {
        display: none;
    }
}

@media (max-width: 768px) {
    body {
        background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    }
    
    .navbar-container {
        padding: 0 1rem;
        height: 60px;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .brand-icon {
        font-size: 1.8rem;
    }
    
    .navbar-menu {
        display: none;
    }
    
    .navbar-actions {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .mobile-menu {
        width: 280px;
    }
    
    header {
        margin-top: 60px;
        padding: 6rem 0 3rem 0;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    header {
        padding: 1.5rem 0 1rem 0;
    }
    
    header p {
        margin: 0 0 1.5rem 0;
    }
    
    #city-list {
        margin: 0 0.75rem 1.5rem 0.75rem;
        padding: 1rem;
    }
    
    #city-list h2 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }
    
    .city-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
        margin: 0.2rem;
    }
    
    main {
        padding: 0 0.75rem;
    }
    
    #library-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .library-card {
        padding: 0;
    }
    
    .library-image {
        height: 150px;
    }
    
    .library-info {
        padding: 1.25rem;
    }
    
    .library-card h3 {
        font-size: 1.2rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .modal-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .modal-image-container {
        width: 60px;
        height: 60px;
    }
    
    .modal-image-container .loading-spinner {
        width: 25px;
        height: 25px;
    }
    
    .close-btn {
        top: 1rem;
        right: 1rem;
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.75rem;
    }
    
    .nav-logo {
        font-size: 1.3rem;
    }
    
    .nav-icon {
        font-size: 1.8rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .city-btn {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .library-card {
        padding: 0;
    }
    
    .library-image {
        height: 120px;
    }
    
    .library-info {
        padding: 1rem;
    }
    
    .modal-content {
        padding: 1.25rem;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: #e2e8f0;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem 2rem 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 1px;
}

.footer-section p {
    color: #cbd5e0;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
    color: #fff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -1rem;
    opacity: 0;
    transition: all 0.3s ease;
    color: #667eea;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 1rem;
}

.footer-links a:hover::before {
    opacity: 1;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #cbd5e0;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: #a0aec0;
    margin: 0;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #667eea;
}

/* ===== 城市信息页面样式 ===== */
.cities-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 4rem 0;
    margin-top: 4rem;
}

.cities-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 1.5rem 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cities-section .section-desc {
    text-align: center;
    font-size: 1.2rem;
    color: #718096;
    margin: 0 0 3rem 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 城市分类导航 */
.city-categories-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-nav-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    color: #4a5568;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.category-nav-btn:hover,
.category-nav-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* 城市控制面板 */
.cities-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #a0aec0;
}

.filter-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-options select {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #4a5568;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-options select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 城市统计信息 */
.cities-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 150px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    color: #718096;
    font-weight: 600;
    font-size: 0.95rem;
}

/* 城市网格 */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.cities-pagination,
.library-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.pagination-btn {
    min-width: 44px;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(102, 126, 234, 0.35);
    background: rgba(255, 255, 255, 0.95);
    color: #4a5568;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.pagination-btn:hover:not([disabled]) {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(102, 126, 234, 0.35);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
    box-shadow: 0 18px 40px rgba(102, 126, 234, 0.35);
}

.pagination-btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.city-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.city-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.city-card:hover::before {
    transform: scaleX(1);
}

.city-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.city-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

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

.city-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.city-info {
    padding: 2rem;
}

.city-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.city-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(102, 126, 234, 0.12);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: #5a67d8;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.city-category-tag::before {
    content: '📌';
}

.city-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
}

.city-province {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.city-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.city-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.city-stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.25rem;
}

.city-stat-label {
    display: block;
    font-size: 0.8rem;
    color: #718096;
    font-weight: 500;
}

.city-description {
    color: #4a5568;
    line-height: 1.6;
    margin: 1rem 0;
    font-size: 0.95rem;
}

.city-landmarks {
    margin-top: 1rem;
}

.city-landmarks h4 {
    color: #2d3748;
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.landmark-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.landmark-tag {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.cities-grid .empty-state,
.libraries-grid .empty-state {
    grid-column: 1 / -1;
    width: 100%;
}

/* ===== 图书馆分类页面样式 ===== */
.libraries-category-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.libraries-category-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="books" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><rect x="0" y="0" width="20" height="20" fill="none"/><rect x="2" y="2" width="16" height="16" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23books)"/></svg>');
    opacity: 0.2;
    z-index: 0;
}

.libraries-category-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1.5rem 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.libraries-category-section .section-desc {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 3rem 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

/* 图书馆分类导航 */
.library-categories-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.lib-category-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lib-category-btn:hover,
.lib-category-btn.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 图书馆分类内容 */
.library-categories-content {
    position: relative;
    z-index: 2;
}

.library-category {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.library-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.75rem;
    margin-bottom: 2rem;
    padding: 1.75rem 2rem;
    border-radius: 20px;
    position: relative;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.library-category-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.library-category-icon {
    position: relative;
    z-index: 1;
    font-size: 2.5rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 20px rgba(102, 126, 234, 0.3);
}

.library-category-meta {
    flex: 1;
    position: relative;
    z-index: 1;
}

.library-category-title {
    font-size: 2rem;
    margin: 0 0 0.75rem 0;
    font-weight: 700;
    color: #f7fafc;
}

.library-category-description {
    color: rgba(226, 232, 240, 0.85);
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

.library-category-count {
    position: relative;
    z-index: 1;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #f7fafc;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.libraries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.library-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 1.5rem;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.library-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.library-item:hover::before {
    opacity: 1;
}

.library-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.library-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
    position: relative;
    z-index: 1;
}

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

.library-item-header .library-name {
    margin: 0;
}

.library-city {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.library-address {
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.library-type {
    display: inline-block;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(102, 126, 234, 0.2);
    position: relative;
    z-index: 1;
}

.library-meta {
    color: #4a5568;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.library-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1rem;
    background: rgba(102, 126, 234, 0.12);
    border-radius: 999px;
    color: #5a67d8;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.library-link:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.25);
}

/* 网站地图样式 */
.sitemap-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 4rem 0;
    margin-top: 4rem;
}

.sitemap-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 3rem 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sitemap-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.sitemap-category {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sitemap-category h3 {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.sitemap-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-category li {
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.sitemap-category li:last-child {
    border-bottom: none;
}

.sitemap-category a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.sitemap-category a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* 分享模态框样式 */
.share-modal-content {
    max-width: 500px;
    text-align: center;
}

.share-modal-content h3 {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 2rem 0;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.share-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: #2d3748;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.8);
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.share-button.facebook:hover {
    border-color: #1877f2;
    background: rgba(24, 119, 242, 0.1);
}

.share-button.twitter:hover {
    border-color: #1da1f2;
    background: rgba(29, 161, 242, 0.1);
}

.share-button.linkedin:hover {
    border-color: #0077b5;
    background: rgba(0, 119, 181, 0.1);
}

.share-button.whatsapp:hover {
    border-color: #25d366;
    background: rgba(37, 211, 102, 0.1);
}

.share-button.telegram:hover {
    border-color: #0088cc;
    background: rgba(0, 136, 204, 0.1);
}

.share-button.reddit:hover {
    border-color: #ff4500;
    background: rgba(255, 69, 0, 0.1);
}

.share-button.copy-link:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

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

/* 页面内容概要样式 */
.page-summary {
    background: rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem 0;
    margin-top: 2rem;
}

.page-summary h4 {
    color: #e2e8f0;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    text-align: center;
}

.page-summary p {
    color: #cbd5e0;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.95rem;
}

/* ===== 读书会页面样式 ===== */
.subpage-nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.15);
}

.subpage-nav .nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.subpage-nav .nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #4c51bf;
    text-decoration: none;
}

.subpage-nav .nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.subpage-nav .nav-link {
    color: #4a5568;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 0.85rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.subpage-nav .nav-link.nav-link-active {
    color: #4c51bf;
    background: rgba(102, 126, 234, 0.12);
}

.subpage-nav .nav-link:hover {
    color: #5a67d8;
    background: rgba(102, 126, 234, 0.12);
}

.subpage-nav .nav-link-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff !important;
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.35);
}

.subpage-main {
    padding-top: 70px;
}

.subpage-hero {
    position: relative;
    padding: 5rem 0 4rem;
    color: #fff;
}

.reading-clubs-hero {
    background: radial-gradient(circle at top left, rgba(102, 126, 234, 0.85), rgba(118, 75, 162, 0.95));
}

.city-hero {
    background: radial-gradient(circle at top right, rgba(72, 187, 120, 0.85), rgba(56, 161, 105, 0.95));
}

.bookstore-hero {
    background: radial-gradient(circle at top left, rgba(118, 75, 162, 0.85), rgba(66, 153, 225, 0.95));
}

.subpage-hero .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-breadcrumb {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero-breadcrumb a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.6);
    padding-bottom: 2px;
}

.subpage-hero h1 {
    font-size: 3rem;
    margin: 0 0 1rem 0;
    font-weight: 800;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 720px;
    margin: 0 0 2rem 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-actions .action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.hero-actions .action-btn.primary {
    background: linear-gradient(135deg, #ffaf7b, #d76d77);
    color: #fff;
    box-shadow: 0 16px 35px rgba(215, 109, 119, 0.35);
}

.hero-actions .action-btn.secondary {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
}

.hero-actions .action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(102, 126, 234, 0.35);
}

.reading-clubs-section {
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    padding: 4rem 0 5rem;
}

.reading-clubs-section .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.reading-clubs-intro h2 {
    font-size: 2.4rem;
    margin: 0;
    color: #2d3748;
}

.reading-clubs-intro p {
    color: #4a5568;
    max-width: 760px;
    line-height: 1.8;
    margin: 1rem 0 2rem 0;
}

.reading-clubs-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.reading-clubs-selects {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.reading-clubs-selects select {
    padding: 0.85rem 1.25rem;
    border-radius: 14px;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #4a5568;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reading-clubs-selects select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.reading-clubs-summary {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    background: rgba(102, 126, 234, 0.12);
    color: #4a5568;
    font-weight: 500;
    margin-bottom: 2rem;
}

.reading-clubs-summary strong {
    font-size: 1.4rem;
    color: #5a67d8;
}

.reading-club-category-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.reading-club-category {
    background: #fff;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(226, 232, 240, 0.7);
}

.reading-club-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.reading-club-category-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: rgba(102, 126, 234, 0.12);
}

.reading-club-category-meta h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    color: #2d3748;
}

.reading-club-category-meta p {
    margin: 0;
    color: #4a5568;
    line-height: 1.6;
}

.reading-club-category-count {
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    background: rgba(102, 126, 234, 0.12);
    color: #5a67d8;
    font-weight: 600;
}

.reading-club-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.reading-club-card {
    background: linear-gradient(135deg, #ffffff 0%, #f5f7ff 100%);
    border-radius: 20px;
    padding: 1.75rem;
    border: 1px solid rgba(102, 126, 234, 0.18);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.15);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reading-club-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 45px rgba(102, 126, 234, 0.25);
}

.reading-club-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.reading-club-card-header h4 {
    margin: 0;
    font-size: 1.3rem;
    color: #2d3748;
}

.reading-club-mode {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(90, 103, 216, 0.12);
    color: #5a67d8;
    font-weight: 600;
    font-size: 0.85rem;
}

.reading-club-location,
.reading-club-schedule,
.reading-club-focus {
    margin: 0;
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
}

.reading-club-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.reading-club-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    background: rgba(102, 126, 234, 0.12);
    color: #5a67d8;
    font-size: 0.8rem;
    font-weight: 500;
}

.reading-club-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.reading-club-contact {
    color: #4a5568;
    font-weight: 500;
}

.reading-club-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.reading-club-link:hover {
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

.subpage-footer {
    background: #1a202c;
    color: #e2e8f0;
    padding: 2.5rem 0;
}

.subpage-footer .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    line-height: 1.8;
}

.subpage-footer a {
    color: #c3dafe;
    text-decoration: none;
    border-bottom: 1px dashed rgba(195, 218, 254, 0.6);
}

/* ===== 开放资源规划页面样式 ===== */
.resource-hero {
    background: radial-gradient(circle at top left, rgba(102, 126, 234, 0.88), rgba(118, 75, 162, 0.92));
    overflow: hidden;
}

.resource-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.18), transparent 55%);
    pointer-events: none;
}

.resource-hero .container {
    position: relative;
}

.resource-hero-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.resource-hero .hero-meta-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.12);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.resource-hero .hero-meta-icon {
    font-size: 1.6rem;
}

.resource-hero .hero-meta-title {
    margin: 0;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.resource-hero .hero-meta-desc {
    margin: 0.2rem 0 0 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
}

.resource-section {
    padding: 4.5rem 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.85));
}

.resource-section .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.resource-section-header {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2.75rem;
}

.resource-eyebrow {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5a67d8;
    margin-bottom: 0.75rem;
}

.resource-section h2 {
    margin: 0 0 1rem 0;
    font-size: 2.4rem;
    color: #2d3748;
}

.resource-section-desc {
    margin: 0;
    color: #4a5568;
    font-size: 1.05rem;
    line-height: 1.8;
}

.resource-callout {
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.25);
    color: #4c51bf;
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(102, 126, 234, 0.15);
    max-width: 320px;
}

.resource-callout p {
    margin: 0;
    line-height: 1.7;
}

.resource-structure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.resource-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    box-shadow: 0 22px 45px rgba(160, 174, 192, 0.25);
    border: 1px solid rgba(160, 174, 192, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.resource-card-header {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.resource-card-icon {
    font-size: 2rem;
}

.resource-card h3 {
    margin: 0;
    font-size: 1.45rem;
    color: #2d3748;
}

.resource-card-subtitle {
    margin: 0.4rem 0 0 0;
    color: #718096;
    font-weight: 500;
    font-size: 0.95rem;
}

.resource-card-body h4 {
    margin: 0 0 0.75rem 0;
    color: #4c51bf;
    font-size: 1.05rem;
}

.resource-list,
.resource-ideas {
    margin: 0;
    padding-left: 1.1rem;
    color: #4a5568;
    display: grid;
    gap: 0.55rem;
    line-height: 1.7;
}

.resource-ideas li {
    list-style-type: '✦ ';
    padding-left: 0.4rem;
}

.resource-update-section {
    position: relative;
}

.resource-update-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(72, 187, 120, 0.2), transparent 60%);
    pointer-events: none;
}

.resource-update-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.75rem;
    position: relative;
    z-index: 1;
}

.resource-update-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 2rem 1.75rem;
    box-shadow: 0 18px 38px rgba(72, 187, 120, 0.25);
    border: 1px solid rgba(72, 187, 120, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.resource-update-card h3 {
    margin: 0;
    color: #2f855a;
    font-size: 1.4rem;
}

.resource-update-card p {
    margin: 0;
    color: #276749;
    font-weight: 600;
}

.resource-update-card ul {
    margin: 0;
    padding-left: 1.1rem;
    color: #2f855a;
    line-height: 1.7;
    display: grid;
    gap: 0.45rem;
}

.resource-keyword-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.resource-keyword-card {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: 0 18px 40px rgba(102, 126, 234, 0.18);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.resource-keyword-card h3 {
    margin: 0 0 0.85rem 0;
    color: #4c51bf;
}

.resource-keyword-card ul {
    margin: 0;
    padding-left: 1.1rem;
    color: #4a5568;
    line-height: 1.7;
    display: grid;
    gap: 0.4rem;
}

.resource-audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.resource-audience-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 16px 36px rgba(118, 75, 162, 0.2);
    border: 1px solid rgba(118, 75, 162, 0.18);
}

.resource-audience-card h3 {
    margin: 0 0 0.75rem 0;
    color: #553c9a;
}

.resource-audience-card ul {
    margin: 0;
    padding-left: 1.1rem;
    color: #4a5568;
    display: grid;
    gap: 0.45rem;
    line-height: 1.7;
}

/* Tao Te Ching page */
.tao-main {
    background: #f7f7fb;
}

.tao-hero {
    background: radial-gradient(circle at top left, rgba(118, 75, 162, 0.25), transparent 55%),
        radial-gradient(circle at bottom right, rgba(102, 126, 234, 0.25), transparent 45%),
        #f8f5ff;
    color: #1a1c2d;
}

.tao-hero .hero-description {
    max-width: 720px;
}

.tao-intro {
    padding: 4rem 0;
}

.tao-intro-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: start;
}

.tao-intro-grid h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #2d2f44;
}

.tao-intro-grid p {
    line-height: 1.8;
    color: #4a4c63;
}

.tao-meta-cards {
    display: grid;
    gap: 1.25rem;
}

.tao-meta-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: 0 18px 45px rgba(102, 126, 234, 0.12);
    border: 1px solid rgba(102, 126, 234, 0.08);
}

.tao-meta-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #3a3c55;
}

.tao-meta-card p {
    margin: 0;
    color: #5a5c74;
    line-height: 1.7;
}

.tao-reader {
    padding: 4rem 0 5rem;
    background: linear-gradient(180deg, rgba(248, 245, 255, 0.7), rgba(255, 255, 255, 0.9));
}

.tao-reader-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 2.5rem;
    align-items: start;
}

.tao-toc {
    position: sticky;
    top: 96px;
    background: #fff;
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 22px 48px rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(118, 75, 162, 0.12);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.tao-toc-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
}

.tao-toc-header h2 {
    font-size: 1.3rem;
    color: #2d2f44;
}

.tao-toc-header p {
    color: #717496;
    font-size: 0.95rem;
}

.tao-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.tao-toc-item {
    margin: 0;
}

.tao-toc-link {
    width: 100%;
    text-align: left;
    background: rgba(102, 126, 234, 0.08);
    border: none;
    border-radius: 12px;
    padding: 0.65rem 0.75rem;
    color: #3a3c55;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.tao-toc-link:hover,
.tao-toc-link:focus,
.tao-toc-link.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.85));
    color: #fff;
    box-shadow: 0 10px 24px rgba(102, 126, 234, 0.2);
}

.tao-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tao-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.tao-search {
    flex: 1 1 320px;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: #fff;
    border-radius: 999px;
    padding: 0.45rem 1rem;
    border: 1px solid rgba(102, 126, 234, 0.25);
    box-shadow: 0 10px 25px rgba(118, 75, 162, 0.12);
}

.tao-search:focus-within {
    border-color: rgba(118, 75, 162, 0.45);
    box-shadow: 0 12px 28px rgba(118, 75, 162, 0.18);
}

.tao-search-icon {
    font-size: 1.1rem;
}

.tao-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
    color: #2d2f44;
}

.tao-control-buttons {
    display: flex;
    gap: 0.75rem;
}

.tao-control-buttons .action-btn {
    white-space: nowrap;
}

.tao-search-summary {
    font-size: 0.95rem;
    color: #5a5c74;
    margin: 0;
}

.tao-chapter-list {
    display: block;
}

.tao-chapter-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 22px 48px rgba(102, 126, 234, 0.14);
    border: 1px solid rgba(102, 126, 234, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tao-chapter-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 56px rgba(118, 75, 162, 0.18);
}

.tao-chapter-card--single {
    transition: none;
    transform: none;
}

.tao-chapter-card--single:hover {
    transform: none;
    box-shadow: 0 22px 48px rgba(102, 126, 234, 0.14);
}

.tao-chapter-title {
    font-size: 1.35rem;
    color: #2d2f44;
    margin-bottom: 1rem;
}

.tao-chapter-pinyin {
    margin: -0.35rem 0 1.1rem;
    color: #6d6f8c;
    font-size: 0.95rem;
    letter-spacing: 0.015em;
}

.tao-verses {
    display: grid;
    gap: 0.75rem;
}

.tao-verse {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tao-verse-text {
    margin: 0;
    line-height: 1.8;
    color: #3f415e;
    font-size: 1.05rem;
}

.tao-verse-pinyin {
    margin: 0;
    line-height: 1.6;
    color: #6d6f8c;
    font-size: 0.95rem;
    letter-spacing: 0.015em;
}

.tao-chapter-highlight {
    animation: taoPulse 1s ease;
}

@keyframes taoPulse {
    0% {
        box-shadow: 0 0 0 rgba(118, 75, 162, 0.25);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(118, 75, 162, 0.1);
    }
    100% {
        box-shadow: 0 0 0 rgba(118, 75, 162, 0.25);
    }
}

.tao-chapter-card mark {
    background: rgba(255, 214, 102, 0.5);
    padding: 0.1rem 0.2rem;
    border-radius: 0.25rem;
}

.cities-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.cities-page-header .section-desc {
    max-width: 620px;
}

.bookstores-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, rgba(247, 250, 252, 0.95), #ffffff);
}

.bookstores-section .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.bookstores-intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.bookstores-summary {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    color: #4a5568;
}

.bookstores-summary strong {
    font-size: 2.5rem;
    font-weight: 700;
    color: #5a67d8;
}

.bookstores-filters {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

#bookstore-city-filter {
    padding: 0.75rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(102, 126, 234, 0.25);
    background: #fff;
    color: #4a5568;
    font-size: 0.95rem;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.08);
}

.bookstore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.bookstore-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 18px 40px rgba(102, 126, 234, 0.12);
    border: 1px solid rgba(102, 126, 234, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bookstore-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(102, 126, 234, 0.18);
}

.bookstore-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.bookstore-name {
    font-size: 1.5rem;
    margin: 0 0 0.25rem 0;
    color: #2d3748;
}

.bookstore-city {
    margin: 0;
    color: #718096;
    font-size: 0.95rem;
}

.bookstore-detail-link {
    color: #5a67d8;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    background: rgba(90, 103, 216, 0.1);
}

.bookstore-detail-link:hover {
    background: rgba(90, 103, 216, 0.2);
}

.bookstore-description {
    margin: 0;
    color: #4a5568;
    line-height: 1.7;
}

.bookstore-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    color: #4a5568;
}

.bookstore-meta a {
    color: #5a67d8;
    text-decoration: none;
}

.bookstore-meta a:hover {
    text-decoration: underline;
}

.meta-icon {
    margin-right: 0.5rem;
}

.bookstore-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bookstore-tag {
    background: rgba(72, 187, 120, 0.12);
    color: #2f855a;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.bookstore-detail-hero {
    background: linear-gradient(140deg, rgba(45, 55, 72, 0.92), rgba(74, 85, 104, 0.88));
    color: #fff;
    padding: 5rem 0 3.5rem;
}

.bookstore-detail-hero .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.bookstore-detail-meta {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    font-weight: 500;
}

.bookstore-detail-meta a {
    color: #c3dafe;
    text-decoration: none;
}

.bookstore-detail-content {
    background: #f7fafc;
    padding: 4rem 0 5rem;
}

.bookstore-detail-content .container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 2rem;
}

.bookstore-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.bookstore-detail-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(160, 174, 192, 0.22);
    border: 1px solid rgba(160, 174, 192, 0.25);
}

.bookstore-detail-card h2 {
    margin: 0 0 1.25rem 0;
    color: #2d3748;
    font-size: 1.3rem;
}

.bookstore-detail-card ul {
    margin: 0;
    padding-left: 1.1rem;
    color: #4a5568;
    line-height: 1.8;
}

.bookstore-detail-card li {
    margin-bottom: 0.65rem;
}

.empty-state.small {
    padding: 1.5rem;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .subpage-nav .nav-container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .subpage-nav .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .subpage-main {
        padding-top: 60px;
    }

    .subpage-hero {
        padding: 4rem 0 3rem;
    }

    .subpage-hero h1 {
        font-size: 2.4rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .tao-intro-grid {
        grid-template-columns: 1fr;
    }

    .tao-meta-cards {
        grid-template-columns: 1fr;
    }

    .tao-reader-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tao-toc {
        position: relative;
        top: 0;
        max-height: none;
    }

    .tao-toc-list {
        max-height: 280px;
        overflow-y: auto;
    }

    .tao-control-buttons {
        width: 100%;
        justify-content: center;
    }

    .reading-clubs-section .container {
        padding: 0 1.25rem;
    }

    .reading-clubs-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .reading-clubs-selects {
        width: 100%;
        justify-content: center;
    }

    .reading-clubs-selects select {
        flex: 1;
        min-width: 160px;
    }

    .reading-clubs-summary {
        justify-content: center;
    }

    .reading-club-category {
        padding: 2rem 1.5rem;
    }

    .reading-club-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .reading-club-category-count {
        align-self: flex-start;
    }

    .reading-club-cards {
        grid-template-columns: 1fr;
    }

    .bookstores-section .container {
        padding: 0 1.25rem;
    }

    .bookstores-intro {
        flex-direction: column;
        align-items: flex-start;
    }

    .bookstores-summary {
        justify-content: flex-start;
    }

    .bookstore-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .bookstore-detail-hero .container,
    .bookstore-detail-content .container {
        padding: 0 1.5rem;
    }

    .bookstore-detail-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .subpage-nav .nav-container {
        padding: 0.75rem 1rem;
    }

    .subpage-nav .nav-link {
        padding: 0.4rem 0.75rem;
    }

    .subpage-hero h1 {
        font-size: 2rem;
    }

    .tao-meta-card {
        padding: 1.5rem;
    }

    .tao-search {
        flex: 1 1 100%;
    }

    .tao-control-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .tao-control-buttons .action-btn {
        width: 100%;
        text-align: center;
    }

    .reading-clubs-summary {
        width: 100%;
        text-align: center;
    }

    .reading-club-category {
        padding: 1.5rem 1.25rem;
    }

    .bookstores-filters {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    #bookstore-city-filter {
        width: 100%;
    }

    .bookstores-summary {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .bookstore-card {
        padding: 1.75rem;
    }
}

/* 网站地图响应式 */
@media (max-width: 768px) {
    .sitemap-section {
        padding: 2rem 0;
        margin-top: 2rem;
    }
    
    .sitemap-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .sitemap-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .sitemap-category {
        padding: 1.5rem;
    }
    
    .sitemap-category h3 {
        font-size: 1.3rem;
    }
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem 1.5rem 1rem;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .footer-bottom-links {
        justify-content: center;
        gap: 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* 分享模态框响应式 */
@media (max-width: 768px) {
    .share-modal-content {
        max-width: 90vw;
        margin: 1rem;
    }
    
    .share-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .share-button {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .share-icon {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .footer {
        margin-top: 2rem;
    }
    
    .footer-content {
        padding: 1.5rem 1rem 1rem 1rem;
    }
    
    .footer-bottom {
        padding: 1rem 0;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .share-buttons {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .share-button {
        padding: 1rem;
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.75rem;
    }
}

/* ===== 城市页面响应式样式 ===== */
@media (max-width: 768px) {
    .cities-section {
        padding: 2rem 0;
        margin-top: 2rem;
    }
    
    .cities-section h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .cities-section .section-desc {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .city-categories-nav {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .category-nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .cities-controls {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .filter-options {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .filter-options select {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .cities-stats {
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .stat-card {
        padding: 1.5rem;
        min-width: 120px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .cities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .city-card {
        margin: 0 1rem;
    }
    
    .city-info {
        padding: 1.5rem;
    }
    
    .city-name {
        font-size: 1.3rem;
    }
    
    .city-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin: 1rem 0;
    }
    
    .city-stat {
        padding: 0.75rem;
    }
    
    .city-stat-value {
        font-size: 1.1rem;
    }
    
    .libraries-category-section {
        padding: 2rem 0;
    }
    
    .libraries-category-section h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .libraries-category-section .section-desc {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .library-categories-nav {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .lib-category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .library-category {
        padding: 2rem 1.5rem;
        margin: 0 1rem 1.5rem 1rem;
    }
    
    .library-category-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .library-category-icon {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }
    
    .library-category-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .library-category-description {
        font-size: 1rem;
    }
    
    .libraries-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .library-item {
        padding: 1.25rem;
    }
    
    .library-name {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .cities-section h2 {
        font-size: 1.8rem;
    }
    
    .city-categories-nav {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .category-nav-btn {
        width: 200px;
        text-align: center;
    }
    
    .cities-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-card {
        width: 100%;
        max-width: 300px;
    }
    
    .city-card {
        margin: 0 0.5rem;
    }
    
    .city-info {
        padding: 1.25rem;
    }
    
    .library-category {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem 1rem 0.5rem;
    }
    
    .library-categories-nav {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .lib-category-btn {
        width: 200px;
        text-align: center;
    }
} 
.tao-original-section,
.tao-translations {
    margin-top: 1.75rem;
}

.tao-original-section:first-of-type {
    margin-top: 1.25rem;
}

.tao-section-title {
    font-size: 1.05rem;
    color: #4a4d69;
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
}

.tao-translation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.tao-translation-card {
    background: linear-gradient(145deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.1));
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid rgba(102, 126, 234, 0.18);
    box-shadow: 0 18px 32px rgba(102, 126, 234, 0.12);
    backdrop-filter: blur(6px);
}

.tao-translation-title {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d2f44;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.tao-translation-text {
    margin: 0;
    line-height: 1.7;
    color: #3f415e;
    font-size: 0.95rem;
}

.tao-empty-state {
    padding: 2rem;
    text-align: center;
    color: #6d6f8c;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 16px;
    border: 1px dashed rgba(102, 126, 234, 0.3);
}

@media (max-width: 960px) {
    .resource-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .resource-callout {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .resource-hero-meta {
        grid-template-columns: 1fr;
    }

    .resource-card {
        padding: 1.75rem 1.5rem;
    }

    .resource-section h2 {
        font-size: 2rem;
    }

    .resource-callout {
        box-shadow: none;
    }
}

@media (max-width: 540px) {
    .resource-section {
        padding: 3.5rem 0;
    }

    .resource-section .container {
        padding: 0 1.25rem;
    }

    .resource-card h3 {
        font-size: 1.25rem;
    }

    .resource-card-subtitle {
        font-size: 0.9rem;
    }

    .resource-update-card h3 {
        font-size: 1.25rem;
    }
}

/* ===== 精选好书样式 ===== */
.books-hero {
    position: relative;
    background: radial-gradient(circle at 20% 20%, rgba(96, 165, 250, 0.55), rgba(129, 140, 248, 0.75));
    overflow: hidden;
}

.books-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.18), transparent 55%),
                radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1), transparent 60%);
    z-index: 0;
}

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

.books-hero-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2.75rem;
}

.books-stat-card {
    min-width: 150px;
    padding: 1.4rem 1.6rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.books-stat-number {
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
}

.books-stat-label {
    font-size: 0.95rem;
    color: rgba(226, 232, 240, 0.95);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.books-overview {
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 65%);
    padding: 4rem 0;
}

.books-overview-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
    align-items: start;
}

.books-filter-panel {
    background: #ffffff;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 30px 70px rgba(96, 165, 250, 0.15);
    border: 1px solid rgba(226, 232, 240, 0.7);
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.books-filter-panel h2 {
    margin: 0;
    font-size: 2rem;
    color: #1f2937;
}

.books-filter-desc {
    margin: 0;
    color: #475569;
    line-height: 1.7;
}

.books-field {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    color: #475569;
    font-weight: 500;
}

.books-field span {
    font-size: 0.9rem;
    letter-spacing: 0.03em;
}

.books-field input,
.books-field select {
    padding: 0.85rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(203, 213, 225, 0.8);
    font-size: 0.95rem;
    background: rgba(248, 250, 252, 0.85);
    outline: none;
    transition: box-shadow 0.2s ease, background 0.2s ease;
}

.books-field input:focus,
.books-field select:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
    background: #ffffff;
}

.books-filter-summary {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-radius: 18px;
    padding: 1rem 1.25rem;
}

.books-summary-item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    color: #1e3a8a;
}

.books-summary-item strong {
    font-size: 1.8rem;
}

.books-overview-panel {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(226, 232, 240, 0.7);
    box-shadow: 0 24px 60px rgba(148, 163, 184, 0.2);
    display: grid;
    gap: 1.5rem;
}

.books-overview-panel h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #1f2937;
}

.books-category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.books-tag {
    border: none;
    background: rgba(96, 165, 250, 0.16);
    color: #1d4ed8;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.books-tag:hover,
.books-tag:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(96, 165, 250, 0.25);
}

.books-listing {
    padding: 4rem 0 4.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.books-listing-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.books-eyebrow {
    margin: 0;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1d4ed8;
    font-weight: 600;
}

.books-listing-desc {
    margin: 0;
    color: #4b5563;
    line-height: 1.7;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.book-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 1.75rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 24px 48px rgba(96, 165, 250, 0.16);
    display: grid;
    gap: 1rem;
}

.book-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.book-card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #0f172a;
}

.book-card-category {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.12);
    color: #4338ca;
    font-size: 0.78rem;
    font-weight: 600;
}

.book-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.book-card-tags span {
    display: inline-flex;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: rgba(96, 165, 250, 0.16);
    color: #1d4ed8;
    font-size: 0.8rem;
    font-weight: 600;
}

.book-card-summary {
    margin: 0;
    color: #475569;
    line-height: 1.65;
}

.book-card-meta {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.45rem;
    color: #475569;
    font-size: 0.92rem;
}

.book-card-meta li {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    line-height: 1.5;
}

/* ===== 全球作家索引样式 ===== */
.author-hero {
    background: radial-gradient(circle at top left, rgba(102, 126, 234, 0.88), rgba(118, 75, 162, 0.95));
    overflow: hidden;
}

.author-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 55%),
                radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.15), transparent 60%);
    z-index: 0;
}

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

.author-hero-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.author-stat-card {
    min-width: 160px;
    padding: 1.5rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.author-stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
}

.author-stat-label {
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.9;
}

.author-overview {
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 60%);
    padding: 4rem 0;
}

.author-overview-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3rem;
    align-items: start;
}

.author-filter-panel {
    background: #ffffff;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 30px 70px rgba(102, 126, 234, 0.12);
    border: 1px solid rgba(226, 232, 240, 0.7);
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.author-filter-panel h2 {
    margin: 0;
    font-size: 2rem;
    color: #2d3748;
}

.author-filter-intro {
    margin: 0;
    color: #4a5568;
    line-height: 1.7;
}

.author-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    color: #4a5568;
    font-weight: 500;
}

.author-filter-field input,
.author-filter-field select {
    padding: 0.85rem 1.1rem;
    border-radius: 14px;
    border: 2px solid #e2e8f0;
    font-size: 1rem;
    color: #2d3748;
    background: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.author-filter-field input:focus,
.author-filter-field select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.author-filter-field small {
    font-weight: 400;
    color: #718096;
}

.author-filter-summary {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.75rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.14));
    color: #4a5568;
}

.author-summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-summary-item strong {
    font-size: 1.8rem;
    color: #5a67d8;
}

.author-index-panel {
    background: linear-gradient(135deg, #ffffff 0%, #f3f4ff 100%);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 30px 70px rgba(79, 114, 205, 0.12);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.author-index-panel h2 {
    margin: 0;
    font-size: 1.9rem;
    color: #2d3748;
}

.author-index-panel p {
    margin: 0;
    color: #4a5568;
}

.author-index {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}

.author-index-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    background: rgba(102, 126, 234, 0.12);
    color: #4a5568;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.author-index-link:hover,
.author-index-link:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(102, 126, 234, 0.2);
}

.author-listing {
    padding: 4rem 0 5rem;
    background: #ffffff;
}

.author-listing .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.author-listing-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    gap: 1.5rem;
}

.author-eyebrow {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #5a67d8;
    font-weight: 700;
}

.author-listing-desc {
    margin: 0;
    color: #4a5568;
    max-width: 760px;
    line-height: 1.7;
}

.author-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

.author-card {
    background: linear-gradient(135deg, #ffffff 0%, #f6f8ff 100%);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 18px 45px rgba(102, 126, 234, 0.15);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.author-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 55px rgba(102, 126, 234, 0.25);
}

.author-card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.author-card-flag {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: rgba(102, 126, 234, 0.12);
}

.author-card-meta h3 {
    margin: 0 0 0.4rem 0;
    font-size: 1.75rem;
    color: #2d3748;
}

.author-card-meta p {
    margin: 0;
    color: #4a5568;
}

.author-list {
    margin: 0;
    padding-left: 1.25rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem 1.25rem;
    color: #2d3748;
    font-weight: 500;
}

.author-list li {
    position: relative;
    padding-left: 0.25rem;
}

@media (max-width: 1024px) {
    .top-books-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-books-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .books-overview-layout {
        grid-template-columns: 1fr;
    }

    .books-filter-panel,
    .books-overview-panel {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .top-books-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 576px) {
    .books-filter-panel,
    .books-overview-panel {
        padding: 1.75rem 1.5rem;
    }

    .books-hero-stats {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

    .author-index-panel {
        order: -1;
    }

    .author-filter-panel,
    .author-index-panel {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .author-hero-stats {
        justify-content: flex-start;
    }

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

    .author-filter-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .author-index {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media (max-width: 576px) {
    .author-filter-panel,
    .author-index-panel {
        padding: 1.75rem;
    }

    .author-card {
        padding: 1.5rem;
    }

    .author-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .author-card-flag {
        width: 56px;
        height: 56px;
        font-size: 1.75rem;
    }

    .author-list {
        grid-template-columns: 1fr;
    }
}

/* ===== 中医书籍页面 ===== */
.tcm-hero {
    background: radial-gradient(circle at 20% 20%, rgba(224, 231, 255, 0.6), transparent 35%),
        radial-gradient(circle at 80% 0%, rgba(237, 233, 254, 0.7), transparent 30%),
        linear-gradient(135deg, #0ea5e9, #8b5cf6);
    color: #f8fafc;
}

.tcm-hero h1 {
    color: #f8fafc;
}

.tcm-hero .hero-description {
    max-width: 840px;
    color: #eef2ff;
}

.tcm-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.tcm-tag-cloud .books-tag {
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.12);
    color: #4338ca;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.tcm-tag-cloud .books-tag:hover,
.tcm-tag-cloud .books-tag:focus-visible {
    background: rgba(79, 70, 229, 0.16);
    border-color: rgba(79, 70, 229, 0.32);
    outline: none;
    transform: translateY(-1px);
}
.top-books {
    background: #f8fafc;
    padding: 3rem 0;
}

.top-books-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.top-books-desc {
    margin: 0.35rem 0 0;
    color: #475569;
    line-height: 1.65;
}

.top-books-cta {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.2));
    color: #1d4ed8;
    padding: 0.9rem 1.2rem;
    border-radius: 14px;
    font-weight: 700;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 16px 32px rgba(59, 130, 246, 0.12);
}

.top-books-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    counter-reset: top-book;
}

.top-book-card {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

.top-book-rank {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.26);
}

.top-book-info h3 {
    margin: 0;
    font-size: 1rem;
    color: #0f172a;
}

.top-book-info p {
    margin: 0.25rem 0 0;
    color: #475569;
}

.top-book-info .top-book-author {
    font-weight: 600;
    color: #1d4ed8;
}

.top-book-info .top-book-subtitle {
    font-size: 0.92rem;
    color: #64748b;
}

