/*
Theme Name: 庄河印象
Theme URI: https://www.0411.wang
Author: Happy花椒
Author URI: https://www.quhj.com
Description: 庄河印象 - 庄河旅游门户WordPress主题，支持自定义颜色、轮播图、首页板块、页脚信息等。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: tourism, travel, custom-colors, custom-header, custom-menu, featured-images
Text Domain: zhuanghe-impression
*/

/* CSS变量定义 */
:root {
    --primary-color: #1e6b8c;
    --secondary-color: #2d8a6e;
    --accent-color: #dc2626;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    --border-color: #e5e7eb;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    background: var(--bg-color);
    line-height: 1.7;
    font-size: 16px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 10px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    transition: color 0.3s ease;
}

.site-header.scrolled .site-logo {
    color: var(--text-color);
}

/* 主导航 */
.main-nav {
    display: flex;
    list-style: none;
    gap: 5px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.site-header.scrolled .main-nav {
    background: rgba(0, 0, 0, 0.04);
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 8px 18px;
    color: #fff;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled .main-nav a {
    color: var(--text-color);
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 107, 140, 0.3);
}

/* 下拉菜单 */
.main-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 8px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    margin-top: 10px;
}

.main-nav li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav .sub-menu a {
    color: var(--text-color) !important;
    padding: 10px 16px;
    border-radius: 10px;
    background: transparent !important;
    box-shadow: none !important;
}

.main-nav .sub-menu a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    color: #fff !important;
    transform: translateX(4px);
}

/* 搜索按钮 */
.search-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    padding: 8px 16px;
    border-radius: 50px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.site-header.scrolled .search-btn {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-color);
}

.search-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
}

/* Hero轮播 */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    max-width: 800px;
    padding: 0 40px;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-quick-links {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 10;
}

.quick-link {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 12px 28px;
    border-radius: 50px;
    color: #fff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-link:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: translateY(-2px);
}

/* 板块通用 */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-header p {
    color: var(--text-light);
    font-size: 16px;
    margin-top: 20px;
}

/* 头条新闻 */
.headline-news {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-radius: 20px;
    padding: 30px 40px;
    color: #fff;
    margin-bottom: 40px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.headline-badge {
    background: #fff;
    color: #dc2626;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.headline-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.headline-content p {
    opacity: 0.9;
    font-size: 15px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.news-item {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.news-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.news-item h4 a {
    color: var(--text-color);
}

.news-item h4 a:hover {
    color: var(--primary-color);
}

.news-item p {
    color: var(--text-light);
    font-size: 14px;
}

.news-date {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 8px;
}

/* 八分类手风琴 */
.category-accordion {
    display: flex;
    height: 500px;
    gap: 4px;
    border-radius: 20px;
    overflow: hidden;
}

.accordion-item {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
    transition: flex 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

.accordion-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.accordion-item:hover {
    flex: 3;
}

.accordion-label {
    position: absolute;
    bottom: 30px;
    left: 20px;
    right: 20px;
    color: #fff;
    z-index: 2;
}

.accordion-label h3 {
    font-size: 20px;
    font-weight: 600;
    white-space: nowrap;
}

.accordion-item:hover .accordion-label h3 {
    font-size: 24px;
}

/* 景点推荐 */
.scenic-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.scenic-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.scenic-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.scenic-card:hover img {
    transform: scale(1.05);
}

.scenic-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
}

.scenic-level {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.scenic-info h3 {
    font-size: 24px;
    font-weight: 700;
}

.scenic-grid-small {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* 当季推荐 */
.season-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.season-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.season-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.season-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.season-card-content {
    padding: 24px;
}

.season-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.season-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* 美食风物 */
.food-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.food-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.food-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.food-card h4 {
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
}

/* 数据统计 */
.stats-section {
    background: linear-gradient(135deg, #1a365d, #234e52);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item .number {
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.stat-item:hover .number {
    transform: scale(1.15) translateY(-4px);
}

.stat-item .label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* 页脚 */
.site-footer {
    background: #1a202c;
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-col p,
.footer-col li {
    font-size: 14px;
    line-height: 2;
    list-style: none;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-col a:hover {
    color: #fff;
}

.footer-qrcode {
    display: flex;
    gap: 20px;
}

.qrcode-item {
    text-align: center;
}

.qrcode-placeholder {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 12px;
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
}

/* 列表页 */
.page-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
}

.page-header p {
    opacity: 0.9;
    margin-top: 10px;
}

.content-area {
    padding: 60px 0;
}

/* 文章列表 */
.article-list {
    max-width: 900px;
    margin: 0 auto;
}

.article-item {
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}

.article-item h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.article-item h2 a {
    color: var(--text-color);
}

.article-item h2 a:hover {
    color: var(--primary-color);
}

.article-excerpt {
    color: var(--text-light);
    margin-bottom: 10px;
}

.article-meta {
    font-size: 13px;
    color: var(--text-light);
}

/* 文章详情 */
.single-header {
    padding: 120px 0 40px;
    text-align: center;
}

.single-header h1 {
    font-size: 36px;
    font-weight: 700;
    max-width: 800px;
    margin: 0 auto 20px;
}

.single-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.9;
}

.single-content p {
    margin-bottom: 20px;
}

.single-actions {
    max-width: 800px;
    margin: 40px auto;
    display: flex;
    justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* 休闲旅游页 */
.travel-hero {
    padding: 120px 0 40px;
    background: linear-gradient(135deg, #0f4c75, #1b6b5a);
    color: #fff;
}

.travel-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0;
    justify-content: center;
}

.travel-cat-btn {
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.3);
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.travel-cat-btn.active,
.travel-cat-btn:hover {
    background: #fff;
    color: var(--primary-color);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 14px;
}

.pagination .current {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* 响应式 */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .news-grid,
    .scenic-grid,
    .season-grid,
    .food-grid,
    .stats-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .category-accordion {
        flex-direction: column;
        height: auto;
    }
    
    .accordion-item {
        height: 80px;
    }
    
    .accordion-item:hover {
        flex: 1;
        height: 200px;
    }
    
    .scenic-grid-small {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        gap: 30px;
    }
}
