:root {
    --primary-blue: #4A90E2;
    --primary-gold: #D4A55D;
    --snow-white: #F8F9FA;
    --pine-green: #6C9A8B;
    --text-dark: #2D3436;
    --text-white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
}

/* 导航栏样式修改 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 5%; /* 减小上下内边距 */
    height: 3rem; /* 设置固定高度 */
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* 减小logo和文字间距 */
    height: 100%;
}

.logo-text {
    font-family: 'Pacifico', cursive;
    font-size: 1.2rem; /* 稍微减小字体大小 */
    color: var(--primary-blue);
    line-height: 3rem; /* 与navbar高度一致 */
}

.nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 0; /* 减小菜单内边距 */
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar:hover .nav-links {
    transform: translateY(0);
}

.nav-links a {
    display: block;
    text-decoration: none;
    color: var(--text-dark);
    padding: 0.3rem 2rem; /* 减小菜单项内边距 */
    margin: 0;
    position: relative;
    font-weight: 500;
    white-space: nowrap;
    font-size: 0.9rem; /* 稍微减小字体大小 */
}

/* 修改悬浮效果 */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 轮播图区域样式 */
.hero-slider {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide.active {
    opacity: 1;
}

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

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-white);
}

.slide-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 80px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.cta-button {
    padding: 1rem 2rem;
    border: 2px solid var(--text-white);
    border-radius: 30px;
    background: transparent;
    color: var(--text-white);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--text-white);
    color: var(--primary-blue);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        padding: 1rem 5%;
    }
    
    .hamburger {
        display: block;
    }
    
    .slide-content h1 {
        font-size: 40px;
    }
}

/* 特色推荐区域样式 */
.featured {
    padding: 5rem 5%;
    background: rgba(248, 249, 250, 0.9);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.decorative-line {
    width: 100px;
    height: 3px;
    background: var(--primary-gold);
    margin: 0 auto;
}

.featured-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--text-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: scale(1.02);
}

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

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1rem;
}

.illustration {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin: 1rem 0;
}

.link-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    margin-top: 1rem;
    color: var(--primary-blue);
    text-decoration: none;
    border: 1px solid var(--primary-blue);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.link-button:hover {
    background: var(--primary-blue);
    color: var(--text-white);
}

/* 底部信息栏样式 */
.site-footer {
    background-color: #f8f8f8;
    padding: 40px 0;
    margin-top: 40px;
}

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

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

.social-icons {
    display: flex;
    gap: 30px;
    margin-top: 15px;
    justify-content: center;
    align-items: center;
}

.social-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icon::before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    margin-bottom: 8px;
}

.social-text {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.social-icon.wechat::before {
    background-image: url('imgs/image6.jpg');
}

.social-icon.kuaishou::before {
    background-image: url('imgs/image7.jpg');
}

.social-icon.douyin::before {
    background-image: url('imgs/image8.jpg');
}

.social-icon.gongzhonghao::before {
    background-image: url('imgs/image9.jpg');
}

.social-icon:hover {
    transform: translateY(-5px);
    opacity: 0.8;
}

.social-icon:hover .social-text {
    color: var(--primary-blue);
}

/* 移除之前的悬停提示样式 */
.social-icon[title]:hover::after {
    display: none;
}

.footer-partners {
    flex: 1;
    padding: 20px;
}

.footer-partners h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.partner-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.partner-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.partner-links a:hover {
    color: var(--primary-blue);
}

/* 响应式设计补充 */
@media (max-width: 992px) {
    .featured-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .featured-cards {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* 汉堡菜单样式调整 */
.hamburger {
    height: 16px; /* 减小汉堡菜单高度 */
    width: 24px; /* 减小汉堡菜单宽度 */
    display: none;
    cursor: pointer;
}

.hamburger span {
    height: 1.5px; /* 减小线条粗细 */
    display: block;
    position: absolute;
    width: 100%;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

.hamburger span:first-child {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 7px; /* 调整中间线位置 */
}

.hamburger span:last-child {
    top: 14px; /* 调整底部线位置 */
}

.hamburger.active span:first-child {
    transform: rotate(45deg);
    top: 9px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:last-child {
    transform: rotate(-45deg);
    top: 9px;
}

/* 轮播图控制按钮样式 */
.slider-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
}

.slider-controls button {
    background: transparent;
    border: 2px solid var(--text-white);
    color: var(--text-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.slider-controls button:hover {
    background: var(--text-white);
    color: var(--primary-blue);
}

/* 模态窗口样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--text-white);
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.modal-content p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.close-modal {
    padding: 0.8rem 2rem;
    background-color: var(--primary-blue);
    color: var(--text-white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.close-modal:hover {
    background-color: #357abd;
}

.modal.show {
    display: flex;
}

/* 水墨动画背景样式 */
.ink-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;  /* 调整透明度使其不影响内容阅读 */
    pointer-events: none;  /* 使其不影响页面交互 */
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* 添加图片加载失败的后备方案 */
img {
    object-fit: cover;
    min-height: 200px;
    background: #f0f0f0;
}

/* 优化图片加载时的过渡效果 */
img {
    transition: opacity 0.3s ease;
}

img:not([loaded]) {
    opacity: 0;
}

img[loaded] {
    opacity: 1;
}

.footer-partners {
    flex: 1;
    padding: 20px;
}

.footer-partners h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 18px;
}

.partner-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.partner-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.partner-item a {
    color: #16020200;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.partner-item a:hover {
    color: #ffd700;
}

.partner-title {
    color: #000; /* 将颜色改为纯黑色 */
    margin-bottom: 15px;
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
}

/* 微信二维码模态窗口样式 */
.qr-container {
    text-align: center;
    padding: 20px;
}

.qr-code {
    width: 200px;
    height: 200px;
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.qr-container p {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
} 