/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f5f5f5;
}

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

/* Header 样式 */
.header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
}

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

.logo-text {
    color: white;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.nav-link:hover {
    opacity: 0.8;
}

/* Hero Section 样式 */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #06b6d4 100%);
    padding: 4rem 0;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content 样式 */
.main-content {
    background: white;
    margin-top: -2rem;
    border-radius: 20px 20px 0 0;
    padding: 3rem 0;
    min-height: calc(100vh - 300px);
}

/* Tools Section 样式 */
.tools-section {
    margin-bottom: 4rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-bar {
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    border-radius: 2px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

/* Tools Grid 样式 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

/* 工具卡片高亮样式 */
.tool-card-highlighted {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #3b82f6;
    border-width: 2px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
    animation: highlightPulse 2s ease-in-out infinite;
}

.tool-card-highlighted:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.tool-card-dimmed {
    opacity: 0.4;
    filter: grayscale(0.5);
    transition: all 0.3s ease;
}

.tool-card-dimmed:hover {
    opacity: 0.6;
    filter: grayscale(0.3);
}

@keyframes highlightPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 4px 16px rgba(59, 130, 246, 0.5);
    }
}

.tool-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.tool-icon svg {
    width: 36px;
    height: 36px;
}

.tool-icon.red {
    background: #ef4444;
}

.tool-icon.blue {
    background: #3b82f6;
}

.tool-icon.green {
    background: #10b981;
}

.tool-icon.purple {
    background: #a855f7;
}

.tool-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.tool-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.4;
}

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

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

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .main-content {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 3rem 0;
    }

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

/* Smart Input Section 样式 */
.smart-input-section {
    margin-bottom: 3rem;
}

.smart-input-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.smart-input-container {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.smart-input-container:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.smart-input-upload-btn {
    width: 48px;
    height: 48px;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 0.5rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

.smart-input-upload-btn:hover {
    background: #e5e7eb;
}

.smart-input-upload-btn svg {
    width: 24px;
    height: 24px;
    color: #374151;
}

.smart-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    color: #1f2937;
    background: transparent;
}

.smart-input::placeholder {
    color: #9ca3af;
}

/* Available Tools Modal 样式 */
.available-tools-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.available-tools-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.available-tools-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.available-tools-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #6b7280;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.close-modal-btn:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.available-tools-list {
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
}

.available-tool-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.5rem;
    border: 1px solid #e5e7eb;
}

.available-tool-item:hover {
    background: #f9fafb;
    border-color: #3b82f6;
    transform: translateX(4px);
}

.available-tool-item:last-child {
    margin-bottom: 0;
}

.available-tool-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.available-tool-icon svg {
    width: 24px;
    height: 24px;
}

.available-tool-icon.red {
    background: #ef4444;
}

.available-tool-icon.blue {
    background: #3b82f6;
} 

.available-tool-icon.green {
    background: #10b981;
}

.available-tool-icon.purple {
    background: #a855f7;
}

.available-tool-info {
    flex: 1;
}

.available-tool-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.available-tool-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
}

.available-tools-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
}

.cancel-btn {
    padding: 0.5rem 1.5rem;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-btn:hover {
    background: #e5e7eb;
}

/* Footer 样式 */
.footer {
    background: #1a1a2e;
    color: #ffffff;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-description {
    font-size: 0.9rem;
    color: #d1d5db;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.footer-links-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #3b82f6;
}

.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
    font-size: 0.9rem;
}

.footer-copyright p {
    margin: 0;
}

/* Footer 响应式设计 */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 2rem 0 1rem;
    }
}