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

:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --hover-bg: #f8f9fa;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --radius: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* 背景图片配置 - 可自行修改 */
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

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

/* Header */
header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.6s ease-out;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Navigation Sections */
.nav-section {
    margin-bottom: 50px;
    animation: fadeInUp 0.6s ease-out;
}

.nav-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-left: 4px;
    color: var(--text-color);
}

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

/* Navigation Items */
.nav-item {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.5);
}

.nav-item:hover::before {
    opacity: 1;
}

.nav-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.nav-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: block;
}

/* Map Container */
.map-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.6s ease-out;
}

.map-search-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.map-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
    color: var(--text-color);
    font-family: inherit;
}

.map-search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.map-search-btn {
    padding: 12px 32px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.map-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.map-search-btn:active {
    transform: translateY(0);
}

.map-iframe-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-iframe-wrapper iframe {
    display: block;
    width: 100%;
    border-radius: 8px;
}

.map-tip {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid #3b82f6;
    border-radius: 6px;
}

.map-tip p {
    margin: 0 0 8px 0;
    color: var(--text-color);
    font-size: 0.9rem;
}

.map-tip p:last-child {
    margin-bottom: 0;
}

.map-link {
    display: inline-block;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.map-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: auto;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 30px 16px;
    }

    header h1 {
        font-size: 2rem;
    }

    .nav-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .nav-item {
        padding: 20px;
    }

    .nav-title {
        font-size: 0.9rem;
    }

    .nav-desc {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.75rem;
    }

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

    .map-container {
        padding: 16px;
    }

    .map-search-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    .map-search-btn {
        width: 100%;
    }

    .map-iframe-wrapper iframe {
        height: 350px;
    }

    .map-tip {
        padding: 10px 12px;
    }

    .map-tip p {
        font-size: 0.85rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #e0e0e0;
        --text-secondary: #a0a0a0;
        --border-color: #333333;
        --hover-bg: #252525;
        --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .nav-item {
        background: rgba(30, 30, 30, 0.7);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .nav-item:hover {
        background: rgba(40, 40, 40, 0.85);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .nav-item::before {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    }

    .map-container {
        background: rgba(30, 30, 30, 0.7);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .map-search-input {
        background: #2a2a2a;
        border-color: #374151;
        color: #e5e7eb;
    }

    .map-search-input:focus {
        background: #2a2a2a;
    }

    .map-search-input::placeholder {
        color: #6b7280;
    }

    .map-tip {
        background: rgba(59, 130, 246, 0.15);
        border-left-color: #60a5fa;
    }
}
