/* Hero section */
.hero.fullscreen {
    position: relative;
    height: 100vh;
    margin-top: -64px;
    background: linear-gradient(135deg, var(--primary-color), #34495e);
    display: flex;
    align-items: center;
    padding-top: 64px;
}

.hero .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-image {
    flex: 1;
    max-width: 50%;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: fadeIn 1s ease-out;
}

.hero-content {
    text-align: center;
    color: white;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 1s ease-out forwards;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: bold;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease-out 0.3s forwards;
}

.hero .subtitle {
    font-size: clamp(1rem, 4vw, 1.5rem);
    opacity: 0;
    margin-bottom: 2.5rem;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease-out 0.6s forwards;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1) 0%, transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(255,255,255,0.1) 0%, transparent 60%);
    z-index: 1;
    animation: shimmer 10s infinite alternate;
}

.search-container {
    max-width: 1000px;
    width: 90%;
    margin: 0 auto;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease-out 0.9s forwards;
}

.search-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 4px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    animation: borderPulse 2s ease-in-out infinite;
    width: 800px;
    max-width: 100%;
    margin: 0 auto;
}

@keyframes borderPulse {
    0% {
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    }
    50% {
        border-color: rgba(255, 255, 255, 0.4);
        box-shadow: 0 4px 30px rgba(255, 255, 255, 0.2);
    }
    100% {
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    }
}

.search-input {
    width: 100%;
    padding: 15px 140px 15px 25px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 1);
}

.search-button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    padding: 0 30px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, var(--primary-color), #34495e);
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 1;
}

.search-button:hover {
    transform: translateX(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    cursor: pointer;
}

.scroll-indicator span {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    margin: 0 auto;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-10px) rotate(45deg);
    }
    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .hero.fullscreen {
        height: 60vh;
        min-height: auto;
        padding: 100px 0 40px;
    }

    .hero .container {
        flex-direction: column-reverse;
        gap: 2rem;
        padding: 0;
    }

    .hero-image {
        max-width: 100%;
        padding: 0 1rem;
    }

    .hero-content {
        padding-right: 0;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero .subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .search-container {
        max-width: 600px;
        width: 90%;
    }

    .scroll-indicator {
        display: none;
    }

    .search-wrapper {
        width: 100%;
    }
}

/* 超小屏幕适配 */
@media (max-width: 380px) {
    .hero.fullscreen {
        height: 60vh;
    }

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

    .search-input {
        padding: 10px 100px 10px 15px;
    }

    .search-button {
        padding: 0 15px;
    }

    .search-container {
        width: 95%;
    }
}

/* 横屏模式适配 */
@media (max-height: 500px) {
    .hero.fullscreen {
        height: auto;
        min-height: 100vh;
    }

    .scroll-indicator {
        display: none;
    }
}

/* 特性部分 */
.features {
    padding: 80px 0;
    background: #fff;
}

.features h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--text-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transform: translateY(50px);
    opacity: 0;
    transition: transform 0.3s ease;
}

.feature-card.visible {
    animation: slideUp 0.6s ease forwards;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* FAQ部分 */
.faq {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.faq h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--text-color);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
}

.faq-item {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.faq-item.visible {
    animation: fadeIn 0.6s ease forwards;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), #34495e);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

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

.faq-item:hover::before {
    transform: scaleY(1);
}

.faq-item h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}

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

/* 响应式调整 */
@media (max-width: 768px) {
    .features h2,
    .faq h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem 0;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .features,
    .faq {
        padding: 40px 0;
    }
}

/* 动画关键帧 */
@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
} 