/* ============================================
   旅游网站 - 全局样式
   基于 UI/UX Pro Max 设计资源
   ============================================ */

/* 导入 Google Fonts - 使用适合中文的字体 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&family=Noto+Serif+SC:wght@400;500;600;700&display=swap');

/* CSS 变量 - 基于旅游网站配色方案 */
:root {
    --primary-color: #EC4899;
    --secondary-color: #F472B6;
    --cta-color: #06B6D4;
    --background-light: #FDF2F8;
    --text-dark: #831843;
    --border-color: #FBCFE8;
    --white: #FFFFFF;
    --text-gray: #6B7280;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Noto Serif SC', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    /*display: block;*/
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Noto Serif SC', serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    font-size: 1.3rem;
    margin-right: 0.5rem;
}

.nav-links {
    display: none;
    gap: 2rem;
    list-style: none;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-button {
    background: var(--cta-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    background: #0891b2;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Hero 区域 */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .hero {
        height: 700px;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.8), rgba(6, 182, 212, 0.6));
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* 搜索框 */
.search-box {
    background: var(--white);
    border-radius: 50px;
    padding: 0.5rem;
    display: flex;
    gap: 0.5rem;
    box-shadow: var(--shadow-xl);
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    outline: none;
    border-radius: 50px;
}

.search-button {
    background: var(--cta-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.search-button:hover {
    background: #0891b2;
}

/* 章节标题 */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .section-title h2 {
        font-size: 2.5rem;
    }
}

.section-title p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* 文章卡片网格 */
.article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .article-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 文章卡片 */
.article-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.article-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .article-card-image {
        height: 220px;
    }
}

.article-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-category {
    display: inline-block;
    background: var(--background-light);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.article-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-title:hover {
    color: var(--primary-color);
}

.article-card-excerpt {
    color: var(--text-gray);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-gray);
}

.article-card-date,
.article-card-views {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.article-card-date i,
.article-card-views i {
    font-size: 0.9rem;
    color: var(--primary-color);
    opacity: 0.8;
    margin-right: 0.4rem;
}

.article-card-link {
    color: var(--cta-color);
    font-weight: 500;
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.article-card-link:hover {
    color: #0891b2;
}

/* 特色区域 */
.features {
    background: var(--background-light);
    padding: 4rem 0;
    margin: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-icon i {
    font-size: 3rem;
    color: var(--primary-color);
}

.feature-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-description {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* 链轮分站区域 - 独立区域，使用渐变背景 */
.branch-links-section {
    background: linear-gradient(135deg, var(--background-light) 0%, #FFFFFF 100%);
    padding: 4rem 0;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.branch-links-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--cta-color));
}

.branch-links-section .section-title h2 {
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.branch-links-section .section-title h2 i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.branch-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .branch-links-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 2rem;
    }
}

.branch-link-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.branch-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--cta-color));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.branch-link-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.branch-link-card:hover::before {
    transform: scaleY(1);
}

.branch-link-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.branch-link-name {
    flex: 1;
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-dark);
}

.branch-link-arrow {
    color: var(--text-gray);
    font-size: 0.9rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.branch-link-card:hover .branch-link-arrow {
    color: var(--primary-color);
    transform: translateX(4px);
}

/* 友情链接区域 - 独立区域，使用简洁列表式设计 */
.friend-links-section {
    background: var(--white);
    padding: 4rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.friend-links-section .section-title h2 {
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.friend-links-section .section-title h2 i {
    color: var(--cta-color);
    font-size: 1.8rem;
}

.friend-links-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .friend-links-container {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 1.5rem;
    }
}

.friend-link-item {
    background: var(--background-light);
    border-radius: 10px;
    padding: 1.25rem;
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}

.friend-link-item:hover {
    background: var(--white);
    border-color: var(--cta-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.friend-link-logo-wrapper,
.friend-link-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.friend-link-icon-wrapper {
    background: linear-gradient(135deg, var(--cta-color), #0891b2);
    color: var(--white);
    border: none;
}

.friend-link-icon-wrapper i {
    font-size: 1.1rem;
}

.friend-link-logo {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

.friend-link-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.friend-link-name {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.friend-link-desc {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 页脚 */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 2rem 0 1.5rem;
    margin-top: 4rem;
}

@media (min-width: 768px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* 移动端：两列布局 */
@media (min-width: 480px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* 平板：两列布局 */
@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* 桌面：四列布局 */
@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.footer-section {
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .footer-section {
        margin-bottom: 0;
    }
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
}

@media (min-width: 768px) {
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 1.25rem;
    }
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 768px) {
    .footer-section p {
        font-size: 0.95rem;
    }
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .footer-section ul li {
        margin-bottom: 0.5rem;
    }
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    display: inline-block;
    padding: 0.25rem 0;
    transition: var(--transition);
}

@media (min-width: 768px) {
    .footer-section a {
        font-size: 0.95rem;
    }
}

.footer-section a:hover {
    color: var(--white);
    padding-left: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        padding-top: 2rem;
        font-size: 0.9rem;
    }
}

/* 链轮分站和友情链接 - 移动端响应式 */
@media (max-width: 767px) {
    .branch-links-section {
        padding: 3rem 0;
        margin-top: 3rem;
    }

    .branch-links-section .section-title h2 {
        font-size: 1.5rem;
    }

    .branch-links-section .section-title h2 i {
        font-size: 1.5rem;
    }

    .branch-links-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .branch-link-card {
        padding: 1.25rem;
    }

    .branch-link-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .branch-link-name {
        font-size: 0.95rem;
    }

    .friend-links-section {
        padding: 3rem 0;
        margin-top: 1.5rem;
    }

    .friend-links-section .section-title h2 {
        font-size: 1.5rem;
    }

    .friend-links-section .section-title h2 i {
        font-size: 1.5rem;
    }

    .friend-links-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .friend-link-item {
        padding: 1rem;
    }

    .friend-link-logo-wrapper,
    .friend-link-icon-wrapper {
        width: 40px;
        height: 40px;
    }

    .friend-link-logo {
        max-width: 32px;
        max-height: 32px;
    }

    .friend-link-name {
        font-size: 0.95rem;
    }

    .friend-link-desc {
        font-size: 0.8rem;
    }
}

/* 列表页样式 */
.list-header {
    background: linear-gradient(135deg, var(--primary-color), var(--cta-color));
    color: var(--white);
    padding: 3rem 0;
    margin-bottom: 3rem;
    text-align: center;
}

.list-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.filter-bar {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.filter-item {
    flex: 1;
    min-width: 150px;
}

.filter-item label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.filter-item select,
.filter-item input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.filter-item select:focus,
.filter-item input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

/* 文章页样式 */
.article-header {
    background: linear-gradient(135deg, var(--primary-color), var(--cta-color));
    color: var(--white);
    padding: 4rem 0;
    margin-bottom: 3rem;
    text-align: center;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-meta i {
    font-size: 1rem;
    opacity: 0.9;
    margin-right: 0.5rem;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.article-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.article-body h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.article-body ul,
.article-body ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
    overflow: hidden;
}

.article-body thead {
    background: var(--background-light);
}

.article-body th,
.article-body td {
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    text-align: left;
}

.article-body th {
    font-weight: 600;
    color: var(--text-dark);
}

.article-body tbody tr:nth-child(even) {
    background: #fdfdfd;
}

.article-body tbody tr:hover {
    background: #fef2ff;
}

.article-body caption {
    caption-side: top;
    text-align: left;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-gray);
}

.related-articles {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.related-articles h2 {
    margin-bottom: 2rem;
}

/* 结果计数 */
.result-count {
    margin-bottom: 2rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* 分享按钮 */
.share-button {
    text-align: center;
    margin: 3rem 0;
}

.share-button .cta-button {
    font-size: 1.2rem;
    padding: 1rem 3rem;
}

/* 响应式工具类 */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}