/* ========================================
   苏州品茶网 51szpc.cn - 全局样式表
   墨绿主题 · 鎏金正楷 · 响应式设计
   ======================================== */

/* ---------- 基础重置 ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "STKaiti", "KaiTi", "楷体", "SimSun", serif;
    color: #2c2c2c;
    background: #f5f2eb;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: #1a6b4a;
}

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

ul, ol {
    list-style: none;
}

/* ---------- 顶部LOGO导航栏 ---------- */
.top-bar {
    background: #1a3c2e;
    padding: 12px 0;
    font-size: 13px;
    color: #c4d8cc;
}

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

.top-bar a {
    color: #c4d8cc;
    margin-left: 18px;
}

.top-bar a:hover {
    color: #fff;
}

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

/* ---------- 头部 ---------- */
.header {
    background: #1a3c2e;
    background-image: linear-gradient(180deg, #1a3c2e 0%, #0f2720 100%);
    padding: 0;
    border-bottom: 3px solid #c8a951;
}

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

.logo {
    display: flex;
    align-items: center;
    padding: 15px 0;
}

.logo-icon {
    width: 56px;
    height: 56px;
    background: #1a3c2e;
    border: 2px solid #c8a951;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    flex-shrink: 0;
}

.logo-icon span {
    font-size: 22px;
    color: #c8a951;
    font-weight: bold;
    font-family: "STKaiti", "KaiTi", serif;
}

.logo-text h1 {
    font-size: 28px;
    color: #c8a951;
    font-weight: bold;
    font-family: "STKaiti", "KaiTi", "楷体", serif;
    letter-spacing: 6px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.logo-text p {
    font-size: 12px;
    color: #8fb8a0;
    letter-spacing: 2px;
    margin-top: 2px;
}

/* ---------- 主导航 ---------- */
.main-nav {
    background: #153025;
    border-bottom: 1px solid #2a5a42;
}

.main-nav .container {
    display: flex;
    justify-content: center;
}

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 14px 28px;
    color: #e0d8c8;
    font-size: 16px;
    font-family: "STKaiti", "KaiTi", "楷体", serif;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: #c8a951;
    background: rgba(200, 169, 81, 0.1);
    border-bottom: 2px solid #c8a951;
}

/* ---------- 轮播/Banner ---------- */
.banner {
    background: linear-gradient(135deg, #1a3c2e 0%, #2d5a42 50%, #1a3c2e 100%);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c8a951' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner h2 {
    font-size: 36px;
    color: #c8a951;
    font-family: "STKaiti", "KaiTi", "楷体", serif;
    letter-spacing: 8px;
    margin-bottom: 16px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner p {
    font-size: 18px;
    color: #d4cfc0;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 2;
}

.banner-btn {
    display: inline-block;
    padding: 14px 40px;
    background: #c8a951;
    color: #1a3c2e;
    font-size: 18px;
    font-weight: bold;
    font-family: "STKaiti", "KaiTi", serif;
    border-radius: 4px;
    letter-spacing: 4px;
    transition: all 0.3s ease;
}

.banner-btn:hover {
    background: #d4b861;
    color: #1a3c2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 169, 81, 0.4);
}

/* ---------- 通用区块 ---------- */
.section {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 28px;
    color: #1a3c2e;
    font-family: "STKaiti", "KaiTi", serif;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.section-title .divider {
    width: 60px;
    height: 3px;
    background: #c8a951;
    margin: 0 auto 12px;
}

.section-title p {
    color: #666;
    font-size: 15px;
}

/* ---------- 服务卡片 ---------- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 20px;
}

.service-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border-top: 3px solid #c8a951;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.service-card .icon {
    font-size: 42px;
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 20px;
    color: #1a3c2e;
    font-family: "STKaiti", "KaiTi", serif;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.service-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

.service-card .card-link {
    display: inline-block;
    margin-top: 16px;
    color: #c8a951;
    font-size: 15px;
    font-weight: bold;
}

/* ---------- 文章列表 ---------- */
.article-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.article-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.article-card .article-img {
    height: 180px;
    background: linear-gradient(135deg, #2d5a42, #1a3c2e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #c8a951;
}

.article-card .article-body {
    padding: 20px;
}

.article-card h3 {
    font-size: 18px;
    color: #1a3c2e;
    font-family: "STKaiti", "KaiTi", serif;
    margin-bottom: 8px;
    line-height: 1.5;
}

.article-card .article-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.article-card .article-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- 文章详情页 ---------- */
.article-detail {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.article-detail h1 {
    font-size: 26px;
    color: #1a3c2e;
    font-family: "STKaiti", "KaiTi", serif;
    letter-spacing: 2px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.article-detail .article-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.article-detail .article-content {
    font-size: 16px;
    line-height: 2;
    color: #333;
}

.article-detail .article-content h2 {
    font-size: 22px;
    color: #1a3c2e;
    font-family: "STKaiti", "KaiTi", serif;
    margin: 28px 0 16px;
    padding-left: 12px;
    border-left: 4px solid #c8a951;
}

.article-detail .article-content h3 {
    font-size: 19px;
    color: #2d5a42;
    font-family: "STKaiti", "KaiTi", serif;
    margin: 22px 0 12px;
}

.article-detail .article-content p {
    margin-bottom: 16px;
    text-indent: 2em;
}

.article-detail .article-content ul,
.article-detail .article-content ol {
    margin: 16px 0;
    padding-left: 2em;
}

.article-detail .article-content li {
    margin-bottom: 8px;
}

.article-detail .article-content blockquote {
    border-left: 4px solid #c8a951;
    padding: 12px 20px;
    margin: 20px 0;
    background: #f9f7f2;
    color: #555;
}

/* ---------- 联系我们 ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.contact-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.contact-card .contact-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.contact-card h3 {
    font-size: 18px;
    color: #1a3c2e;
    font-family: "STKaiti", "KaiTi", serif;
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 16px;
    color: #c8a951;
    font-weight: bold;
    font-family: "STKaiti", "KaiTi", serif;
}

/* ---------- 关于我们 ---------- */
.about-content {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    line-height: 2.2;
    font-size: 16px;
    color: #333;
}

.about-content h2 {
    font-size: 22px;
    color: #1a3c2e;
    font-family: "STKaiti", "KaiTi", serif;
    margin: 24px 0 16px;
    padding-left: 12px;
    border-left: 4px solid #c8a951;
}

.about-content p {
    margin-bottom: 16px;
    text-indent: 2em;
}

/* ---------- 侧边栏布局 ---------- */
.page-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 30px;
}

.sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    height: fit-content;
}

.sidebar h3 {
    font-size: 18px;
    color: #1a3c2e;
    font-family: "STKaiti", "KaiTi", serif;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 2px solid #c8a951;
    text-align: center;
}

.sidebar ul li {
    border-bottom: 1px solid #f0f0f0;
}

.sidebar ul li:last-child {
    border-bottom: none;
}

.sidebar ul li a {
    display: block;
    padding: 10px 12px;
    font-size: 15px;
    color: #555;
    transition: all 0.3s ease;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    color: #c8a951;
    background: #f9f7f2;
    padding-left: 20px;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
    padding: 14px 0;
    font-size: 14px;
    color: #999;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #c8a951;
}

.breadcrumb span {
    margin: 0 6px;
    color: #ccc;
}

/* ---------- 页脚 ---------- */
.footer {
    background: #1a3c2e;
    color: #8fb8a0;
    padding: 40px 0 0;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #2a5a42;
}

.footer h4 {
    color: #c8a951;
    font-size: 17px;
    font-family: "STKaiti", "KaiTi", serif;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.footer p,
.footer li {
    font-size: 14px;
    line-height: 2;
    color: #8fb8a0;
}

.footer a {
    color: #8fb8a0;
}

.footer a:hover {
    color: #c8a951;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: #5a8a6a;
}

/* ---------- 返回顶部 ---------- */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: #1a3c2e;
    color: #c8a951;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 999;
    cursor: pointer;
}

.back-to-top:hover {
    background: #c8a951;
    color: #1a3c2e;
    transform: translateY(-3px);
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .article-list {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
    }
    .logo {
        flex-direction: column;
    }
    .logo-icon {
        margin-right: 0;
        margin-bottom: 8px;
    }
    .main-nav a {
        padding: 10px 16px;
        font-size: 14px;
    }
    .banner h2 {
        font-size: 24px;
        letter-spacing: 4px;
    }
    .banner p {
        font-size: 15px;
    }
    .service-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .section {
        padding: 30px 0;
    }
    .article-detail {
        padding: 24px 16px;
    }
}

/* ---------- 复制按钮 ---------- */
.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #1a3c2e;
    color: #c8a951;
    border: 1px solid #c8a951;
    border-radius: 4px;
    font-size: 14px;
    font-family: "STKaiti", "KaiTi", serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    letter-spacing: 1px;
}

.copy-btn:hover {
    background: #c8a951;
    color: #1a3c2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 169, 81, 0.3);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-btn .copy-icon {
    font-size: 16px;
}

/* ---------- 复制成功提示 ---------- */
.copy-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(26, 60, 46, 0.95);
    color: #c8a951;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-family: "STKaiti", "KaiTi", serif;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    border: 2px solid #c8a951;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.copy-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ---------- 悬浮联系按钮 ---------- */
.floating-contact {
    position: fixed;
    right: 30px;
    bottom: 100px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.float-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    border: 2px solid rgba(255,255,255,0.2);
    position: relative;
}

.float-btn:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.float-btn:active {
    transform: translateY(0) scale(1);
}

.float-btn.phone {
    background: linear-gradient(135deg, #c8a951, #d4b861);
    color: #1a3c2e;
}

.float-btn.wechat {
    background: linear-gradient(135deg, #07c160, #06ad56);
}

.float-btn.qq {
    background: linear-gradient(135deg, #12b7f5, #0fa8e8);
}

.float-btn .tooltip {
    position: absolute;
    right: 60px;
    background: rgba(26, 60, 46, 0.95);
    color: #c8a951;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-family: "STKaiti", "KaiTi", serif;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    border: 1px solid #c8a951;
}

.float-btn .tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #c8a951;
}

.float-btn:hover .tooltip {
    opacity: 1;
    transform: translateX(0);
}

.float-btn .copy-hint {
    position: absolute;
    bottom: -22px;
    font-size: 10px;
    color: #fff;
    background: rgba(0,0,0,0.5);
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.float-btn:hover .copy-hint {
    opacity: 1;
}

/* 悬浮按钮脉冲动画 */
@keyframes pulse {
    0% { box-shadow: 0 4px 16px rgba(0,0,0,0.2), 0 0 0 0 rgba(200, 169, 81, 0.4); }
    70% { box-shadow: 0 4px 16px rgba(0,0,0,0.2), 0 0 0 12px rgba(200, 169, 81, 0); }
    100% { box-shadow: 0 4px 16px rgba(0,0,0,0.2), 0 0 0 0 rgba(200, 169, 81, 0); }
}

.float-btn.phone {
    animation: pulse 2s infinite;
}

/* ---------- 百度统计占位 ---------- */
/* 请将百度统计代码替换到页面底部对应位置 */
