:root {
    --primary: #4b2e83;
    --secondary: #2c1a4d;
    --accent: #e6a756;
    --light: #f9f5f0;
    --dark: #1a0a2e;
    --text: #333333;
    --white: #ffffff;
    --mobile-bg: rgba(44, 26, 77, 0.98);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.8;
    color: var(--text);
    margin: 0;
    padding: 0;
    background-color: var(--light);
    position: relative;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23f9f5f0"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%23f9f5f0"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23f9f5f0"/></svg>');
    background-size: cover;
    z-index: 1;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--secondary);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.brand {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.8rem 1.5rem;
    display: none;
    white-space: nowrap;
}        /* 汉堡按钮移动到左侧的容器 */
.menu-toggle-wrapper {
    display: flex;
    justify-content: flex-start;
    padding-left: 10px;
}

/* 优化汉堡按钮 */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 110;
    transition: var(--transition);
}

.menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.menu-toggle:focus {
    outline: 2px solid var(--accent);
    border-radius: 4px;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    margin: 3px 0;
    transition: var(--transition);
    transform-origin: center;
}
/* 移动端Logo样式 */
.logo-container {
    padding: 0.3rem;
}

.logo {
    height: 35px;
}

/* 新增Logo样式 */
.logo-container {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    margin-left: 10px;
}

.logo {
    height: 230px; /* 调整Logo大小 */
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.menu-toggle-wrapper {
    display: flex;
    justify-content: flex-start;
    padding-left: 10px;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 110;
    transition: var(--transition);
}

.menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.menu-toggle:focus {
    outline: 2px solid var(--accent);
    border-radius: 4px;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    margin: 3px 0;
    transition: var(--transition);
    transform-origin: center;
}

.logo-container {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    margin-left: 10px;
}

.logo {
    height: 230px;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

nav {
    flex-grow: 1;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    transition: var(--transition);
}

nav li {
    margin: 0 1rem;
    position: relative;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    transition: var(--transition);
    display: block;
    position: relative;
}

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

nav a:hover::after {
    width: 100%;
}

.hero {
    background: url('https://images.unsplash.com/photo-1608889825103-eb5a4f4ba2c3?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center/cover;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(75,46,131,0.7) 0%, rgba(44,26,77,0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1s ease;
}

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

.cta-button {
    display: inline-block;
    background-color: var(--accent);
    color: var(--secondary);
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(230, 167, 86, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.cta-button:hover {
    background-color: #d18f3a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 167, 86, 0.6);
}

.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    color: var(--primary);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    bottom: -10px;
    left: 20%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.card h3 {
    color: var(--primary);
    margin-top: 0;
    position: relative;
    padding-bottom: 1rem;
}

.card h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
}

.testimonial-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 2rem;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 5rem;
    color: rgba(230, 167, 86, 0.2);
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.testimonial-card p:first-of-type {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-card p:last-of-type {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0;
}

footer {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    text-align: center;
    padding: 4rem 1rem 2rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%234b2e83"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%234b2e83"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%234b2e83"/></svg>');
    background-size: cover;
}

.footer-links {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.footer-links a {
    color: var(--white);
    margin: 0 1rem;
    text-decoration: none;
    transition: var(--transition);
}

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

.social-icons {
    margin: 1.5rem 0;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin: 0 0.5rem;
    text-align: center;
    line-height: 40px;
    color: var(--white);
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

.copyright {
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 992px) {
    .card-container {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0;
        flex-wrap: nowrap;
    }

    .brand {
        display: block;
        flex: 1;
        padding: 1rem 1.5rem;
        text-align: left;
        font-size: 1.2rem;
    }

    .menu-toggle {
        display: flex;
        position: relative;
    }

    nav {
        position: static;
    }

    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--mobile-bg);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
    }

    nav ul.active {
        max-height: 100vh;
        padding: 1rem 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.2);
    }

    nav li {
        margin: 0;
        padding: 0;
    }

    nav a {
        padding: 1rem 2rem;
        transition: all 0.3s;
    }

    nav a:hover {
        background: rgba(255,255,255,0.1);
        padding-left: 2.5rem;
    }

    .hero {
        height: 50vh;
    }

    .hero-content {
        padding: 1rem;
    }

    .section {
        padding: 3rem 1rem;
    }

    .card-container {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 1.5rem;
    }

    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 40vh;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .menu-toggle-wrapper {
        padding-left: 15px;
    }

    .menu-toggle {
        width: 45px;
        height: 45px;
    }
}
