:root {
    --primary-color: #1a73e8;
    --primary-color-hover: #1557b0;
    --text-color: #fff;
    --text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 6px 12px rgba(0, 0, 0, 0.15);
    --transition-speed: 0.2s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #fff;
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('/static/images/background.jpg') no-repeat center center fixed;
    background-size: cover;
    letter-spacing: 0.3px;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.navbar {
    padding: 1.2rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.navbar .container {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
    transition: all var(--transition-speed);
    text-shadow: var(--text-shadow);
    padding: 0.5rem;
}

.nav-link:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

.hero-content {
    max-width: 800px;
    width: 100%;
    padding: 0 1rem;
}

.logo {
    width: 100px;
    height: 100px;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    content: url('/static/images/logo.svg');
}

h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    margin-bottom: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: var(--text-shadow);
    color: var(--text-color);
}

.subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    text-shadow: var(--text-shadow);
}

.search-box {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
}

@media (min-width: 640px) {
    .search-box {
        flex-direction: row;
    }
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--box-shadow);
    transition: all 0.3s;
    width: 100%;
    -webkit-appearance: none;
}

.search-input:focus {
    outline: none;
    background: #fff;
    box-shadow: var(--box-shadow-hover);
}

.search-button {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all var(--transition-speed);
    box-shadow: var(--box-shadow);
    letter-spacing: 0.5px;
    width: 100%;
}

@media (min-width: 640px) {
    .search-button {
        width: auto;
    }
}

.search-button:hover {
    background-color: var(--primary-color-hover);
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-1px);
}

.version {
    font-size: clamp(0.875rem, 3vw, 1rem);
    opacity: 0.8;
    margin-top: 1.5rem;
    font-weight: 500;
    text-shadow: var(--text-shadow);
    color: var(--text-color);
}

.result-section {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2.5rem;
    color: #333;
    width: 100%;
    max-width: 1000px;
    display: none;
    box-shadow: var(--box-shadow);
}

.result-section.active {
    display: block;
}

/* 搜索结果表格样式 */
.search-results {
    width: 100%;
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.results-table th,
.results-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.results-table th {
    background: #f8f9fa;
    font-weight: 500;
    color: #333;
}

.results-table tr:hover {
    background-color: #f8f9fa;
}

.view-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-speed);
}

.view-more:hover {
    color: var(--primary-color-hover);
    transform: translateY(-1px);
}

.error-message {
    color: #dc2626;
    padding: 1.2rem;
    background-color: #fee2e2;
    border-radius: 8px;
    margin-top: 1.2rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.1);
}

.loading {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 3.5vw, 1.1rem);
    font-weight: 500;
    text-shadow: var(--text-shadow);
}

/* 响应式布局 */
@media (max-width: 768px) {
    .search-box {
        flex-direction: column;
    }

    .search-button {
        width: 100%;
    }

    .results-table {
        font-size: 0.9rem;
    }

    .results-table th,
    .results-table td {
        padding: 0.8rem;
    }
    
    .result-section {
        padding: 1.5rem;
        margin: 1.5rem;
        border-radius: 8px;
    }
} 