/*
Theme Name: 花椒水产
Theme URI: https://www.quhj.com/
Author: Happy花椒
Author URI: https://www.quhj.com/
Description: 花椒水产企业官网主题，蓝色简约企业风格，全自定义配置，支持产品展示、新闻中心、产业介绍等栏目。
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: quhj-shuichan
Tags: 企业主题, 水产, 蓝色风格, 自定义, 响应式
*/

/* ========== 全局重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    background: #fff;
}
a { text-decoration: none; color: inherit; transition: all 0.3s; }
a:hover { color: #0066b3; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: normal; line-height: 1.4; }

/* ========== 通用容器 ========== */
.quhj-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 顶部导航 ========== */
.quhj-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.quhj-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}
.quhj-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.quhj-logo-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066b3, #0099ff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}
.quhj-logo-text h1 {
    font-size: 22px;
    font-weight: bold;
    color: #0066b3;
    line-height: 1.2;
}
.quhj-logo-text p {
    font-size: 11px;
    color: #999;
    letter-spacing: 1px;
    line-height: 1.2;
    margin-top: 2px;
}
.quhj-nav {
    display: flex;
    align-items: center;
}
.quhj-nav > ul {
    display: flex;
    gap: 8px;
}
.quhj-nav > ul > li {
    position: relative;
}
.quhj-nav > ul > li > a {
    display: block;
    padding: 0 18px;
    line-height: 80px;
    font-size: 15px;
    color: #333;
    position: relative;
}
.quhj-nav > ul > li > a:hover,
.quhj-nav > ul > li.current-menu-item > a {
    color: #0066b3;
}
.quhj-nav > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #0066b3;
    transition: width 0.3s;
}
.quhj-nav > ul > li > a:hover::after,
.quhj-nav > ul > li.current-menu-item > a::after {
    width: 30px;
}
.quhj-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.quhj-lang-switch {
    font-size: 13px;
    color: #666;
    cursor: pointer;
}
.quhj-search-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s;
}
.quhj-search-btn:hover {
    background: #f0f7ff;
    color: #0066b3;
}
.quhj-mobile-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}
.quhj-mobile-btn span {
    width: 24px;
    height: 2px;
    background: #333;
    transition: all 0.3s;
}

/* ========== Banner轮播 ========== */
.quhj-banner {
    position: relative;
    width: 100%;
    height: 560px;
    overflow: hidden;
}
.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-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 40, 80, 0.3);
}
.quhj-banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
    width: 100%;
    padding: 0 20px;
}
.quhj-banner-title {
    font-size: 56px;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 4px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.quhj-banner-subtitle {
    font-size: 17px;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}
.quhj-banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}
.quhj-banner-dot {
    width: 36px;
    height: 3px;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
}
.quhj-banner-dot.active {
    background: #fff;
    width: 50px;
}

/* ========== 通用区块标题 ========== */
.quhj-section {
    padding: 80px 0;
}
.quhj-section-gray {
    background: #f5f7fa;
}
.quhj-section-title {
    text-align: center;
    margin-bottom: 50px;
}
.quhj-section-title h2 {
    font-size: 32px;
    color: #222;
    font-weight: bold;
    margin-bottom: 10px;
}
.quhj-section-title p {
    font-size: 14px;
    color: #999;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ========== 三大业务板块 ========== */
.quhj-business-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
.quhj-business-item {
    position: relative;
    height: 420px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    cursor: pointer;
}
.quhj-business-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 80, 140, 0.75);
    transition: all 0.4s;
}
.quhj-business-item:hover::before {
    background: rgba(0, 60, 120, 0.85);
}
.quhj-business-content {
    position: relative;
    z-index: 2;
    padding: 60px 50px;
    color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.quhj-business-num {
    font-size: 72px;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 20px;
    opacity: 0.6;
}
.quhj-business-title {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 16px;
}
.quhj-business-desc {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
}
.quhj-business-item:hover .quhj-business-num {
    opacity: 1;
}

/* ========== 产品展示 ========== */
.quhj-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.quhj-product-card {
    background: #fff;
    transition: all 0.4s;
    cursor: pointer;
}
.quhj-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,102,179,0.15);
}
.quhj-product-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}
.quhj-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.quhj-product-card:hover .quhj-product-img img {
    transform: scale(1.08);
}
.quhj-product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 102, 179, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s;
}
.quhj-product-card:hover .quhj-product-overlay {
    opacity: 1;
}
.quhj-product-plus {
    width: 50px;
    height: 50px;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
}
.quhj-product-info {
    padding: 24px 20px;
    text-align: center;
}
.quhj-product-title {
    font-size: 18px;
    font-weight: bold;
    color: #222;
    margin-bottom: 10px;
}
.quhj-product-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
}

/* ========== 新闻中心 ========== */
.quhj-news-wrap {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    align-items: start;
}
.quhj-news-left img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}
.quhj-news-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}
.quhj-news-tab {
    padding: 8px 22px;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    background: #f0f2f5;
    cursor: pointer;
    transition: all 0.3s;
}
.quhj-news-tab.active {
    background: #0066b3;
    color: #fff;
}
.quhj-news-list li {
    padding: 14px 0;
    border-bottom: 1px dashed #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.quhj-news-list li:last-child {
    border-bottom: none;
}
.quhj-news-list a {
    flex: 1;
    font-size: 15px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.quhj-news-list a:hover {
    color: #0066b3;
    padding-left: 8px;
}
.quhj-news-date {
    font-size: 13px;
    color: #999;
    flex-shrink: 0;
}
.quhj-news-more {
    text-align: right;
    margin-top: 20px;
}
.quhj-news-more a {
    font-size: 14px;
    color: #0066b3;
}
.quhj-news-more a:hover {
    padding-right: 5px;
}

/* ========== 页面头部 ========== */
.quhj-page-header {
    height: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.quhj-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 50, 100, 0.6);
}
.quhj-page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}
.quhj-page-header h1 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}
.quhj-page-header p {
    font-size: 14px;
    opacity: 0.85;
    letter-spacing: 2px;
}

/* ========== 列表页 ========== */
.quhj-archive-wrap {
    padding: 60px 0;
}
.quhj-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.quhj-archive-item {
    background: #fff;
    border: 1px solid #eee;
    transition: all 0.3s;
}
.quhj-archive-item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}
.quhj-archive-thumb {
    aspect-ratio: 4/3;
    overflow: hidden;
}
.quhj-archive-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.quhj-archive-item:hover .quhj-archive-thumb img {
    transform: scale(1.05);
}
.quhj-archive-info {
    padding: 20px;
}
.quhj-archive-title {
    font-size: 17px;
    font-weight: bold;
    color: #222;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.quhj-archive-excerpt {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.quhj-archive-meta {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    font-size: 12px;
    color: #aaa;
    display: flex;
    justify-content: space-between;
}

/* ========== 新闻列表页 ========== */
.quhj-news-archive-list li {
    padding: 25px 0;
    border-bottom: 1px solid #eee;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 25px;
}
.quhj-news-archive-thumb {
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 4px;
}
.quhj-news-archive-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.quhj-news-archive-list li:hover .quhj-news-archive-thumb img {
    transform: scale(1.05);
}
.quhj-news-archive-info h3 {
    font-size: 19px;
    font-weight: bold;
    color: #222;
    margin-bottom: 12px;
}
.quhj-news-archive-info h3:hover {
    color: #0066b3;
}
.quhj-news-archive-excerpt {
    font-size: 14px;
    color: #777;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}
.quhj-news-archive-date {
    font-size: 13px;
    color: #aaa;
}

/* ========== 详情页 ========== */
.quhj-single-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}
.quhj-single-title {
    font-size: 30px;
    font-weight: bold;
    color: #222;
    text-align: center;
    margin-bottom: 20px;
}
.quhj-single-meta {
    text-align: center;
    color: #999;
    font-size: 13px;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}
.quhj-single-thumbnail {
    margin-bottom: 35px;
}
.quhj-single-thumbnail img {
    width: 100%;
    border-radius: 4px;
}
.quhj-single-content {
    font-size: 15px;
    line-height: 2;
    color: #444;
}
.quhj-single-content p { margin-bottom: 20px; }
.quhj-single-content h2 { font-size: 22px; margin: 35px 0 18px; font-weight: bold; color: #222; }
.quhj-single-content h3 { font-size: 18px; margin: 28px 0 14px; font-weight: bold; color: #333; }
.quhj-single-content img { max-width: 100%; border-radius: 4px; margin: 15px 0; }
.quhj-single-content ul, .quhj-single-content ol { padding-left: 25px; margin-bottom: 18px; }
.quhj-single-content li { margin-bottom: 8px; list-style: disc; }

/* ========== 分页 ========== */
.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: 4px;
    font-size: 14px;
    color: #666;
    transition: all 0.3s;
}
.quhj-pagination .page-numbers:hover,
.quhj-pagination .page-numbers.current {
    background: #0066b3;
    border-color: #0066b3;
    color: #fff;
}

/* ========== 页脚 ========== */
.quhj-footer {
    background: #1a2a3a;
    color: #a0aec0;
    padding: 60px 0 0;
}
.quhj-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 50px;
}
.quhj-footer-col h4 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 22px;
    font-weight: bold;
}
.quhj-footer-col li {
    margin-bottom: 12px;
    font-size: 14px;
}
.quhj-footer-col li a:hover {
    color: #fff;
    padding-left: 4px;
}
.quhj-footer-about p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}
.quhj-footer-contact li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.quhj-footer-contact li span:first-child {
    flex-shrink: 0;
    color: #fff;
}
.quhj-footer-bottom {
    border-top: 1px solid #2d3e50;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #718096;
}
.quhj-footer-bottom a {
    color: #718096;
    margin: 0 8px;
}
.quhj-footer-bottom a:hover {
    color: #fff;
}

/* ========== 返回顶部 ========== */
.quhj-back-top {
    position: fixed;
    right: 30px;
    bottom: 50px;
    width: 44px;
    height: 44px;
    background: #0066b3;
    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;
    font-size: 18px;
}
.quhj-back-top.show {
    opacity: 1;
    visibility: visible;
}
.quhj-back-top:hover {
    background: #005599;
    transform: translateY(-3px);
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .quhj-container { padding: 0 15px; }
    .quhj-banner { height: 420px; }
    .quhj-banner-title { font-size: 40px; }
    .quhj-section { padding: 60px 0; }
    .quhj-business-grid { grid-template-columns: 1fr; }
    .quhj-business-item { height: 280px; }
    .quhj-business-content { padding: 40px; }
    .quhj-business-num { font-size: 52px; }
    .quhj-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 35px; }
    .quhj-news-wrap { grid-template-columns: 1fr; }
    .quhj-news-left { display: none; }
}

@media (max-width: 768px) {
    .quhj-header-inner { height: 64px; }
    .quhj-logo-text h1 { font-size: 18px; }
    .quhj-logo-text p { display: none; }
    .quhj-logo-icon { width: 40px; height: 40px; font-size: 16px; }
    .quhj-nav {
        position: fixed;
        top: 64px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 64px);
        background: #fff;
        flex-direction: column;
        padding: 20px 0;
        transition: left 0.3s;
        overflow-y: auto;
    }
    .quhj-nav.open { left: 0; }
    .quhj-nav > ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    .quhj-nav > ul > li > a {
        line-height: 50px;
        padding: 0 20px;
        border-bottom: 1px solid #f0f0f0;
    }
    .quhj-nav > ul > li > a::after { display: none; }
    .quhj-header-right { display: none; }
    .quhj-mobile-btn { display: flex; }
    .quhj-banner { height: 320px; }
    .quhj-banner-title { font-size: 28px; letter-spacing: 2px; }
    .quhj-banner-subtitle { font-size: 14px; }
    .quhj-section { padding: 45px 0; }
    .quhj-section-title { margin-bottom: 35px; }
    .quhj-section-title h2 { font-size: 24px; }
    .quhj-product-grid { grid-template-columns: 1fr; gap: 20px; }
    .quhj-archive-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .quhj-news-archive-list li { grid-template-columns: 1fr; gap: 15px; }
    .quhj-footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .quhj-footer { padding: 40px 0 0; }
    .quhj-page-header { height: 200px; }
    .quhj-page-header h1 { font-size: 26px; }
    .quhj-single-wrap { padding: 35px 15px; }
    .quhj-single-title { font-size: 22px; }
}

@media (max-width: 480px) {
    .quhj-archive-grid { grid-template-columns: 1fr; }
    .quhj-business-item { height: 240px; }
    .quhj-business-content { padding: 30px; }
    .quhj-business-title { font-size: 20px; }
    .quhj-business-num { font-size: 42px; }
}
