/*
Theme Name: 精选导航
Theme URI: https://www.runoob.com
Author: Runoob
Author URI: https://www.runoob.com
Description: 简约高科技风格的网站导航主题，基于苹果设计风格，带有动态粒子背景动画。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: runoob-nav
Tags: custom-background, custom-logo, custom-menu, featured-images, translation-ready
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=Noto+Serif+SC:wght@300;400;600&display=swap');

:root {
    --accent-a: #3b82f6;
    --accent-b: #f59e0b;
    --text-1: #0f172a;
    --text-2: #475569;
    --text-3: #94a3b8;
    --surface: rgba(255,255,255,0.72);
    --border: rgba(15,23,42,0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', 'Noto Serif SC', sans-serif;
    background: #f0f4ff;
    color: var(--text-1);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Tech Canvas Background */
#bg {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.bg-wash {
    position: fixed;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse 70% 60% at 15% 20%, rgba(147,197,253,0.35) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 85% 75%, rgba(253,186,116,0.28) 0%, transparent 65%),
        radial-gradient(ellipse 50% 45% at 55% 10%, rgba(167,243,208,0.22) 0%, transparent 60%);
    pointer-events: none;
}

.page {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 56px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(240,244,255,0.75);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border-bottom: 1px solid var(--border);
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-1);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.2px;
}

.site-branding svg {
    flex-shrink: 0;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.main-navigation a {
    padding: 7px 16px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-2);
    transition: background 0.2s, color 0.2s;
}

.main-navigation a:hover {
    background: rgba(15,23,42,0.06);
    color: var(--text-1);
}

.main-navigation .nav-pill {
    background: var(--text-1) !important;
    color: #fff !important;
    font-weight: 500 !important;
}

.main-navigation .nav-pill:hover {
    opacity: 0.85;
}

/* Main Content */
.site-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 48px 100px;
    gap: 56px;
}

/* Eyebrow */
.eyebrow {
    text-align: center;
    animation: fadeUp 0.8s 0.2s cubic-bezier(0.16,1,0.3,1) both;
}

.eyebrow-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 14px;
}

.eyebrow-tag::before,
.eyebrow-tag::after {
    content: '';
    flex: 1;
    height: 1px;
    width: 28px;
    background: var(--border);
}

.eyebrow h1 {
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 300;
    letter-spacing: -1px;
    line-height: 1.15;
    color: var(--text-1);
}

.eyebrow h1 strong {
    font-weight: 600;
    background: linear-gradient(120deg, #3b82f6 20%, #a855f7 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.eyebrow p {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 300;
    color: var(--text-2);
    line-height: 1.6;
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    max-width: 860px;
    animation: fadeUp 0.8s 0.35s cubic-bezier(0.16,1,0.3,1) both;
}

.site-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 40px 36px 36px;
    border-radius: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    box-shadow: 0 2px 24px rgba(15,23,42,0.06), 0 0 0 1px rgba(255,255,255,0.5) inset;
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s ease;
}

.site-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.card-a::after {
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59,130,246,0.08), transparent);
}

.card-b::after {
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(245,158,11,0.1), transparent);
}

.site-card:hover::after {
    opacity: 1;
}

.site-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(15,23,42,0.12), 0 0 0 1px rgba(255,255,255,0.6) inset;
}

/* Colored top bar */
.card-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 24px 24px 0 0;
}

.card-a .card-bar {
    background: linear-gradient(90deg, #3b82f6, #818cf8);
}

.card-b .card-bar {
    background: linear-gradient(90deg, #f59e0b, #fb923c);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-a .card-icon-wrap {
    background: rgba(59,130,246,0.1);
}

.card-b .card-icon-wrap {
    background: rgba(245,158,11,0.1);
}

.card-badge {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
}

.card-a .card-badge {
    background: rgba(59,130,246,0.1);
    color: #3b82f6;
}

.card-b .card-badge {
    background: rgba(245,158,11,0.12);
    color: #d97706;
}

.site-card h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.card-description {
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-2);
    font-weight: 300;
    flex: 1;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.feature-tag {
    font-size: 11px;
    color: var(--text-2);
    background: rgba(15,23,42,0.05);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 100px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.card-url {
    font-size: 12px;
    color: var(--text-3);
    font-family: monospace;
    letter-spacing: 0.2px;
}

.card-link-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 16px;
    border-radius: 100px;
    transition: opacity 0.2s, transform 0.2s;
}

.card-a .card-link-btn {
    background: rgba(59,130,246,0.1);
    color: #3b82f6;
}

.card-b .card-link-btn {
    background: rgba(245,158,11,0.1);
    color: #d97706;
}

.site-card:hover .card-link-btn {
    opacity: 0.8;
    transform: translateX(2px);
}

/* Stats Strip */
.stats-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 20px 40px;
    border-radius: 20px;
    background: rgba(255,255,255,0.55);
    border: 1px solid var(--border);
    backdrop-filter: blur(16px);
    width: 100%;
    max-width: 860px;
    animation: fadeUp 0.8s 0.5s cubic-bezier(0.16,1,0.3,1) both;
}

.stats-item {
    text-align: center;
}

.stats-number {
    font-family: 'Noto Serif SC', serif;
    font-size: 26px;
    font-weight: 300;
    color: var(--text-1);
    line-height: 1;
}

.stats-label {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 4px;
    letter-spacing: 0.3px;
}

.stats-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

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

/* Footer */
.site-footer {
    position: relative;
    z-index: 2;
    padding: 24px 56px;
    border-top: 1px solid var(--border);
    background: rgba(240,244,255,0.6);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copyright {
    font-size: 13px;
    color: var(--text-3);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-3);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-2);
}

/* WordPress Required */
.wp-core-ui .button-primary {
    background: var(--accent-a);
    border-color: var(--accent-a);
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* Responsive */
@media (max-width: 680px) {
    .site-header {
        padding: 0 20px;
    }

    .main-navigation ul li:not(:last-child) a:not(.nav-pill) {
        display: none;
    }

    .site-main {
        padding: 48px 20px 72px;
    }

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

    .stats-strip {
        flex-wrap: wrap;
        gap: 20px;
    }

    .stats-divider {
        display: none;
    }

    .site-footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}