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

body {
    background-color: #ffffff;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: #202124;
    line-height: 1.5;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.site-header {
    text-align: center;
    margin-bottom: 2rem;
}
.logo {
    font-size: 2.8rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    background: linear-gradient(120deg, #1e3c72, #2b5b8b);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.logo span {
    font-size: 2.2rem;
    background: none;
    -webkit-background-clip: unset;
    color: #2c7da0;
}
.sub {
    font-size: 0.8rem;
    color: #5f6368;
    margin-top: 6px;
    border-top: 1px solid #eaeef2;
    display: inline-block;
    padding-top: 8px;
}

.search-section {
    margin: 1.2rem 0 2rem;
}
.search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #dfe1e5;
    border-radius: 48px;
    padding: 8px 16px 8px 20px;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.search-box:hover,
.search-box:focus-within {
    border-color: #bdc1c9;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}
.search-icon {
    color: #9aa0a6;
    font-size: 1.25rem;
    margin-right: 12px;
}
.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 12px 0;
    background: transparent;
    font-weight: 400;
    color: #202124;
}
.search-input::placeholder {
    color: #bdc1c6;
}
.search-btn {
    background: #f8f9fa;
    border: 1px solid #dfe1e5;
    color: #3c4043;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 32px;
    cursor: pointer;
    transition: background 0.2s;
    margin-left: 8px;
}
.search-btn:hover {
    background: #f1f3f4;
}
.search-note {
    font-size: 0.7rem;
    color: #8e8e93;
    margin-top: 10px;
    text-align: center;
}

.hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 20px 0 32px;
}
.hot-tag {
    background: #f2f4f7;
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 0.8rem;
    border: 1px solid #e4e7ec;
}
.hot-tag a {
    text-decoration: none;
    color: #1a73e8;
    font-weight: 500;
}
.hot-tag a:hover {
    text-decoration: underline;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid #ebedef;
    padding-bottom: 8px;
    margin: 28px 0 18px 0;
}
.result-stats {
    font-size: 0.8rem;
    color: #5f6368;
}
.result-options {
    font-size: 0.75rem;
    color: #1a73e8;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.result-item {
    border-bottom: 1px solid #f0f2f5;
    padding-bottom: 18px;
}
.result-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 6px;
}
.result-title a {
    text-decoration: none;
    color: #1a0dab;
}
.result-title a:hover {
    text-decoration: underline;
}
.result-meta {
    margin: 10px 0 0px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.75rem;
    color: #006621;
    margin-bottom: 6px;
    font-family: monospace;
}
.result-url {
    color: #006621;
}
.file-size {
    background: #f1f3f4;
    padding: 2px 8px;
    border-radius: 20px;
    color: #3c4043;
    font-family: monospace;
}
.result-desc {
    font-size: 0.85rem;
    color: #4d5156;
    line-height: 1.45;
    margin-top: 6px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 42px;
    font-size: 0.8rem;
}
.pagination a {
    text-decoration: none;
    color: #1a73e8;
    padding: 6px 12px;
    border-radius: 24px;
    background: #f1f3f4;
}
.pagination a:hover {
    background: #e4e8ed;
}
.pagination span {
    padding: 6px 12px;
    color: #5f6368;
}

.footer {
    margin-top: 56px;
    text-align: center;
    font-size: 0.7rem;
    color: #8e8e93;
    border-top: 1px solid #eef2f6;
    padding-top: 24px;
}
.footer a {
    color: #5f6368;
    text-decoration: none;
}
.footer a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .container {
        padding: 1.2rem 1rem 2rem;
    }
    .logo {
        font-size: 2.2rem;
    }
    .search-box {
        padding: 6px 12px 6px 16px;
    }
    .search-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
    .result-title {
        font-size: 1rem;
    }
    .result-meta {
        gap: 10px;
        font-size: 0.7rem;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: #202124;
    line-height: 1.5;
}

.container {
    max-width: 880px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

/* 导航栏 + 搜索条 */
.navbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid #eaeef2;
    padding: 0.75rem 0 0.75rem 0;
    margin-bottom: 1.5rem;
    gap: 16px;
}
.nav-logo {
    font-size: 1.6rem;
    font-weight: 600;
    background: linear-gradient(120deg, #1e3c72, #2b5b8b);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.nav-logo span {
    font-size: 1.4rem;
    color: #2c7da0;
}
.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}
.nav-links a {
    text-decoration: none;
    color: #3c4043;
    font-size: 0.9rem;
    font-weight: 500;
}
.nav-links a:hover {
    color: #1a73e8;
}
.search-bar {
    display: flex;
    align-items: center;
    background: #f1f3f4;
    border-radius: 32px;
    padding: 5px 12px;
    border: 1px solid #e0e4e9;
    transition: all 0.2s;
}
.search-bar:focus-within {
    background: #fff;
    border-color: #1a73e8;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.85rem;
    padding: 8px 4px;
    width: 160px;
}
.search-bar button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px 8px;
    color: #5f6368;
}
.search-bar button:hover {
    color: #1a73e8;
}

/* 面包屑 */
.breadcrumb {
    font-size: 0.8rem;
    margin-bottom: 24px;
    color: #5f6368;
}
.breadcrumb a {
    color: #1a73e8;
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb span {
    margin: 0 6px;
}

/* 资源详情卡片 */
.resource-card {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 28px;
    padding: 28px 32px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.resource-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #202124;
    border-left: 5px solid #2c7da0;
    padding-left: 18px;
}
.info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 24px;
}
.info-item {
    flex: 1;
    min-width: 150px;
}
.info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #5f6368;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.info-value {
    font-size: 1rem;
    font-weight: 500;
    color: #202124;
    word-break: break-all;
}
.file-size-badge {
    background: #e9f0e9;
    color: #2e7d32;
    padding: 4px 12px;
    border-radius: 40px;
    display: inline-block;
    font-size: 0.85rem;
}
.extract-code {
    background: #f1f3f4;
    font-family: monospace;
    padding: 4px 12px;
    border-radius: 32px;
    font-size: 0.9rem;
}
.description {
    margin: 20px 0 28px;
    line-height: 1.6;
    color: #3c4043;
}
.download-box {
    background: #f0f7ff;
    border-radius: 24px;
    padding: 24px 20px;
    text-align: center;
    margin-top: 16px;
}
.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 16px;
}
.download-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1a73e8;
    color: white;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 48px;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s, transform 0.1s;
    border: none;
    cursor: pointer;
}
.download-link:hover {
    background: #1557b0;
    transform: translateY(-1px);
}
.copy-link-btn {
    background: #34a853;
}
.copy-link-btn:hover {
    background: #2c8e47;
}
.extract-info {
    margin-top: 12px;
    font-size: 0.75rem;
    color: #5f6368;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    align-items: baseline;
}
.extract-code-span {
    font-family: monospace;
    background: #eef2f6;
    padding: 4px 12px;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1e3c72;
}
.copy-extract-btn {
    background: none;
    border: 1px solid #bdc1c6;
    padding: 4px 12px;
    border-radius: 32px;
    font-size: 0.7rem;
    cursor: pointer;
    color: #1a73e8;
    transition: 0.2s;
}
.copy-extract-btn:hover {
    background: #eef2f6;
}
.backup-link {
    display: inline-block;
    color: #1a73e8;
    font-size: 0.8rem;
    text-decoration: none;
    margin-top: 12px;
}
.backup-link:hover {
    text-decoration: underline;
}

/* 相关推荐 */
.related-section {
    margin-top: 40px;
}
.related-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 18px;
    border-left: 4px solid #2c7da0;
    padding-left: 14px;
}
.related-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.related-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 12px 0;
    border-bottom: 1px solid #f0f2f5;
}
.related-item a {
    text-decoration: none;
    color: #1a0dab;
    font-weight: 500;
    font-size: 0.95rem;
}
.related-item a:hover {
    text-decoration: underline;
}
.related-size {
    font-size: 0.7rem;
    color: #5f6368;
    background: #f1f3f4;
    padding: 2px 10px;
    border-radius: 20px;
}

.footer {
    margin-top: 56px;
    text-align: center;
    font-size: 0.7rem;
    color: #8e8e93;
    border-top: 1px solid #eef2f6;
    padding-top: 24px;
}
.footer a {
    color: #5f6368;
    text-decoration: none;
}
.footer a:hover {
    text-decoration: underline;
}

@media (max-width: 680px) {
    .container {
        padding: 1rem 1rem 2rem;
    }
    .navbar {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-links {
        justify-content: center;
    }
    .search-bar {
        justify-content: space-between;
    }
    .search-bar input {
        width: 100%;
    }
    .resource-card {
        padding: 20px;
    }
    .resource-title {
        font-size: 1.4rem;
    }
    .info-grid {
        /*flex-direction: column;*/
        gap: 12px;
    }
    .download-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .download-link {
        justify-content: center;
    }
}