/* style.css */
:root {
    --font-title: "Microsoft YaHei", "SimHei", "Hiragino Sans GB", "PingFang SC", "Heiti SC", "WenQuanYi Micro Hei", sans-serif;
    --font-body: "Microsoft YaHei", "Hiragino Sans GB", "PingFang SC", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: #50bddc;
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 60px;
    padding-bottom: 70px;
}

/* 顶部导航栏 */
.top-nav {
    background-color: #333;
    color: white;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background-color: #444;
}

/* 主内容区域 */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

/* 文字区域：半透明背景 */
.text-overlay {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px 40px;
    border-radius: 15px;
    max-width: 80%;
    width: 100%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.text-overlay:hover {
    transform: translateY(-5px);
}

.text-overlay h1 {
    margin: 0 0 10px 0;
    font-size: 3.5em;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    letter-spacing: 1px;
    font-family: var(--font-title);
}

.text-overlay h2 {
    margin: 0 0 15px 0;
    font-size: 2em;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
    font-family: var(--font-title);
}

.text-overlay p {
    margin: 0;
    font-size: 1.1em;
    color: white;
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    font-family: var(--font-body);
}

.text-overlay a {
    color: #ffeb3b;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.text-overlay a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* 搜索区域 */
.search-container {
    text-align: center;
    padding: 25px;
    border: 2px solid #007BFF;
    border-radius: 12px;
    width: 80%;
    max-width: 520px;
    background-color: white;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
}

.search-container:hover {
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
}

.search-container h2 {
    margin-bottom: 20px;
    font-size: 1.3em;
    color: #333;
    font-weight: 500;
}

.search-container form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.search-container input[type="text"] {
    flex: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border 0.3s ease;
}

.search-container input[type="text"]:focus {
    border-color: #007BFF;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
}

.search-container button {
    padding: 12px 18px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.search-container button:hover {
    background-color: #0056b3;
}

/* 页脚 */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f8f9fa;
    color: #666;
    text-align: center;
    font-size: 0.9rem;
    padding: 1rem;
    border-top: 1px solid #ddd;
    box-shadow: 0 -2px 10px rgba(0,0,0,.1);
    z-index: 1000;
}

footer a {
    color: #007BFF;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .text-overlay {
        max-width: 90%;
        padding: 20px;
    }

    .text-overlay h1 {
        font-size: 2.8em;
    }

    .text-overlay h2 {
        font-size: 1.6em;
    }

    .search-container {
        width: 90%;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .text-overlay h1 {
        font-size: 2.2em;
    }

    .text-overlay h2 {
        font-size: 1.3em;
    }

    .search-container h2 {
        font-size: 1.1em;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
    }

    .container {
        flex-direction: column;
    }
}