/* 重置和基礎樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: #4a5568;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    min-height: 100vh;
}

a {
    color: #4a5568;
    text-decoration: none;
}

a:hover {
    color: #3182ce;
    text-decoration: none;
}

.container {
    width: 1000px;
    margin: 0 auto;
    position: relative;
}

/* 頂部工具欄 */
.top-bar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    height: 32px;
    line-height: 32px;
    font-size: 13px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome {
    color: #718096;
    font-weight: 500;
}

.tools {
    color: #718096;
    font-weight: 400;
}

/* 搜索區域 */
.search-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    padding: 25px 0 35px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.logo h1 {
    text-align: center;
    font-size: 32px;
    color: #3182ce;
    margin-bottom: 25px;
    font-weight: 300;
    letter-spacing: 1px;
}

/* 搜索框 */
.search-box {
    text-align: center;
    margin-bottom: 15px;
}

.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.google-search {
    display: inline-block;
    position: relative;
}

.search-input {
    width: 420px;
    height: 40px;
    padding: 0 50px 0 18px;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
    background: white;
}

.search-btn {
    position: absolute;
    right: 2px;
    top: 2px;
    width: 36px;
    height: 36px;
    background: #3182ce;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 14px;
    border-radius: 18px;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #2c5aa0;
    transform: scale(1.05);
}

/* 站內搜索 */
.site-search-form {
    display: flex;
    align-items: center;
    gap: 5px;
}

.site-search-input {
    width: 220px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    font-size: 13px;
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.site-search-input:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
    background: white;
}

.site-search-btn {
    height: 36px;
    padding: 0 15px;
    background: rgba(237, 242, 247, 0.8);
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    font-size: 13px;
    cursor: pointer;
    color: #4a5568;
    transition: all 0.3s ease;
}

.site-search-btn:hover {
    background: rgba(226, 232, 240, 0.9);
    border-color: #cbd5e0;
}



/* 主要內容區域 */
.main-content {
    background: transparent;
    padding: 25px 0;
}

/* 導航行 */
.nav-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.nav-row:last-child {
    border-bottom: none;
}

.nav-row a {
    color: #4a5568;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-row a:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #3182ce;
    border-color: rgba(49, 130, 206, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.15);
    text-decoration: none;
}



/* 頁腳 */
.footer {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    padding: 25px 0;
    text-align: center;
    margin-top: 40px;
}

.copyright {
    color: #718096;
    font-size: 13px;
    font-weight: 400;
}

/* 響應式設計 */
@media (max-width: 1024px) {
    .container {
        width: 95%;
        max-width: 1000px;
    }
}

@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
        gap: 10px;
    }

    .search-input {
        width: 90%;
        max-width: 400px;
    }

    .site-search-input {
        width: 250px;
    }

    .logo h1 {
        font-size: 28px;
    }

    .nav-row {
        gap: 10px;
    }

    .nav-row a {
        font-size: 12px;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 98%;
    }

    .search-input {
        width: 85%;
        max-width: 300px;
    }

    .site-search-input {
        width: 200px;
    }

    .logo h1 {
        font-size: 24px;
    }

    .nav-row {
        gap: 8px;
    }

    .nav-row a {
        font-size: 11px;
        padding: 3px 6px;
    }
}

/* 滾動條樣式 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(237, 242, 247, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(160, 174, 192, 0.6);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(113, 128, 150, 0.8);
}
