/* ========================================
   棋福品茶 - 主样式文件
   主色调：绿色系
   ======================================== */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 变量定义 */
:root {
    --primary-color: #2d5016;
    --primary-light: #4a7c2e;
    --primary-dark: #1a3009;
    --secondary-color: #8b9a46;
    --accent-color: #d4af37;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9f5;
    --bg-white: #fff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(45,80,22,0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
}

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 18px;
}

.btn-link {
    background: none;
    color: var(--primary-color);
    padding: 0;
    font-weight: 500;
}

.btn-link:hover {
    color: var(--primary-light);
}

/* ========================================
   头部导航
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255,255,255,0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 15px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
}

.logo-icon {
    font-size: 32px;
    margin-right: 10px;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav a {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav a:hover,
.nav li.active a {
    color: var(--primary-color);
}

.nav li.active a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
}

.header-phone {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: bold;
}

.header-phone .phone-icon {
    margin-right: 8px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

/* ========================================
   英雄横幅
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
    color: #fff;
    padding: 180px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::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"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>') repeat;
    opacity: 0.3;
}

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

.hero-title {
    font-size: 56px;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 8px;
}

.hero-subtitle {
    font-size: 28px;
    margin-bottom: 15px;
    letter-spacing: 4px;
    opacity: 0.95;
}

.hero-desc {
    font-size: 18px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.hero-tags {
    font-size: 16px;
    margin-bottom: 40px;
    opacity: 0.85;
    letter-spacing: 2px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-buttons .btn-outline {
    color: #fff;
    border-color: #fff;
}

.hero-buttons .btn-outline:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* ========================================
   通用区块样式
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
}

/* ========================================
   服务区块
   ======================================== */
.services-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   关于我们简介
   ======================================== */
.about-intro {
    padding: 100px 0;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 17px;
    line-height: 2;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* ========================================
   数据统计
   ======================================== */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 56px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.stat-label {
    font-size: 18px;
    opacity: 0.9;
}

/* ========================================
   新闻区块
   ======================================== */
.news-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.news-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.news-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-card h3 a {
    color: var(--text-color);
}

.news-card h3 a:hover {
    color: var(--primary-color);
}

.news-card p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.news-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.news-more {
    text-align: center;
    margin-top: 40px;
}

/* ========================================
   CTA区块
   ======================================== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: #fff;
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.cta-buttons .btn-outline {
    color: #fff;
    border-color: #fff;
}

.cta-buttons .btn-outline:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* ========================================
   底部
   ======================================== */
.footer {
    background-color: var(--primary-dark);
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-info p {
    margin-bottom: 10px;
    opacity: 0.9;
    line-height: 1.8;
}

.footer-contact p {
    margin-bottom: 8px;
}

.footer-links h4,
.footer-social h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #fff;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-social p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
    opacity: 0.8;
}

/* ========================================
   面包屑
   ======================================== */
.breadcrumb {
    background-color: var(--bg-light);
    padding: 15px 0;
    margin-top: 70px;
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb span {
    color: var(--primary-color);
}

/* ========================================
   页面标题
   ======================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

/* ========================================
   关于我们页面
   ======================================== */
.about-story,
.about-values {
    padding: 80px 0;
}

.story-content,
.values-content {
    max-width: 900px;
    margin: 0 auto;
}

.story-content p,
.values-content p {
    font-size: 17px;
    line-height: 2;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* 时间线 */
.about-timeline {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-year {
    position: absolute;
    left: -50px;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.timeline-content {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 核心优势 */
.about-advantages {
    padding: 80px 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.advantage-card {
    text-align: center;
    padding: 40px 30px;
    background-color: var(--bg-light);
    border-radius: 8px;
    transition: var(--transition);
}

.advantage-card:hover {
    background-color: #fff;
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.advantage-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.advantage-card h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 15px;
}

.advantage-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   新闻列表页
   ======================================== */
.news-list-section {
    padding: 80px 0;
}

.news-filter {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background-color: var(--bg-light);
    border-radius: 20px;
    color: var(--text-color);
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: #fff;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.news-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-item:hover {
    box-shadow: var(--shadow-hover);
}

.news-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.news-item h3 a {
    color: var(--text-color);
}

.news-item h3 a:hover {
    color: var(--primary-color);
}

.news-item p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.no-data {
    text-align: center;
    padding: 60px;
    color: var(--text-light);
    font-size: 18px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    padding: 10px 18px;
    background-color: var(--bg-light);
    border-radius: 4px;
    color: var(--text-color);
    transition: var(--transition);
}

.page-btn:hover,
.page-btn.active {
    background-color: var(--primary-color);
    color: #fff;
}

/* ========================================
   新闻详情页
   ======================================== */
.news-detail-section {
    padding: 80px 0;
}

.news-detail {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    padding: 50px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.news-detail h1 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.4;
}

.news-detail .news-meta {
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.news-content {
    font-size: 17px;
    line-height: 2;
    color: var(--text-color);
}

.news-back {
    max-width: 900px;
    margin: 30px auto 0;
}

/* ========================================
   联系我们页面
   ======================================== */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-card {
    background-color: var(--bg-light);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    background-color: #fff;
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.contact-card h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 15px;
}

.contact-card p {
    color: var(--text-light);
}

.contact-card a {
    color: var(--text-light);
}

.contact-card a:hover {
    color: var(--primary-color);
}

/* 复制提示 */
.copy-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0,0,0,0.8);
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    z-index: 9999;
}

/* 底部悬浮栏 */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 10px 0;
}

.bottom-bar-inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

.bottom-bar-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 15px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.bottom-bar-btn-phone {
    background-color: var(--primary-color);
    color: #fff;
}

.bottom-bar-btn-phone:hover {
    background-color: var(--primary-light);
    color: #fff;
    transform: translateY(-2px);
}

.bottom-bar-btn-qq {
    background-color: #12b7f5;
    color: #fff;
}

.bottom-bar-btn-qq:hover {
    background-color: #0ea5e0;
    color: #fff;
    transform: translateY(-2px);
}

.bottom-bar-btn-wechat {
    background-color: #07c160;
    color: #fff;
}

.bottom-bar-btn-wechat:hover {
    background-color: #06ad56;
    color: #fff;
    transform: translateY(-2px);
}

.bottom-bar-btn .btn-text {
    font-size: 14px;
}

@media (max-width: 480px) {
    .bottom-bar-btn {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .bottom-bar-btn .btn-text {
        font-size: 13px;
    }
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
    .services-grid,
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
    }
    
    .nav {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 15px;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .nav li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav a {
        display: block;
        padding: 15px 0;
    }
    
    .header-phone {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-title {
        font-size: 36px;
        letter-spacing: 4px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .hero-desc {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .services-grid,
    .advantages-grid,
    .contact-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    .news-detail {
        padding: 30px 20px;
    }
    
    .news-detail h1 {
        font-size: 24px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .timeline {
        padding-left: 40px;
    }
    
    .timeline-year {
        left: -40px;
        width: 35px;
        height: 35px;
        font-size: 10px;
    }
}
