/* ==================== 变量定义 ==================== */
:root {
    /* 主题色 */
    --primary-color: #8B4513;
    --primary-light: #A0522D;
    --primary-dark: #654321;
    --secondary-color: #DAA520;
    --accent-color: #CD853F;
    
    /* 传统色彩 */
    --gold-color: #D4AF37;
    --red-color: #C41E3A;
    --black-color: #1a1a1a;
    
    /* 中性色 */
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-light: #FAF8F5;
    --bg-dark: #1a1a1a;
    
    /* 功能色 */
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    
    /* 字体 */
    --font-primary: 'Noto Serif SC', serif;
    --font-heading: 'ZCOOL XiaoWei', serif;
    
    /* 阴影 */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.3);
    
    /* 过渡 */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: #fff;
    overflow-x: hidden;
}

/* ==================== 面包屑导航 ==================== */
.breadcrumb {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 12px 0;
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    color: rgba(255,255,255,0.7);
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: rgba(255,255,255,0.4);
}

.breadcrumb a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s;
}

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

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

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

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

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

input, textarea, select {
    font-family: inherit;
    outline: none;
}

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

/* ==================== 通用类 ==================== */
.section {
    padding: 80px 0;
}

.section.bg-light {
    background-color: var(--bg-light);
}

.section.bg-dark {
    background-color: var(--bg-dark);
    color: #fff;
}

.text-center {
    text-align: center;
}

.section-header {
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    padding: 5px 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #fff;
    font-size: 14px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.section-tag.light {
    background: linear-gradient(135deg, var(--gold-color), #F4D03F);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 36px;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.section-title.light {
    color: #fff;
}

.section-desc {
    font-size: 18px;
    color: var(--text-secondary);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #fff;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-outline-light {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

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

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

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ==================== 头部导航 ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

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

.logo-icon {
    font-size: 36px;
    color: var(--primary-color);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--primary-color);
    letter-spacing: 3px;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

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

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* 下拉菜单 */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 160px;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-primary);
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* 移动端菜单 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: var(--shadow-md);
    z-index: 999;
    padding: 20px;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul li {
    border-bottom: 1px solid #eee;
}

.mobile-menu a {
    display: block;
    padding: 15px 0;
    font-size: 16px;
    color: var(--text-primary);
}

.mobile-menu a:hover {
    color: var(--primary-color);
}

/* ==================== 英雄区 ==================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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(212,175,55,0.1)" stroke-width="0.5"/></svg>');
    background-size: 200px;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.bagua-symbol {
    font-size: 40px;
    color: var(--gold-color);
    margin-bottom: 30px;
    letter-spacing: 15px;
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 56px;
    margin-bottom: 20px;
    letter-spacing: 10px;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    letter-spacing: 3px;
}

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

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* 淡入动画 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 服务卡片 ==================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--gold-color));
    transform: scaleX(0);
    transition: var(--transition);
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--bg-light), #fff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 36px;
    color: var(--primary-color);
}

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

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.service-link i {
    transition: var(--transition);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* ==================== 关于我们 ==================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content .section-title {
    text-align: left;
}

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

.about-features {
    margin-bottom: 30px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.about-feature i {
    color: var(--gold-color);
    font-size: 20px;
}

.about-image {
    position: relative;
}

.about-img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-wrapper img {
    width: 100%;
    transition: var(--transition);
}

.about-img-wrapper:hover img {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), var(--gold-color));
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: var(--shadow-md);
}

.experience-badge .number {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 12px;
}

/* ==================== 名言区 ==================== */
.quote-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 80px 0;
}

.quote-content {
    text-align: center;
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
}

.quote-icon {
    font-size: 60px;
    color: var(--gold-color);
    margin-bottom: 30px;
}

.quote-text {
    font-size: 24px;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.95;
}

.quote-author {
    font-size: 16px;
    color: var(--gold-color);
}

/* ==================== 大师卡片 ==================== */
.masters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.master-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.master-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.master-avatar {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--gold-color);
}

.master-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.master-level {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold-color);
    color: #fff;
    font-size: 12px;
    padding: 3px 15px;
    border-radius: 10px 10px 0 0;
}

.master-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 5px;
}

.master-title {
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 15px;
}

.master-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.master-tags {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.master-tags span {
    padding: 5px 15px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* ==================== 客户评价 ==================== */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}

.testimonial-stars {
    color: var(--gold-color);
    margin-bottom: 20px;
}

.testimonial-stars i {
    margin-right: 3px;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 25px;
    opacity: 0.9;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--gold-color);
}

.testimonial-author strong {
    display: block;
    margin-bottom: 3px;
}

.testimonial-author span {
    font-size: 13px;
    opacity: 0.7;
}

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

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

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 16px;
}

/* ==================== 博客文章 ==================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.blog-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    font-size: 12px;
    border-radius: 20px;
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.blog-meta i {
    margin-right: 5px;
}

.blog-content h3 {
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.blog-content h3 a:hover {
    color: var(--primary-color);
}

.blog-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.blog-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-link i {
    transition: var(--transition);
}

.blog-link:hover i {
    transform: translateX(5px);
}

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

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    color: #fff;
    margin-bottom: 15px;
}

.cta-content p {
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    margin-bottom: 30px;
}

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

/* ==================== 页脚 ==================== */
.footer {
    background: var(--bg-dark);
    color: #fff;
}

.footer-top {
    padding: 60px 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    font-size: 30px;
    color: var(--gold-color);
}

.footer-logo .logo-text {
    font-size: 24px;
    color: #fff;
    letter-spacing: 2px;
}

.footer-desc {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 25px;
    color: #fff;
}

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

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--gold-color);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.footer-contact i {
    color: var(--gold-color);
    margin-top: 3px;
}

.footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

.footer-bottom a {
    color: rgba(255,255,255,0.6);
}

.footer-bottom a:hover {
    color: var(--gold-color);
}

/* ==================== 底部导航栏 ==================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

.mobile-bottom-nav ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-bottom-nav li {
    flex: 1;
    text-align: center;
}

.mobile-bottom-nav li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #666;
    font-size: 11px;
    text-decoration: none;
    transition: color 0.3s;
}

.mobile-bottom-nav li a i {
    font-size: 20px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.mobile-bottom-nav li a.active i {
    transform: scale(1.1);
}

/* 返回首页按钮特殊样式 */
.mobile-bottom-nav .nav-home i {
    color: var(--primary-color);
}

/* 联系我们按钮 */
.mobile-bottom-nav .nav-contact i {
    color: #E74C3C;
}

/* 电话咨询按钮 */
.mobile-bottom-nav .nav-tel i {
    color: #27AE60;
}

/* 短信咨询按钮 */
.mobile-bottom-nav .nav-sms i {
    color: #3498DB;
}

/* 微信咨询按钮 */
.mobile-bottom-nav .nav-wechat i {
    color: #27AE60;
}

/* 为底部导航留出空间 */
body {
    padding-bottom: 70px;
}

/* ==================== 悬浮按钮 ==================== */
.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-btn {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.float-btn:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: scale(1.1);
}

.float-btn.consultation {
    width: auto;
    padding: 0 20px;
    border-radius: 25px;
    font-size: 14px;
    gap: 10px;
}

.float-btn.back-to-top {
    opacity: 0;
    visibility: hidden;
}

.float-btn.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* ==================== 弹窗 ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.modal-content {
    position: relative;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: var(--bg-light);
    border-radius: 50%;
    font-size: 20px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary-color);
    color: #fff;
}

.modal-content h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    text-align: center;
    margin-bottom: 10px;
}

.modal-content p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.consultation-form input,
.consultation-form select,
.consultation-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 15px;
    transition: var(--transition);
}

.consultation-form input:focus,
.consultation-form select:focus,
.consultation-form textarea:focus {
    border-color: var(--primary-color);
}

.consultation-form textarea {
    resize: vertical;
    min-height: 80px;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 992px) {
    .services-grid,
    .masters-grid,
    .testimonials-slider,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-content .section-title {
        text-align: center;
    }
    
    .about-content {
        text-align: center;
    }
    
    .about-features {
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .header-right .btn {
        display: none;
    }
    
    /* 显示底部导航栏 */
    .mobile-bottom-nav {
        display: block;
    }
    
    .services-grid,
    .masters-grid,
    .testimonials-slider,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .quote-text {
        font-size: 18px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .floating-buttons .float-btn.consultation span {
        display: none;
    }
    
    /* 调整悬浮按钮位置，避免被底部导航遮挡 */
    .floating-buttons {
        bottom: 90px;
    }
}

/* ==================== 动画类 ==================== */
.wow {
    visibility: hidden;
}

.wow.animated {
    visibility: visible;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 微信二维码弹窗 ==================== */
.wechat-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.wechat-modal.show {
    display: flex;
}

.wechat-content {
    position: relative;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 320px;
    width: 90%;
}

.wechat-content h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
}

.wechat-qrcode {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.wechat-qrcode img {
    width: 180px;
    height: 180px;
    display: block;
    margin: 0 auto;
}

.wechat-id {
    color: #27AE60;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

/* ==================== 知识分类 ==================== */
.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.knowledge-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f6f3 100%);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.knowledge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--gold-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.knowledge-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(139, 105, 20, 0.15);
    border-color: var(--gold-color);
}

.knowledge-card:hover::before {
    transform: scaleX(1);
}

.knowledge-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--gold-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.knowledge-card:hover .knowledge-icon {
    transform: scale(1.1) rotate(10deg);
}

.knowledge-icon i {
    font-size: 32px;
    color: #fff;
}

.knowledge-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.knowledge-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.knowledge-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.knowledge-card:hover .knowledge-arrow {
    background: var(--primary-color);
    color: #fff;
    transform: translateX(5px);
}

.knowledge-arrow i {
    font-size: 14px;
}

@media (max-width: 992px) {
    .knowledge-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .knowledge-grid {
        grid-template-columns: 1fr;
    }
    
    .knowledge-card {
        padding: 30px 20px;
    }
}
