/*
Theme Name: 趣汇渔家
Theme URI: https://www.quhj.com
Author: Happy花椒
Author URI: https://www.quhj.com
Description: 花椒渔家乐专用WordPress主题，简约清新风格，支持住宿、美食、景点、特产、新闻等栏目，全部功能可通过外观自定义管理。
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: 渔家乐, 民宿, 旅游, 海岛, 清新, 白色主题, 响应式
Text Domain: quhj-yujiayue
*/

/* ========== 全局重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #ffffff;
    color: #333333;
    line-height: 1.6;
    font-size: 15px;
}
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
a:hover { color: #1e88e5; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.3; color: #222; }

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

/* ========== 顶部导航 ========== */
.quhj-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.quhj-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.quhj-logo {
    font-size: 22px;
    font-weight: 700;
    color: #1e88e5;
    letter-spacing: 1px;
}
.quhj-logo span { color: #ff9800; }
.quhj-nav ul {
    display: flex;
    gap: 8px;
}
.quhj-nav li a {
    display: block;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 15px;
    color: #555;
    font-weight: 500;
}
.quhj-nav li a:hover,
.quhj-nav li.current-menu-item a,
.quhj-nav li.current_page_item a {
    background: #1e88e5;
    color: #fff;
}
.quhj-mobile-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #1e88e5;
}

/* ========== Banner 轮播 ========== */
.quhj-banner {
    position: relative;
    height: 480px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e88e5 0%, #42a5f5 100%);
}
.quhj-banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    background-size: cover;
    background-position: center;
}
.quhj-banner-slide.active { opacity: 1; }
.quhj-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
}
.quhj-banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}
.quhj-banner-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.quhj-banner-desc {
    font-size: 18px;
    max-width: 600px;
    opacity: 0.95;
    margin-bottom: 28px;
}
.quhj-banner-btn {
    display: inline-block;
    padding: 12px 36px;
    background: #ff9800;
    color: #fff;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(255,152,0,0.4);
}
.quhj-banner-btn:hover {
    background: #fb8c00;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,152,0,0.5);
}
.quhj-banner-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}
.quhj-banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}
.quhj-banner-dot.active {
    background: #fff;
    width: 28px;
    border-radius: 5px;
}

/* ========== 通用区块标题 ========== */
.quhj-section {
    padding: 70px 0;
}
.quhj-section-title {
    text-align: center;
    margin-bottom: 50px;
}
.quhj-section-title h2 {
    font-size: 32px;
    margin-bottom: 12px;
    color: #222;
}
.quhj-section-title p {
    color: #888;
    font-size: 15px;
}
.quhj-section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #1e88e5;
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ========== 卡片通用样式（简约白卡） ========== */
.quhj-card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.35s ease;
}
.quhj-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border-color: #e0e0e0;
}
.quhj-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}
.quhj-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.quhj-card:hover .quhj-card-img img {
    transform: scale(1.08);
}
.quhj-card-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: #ff9800;
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
    font-weight: 500;
}
.quhj-card-body {
    padding: 20px;
}
.quhj-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.quhj-card-desc {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
    min-height: 44px;
}
.quhj-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}
.quhj-card-price {
    font-size: 20px;
    font-weight: 700;
    color: #ff5722;
}
.quhj-card-price small {
    font-size: 13px;
    font-weight: 400;
    color: #999;
}
.quhj-card-more {
    font-size: 14px;
    color: #1e88e5;
    font-weight: 500;
}
.quhj-card-more:hover { padding-right: 4px; }

/* ========== 网格布局 ========== */
.quhj-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.quhj-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.quhj-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* ========== 特色服务区块 ========== */
.quhj-features {
    background: #f8fafc;
    padding: 70px 0;
}
.quhj-feature-item {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: all 0.3s;
}
.quhj-feature-item:hover {
    border-color: #1e88e5;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(30,136,229,0.1);
}
.quhj-feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, #1e88e5, #42a5f5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
}
.quhj-feature-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}
.quhj-feature-item p {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
}

/* ========== 新闻列表 ========== */
.quhj-news-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}
.quhj-news-item:last-child { border-bottom: none; }
.quhj-news-item:hover { padding-left: 8px; }
.quhj-news-thumb {
    width: 180px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}
.quhj-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.quhj-news-content { flex: 1; }
.quhj-news-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
}
.quhj-news-title:hover { color: #1e88e5; }
.quhj-news-excerpt {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.quhj-news-meta {
    font-size: 13px;
    color: #aaa;
    display: flex;
    gap: 16px;
}

/* ========== 关于渔家区块 ========== */
.quhj-about {
    background: #f8fafc;
}
.quhj-about-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.quhj-about-img {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.quhj-about-text h2 {
    font-size: 30px;
    margin-bottom: 20px;
}
.quhj-about-text p {
    font-size: 15px;
    color: #666;
    line-height: 1.9;
    margin-bottom: 16px;
}
.quhj-about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}
.quhj-stat-item {
    text-align: center;
    padding: 20px 10px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
}
.quhj-stat-num {
    font-size: 32px;
    font-weight: 700;
    color: #1e88e5;
    margin-bottom: 6px;
}
.quhj-stat-label {
    font-size: 13px;
    color: #888;
}

/* ========== 页脚 ========== */
.quhj-footer {
    background: #263238;
    color: #b0bec5;
    padding: 60px 0 0;
}
.quhj-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
.quhj-footer-col h4 {
    color: #fff;
    font-size: 17px;
    margin-bottom: 20px;
    font-weight: 600;
}
.quhj-footer-col p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 10px;
}
.quhj-footer-col ul li {
    margin-bottom: 10px;
    font-size: 14px;
}
.quhj-footer-col ul li a:hover { color: #fff; padding-left: 4px; }
.quhj-footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}
.quhj-footer-bottom {
    border-top: 1px solid #37474f;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #78909c;
}
.quhj-footer-bottom a { color: #90a4ae; }
.quhj-footer-bottom a:hover { color: #fff; }

/* ========== 栏目页通用 ========== */
.quhj-page-header {
    background: linear-gradient(135deg, #1e88e5 0%, #42a5f5 100%);
    padding: 80px 0;
    text-align: center;
    color: #fff;
}
.quhj-page-header h1 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 10px;
}
.quhj-page-header p {
    font-size: 15px;
    opacity: 0.9;
}
.quhj-page-content {
    padding: 60px 0;
}

/* ========== 详情页 ========== */
.quhj-single-wrap {
    max-width: 900px;
    margin: 0 auto;
}
.quhj-single-header {
    text-align: center;
    margin-bottom: 40px;
}
.quhj-single-title {
    font-size: 32px;
    margin-bottom: 16px;
    line-height: 1.4;
}
.quhj-single-meta {
    color: #999;
    font-size: 14px;
    display: flex;
    justify-content: center;
    gap: 20px;
}
.quhj-single-thumbnail {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
}
.quhj-single-thumbnail img {
    width: 100%;
    height: auto;
}
.quhj-single-content {
    font-size: 16px;
    line-height: 2;
    color: #444;
}
.quhj-single-content p { margin-bottom: 20px; }
.quhj-single-content h2 { font-size: 24px; margin: 30px 0 16px; }
.quhj-single-content h3 { font-size: 20px; margin: 26px 0 14px; }
.quhj-single-content img {
    border-radius: 8px;
    margin: 20px 0;
}
.quhj-single-content ul,
.quhj-single-content ol {
    margin: 16px 0 16px 24px;
    list-style: disc;
}
.quhj-single-content li { margin-bottom: 8px; }

/* ========== 详情页信息栏 ========== */
.quhj-info-bar {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px 30px;
    margin-bottom: 36px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    border: 1px solid #e8eaf6;
}
.quhj-info-item {
    text-align: center;
}
.quhj-info-label {
    font-size: 13px;
    color: #888;
    margin-bottom: 6px;
}
.quhj-info-value {
    font-size: 18px;
    font-weight: 600;
    color: #1e88e5;
}
.quhj-info-value.price { color: #ff5722; font-size: 24px; }

/* ========== 分页 ========== */
.quhj-pagination {
    text-align: center;
    margin-top: 50px;
}
.quhj-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #666;
    font-size: 14px;
    transition: all 0.3s;
}
.quhj-pagination .page-numbers:hover,
.quhj-pagination .page-numbers.current {
    background: #1e88e5;
    color: #fff;
    border-color: #1e88e5;
}

/* ========== 关于页面 ========== */
.quhj-about-page {
    max-width: 900px;
    margin: 0 auto;
}
.quhj-about-page h2 {
    font-size: 26px;
    margin: 36px 0 18px;
    color: #1e88e5;
}
.quhj-about-page p {
    font-size: 16px;
    line-height: 2;
    color: #555;
    margin-bottom: 18px;
}
.quhj-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0;
}
.quhj-contact-card {
    text-align: center;
    padding: 30px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #eee;
}
.quhj-contact-card .icon {
    font-size: 32px;
    color: #1e88e5;
    margin-bottom: 12px;
}
.quhj-contact-card h4 {
    font-size: 16px;
    margin-bottom: 8px;
}
.quhj-contact-card p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* ========== 返回顶部 ========== */
.quhj-back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: #1e88e5;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 99;
    box-shadow: 0 4px 12px rgba(30,136,229,0.3);
}
.quhj-back-top.show {
    opacity: 1;
    visibility: visible;
}
.quhj-back-top:hover {
    background: #1976d2;
    transform: translateY(-3px);
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .quhj-grid-4 { grid-template-columns: repeat(3, 1fr); }
    .quhj-footer-grid { grid-template-columns: 1fr 1fr; }
    .quhj-about-wrap { grid-template-columns: 1fr; }
    .quhj-info-bar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .quhj-header-inner { height: 60px; }
    .quhj-mobile-btn { display: block; }
    .quhj-nav {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #fff;
        border-bottom: 1px solid #eee;
        padding: 10px 20px;
        display: none;
    }
    .quhj-nav.open { display: block; }
    .quhj-nav ul {
        flex-direction: column;
        gap: 0;
    }
    .quhj-nav li a { padding: 12px 0; border-bottom: 1px solid #f5f5f5; }
    .quhj-banner { height: 320px; }
    .quhj-banner-title { font-size: 30px; }
    .quhj-banner-desc { font-size: 15px; }
    .quhj-section { padding: 50px 0; }
    .quhj-section-title h2 { font-size: 26px; }
    .quhj-grid-4, .quhj-grid-3, .quhj-grid-2 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .quhj-footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .quhj-page-header { padding: 50px 0; }
    .quhj-page-header h1 { font-size: 28px; }
    .quhj-single-title { font-size: 24px; }
    .quhj-contact-grid { grid-template-columns: 1fr; }
    .quhj-news-item { flex-direction: column; }
    .quhj-news-thumb { width: 100%; height: 180px; }
    .quhj-about-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .quhj-stat-num { font-size: 24px; }
}
@media (max-width: 480px) {
    .quhj-grid-4, .quhj-grid-3, .quhj-grid-2 { grid-template-columns: 1fr; }
    .quhj-info-bar { grid-template-columns: 1fr 1fr; }
    .quhj-banner-title { font-size: 24px; }
}
