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

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-bg: #0f172a;
    --card-bg: #1e293b;
    --card-hover: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(236, 72, 153, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}

.logo a {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo a::before {
    content: '🤖';
    font-size: 26px;
    -webkit-text-fill-color: initial;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
}

.hero {
    text-align: center;
    padding: 60px 20px;
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, #e0e7ff 50%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    line-height: 1.1;
    position: relative;
}

.hero-subtitle {
    font-size: 17px;
    margin-bottom: 36px;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 12px;
}

.search-input {
    flex: 1;
    padding: 14px 22px;
    border: 2px solid rgba(51, 65, 85, 0.5);
    border-radius: 14px;
    font-size: 15px;
    outline: none;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), 0 8px 30px rgba(0, 0, 0, 0.2);
}

.search-btn {
    padding: 14px 36px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.search-btn::before {
    content: '🔍';
    font-size: 16px;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.tools-section {
    padding: 20px 0;
}

.tools-section .container {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(51, 65, 85, 0.5);
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 22px;
    background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 2px;
}

.see-more {
    color: #8b5cf6;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    white-space: nowrap;
}

.see-more:hover {
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.1);
}

.see-more::after {
    content: '→';
    font-size: 15px;
    transition: transform 0.3s ease;
}

.see-more:hover::after {
    transform: translateX(4px);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.tool-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(51, 65, 85, 0.6);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.tool-card:hover {
    transform: translateY(-6px);
    background: rgba(51, 65, 85, 0.8);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(99, 102, 241, 0.1) inset;
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 14px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
    transition: all 0.4s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.08) rotate(4deg);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
}

.tool-name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
    line-height: 1.2;
}

.tool-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.tool-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    color: #a5b4fc;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.25) 100%);
    color: #c7d2fe;
    transform: translateY(-2px);
}

.footer {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    color: white;
    padding: 40px 0 24px;
    margin-top: 40px;
    border-top: 1px solid rgba(51, 65, 85, 0.5);
}

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

.footer-section h3 {
    font-size: 16px;
    margin-bottom: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-section p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-section ul li a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--text-primary);
}

.footer-section ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(51, 65, 85, 0.5);
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-bottom::before {
    content: '🐒 Made with ❤️ by 悟空AI';
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: #a5b4fc;
}

/* 移动端适配 - 模仿 ai-bot.cn */
@media (max-width: 1024px) {
    .nav {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        border-bottom: 1px solid rgba(51, 65, 85, 0.5);
        z-index: 999;
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav-link {
        padding: 14px 20px;
        border-radius: 12px;
        font-size: 15px;
        text-align: left;
        border-bottom: 1px solid rgba(51, 65, 85, 0.3);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .header-top {
        padding: 12px 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 48px 16px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 28px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
    }
    
    .tools-section .container {
        padding: 20px;
        border-radius: 16px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .tool-card {
        padding: 18px;
        border-radius: 14px;
    }
    
    .tool-icon {
        width: 52px;
        height: 52px;
        font-size: 26px;
        border-radius: 14px;
    }
    
    .tool-name {
        font-size: 16px;
    }
    
    .tool-desc {
        font-size: 13px;
    }
    
    .footer-content {
        gap: 28px;
    }
}

@media (max-width: 480px) {
    .logo a {
        font-size: 20px;
    }
    
    .logo a::before {
        font-size: 24px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .search-input {
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .search-btn {
        padding: 12px 28px;
        font-size: 14px;
    }
    
    .section-header {
        margin-bottom: 14px;
    }
    
    .section-title {
        font-size: 17px;
    }
    
    .see-more {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* 动画效果 */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.hero-title {
    animation: float 6s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.3); }
    50% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.5); }
}

.search-btn {
    animation: pulse-glow 3s ease-in-out infinite;
}
