/* FlyHub 完整设计稿样式 */

:root {
    --bg: #fafaf8;
    --bg-dark: #1a1a1a;
    --surface: #ffffff;
    --surface-2: #f4f4f1;
    --border: #e8e8e4;
    --text: #1a1a1a;
    --text-2: #5a5a5a;
    --text-3: #9a9a9a;
    --accent: #2d5a3d;
    --accent-light: #e8f0ea;
}

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

html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

body {
    background: var(--bg) !important;
    color: var(--text) !important;
    font-family: 'Inter', 'Noto Sans SC', -apple-system, sans-serif !important;
    line-height: 1.6 !important;
    -webkit-font-smoothing: antialiased;
    text-orientation: mixed !important;
}

/* 隐藏 GeneratePress 默认元素 */
.site-header,
.site-footer,
.entry-header,
#comments,
.navigation,
.woocommerce-breadcrumb,
#primary,
#main,
.site-info {
    display: none !important;
}

/* 清除 GeneratePress 容器限制 */
#page,
#content,
.inner-wrap,
.entry-content,
.page-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

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

/* Nav */
.nav {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(250,250,248,0.9);
    backdrop-filter: blur(12px);
    z-index: 100;
    width: 100%;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
}
.logo {
    font-family: 'Noto Serif SC', serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    white-space: nowrap;
}
.logo-main { color: var(--text); }
.logo-accent { color: var(--accent); }
.logo-dot { 
    color: var(--text-3);
    font-size: 0.8em;
    font-weight: 500;
    margin-left: 2px;
}
.logo-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 400;
    color: var(--text-3);
    letter-spacing: 0.08em;
    margin-top: 6px;
}
.nav-menu {
    display: flex;
    gap: 32px;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}
.nav-link {
    font-size: 14px;
    color: var(--text-2);
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
    white-space: nowrap;
    writing-mode: horizontal-tb !important;
}
.nav-link:hover { color: var(--text); }
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-direction: row;
}
.lang-switch {
    font-size: 13px;
    color: var(--text-3);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    background: none;
    border: none;
    font-family: inherit;
}
.lang-switch:hover { color: var(--text); background: var(--surface-2); }
.btn-submit {
    padding: 8px 18px;
    background: var(--text);
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
}
.btn-submit:hover { background: var(--accent); }

/* Hero */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    width: 100%;
}
.hero h1 {
    font-family: 'Noto Serif SC', serif !important;
    font-size: 56px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-bottom: 24px !important;
    letter-spacing: -0.02em !important;
    color: var(--text) !important;
    writing-mode: horizontal-tb !important;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.hero-desc {
    font-size: 18px;
    color: var(--text-2);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.7;
    writing-mode: horizontal-tb !important;
}
.search-bar {
    max-width: 560px;
    margin: 0 auto;
    position: relative;
}
.search-bar input {
    width: 100%;
    padding: 16px 24px 16px 52px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: all 0.2s;
}
.search-bar input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(45,90,61,0.08);
}
.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-3);
    width: 18px;
    height: 18px;
}

/* Categories */
.categories {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    width: 100%;
}
.section-label {
    font-size: 13px;
    color: var(--text-3);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 32px;
    font-weight: 500;
    text-align: center;
}
.cat-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
}
.cat-item {
    aspect-ratio: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.cat-item:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    transform: translateY(-2px);
}
.cat-icon {
    width: 32px;
    height: 32px;
    opacity: 0.7;
}
.cat-name {
    font-size: 13px;
    color: var(--text-2);
    font-weight: 500;
    writing-mode: horizontal-tb !important;
}

/* Tabs & Cards */
.latest {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    width: 100%;
}
.tabs {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 40px;
    background: var(--surface-2);
    padding: 4px;
    border-radius: 100px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
.tab {
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 14px;
    color: var(--text-2);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: transparent;
    font-family: inherit;
}
.tab.active {
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    font-weight: 500;
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
}
.project-card:hover {
    border-color: #d0d0cc;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.card-cover {
    height: 180px;
    background: linear-gradient(135deg, #e8e8e4 0%, #d8d8d4 100%);
    position: relative;
    overflow: hidden;
}
.card-body {
    padding: 20px;
}
.card-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-light);
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 12px;
}
.card-title {
    font-size: 17px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
    color: var(--text) !important;
    writing-mode: horizontal-tb !important;
}
.card-desc {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 16px;
    writing-mode: horizontal-tb !important;
}
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.card-author {
    font-size: 13px;
    color: var(--text-3);
}
.card-date {
    font-size: 12px;
    color: var(--text-3);
}
.more-link {
    text-align: center;
    margin-top: 40px;
}
.more-link a {
    display: inline-block;
    padding: 12px 28px;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-2);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}
.more-link a:hover {
    border-color: var(--text);
    color: var(--text);
}

/* Trending */
.trending {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    background: var(--surface-2);
    width: 100%;
}
.trending-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}
.trending-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.trending-item {
    display: flex;
    gap: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
}
.trending-item:hover {
    border-color: #d0d0cc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.trending-thumb {
    width: 140px;
    height: 90px;
    background: #e8e8e4;
    border-radius: 8px;
    flex-shrink: 0;
}
.trending-info {
    flex: 1;
}
.trending-rank {
    font-size: 12px;
    color: var(--text-3);
    font-weight: 600;
    margin-bottom: 4px;
}
.trending-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
    writing-mode: horizontal-tb !important;
}
.trending-desc {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.5;
    writing-mode: horizontal-tb !important;
}
.random-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
}
.random-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--accent);
    font-size: 24px;
}
.random-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}
.random-desc {
    font-size: 13px;
    color: var(--text-2);
    margin-bottom: 24px;
    line-height: 1.6;
}
.btn-random {
    padding: 10px 24px;
    background: var(--text);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.btn-random:hover { background: var(--accent); }

/* Stats */
.stats {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    width: 100%;
}
.stats-grid {
    display: flex;
    justify-content: center;
    gap: 80px;
}
.stat-num {
    font-size: 36px;
    font-weight: 700;
    font-family: 'Noto Serif SC', serif;
    margin-bottom: 4px;
    color: var(--text);
}
.stat-label {
    font-size: 13px;
    color: var(--text-3);
}

/* Footer */
.footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--border);
    background: var(--bg-dark);
    color: #999;
    width: 100%;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo {
    font-family: 'Noto Serif SC', serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}
.footer-tagline {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
}
.footer-col-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}
.footer-link {
    display: block;
    font-size: 14px;
    color: #888;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s;
    cursor: pointer;
}
.footer-link:hover { color: #fff; }
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid #333;
    text-align: center;
    font-size: 13px;
    color: #666;
}

/* Fly cursor follower */
.fly-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 9999;
    will-change: transform;
}
.fly-wing-left, .fly-wing-right {
    transition: transform 0.4s, opacity 0.4s;
}
.fly-wing-left {
    transform-origin: 100% 50%;
}
.fly-wing-right {
    transform-origin: 0% 50%;
}
.flying .fly-wing-left, .flying .fly-wing-right {
    animation: wingFlap 0.15s ease-in-out infinite alternate;
}
.landed .fly-wing-left {
    opacity: 0.2 !important;
    transform: rotate(-35deg) translateY(2px) scale(0.85);
}
.landed .fly-wing-right {
    opacity: 0.2 !important;
    transform: rotate(35deg) translateY(2px) scale(0.85);
}
@keyframes wingFlap {
    from { transform: rotate(-5deg) scaleY(0.95); opacity: 0.35; }
    to { transform: rotate(5deg) scaleY(1.05); opacity: 0.45; }
}
.fly-cursor svg {
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

/* 响应式 */
@media (max-width: 1024px) {
    .cat-grid { grid-template-columns: repeat(4, 1fr); }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .trending-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hero h1 { font-size: 36px !important; }
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .cards-grid { grid-template-columns: 1fr; }
    .stats-grid { gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Single Post ===== */
.single-post {
    padding: 80px 0;
    min-height: 60vh;
}
.single-container {
    max-width: 760px;
}
.single-header {
    margin-bottom: 48px;
}
.single-categories {
    margin-bottom: 16px;
}
.single-categories a {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-light);
    padding: 3px 10px;
    border-radius: 100px;
    margin-right: 8px;
    text-decoration: none;
}
.single-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.single-meta {
    font-size: 14px;
    color: var(--text-3);
}
.single-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-2);
}
.single-content p {
    margin-bottom: 24px;
}
.single-content h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 28px;
    font-weight: 700;
    margin: 48px 0 20px;
    color: var(--text);
}
.single-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 36px 0 16px;
    color: var(--text);
}
.single-content a {
    color: var(--accent);
    text-decoration: underline;
}
.single-content a:hover {
    color: var(--text);
}
.single-content ul, .single-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}
.single-content li {
    margin-bottom: 8px;
}