/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* 毛玻璃导航栏 */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.glass-nav.scrolled {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.glass-nav.scrolled .logo,
.glass-nav.scrolled .nav-link {
    color: #ff6b81;
}

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

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: block;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* 下拉菜单 */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    min-width: 200px;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 8px 0;
}

.dropdown-link {
    color: #ff6b81;
    text-decoration: none;
    padding: 8px 16px;
    display: block;
    transition: all 0.3s ease;
    border-radius: 0;
}

.dropdown-link:hover,
.dropdown-link.active {
    background: rgba(255, 107, 129, 0.1);
    color: #ff6b81;
}

/* 移动端菜单 */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero区域 */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #ff6b81 0%, #ff8e53 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #fff;
    color: #ff6b81;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 107, 129, 0.3);
}

/* 服务区域 */
.services {
    padding: 100px 0;
    background: #fff;
}

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

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ff6b81;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b81 0%, #ff8e53 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    font-size: 2rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.service-card p {
    color: #666;
}

/* 关于我们 */
.about {
    padding: 100px 0;
    background: #f5f5f5;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
}

.about-text,
.about-image {
    flex: 1;
    min-width: 300px;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ff6b81;
}

.about-text p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.8;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 案例展示 */
.cases {
    padding: 100px 0;
    background: #fff;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.case-card {
    background: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.case-image {
    height: 200px;
    background: linear-gradient(135deg, #ff6b81 0%, #ff8e53 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
}

.case-content {
    padding: 20px;
}

.case-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.case-content p {
    color: #666;
}

/* 联系我们 */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #ff6b81 0%, #ff8e53 100%);
    color: #fff;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.contact-details {
    list-style: none;
    margin-bottom: 30px;
}

.contact-details li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-details i {
    margin-right: 15px;
    font-size: 1.3rem;
}

/* 页脚 */
.footer {
    background: #333;
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff6b81;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
}

/* 关键词页面 */
.keyword-page {
    padding: 120px 0 100px;
    background: #fff;
}

.keyword-content {
    max-width: 800px;
    margin: 0 auto;
}

.keyword-content h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #ff6b81;
}

.keyword-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: #333;
}

.keyword-content h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
    color: #555;
}

.keyword-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #666;
}

.keyword-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.keyword-content li {
    margin-bottom: 10px;
    line-height: 1.8;
    color: #666;
}

/* 加载动画 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ff6b81;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 10px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        color: #ff6b81;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(255, 107, 129, 0.1);
        color: #ff6b81;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle span {
        background: #fff;
    }

    .glass-nav.scrolled .menu-toggle span {
        background: #ff6b81;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .about-text h2,
    .contact-info h2 {
        font-size: 2rem;
    }

    .keyword-content h1 {
        font-size: 2rem;
    }

    .keyword-content h2 {
        font-size: 1.5rem;
    }

    .keyword-content h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

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

    .about-text h2,
    .contact-info h2 {
        font-size: 1.8rem;
    }

    .service-card,
    .case-card {
        padding: 30px 20px;
    }

    .keyword-content h1 {
        font-size: 1.8rem;
    }

    .keyword-content h2 {
        font-size: 1.3rem;
    }

    .keyword-content h3 {
        font-size: 1.1rem;
    }
}