/* 全局样式 */
:root {
    --primary-color: #6f2385;
    --secondary-color: #ffffff;
    --accent-color: #6f2385;
    --text-color: #1d1d1f;
    --light-text: #86868b;
    --background: #ffffff;
    --dark-background: #000000;
    --hover-color: #8c2ba7;
}

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

body {
    font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden; /* Prevent horizontal scroll */
    /* Disable text selection */
    user-select: none;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Internet Explorer/Edge */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar .logo-img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar .logo-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .logo-img {
    height: 32px;
}

.navbar.scrolled .logo-text {
    font-size: 20px;
}

.navbar.scrolled .nav-links a {
    font-size: 14px;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-right: 20px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

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

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

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

.nav-links a.active {
    color: var(--primary-color);
    font-weight: 500;
}

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

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* 英雄区域样式 */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: var(--dark-background);
    color: var(--secondary-color);
    padding-top: 80px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item.active {
    opacity: 1;
    z-index: 2;
}

.carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.carousel-content {
    position: relative;
    text-align: center;
    color: #fff;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    z-index: 2;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    width: 100%;
    text-align: center;
    transform: none;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", "Noto Sans SC", sans-serif;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    width: 100%;
    text-align: center;
}

.title-line:nth-child(2) {
    animation-delay: 0.3s;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.6s;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    width: 100%;
    text-align: center;
}

.carousel-item.active .carousel-content {
    opacity: 1;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 2;
}

.carousel-prev,
.carousel-next {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-prev .icon,
.carousel-next .icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev .icon img,
.carousel-next .icon img {
    width: 100%;
    height: 100%;
    filter: invert(100%);
}

.carousel-dots {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.hero-cta {
    position: absolute;
    bottom: 120px;
    left: 0;
    right: 0;
    display: flex;
    gap: 20px;
    justify-content: center;
    z-index: 10;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.hero-btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.hero-btn:hover {
    background-color: var(--hover-color);
    border-color: var(--hover-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(111, 35, 133, 0.3);
}

/* 服务区域样式 */
.services {
    padding: 60px 0;
    background: var(--background);
}

.section-header {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
    position: relative;
}

.section-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
    width: 100%;
    text-align: center;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", "Noto Sans SC", sans-serif;
    background: linear-gradient(45deg, var(--primary-color), #9c27b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-subtitle::before {
    content: "//";
    color: var(--primary-color);
    font-weight: bold;
    letter-spacing: -2px;
}

.section-description {
    font-size: 1.3rem;
    color: #666;
    max-width: 800px;
    margin: 25px auto 0;
    line-height: 1.8;
    text-align: center;
    position: relative;
    padding: 0 20px;
}

.section-description::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -15px;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    padding: 30px 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    text-align: center;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(111, 35, 133, 0.15);
}

.service-card .icon {
    width: 2rem;
    height: 2rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card .icon img {
    filter: invert(27%) sepia(51%) saturate(1238%) hue-rotate(256deg) brightness(87%) contrast(97%);
    transition: all 0.3s ease;
}

.service-card:hover .icon img {
    filter: invert(27%) sepia(51%) saturate(1538%) hue-rotate(256deg) brightness(87%) contrast(97%);
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #333;
    font-weight: 600;
}

.service-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 0 20px;
    }
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .section-subtitle {
        font-size: 2.2rem;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .section-description {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-top: 20px;
    }

    .section-description::before {
        width: 40px;
        top: -10px;
    }

    .section-subtitle {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .service-card .icon {
        width: 1.8rem;
        height: 1.8rem;
    }

    .carousel-dots {
        bottom: 100px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }

    .navbar {
        padding: 15px 0;
    }

    .navbar.scrolled {
        padding: 8px 0;
    }

    .navbar.scrolled .logo-img {
        height: 32px;
    }

    .navbar.scrolled .logo-text {
        font-size: 20px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 10px 0;
        display: block;
        text-align: center;
        font-size: 16px;
    }

    .nav-links a::after {
        bottom: 5px;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    .menu-toggle .icon {
        width: 24px;
        height: 24px;
    }
}

/* 作品集样式 */
.portfolio {
    padding: 80px 0;
    background: #000;
    color: white;
    overflow: hidden;
}

.portfolio .section-title,
.portfolio .section-subtitle,
.portfolio .section-description {
    color: white;
}

.portfolio-grid {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
    height: 600px;
    overflow: hidden;
    padding: 0 20px;
}

.portfolio-item {
    position: absolute;
    width: 80%;
    max-width: 1200px;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portfolio-item img {
    width: 100%;
    height: calc(100% - 120px);  /* 减去标题和描述的高度 */
    object-fit: contain;
    display: block;
    border-radius: 20px 20px 0 0;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-info {
    width: 100%;
    padding: 30px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 0 0 20px 20px;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    backdrop-filter: blur(5px);
}

.portfolio-item.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

.portfolio-item.active .portfolio-info {
    opacity: 1;
}

.portfolio-item:not(.active) {
    pointer-events: none;
    transform: scale(0.8) translateY(30px);
}

.portfolio-info h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.portfolio-info p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.portfolio-nav {
    position: absolute;
    top: calc(50% - 60px);  /* 减去标题和描述区域高度的一半，使箭头位于图片中间 */
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 100;
    pointer-events: none;
    width: 100%;
    max-width: 1400px;  /* 限制最大宽度，与内容区域对齐 */
    margin: 0 auto;  /* 居中对齐 */
}

.nav-arrow {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    backdrop-filter: blur(5px);
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.nav-arrow .icon {
    width: 20px;
    height: 20px;
}

.nav-arrow .icon img {
    filter: invert(100%);
}

@media (max-width: 768px) {
    .portfolio-grid {
        height: 400px;
        margin-top: 50px;
    }
    
    .portfolio-item {
        width: 90%;
    }

    .portfolio-item img {
        height: calc(100% - 100px);  /* 移动端减小标题和描述的高度 */
    }
    
    .portfolio-info {
        padding: 20px;
    }
    
    .portfolio-info h3 {
        font-size: 1.5rem;
    }
    
    .portfolio-info p {
        font-size: 0.9rem;
    }
    
    .portfolio-nav {
        top: calc(50% - 50px);  /* 移动端调整，因为标题区域高度较小 */
        padding: 0 15px;  /* 移动端减小内边距 */
    }
    
    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* 联系我们样式 */
.contact {
    padding: 150px 0;
    background: var(--background);
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

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

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid #ddd;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group textarea {
    height: 100px;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-color);
}

.focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s;
}

.form-group input:focus ~ .focus-border,
.form-group textarea:focus ~ .focus-border {
    width: 100%;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 113, 227, 0.2);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* 页脚样式 */
footer {
    background: var(--dark-background);
    color: white;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    margin-bottom: 25px;
    display: inline-block;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.footer-contact {
    margin-top: 30px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.footer-contact .icon {
    width: 1.1rem;
    height: 1.1rem;
}

.footer-contact .icon img {
    filter: invert(27%) sepia(51%) saturate(1238%) hue-rotate(256deg) brightness(87%) contrast(97%);
}

.footer-links h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-newsletter h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 0.95rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 8px;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form button:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
}

.newsletter-form button .icon {
    width: 1.2rem;
    height: 1.2rem;
}

.newsletter-form button .icon img {
    filter: invert(100%);
}

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

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-brand, 
    .footer-links, 
    .footer-newsletter {
        text-align: center;
    }

    .footer-contact p {
        justify-content: center;
    }

    .newsletter-form {
        max-width: 400px;
        margin: 0 auto;
    }

    .footer-links a:hover {
        transform: none;
    }
}

/* 动画 */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
        font-size: 24px;
        cursor: pointer;
    }

    .carousel-content {
        width: 90%;
    }

    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-cta {
        bottom: 80px;
        flex-direction: column;
        align-items: center;
    }

    .carousel-controls {
        bottom: 20px;
    }

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

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hero-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* FAQ样式 */
.faq {
    padding: 80px 0;
    background: var(--background);
}

.faq-grid {
    display: grid;
    gap: 30px;
    max-width: 1000px;
    margin: 60px auto 0;
    padding: 0 20px;
}

.faq-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: white;
    transition: all 0.3s ease;
}

.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.faq-question .icon {
    width: 1.2rem;
    height: 1.2rem;
}

.faq-question .icon img {
    filter: invert(27%) sepia(51%) saturate(1238%) hue-rotate(256deg) brightness(87%) contrast(97%);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer p {
    color: var(--light-text);
    font-size: 1rem;
    line-height: 1.6;
    padding: 25px 0;
    margin: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.faq-item.active .faq-question {
    background: #f8f9fa;
}

.faq-item.active .faq-question .icon img {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-item.active .faq-answer p {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .faq-grid {
        gap: 20px;
    }

    .faq-question {
        padding: 20px;
    }

    .faq-question h3 {
        font-size: 1.1rem;
    }

    .faq-answer {
        padding: 0 20px;
    }
    
    .faq-answer p {
        padding: 20px 0;
    }
}

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.menu-toggle .icon {
    width: 24px;
    height: 24px;
}

.menu-toggle .icon img {
    filter: invert(0%);
}

/* 服务卡片图标动画 */
.service-card:nth-child(1):hover .icon {
    animation: bounceIcon 0.6s ease-in-out;
}

.service-card:nth-child(2):hover .icon {
    animation: rotateIcon 0.6s ease-in-out;
}

.service-card:nth-child(3):hover .icon {
    animation: pulseIcon 0.6s ease-in-out;
}

.service-card:nth-child(4):hover .icon {
    animation: shakeIcon 0.6s ease-in-out;
}

.service-card:nth-child(5):hover .icon {
    animation: swingIcon 0.6s ease-in-out;
}

.service-card:nth-child(6):hover .icon {
    animation: floatIcon 0.6s ease-in-out;
}

.service-card:nth-child(7):hover .icon {
    animation: tadaIcon 0.6s ease-in-out;
}

.service-card:nth-child(8):hover .icon {
    animation: wobbleIcon 0.6s ease-in-out;
}

/* 动画关键帧定义 */
@keyframes bounceIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes rotateIcon {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulseIcon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

@keyframes shakeIcon {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

@keyframes swingIcon {
    0%, 100% {
        transform: rotate(0);
    }
    25% {
        transform: rotate(-15deg);
    }
    75% {
        transform: rotate(15deg);
    }
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-10px) rotate(10deg);
    }
}

@keyframes tadaIcon {
    0%, 100% {
        transform: scale(1) rotate(0);
    }
    10%, 20% {
        transform: scale(0.9) rotate(-3deg);
    }
    30%, 50%, 70%, 90% {
        transform: scale(1.1) rotate(3deg);
    }
    40%, 60%, 80% {
        transform: scale(1.1) rotate(-3deg);
    }
}

@keyframes wobbleIcon {
    0%, 100% {
        transform: translateX(0);
    }
    15% {
        transform: translateX(-10px) rotate(-5deg);
    }
    30% {
        transform: translateX(8px) rotate(3deg);
    }
    45% {
        transform: translateX(-6px) rotate(-3deg);
    }
    60% {
        transform: translateX(4px) rotate(2deg);
    }
    75% {
        transform: translateX(-2px) rotate(-1deg);
    }
}

.portfolio .section-title {
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    color: white;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 50px;
}

.language-selector {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 14px;
    color: var(--text-color);
}

.language-selector:hover {
    background: rgba(111, 35, 133, 0.1);
}

.language-selector .current-lang {
    display: flex;
    align-items: center;
    gap: 5px;
}

.language-selector .lang-icon {
    width: 20px;
    height: 20px;
}

.language-selector .arrow-icon {
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
}

.language-selector.active .arrow-icon {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 120px;
}

.language-selector.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    transition: all 0.3s ease;
}

.language-option:hover {
    background: rgba(111, 35, 133, 0.1);
}

.language-option .lang-icon {
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    .nav-right {
        gap: 20px;
    }

    .language-selector {
        font-size: 13px;
        padding: 4px 8px;
    }

    .language-selector .lang-icon {
        width: 18px;
        height: 18px;
    }

    .nav-links {
        margin-right: 10px;
    }
}

/* 悬浮联系工具栏 */
.floating-contact {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 10px;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-item {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-item i {
    font-size: 20px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: var(--primary-color);
    transform: translateX(-5px);
}

.contact-item:hover i {
    color: white;
}

.contact-item a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* 微信二维码弹窗 */
.qr-popup {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: none;
    width: 150px;
    text-align: center;
}

.qr-popup img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.qr-popup p {
    margin: 10px 0 0;
    font-size: 14px;
    color: var(--text-color);
}

.wechat:hover .qr-popup {
    display: block;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .floating-contact {
        right: 15px;
        padding: 10px 8px;
    }

    .contact-item {
        width: 35px;
        height: 35px;
    }

    .contact-item i {
        font-size: 16px;
    }

    .qr-popup {
        width: 120px;
        right: 50px;
    }
} 