/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 跳转链接样式 */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* 懒加载样式 */
.lazy-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.lazy-section.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* 骨架屏效果 */
.lazy-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 2px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.lazy-section.loaded::before {
    display: none;
}

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* 主要内容区域 */
.main {
    min-height: 100vh;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #667eea 100%);
    color: white;
    padding: 120px 0 100px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero .container {
    max-width: none;
    width: 100%;
    padding: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: float 20s linear infinite;
    pointer-events: none;
}

@keyframes float {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-content {
    max-width: none;
    margin: 0;
    width: 100%;
    position: relative;
    z-index: 1;
    padding: 0 15px;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    letter-spacing: -2px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1);
    border-radius: 2px;
    opacity: 0.8;
}

.hero-subtitle {
    font-size: 22px;
    margin-bottom: 60px;
    opacity: 0.95;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* 搜索框 */
.search-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    width: 100%;
    padding: 0 20px;
}

.search-form {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 60px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4),
                0 15px 40px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.search-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.8s ease;
}

.search-form:hover::before {
    left: 100%;
}

.search-form:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5),
                0 20px 50px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.search-form:focus-within {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 35px 110px rgba(0, 0, 0, 0.6),
                0 25px 60px rgba(0, 0, 0, 0.5),
                0 0 0 4px rgba(255, 255, 255, 0.1);
}

.search-input {
    flex: 1;
    padding: 24px 20px;
    border: none;
    font-size: 18px;
    outline: none;
    color: #2c3e50;
    background: transparent;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
    min-width: 0; /* 确保输入框可以缩小 */
    width: 100%;
    box-sizing: border-box;
}

.search-input::placeholder {
    color: #7f8c8d;
    font-weight: 400;
    font-style: italic;
    transition: opacity 0.3s ease;
}

.search-input:focus::placeholder {
    opacity: 0.7;
}

.search-btn {
    padding: 24px 30px 24px 35px;
    background: linear-gradient(135deg, #4ecdc4, #44a3aa, #3d8b8f);
    color: white;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 110px;
    width: 110px;
    box-sizing: border-box;
    flex-shrink: 0;
    white-space: nowrap;
}

.search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.search-btn::after {
    content: '🔍';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, #5dd8d0, #4db4bc, #46979a);
    transform: translateX(-3px);
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.search-btn:hover::before {
    left: 100%;
}

.search-btn:hover::after {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.search-btn:active {
    transform: translateX(-3px) scale(0.96);
    transition: all 0.1s ease;
}

/* 搜索引擎区域 */
.search-engines {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #333;
}

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

.engine-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.engine-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.engine-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.engine-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.engine-card p {
    color: #666;
    font-size: 14px;
}


/* 特色功能区域 */
.features {
    padding: 80px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
}

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

.feature-item h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

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

/* 底部 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

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

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.footer-section p,
.footer-section ul {
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.footer-section ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #007bff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero {
        padding: 60px 0;
        min-height: auto;
    }

  .hero-content {
        padding: 0 10px;
    }

    .search-container {
        max-width: 800px;
        margin: 0 auto;
        padding: 0 15px;
        position: relative;
        width: 100%;
    }

    .search-form {
        display: flex;
        border-radius: 25px;
        max-width: 500px;
        margin: 0 auto;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4),
                    0 15px 40px rgba(0, 0, 0, 0.3),
                    inset 0 1px 0 rgba(255, 255, 255, 0.6);
        overflow: hidden;
        width: 100%;
        align-items: center;
        justify-content: space-between;
    }

    .search-input {
        border-radius: 25px 0 0 25px;
        padding: 20px 25px;
        font-size: 16px;
    }

    .search-btn {
        border-radius: 0 25px 25px 0;
        padding: 20px 25px;
        font-size: 16px;
        border-left: 1px solid rgba(255, 255, 255, 0.2);
        width: auto;
        min-width: 100px;
        flex-shrink: 0;
    }

    .search-btn::after {
        left: 15px;
        font-size: 16px;
    }

    .search-form::after {
        border-radius: 25px;
    }

    .section-title {
        font-size: 28px;
    }

    .engines-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .engine-card {
        padding: 20px 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .search-container {
        padding: 0 10px;
        width: 100%;
    }

    .hero-title {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .hero-title::after {
        width: 80px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .search-container {
        padding: 0 10px;
    }

    .search-form {
        max-width: 100%;
        margin: 0 auto;
    }

    .search-input {
        padding: 18px 20px;
        font-size: 16px;
        text-align: center;
    }

    .search-btn {
        padding: 16px 20px;
        font-size: 16px;
    }

    .search-btn::after {
        left: 12px;
        font-size: 14px;
    }

    .section-title {
        font-size: 24px;
    }

    .engine-icon {
        font-size: 40px;
    }

    .feature-icon {
        font-size: 40px;
    }
}

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

.engine-card,
.feature-item {
    animation: fadeInUp 0.6s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 选择文本样式 */
::selection {
    background: #007bff;
    color: white;
}

/* 搜索框发光效果 */
.search-form::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #4ecdc4, #44a3aa, #3d8b8f, #4ecdc4);
    border-radius: 60px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: gradient-border 3s linear infinite;
}

@keyframes gradient-border {
    0% { background: linear-gradient(45deg, #4ecdc4, #44a3aa, #3d8b8f, #4ecdc4); }
    25% { background: linear-gradient(135deg, #44a3aa, #3d8b8f, #4ecdc4, #44a3aa); }
    50% { background: linear-gradient(225deg, #3d8b8f, #4ecdc4, #44a3aa, #3d8b8f); }
    75% { background: linear-gradient(315deg, #4ecdc4, #44a3aa, #3d8b8f, #4ecdc4); }
    100% { background: linear-gradient(405deg, #44a3aa, #3d8b8f, #4ecdc4, #44a3aa); }
}

.search-form:hover::after,
.search-form:focus-within::after {
    opacity: 0.6;
}

/* 焦点样式 */
.search-input:focus {
    outline: none;
}

.search-btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.3);
}

/* 搜索输入框光标样式 */
.search-input {
    caret-color: #4ecdc4;
}

/* 搜索框加载状态 */
.search-form.loading::before {
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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