/* ========================================
   上海高端品茶工作室 - 全局样式
   响应式设计，支持PC/平板/移动端
   ======================================== */

/* CSS变量定义 */
:root {
    --primary-color: #8b7355;
    --secondary-color: #d4af7a;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f6f3;
    --bg-white: #fff;
    --border-color: #e8e4df;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
    --max-width: 1200px;
    --header-height: 80px;
}

/* 重置样式 */
* {
    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;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

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

/* 链接样式 */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   头部导航
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.nav {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 2px;
}

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

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

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

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

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    margin: 6px 0;
    transition: var(--transition);
}

/* ========================================
   Banner区域
   ======================================== */
.banner {
    margin-top: var(--header-height);
    height: 600px;
    background: linear-gradient(135deg, #f5f0e8 0%, #e8d5b8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/banner-bg.jpg') center/cover;
    opacity: 0.3;
}

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.banner h1 {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 4px;
}

.banner p {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.banner-btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
}

.banner-btn:hover {
    background: var(--secondary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ========================================
   通用区块样式
   ======================================== */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 60px;
    font-weight: 600;
    letter-spacing: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    margin-top: -40px;
    margin-bottom: 60px;
}

/* ========================================
   服务优势卡片
   ======================================== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

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

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

.advantage-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary-color);
}

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

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

/* ========================================
   品茶场景展示
   ======================================== */
.scenes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.scene-card {
    position: relative;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

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

.scene-card:hover img {
    transform: scale(1.05);
}

.scene-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: var(--bg-white);
}

.scene-overlay h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.scene-overlay p {
    font-size: 14px;
    opacity: 0.9;
}

/* ========================================
   服务列表页样式
   ======================================== */
.page-header {
    margin-top: var(--header-height);
    padding: 60px 0;
    background: var(--bg-light);
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-light);
}

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

.services-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-top: 60px;
}

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

.service-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.service-content p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.service-link {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
}

.service-link:hover {
    color: var(--secondary-color);
}

/* 侧边栏 */
.sidebar {
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.sidebar-widget {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.recommend-list {
    list-style: none;
}

.recommend-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.recommend-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recommend-list a {
    color: var(--text-color);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

/* ========================================
   详情页样式
   ======================================== */
.detail-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-top: 60px;
}

.detail-main {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.detail-main h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin: 30px 0 20px;
}

.detail-main h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin: 25px 0 15px;
}

.detail-main p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.detail-gallery img {
    border-radius: 8px;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.booking-guide {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
}

.booking-guide h3 {
    margin-top: 0;
}

.booking-guide ol {
    padding-left: 20px;
}

.booking-guide li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.related-services {
    margin-top: 40px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.related-card {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    transition: var(--transition);
}

.related-card:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow);
}

.related-card h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.related-card p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 0;
}

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

.about-text h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 25px;
}

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

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.about-values {
    background: var(--bg-light);
    padding: 80px 0;
    margin: 60px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

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

.value-item h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin: 20px 0 15px;
}

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

.about-environment {
    margin: 60px 0;
}

.environment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.environment-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.environment-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.environment-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.environment-item p {
    padding: 15px;
    text-align: center;
    color: var(--primary-color);
    font-weight: 500;
}

/* ========================================
   页脚样式
   ======================================== */
.footer {
    background: #2c2416;
    color: rgba(255,255,255,0.8);
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    color: var(--bg-white);
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-section p {
    margin-bottom: 10px;
    line-height: 1.8;
}

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

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

.footer-section a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

/* ========================================
   悬浮预约按钮
   ======================================== */
.floating-contact {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 999;
}

.floating-btn {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-hover);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.floating-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.contact-popup {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: var(--bg-white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    min-width: 280px;
    display: none;
}

.contact-popup.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.contact-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
    border-bottom: none;
}

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

.contact-icon {
    color: var(--primary-color);
    font-size: 18px;
}

.copy-btn {
    background: var(--bg-light);
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: var(--primary-color);
    transition: var(--transition);
}

.copy-btn:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

/* ========================================
   返回顶部按钮
   ======================================== */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 100px;
    width: 50px;
    height: 50px;
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 998;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

/* ========================================
   404页面
   ======================================== */
.error-page {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.error-content h1 {
    font-size: 120px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.error-content h2 {
    font-size: 32px;
    color: var(--text-color);
    margin-bottom: 20px;
}

.error-content p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.error-btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: 4px;
    font-size: 16px;
    transition: var(--transition);
}

.error-btn:hover {
    background: var(--secondary-color);
    color: var(--bg-white);
}

/* ========================================
   复制成功提示
   ======================================== */
.copy-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: var(--bg-white);
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 10000;
    display: none;
}

.copy-toast.show {
    display: block;
    animation: toastFade 2s ease;
}

@keyframes toastFade {
    0% {
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* ========================================
   响应式设计 - 平板
   ======================================== */
@media (max-width: 1024px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-layout,
    .detail-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-intro {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .values-grid,
    .environment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   响应式设计 - 移动端
   ======================================== */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .banner {
        height: 400px;
    }
    
    .banner h1 {
        font-size: 32px;
    }
    
    .banner p {
        font-size: 16px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .advantages-grid,
    .scenes-grid,
    .services-grid,
    .values-grid,
    .environment-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .detail-main {
        padding: 25px;
    }
    
    .detail-gallery,
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-contact {
        right: 15px;
        bottom: 15px;
    }
    
    .back-to-top {
        right: 15px;
        bottom: 85px;
    }
    
    .error-content h1 {
        font-size: 80px;
    }
    
    .error-content h2 {
        font-size: 24px;
    }
}
