/* Index page styles */

/* 全局样式优化 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

nav{
    height: 180px;
}

nav.scrolled{
    height: 80px;
}

/* 导航栏样式 */
.navbar {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    overflow: visible;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.navbar-logo {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.navbar-logo img {
    height: 120px;
    background: #fff;
    padding: 20px 40px;
    position: absolute;
    top: 10px;
    transition: all 0.3s ease;
}

/* 滚动时的logo样式 */
.navbar.scrolled .navbar-logo img {
    height: 60px;
    padding: 0;
    top: 10px;
}

.navbar-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: auto;
    padding-top: 20px;
    transition: all 0.3s ease;
}

.navbar-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-bottom: 10px;
}

.navbar-slogan {
    font-size: 16px;
    color: #715db0;
    font-weight: 500;
    text-align: right;
    transition: all 0.3s ease;
}

/* 滚动时的导航栏样式 */
.navbar.scrolled .navbar-content {
    padding-top: 10px;
}

.navbar.scrolled .navbar-slogan {
    display: none;
}

.navbar-item {
    margin-left: 30px;
}

.navbar-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-link:hover {
    color: #007bff;
}

.user-area {
    display: flex;
    align-items: center;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* 英雄区样式 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 280px 20px 150px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../../images/bg.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.9;
}

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

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 标题样式 */
.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 核心功能样式 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.feature {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.feature p {
    color: #6c757d;
    margin-bottom: 20px;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #007bff;
}

.feature a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.feature a:hover {
    text-decoration: underline;
}

/* 流程样式 */
.process {
    background-color: #f8f9fa;
    padding: 20px;
}

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

.process-step {
    text-align: center;
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -10px;
    width: 20px;
    height: 2px;
    background-color: #007bff;
    opacity: 0.5;
}

.process-step:last-child::after {
    display: none;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.process-step h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.process-step p {
    color: #6c757d;
}

/* 作品展示样式 */
.works {
    margin-bottom: 80px;
}

.works-grid {
    column-count: 4;
    column-gap: 15px;
}

.work-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 15px;
    break-inside: avoid;
    display: block;
}

.work-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* 评价样式 */
.testimonials {
    background-color: #f8f9fa;
    padding: 80px 20px;
    margin: 80px 0;
}

.testimonials-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-behavior: smooth;
}

.testimonial-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 350px;
    max-width: 400px;
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.testimonial-info h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.testimonial-rating {
    color: #ffc107;
    font-size: 14px;
}

.testimonial-content {
    color: #6c757d;
    line-height: 1.6;
}

/* CTA样式 */
.cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 80px 20px;
    margin: 80px 0;
    border-radius: 10px;
}

/* 全宽CTA样式 */
.cta-full {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 80px 20px;
    width: 100%;
}

.cta-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cta h2,
.cta-full h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.cta p,
.cta-full p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* 页脚样式 */
footer {
    background-color: #343a40;
    color: white;
    padding: 60px 20px 20px;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #007bff;
}

.footer-section p {
    color: #adb5bd;
    margin-bottom: 15px;
    line-height: 1.6;
}

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

/* 响应式设计 */
@media (max-width: 1200px) {
    .works-grid {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    /* 导航栏 */
    nav {
        height: 100px;
    }
    
    nav.scrolled {
        height: 60px;
    }
    
    .navbar-container {
        padding: 0 15px;
        max-width: 100%;
        margin: 0;
        align-items: center;
        height: 100%;
    }
    
    .menu-toggle {
        margin-left: auto;
        margin-right: 10px;
    }
    
    .navbar-logo img {
        height: 70px;
        padding: 10px;
        position: relative;
        top: auto;
    }
    
    .navbar.scrolled .navbar-logo img {
        height: 40px;
        padding: 5px;
    }
    
    .navbar-menu {
        display: none;
    }
    
    /* 添加汉堡菜单按钮 */
    .menu-toggle {
        display: block;
        font-size: 24px;
        color: #007bff;
        cursor: pointer;
        padding: 20px;
    }
    
    /* 移动端菜单 */
    .mobile-menu {
        position: fixed;
        top: 100px;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 999;
        transform: translateY(-150%);
        transition: transform 0.3s ease, opacity 0.3s ease;
        opacity: 0;
        visibility: hidden;
    }
    
    .mobile-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu-links {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .mobile-menu-item {
        border-bottom: 1px solid #f0f0f0;
    }
    
    .mobile-menu-link {
        display: block;
        padding: 15px 20px;
        color: #333;
        text-decoration: none;
        font-weight: 500;
        transition: background-color 0.3s ease;
    }
    
    .mobile-menu-link:hover {
        background-color: #f8f9fa;
        color: #007bff;
    }
    
    /* 英雄区 */
    .hero {
        padding: 160px 15px 80px;
    }
    
    .hero h1 {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        padding: 12px 24px;
        width: 200px;
        text-align: center;
    }
    
    .btn-secondary {
        margin-left: 0;
        margin-top: 0;
    }
    
    /* 容器 */
    .container {
        padding: 15px;
    }
    
    /* 标题 */
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    /* 核心功能 */
    .features {
        gap: 25px;
        margin-bottom: 60px;
    }
    
    .feature {
        padding: 20px;
    }
    
    .feature h3 {
        font-size: 20px;
    }
    
    .feature-icon {
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    /* 流程步骤 */
    .process {
        padding: 15px;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .process-step::after {
        display: none;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .process-step h3 {
        font-size: 18px;
    }
    
    /* 作品展示 */
    .works {
        margin-bottom: 60px;
    }
    
    .works-grid {
        column-count: 2;
        column-gap: 10px;
    }
    
    .work-image {
        margin-bottom: 10px;
    }
    
    /* CTA区域 */
    .cta-full {
        padding: 60px 15px;
    }
    
    .cta-full h2 {
        font-size: 28px;
    }
    
    .cta-full p {
        font-size: 16px;
    }
    
    /* 页脚 */
    footer {
        padding: 40px 15px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-section h3 {
        font-size: 18px;
    }
    
    /* 评价卡片 */
    .testimonial-card {
        min-width: auto;
        max-width: none;
    }
}

@media (max-width: 480px) {
    /* 导航栏 */
    nav {
        height: 80px;
    }
    
    nav.scrolled {
        height: 50px;
    }
    
    .navbar-container {
        padding: 0 10px;
        align-items: center;
        height: 100%;
    }
    
    .menu-toggle {
        margin-left: auto;
        margin-right: 10px;
    }
    
    .navbar-logo img {
        height: 50px;
        padding: 15px;
    }
    
    .navbar.scrolled .navbar-logo img {
        height: 30px;
    }
    
    /* 英雄区 */
    .hero {
        padding: 120px 10px 60px;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .btn {
        padding: 10px 20px;
        width: 180px;
        font-size: 14px;
    }
    
    .hero-buttons {
        gap: 10px;
    }
    
    /* 移动端菜单 */
    .mobile-menu {
        top: 80px;
    }
    
    .mobile-menu-link {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    /* 核心功能 */
    .feature {
        padding: 15px;
    }
    
    .feature h3 {
        font-size: 18px;
    }
    
    /* 作品展示 */
    .works-grid {
        column-count: 2;
        column-gap: 8px;
    }
    
    .work-image {
        margin-bottom: 8px;
    }
    
    /* CTA区域 */
    .cta-full h2 {
        font-size: 24px;
    }
    
    .cta-full p {
        font-size: 14px;
    }
}
