/* 全局公共样式 - 川西主题配色 */
:root {
    /* 主色调 - 天空蓝 */
    --primary-color: #089EF8;
    --primary-light: #3db4fa;
    --primary-dark: #0681cc;
    
    /* 辅助色 - 金黄秋色 */
    --secondary-color: #FFA726;
    --secondary-light: #FFB74D;
    --secondary-dark: #F57C00;
    
    /* 强调色 - 藏红 */
    --accent-color: #FF5722;
    --accent-light: #FF7043;
    --accent-dark: #E64A19;
    
    /* 自然色系 */
    --snow-white: #f8fbff;
    --grass-green: #66BB6A;
    --earth-brown: #8b7355;
    
    /* 文字颜色 */
    --text-primary: #2a2e35;
    --text-secondary: #5a6270;
    --text-light: #8e95a3;
    --text-white: #ffffff;
    
    /* 背景色 */
    --bg-light: #f5f9fd;
    --bg-white: #ffffff;
    --bg-gradient-primary: linear-gradient(135deg, #089EF8 0%, #3db4fa 100%);
    --bg-gradient-secondary: linear-gradient(135deg, #FFA726 0%, #FFB74D 100%);
    --bg-gradient-overlay: linear-gradient(to bottom, rgba(8, 158, 248, 0.7), rgba(61, 180, 250, 0.5));
    
    /* 边框 */
    --border-color: #dde4ec;
    --border-light: #e8eef5;
    
    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(8, 158, 248, 0.08);
    --shadow-md: 0 4px 16px rgba(8, 158, 248, 0.12);
    --shadow-lg: 0 12px 32px rgba(8, 158, 248, 0.16);
    --shadow-xl: 0 20px 40px rgba(8, 158, 248, 0.2);
    
    /* 过渡效果 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* 字体 */
    --font-family: 'Noto Sans SC', 'Source Han Sans CN', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-black: 900;
}

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

.cw-container-fluid {
    width: 100%;
    padding: 0 20px;
}

/* 头部导航 */
.cw-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98);
}

.cw-header__top {
    background: var(--bg-gradient-primary);
    color: white;
    padding: 10px 0;
    font-size: 13px;
}

.cw-header__top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cw-header__contact a {
    color: rgba(255, 255, 255, 0.95);
    margin-left: 24px;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cw-header__contact a:hover {
    color: var(--secondary-color);
    transform: translateY(-1px);
}

.cw-header__main {
    padding: 18px 0;
}

.cw-header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cw-logo {
    font-size: 26px;
    font-weight: 700;
    background: var(--bg-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    letter-spacing: 1px;
}

.cw-logo__icon {
    width: 42px;
    height: 42px;
    margin-right: 12px;
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(30, 90, 125, 0.15));
}

/* 导航菜单 */
.cw-nav__list {
    display: flex;
    gap: 36px;
}

.cw-nav__item {
    position: relative;
}

.cw-nav__link {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    padding: 12px 0;
    display: block;
    transition: var(--transition-fast);
    position: relative;
}

.cw-nav__link:hover,
.cw-nav__link.active {
    color: var(--primary-color);
}

.cw-nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--bg-gradient-secondary);
    border-radius: 2px 2px 0 0;
    transition: var(--transition);
}

.cw-nav__link:hover::after,
.cw-nav__link.active::after {
    width: 100%;
}

/* 移动端菜单按钮 */
.cw-nav__toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 5px;
}

.cw-nav__toggle-line {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* 页脚 */
.cw-footer {
    background: #1a202c;
    color: #cbd5e0;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.cw-footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.cw-footer__section-title {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
}

.cw-footer__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cw-footer__link {
    color: #cbd5e0;
    transition: var(--transition);
}

.cw-footer__link:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.cw-footer__social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.cw-footer__social-link {
    display: inline-block;
    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);
}

.cw-footer__social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.cw-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #a0aec0;
    font-size: 14px;
}

/* 按钮 */
.cw-btn {
    display: inline-block;
    padding: 5px 10px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    border: none;
    position: relative;
    overflow: hidden;
}

.cw-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cw-btn:hover::before {
    width: 300px;
    height: 300px;
}

.cw-btn-primary {
    background: var(--bg-gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(8, 158, 248, 0.25);
}

.cw-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 158, 248, 0.35);
}

.cw-btn-secondary {
    background: var(--bg-gradient-secondary);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 167, 38, 0.25);
}

.cw-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 167, 38, 0.35);
}

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

.cw-btn-outline:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 卡片 */
.cw-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    position: relative;
}

.cw-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--bg-gradient-secondary);
    opacity: 0;
    transition: var(--transition);
}

.cw-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
    border-color: var(--border-color);
}

.cw-card:hover::before {
    opacity: 1;
}

.cw-card__image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.cw-card:hover .cw-card__image {
    transform: scale(1.05);
}

.cw-card__content {
    padding: 24px;
}

.cw-card__title {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
    transition: var(--transition-fast);
}

.cw-card:hover .cw-card__title {
    color: var(--primary-color);
}

.cw-card__description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.cw-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-light);
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

/* 标签 */
.cw-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-light);
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.cw-tag:hover {
    transform: translateY(-2px);
}

.cw-tag-primary {
    background: rgba(8, 158, 248, 0.08);
    color: var(--primary-color);
    border-color: rgba(8, 158, 248, 0.15);
}

.cw-tag-primary:hover {
    background: rgba(8, 158, 248, 0.12);
}

.cw-tag-accent {
    background: rgba(255, 87, 34, 0.08);
    color: var(--accent-color);
    border-color: rgba(255, 87, 34, 0.15);
}

.cw-tag-accent:hover {
    background: rgba(255, 87, 34, 0.12);
}

/* 章节标题 */
.cw-section {
    padding: 90px 0;
}

.cw-section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.cw-section-title__main {
    font-size: 38px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.cw-section-title__sub {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.cw-section-title__line {
    width: 80px;
    height: 4px;
    background: var(--bg-gradient-secondary);
    margin: 24px auto 0;
    border-radius: 2px;
    position: relative;
}

.cw-section-title__line::before,
.cw-section-title__line::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 4px;
    background: var(--secondary-light);
    border-radius: 2px;
    transform: translateY(-50%);
}

.cw-section-title__line::before {
    right: 100%;
    margin-right: 8px;
}

.cw-section-title__line::after {
    left: 100%;
    margin-left: 8px;
}

/* 网格布局 */
.cw-grid {
    display: grid;
    gap: 30px;
}

.cw-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.cw-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.cw-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* 面包屑导航 */
.cw-breadcrumb {
    padding: 20px 0;
    background: var(--bg-light);
}

.cw-breadcrumb__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.cw-breadcrumb__item {
    color: var(--text-secondary);
    font-size: 14px;
}

.cw-breadcrumb__item:not(:last-child)::after {
    content: '/';
    margin: 0 10px;
    color: var(--text-light);
}

.cw-breadcrumb__link:hover {
    color: var(--primary-color);
}

/* 加载动画 */
.cw-loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--bg-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: cw-spin 1s linear infinite;
}

@keyframes cw-spin {
    to { transform: rotate(360deg); }
}

/* 返回顶部按钮 */
.cw-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.cw-back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* 响应式 */
@media (max-width: 768px) {
    /* 手机端隐藏预约表单 */
    .booking-form-fixed {
        display: none;
    }
    
    /* 手机端隐藏头部顶部栏 */
    .cw-header__top {
        display: none;
    }
    
    .cw-nav__list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        box-shadow: var(--shadow-md);
        padding: 20px;
        gap: 10px;
    }
    
    .cw-nav__list.active {
        display: flex;
    }
    
    .cw-nav__toggle {
        display: flex;
    }
    
    .cw-section-title__main {
        font-size: 28px;
    }
    
    .cw-grid-2,
    .cw-grid-3,
    .cw-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .cw-card__content {
        padding: 16px;
    }
    
    .cw-card__title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .cw-card__description {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .cw-card__image {
        height: 160px;
    }
    
    .cw-btn {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .cw-tag {
        font-size: 11px;
        padding: 4px 10px;
    }
}

/* 工具类 */
.cw-text-center { text-align: center; }
.cw-text-right { text-align: right; }
.cw-text-left { text-align: left; }
.cw-mt-10 { margin-top: 10px; }
.cw-mt-20 { margin-top: 20px; }
.cw-mt-30 { margin-top: 30px; }
.cw-mb-10 { margin-bottom: 10px; }
.cw-mb-20 { margin-bottom: 20px; }
.cw-mb-30 { margin-bottom: 30px; }
.cw-pt-20 { padding-top: 20px; }
.cw-pb-20 { padding-bottom: 20px; }

/* 固定预约表单 */
.booking-form-fixed {
    position: fixed;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
}

.booking-form-toggle {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(8, 158, 248, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 2px;
    opacity: 0;
    pointer-events: none;
}

.booking-form-toggle:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 25px rgba(8, 158, 248, 0.4);
}

.booking-form-toggle i {
    font-size: 20px;
    writing-mode: horizontal-tb;
}

.booking-form-panel {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    max-height: 85vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    overflow: hidden;
    z-index: 1000;
}

.booking-form-panel.hidden {
    left: -400px;
}

.booking-form-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-form-header h3 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.booking-form-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.booking-form-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.booking-form {
    padding: 25px;
    max-height: calc(85vh - 80px);
    overflow-y: auto;
}

.booking-form-group {
    margin-bottom: 20px;
}

.booking-form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 14px;
}

.booking-form-group label i {
    color: var(--primary-color);
    font-size: 14px;
}

.booking-form-group input,
.booking-form-group select,
.booking-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition);
    font-family: inherit;
    background: white;
}

.booking-form-group input:focus,
.booking-form-group select:focus,
.booking-form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(8, 158, 248, 0.1);
}

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

.booking-form-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(8, 158, 248, 0.3);
}

.booking-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 158, 248, 0.4);
}

.booking-form-tip {
    text-align: center;
    color: var(--text-light);
    font-size: 12px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.booking-form-tip i {
    color: var(--secondary-color);
}

/* 滚动条样式 */
.booking-form::-webkit-scrollbar {
    width: 6px;
}

.booking-form::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 3px;
}

.booking-form::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.booking-form::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

