/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", "PingFang SC", sans-serif;
}

:root {
    --primary-color: #d4a56a; /* 暖棕金色 */
    --secondary-color: #8b5a2b; /* 深棕色 */
    --warm-light: #F5F1E8; /* 暖米色 */
    --warm-dark: #5c3c1e; /* 深褐色 */
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --transition: all 0.4s ease;
}

body {
    color: var(--text-color);
    background-color: var(--warm-light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 32px;
    color: var(--secondary-color);
    display: inline-block;
    padding-bottom: 15px;
    position: relative;
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* 导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0.7;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 999;
    transition: var(--transition);
}

.header-scrolled {
    padding: 5px 0;
    background-color: var(--white);
    box-shadow: var(--shadow);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
}

.logo span {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-item {
    margin: 0 18px;
    position: relative;
}

.nav-link {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
    padding: 8px 0;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.paipan-btn {
    background-color: var(--secondary-color);
    padding: 10px 25px;
    border-radius: 4px;
    color: var(--white);
    font-weight: 500;
    margin-left: 20px;
}

.paipan-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* 首屏banner */
.banner {
    height: 100vh;
    margin-top: 80px;
    background: linear-gradient(rgba(248, 240, 227, 0.9), rgba(248, 240, 227, 0.8)), url('/whcc/static/images/bg.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.banner-content {
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    text-align: center;
    transform: translateY(30px);
}

.banner-title {
    font-size: 48px;
    color: var(--secondary-color);
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.banner-subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

/* 文化理念 */
.culture {
    padding: 120px 0;
}

.culture-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.culture-text {
    flex: 1;
    min-width: 500px;
}

.culture-desc {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 30px;
}

.culture-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.culture-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background-color: var(--warm-light);
    border-radius: 8px;
    transition: var(--transition);
}

.culture-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.culture-icon {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 5px;
}

.culture-item h4 {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.culture-item p {
    color: var(--text-light);
    font-size: 14px;
}

.culture-img {
    flex: 1;
    min-width: 500px;
    position: relative;
}

.culture-img img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* 运营项目 */
.projects {
    padding: 120px 0;
    background-color: var(--warm-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.project-img {
    height: 220px;
    overflow: hidden;
    background: #F5F1E8;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-img img {
    transform: scale(1.08);
}

.project-content {
    padding: 25px;
}

.project-title {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.project-desc {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* 关于我们 */
.about {
    padding: 120px 0;
    background-color: var(--white);
}

.about-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-desc {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 40px;
}

.core-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.core-item {
    text-align: center;
    padding: 20px;
    background-color: var(--warm-light);
    border-radius: 8px;
    transition: var(--transition);
}

.core-item:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.core-item:hover .core-title {
    color: var(--white);
}

.core-item:hover .core-desc {
    color: var(--white);
}

.core-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    transition: var(--transition);
}

.core-item:hover .core-number {
    color: var(--white);
}

.core-title {
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.core-desc {
    font-size: 14px;
    color: var(--text-light);
}

.about-img {
    flex: 1;
    position: relative;
    height: 550px;
    border-radius: 8px;
    overflow: hidden;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.about-img::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(212, 165, 106, 0.1);
    transition: var(--transition);
}

.about-img:hover::before {
    background-color: rgba(212, 165, 106, 0.3);
}

.about-img:hover img {
    transform: scale(1.05) rotate(1deg);
}

.img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(92, 60, 30, 0.8));
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
    transform: translateY(20px);
}

.about-img:hover .img-overlay {
    opacity: 1;
    transform: translateY(0);
}

.img-overlay h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.img-overlay p {
    font-size: 14px;
}

/* 客户评价 */
.testimonials {
    padding: 120px 0;
    background-color: var(--warm-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.testimonial-quote {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 0.3;
}

.testimonial-text {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h5 {
    font-size: 16px;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.author-info p {
    font-size: 14px;
    color: var(--text-light);
}

/* 联系我们 */
.contact {
    padding: 120px 0;
    background-color: var(--white);
}

.contact-content {
    display: flex;
    gap: 60px;
}

.contact-info {
    flex: 1;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 5px;
}

.info-content h4 {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.info-content p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.7;
}

.contact-form {
    flex: 1;
    background-color: var(--warm-light);
    padding: 40px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    color: var(--text-color);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 165, 106, 0.2);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

/* 页脚 */
.footer {
    padding: 80px 0 40px;
    background-color: var(--warm-dark);
    color: var(--white);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-desc {
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    color: #e0e0e0;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.qrcode-group {
    display: flex;
    gap: 20px;
}

.qrcode {
    text-align: center;
}

.qrcode img {
    width: 120px;
    height: 120px;
    background-color: var(--white);
    padding: 5px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.qrcode p {
    font-size: 14px;
    color: #e0e0e0;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    color: #b0b0b0;
}

.footer-bottom p {
    margin-bottom: 10px;
}

.footer-bottom .备案号 {
    color: #999;
}

/* 动画效果 */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate.active {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式调整（基础适配） */
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
    
    .projects-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content,
    .contact-content {
        flex-direction: column;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .projects-grid,
    .testimonials-grid,
    .core-values {
        grid-template-columns: 1fr;
    }
    
    .culture-content {
        flex-direction: column;
    }
    
    .culture-text,
    .culture-img {
        min-width: 100%;
    }
    
    .banner-title {
        font-size: 36px;
    }
}