/* ===== 基础重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --bg: #f0f5ff;
    --bg-dark: #1e1b4b;
    --text: #1e293b;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    --border: #e2e8f0;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-light);
    border-radius: 8px;
    transition: var(--transition);
}

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

.nav-toggle {
    display: none;
    font-size: 24px;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* ===== Hero区域 ===== */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, -20px); }
}

.hero-logo {
    width: 180px;
    margin-bottom: 30px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -1px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 400;
}

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

.search-form {
    display: flex;
    gap: 0;
    background: var(--white);
    border-radius: 50px;
    padding: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 16px 24px;
    font-size: 16px;
    color: var(--text);
    background: transparent;
    border-radius: 50px 0 0 50px;
}

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

.search-btn {
    padding: 12px 32px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    white-space: nowrap;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ===== 通用标题 ===== */
.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 18px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 48px;
}

/* ===== 特色卡片 ===== */
.features {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--white);
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.feature-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== 工具网格 ===== */
.tools {
    padding: 100px 0;
    background: var(--white);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.tool-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.tool-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.tool-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--white);
    flex-shrink: 0;
}

.tool-card-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.tool-card-info .tool-category {
    font-size: 12px;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 2px 10px;
    border-radius: 20px;
    display: inline-block;
}

.tool-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.tool-card-actions {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 13px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary-sm {
    background: var(--primary);
    color: var(--white);
}

.btn-primary-sm:hover {
    background: var(--primary-dark);
}

.btn-outline-sm {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-light);
}

.btn-outline-sm:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.tools-actions {
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* ===== 数据统计 ===== */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-dark), #312e81);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #a5b4fc, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* ===== 使用教程 ===== */
.tutorial {
    padding: 100px 0;
    background: var(--white);
}

.tutorial-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    text-align: center;
    flex: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin: 0 auto 16px;
}

.step h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.step p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.step-arrow {
    font-size: 28px;
    color: var(--primary);
    opacity: 0.5;
}

/* ===== 用户评价 ===== */
.testimonials {
    padding: 100px 0;
    background: var(--bg);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.testimonial-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--white);
    font-weight: 600;
}

.testimonial-author h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.testimonial-author span {
    font-size: 13px;
    color: var(--text-lighter);
}

/* ===== 页脚 ===== */
.footer {
    background: var(--bg-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    width: 140px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-links h4,
.footer-social h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--white);
}

.footer-links a {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== 页面横幅 ===== */
.page-banner {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    color: var(--white);
}

.page-banner h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-banner p {
    font-size: 18px;
    opacity: 0.9;
}

/* ===== 关于页 ===== */
.story {
    padding: 80px 0;
    background: var(--white);
}

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

.story-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text);
}

.story-content p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.mission {
    padding: 80px 0;
    background: var(--bg);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mission-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.mission-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
    margin: 0 auto 16px;
}

.mission-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.mission-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== 时间轴 ===== */
.timeline {
    padding: 80px 0;
    background: var(--white);
}

.timeline-items {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.timeline-items::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-date {
    min-width: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    text-align: center;
    height: fit-content;
}

.timeline-content {
    background: var(--bg);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    flex: 1;
}

.timeline-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-light);
}

/* ===== 团队 ===== */
.team {
    padding: 80px 0;
    background: var(--bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.team-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.team-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--white);
    margin: 0 auto 16px;
}

.team-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.team-card .team-role {
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 8px;
}

.team-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== 联系页 ===== */
.contact {
    padding: 80px 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text);
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.contact-item i {
    font-size: 24px;
    color: var(--primary);
    margin-top: 4px;
}

.contact-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 14px;
    color: var(--text-light);
}

.contact-form-wrapper h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    color: var(--text);
    transition: var(--transition);
    background: var(--white);
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.contact-form button {
    width: 100%;
}

.map {
    padding: 0 0 80px;
    background: var(--white);
}

.map-placeholder {
    height: 300px;
    background: var(--bg);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--text-light);
    border: 2px dashed var(--border);
}

.map-placeholder i {
    font-size: 48px;
    color: var(--primary);
}

.map-placeholder p {
    font-size: 16px;
}

/* ===== 搜索工具页 ===== */
.search-tools {
    padding: 60px 0 80px;
    background: var(--white);
}

.filter-bar {
    margin-bottom: 40px;
}

.filter-bar .search-box {
    display: flex;
    align-items: center;
    background: var(--bg);
    border-radius: var(--radius);
    padding: 0 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.filter-bar .search-box i {
    color: var(--text-lighter);
    font-size: 18px;
}

.filter-bar .search-box input {
    border: none;
    outline: none;
    padding: 14px 16px;
    font-size: 15px;
    background: transparent;
    width: 100%;
}

.category-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.tools-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ===== 工具页 ===== */
.tools-page {
    padding: 60px 0 80px;
    background: var(--white);
}

/* ===== 消息提示 ===== */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: var(--radius);
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    animation: slideIn 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.message.success {
    background: #10b981;
}

.message.error {
    background: #ef4444;
}

.message.info {
    background: var(--primary);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-slider {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        display: none;
        border-bottom: 1px solid var(--border);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 32px;
    }

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

    .hero-logo {
        width: 120px;
    }

    .search-form {
        flex-direction: column;
        border-radius: var(--radius);
        padding: 12px;
    }

    .search-input {
        border-radius: 8px;
        padding: 12px 16px;
        border: 1px solid var(--border);
        margin-bottom: 12px;
    }

    .search-btn {
        border-radius: 8px;
        justify-content: center;
        padding: 12px 24px;
    }

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

    .section-desc {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stat-number {
        font-size: 36px;
    }

    .tutorial-steps {
        flex-direction: column;
        gap: 20px;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .testimonials-slider {
        grid-template-columns: 1fr;
    }

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

    .page-banner h1 {
        font-size: 32px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .mission-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tools-list {
        grid-template-columns: 1fr;
    }

    .category-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }

    .filter-btn {
        white-space: nowrap;
    }
}

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

    .hero-title {
        font-size: 26px;
    }

    .hero-logo {
        width: 100px;
    }

    .logo-text {
        display: none;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }
}