/* ========= 全局基础样式 ========= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100%;
    height: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, sans-serif;
    background-color: #f9fafb;
    color: #1e293b;
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* ========= 顶部导航栏 ========= */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid #eef2f8;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(0px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 12px 0;
    gap: 16px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-area > i {
    font-size: 1.3rem;
    color: #0f766e;
}
.logo-divider {
    width: 1px;
    height: 24px;
    background: #e2e8f0;
}
.logo-text {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.logo-text span:first-child {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f766e;
}
.logo-text span:last-child {
    font-size: 0.85rem;
    font-weight: 500;
    color: #5b6e8c;
}

/* 六大领域导航栏样式 */
.category-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    padding: 6px 18px;
    border-radius: 60px;
}

.nav-category {
    font-weight: 550;
    font-size: 0.95rem;
    padding: 8px 18px;
    border-radius: 40px;
    color: #1e293b;
    transition: 0.2s;
    white-space: nowrap;
    background: transparent;
}

.nav-category i {
    margin-right: 8px;
    font-size: 0.9rem;
    color: #5b6e8c;
}

.nav-category:hover {
    background: #e6f7f3;
    color: #0f766e;
}

.nav-category:hover i {
    color: #0f766e;
}

@media (max-width: 860px) {
    .navbar {
        flex-direction: column;
        align-items: stretch;
    }
    .category-nav {
        justify-content: center;
        overflow-x: auto;
        border-radius: 40px;
        padding: 6px 12px;
    }
    .nav-category {
        font-size: 0.85rem;
        padding: 6px 14px;
    }
}

/* ========= Hero 区域 ========= */
.hero {
    background: linear-gradient(145deg, #f0fdfa 0%, #e6f7f2 100%);
    border-radius: 2rem;
    margin: 32px 0 48px 0;
    padding: 48px 40px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero .highlight {
    background: linear-gradient(120deg, #0f766e, #2dd4bf);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: #334155;
    max-width: 640px;
    margin: 0 auto 28px auto;
}

/* 搜索表单 */
.hero-search-form {
    max-width: 620px;
    margin: 0 auto;
    background: white;
    border-radius: 60px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: 0.2s;
    display: flex;
    align-items: center;
    padding: 0 0 0 20px;
}
.hero-search-form:hover,
.hero-search-form:focus-within {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #14b8a6;
}
.hero-search-form input[name="keyboard"] {
    flex: 1;
    padding: 16px 12px 16px 0;
    border: none;
    background: transparent;
    font-size: 1rem;
    outline: none;
    font-weight: 400;
}
.hero-search-form button {
    background: #0f766e;
    border: none;
    color: white;
    padding: 0 28px;
    border-radius: 60px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 54px;
    transition: 0.2s;
}
.hero-search-form button:hover {
    background: #0d5c56;
}

/* ========= 通用标题 ========= */
.section-title {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
    color: #0f172a;
}

.section-sub {
    color: #475569;
    margin-bottom: 32px;
    border-left: 4px solid #14b8a6;
    padding-left: 16px;
    font-weight: 500;
}

/* ========= 六大领域卡片 ========= */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 28px;
    margin-bottom: 64px;
}

.category-card {
    background: white;
    border-radius: 24px;
    padding: 22px 20px;
    transition: all 0.25s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f6;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
    border-color: #ccf0eb;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eef2f6;
}

.card-icon {
    width: 44px;
    height: 44px;
    background: #e6f7f3;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #0f766e;
}

.card-header h3 {
    font-size: 1.32rem;
    font-weight: 650;
}

/* 条目列表 */
.item-list {
    gap: 0;
}
.list-entry {
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #eff3f6;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.list-entry:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* 图片样式 */
.entry-img {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1/1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.entry-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 无图样式 */
.list-entry.no-image .entry-img {
    display: none;
}
.list-entry.no-image {
    gap: 0;
}
.list-entry.no-image .entry-content {
    margin-left: 0;
    padding-left: 0;
}

.entry-content {
    flex: 1;
    min-width: 0;
}

.entry-title {
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.45;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.2px;
}
.entry-title a {
    color: #0f172a;
}
.entry-title a:hover {
    color: #0f766e;
}

.entry-summary {
    font-size: 0.75rem;
    color: #8a99b0;
    line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.entry-meta {
    display: flex;
    gap: 14px;
    font-size: 0.7rem;
    color: #9aa9bf;
}
.entry-meta i {
    margin-right: 3px;
    width: 12px;
}

/* 卡片底部链接居右 */
.category-card .card-footer-link {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    gap: 6px;
    margin-top: 12px;
    padding-top: 16px;
    font-weight: 500;
    font-size: 0.85rem;
    color: #0f766e;
    border-top: 1px solid #eef2f6;
    letter-spacing: -0.2px;
}
.card-footer-link i {
    transition: transform 0.2s ease;
}
.card-footer-link:hover i {
    transform: translateX(5px);
}

@media (max-width: 640px) {
    .entry-img {
        width: 52px;
        height: 52px;
    }
    .entry-title {
        font-size: 0.85rem;
    }
    .entry-summary {
        font-size: 0.7rem;
    }
    .card-header h3 {
        font-size: 1.2rem;
    }
}

/* ========= 双列布局：热门问答 / 每日更新 ========= */
.two-col-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 64px;
}

@media (max-width: 780px) {
    .two-col-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.qa-card, .daily-card {
    background: white;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid #edf2f7;
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.block-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
}

.more-link {
    color: #0f766e;
    font-weight: 500;
    font-size: 0.9rem;
}

.question-item {
    padding: 18px 0;
    border-bottom: 1px solid #f1f5f9;
}

.question-item:last-child {
    border-bottom: none;
}

.q-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.q-title a {
    color: #0f172a;
}

.q-title a:hover {
    color: #0f766e;
}

.tag {
    background: #e6f7f3;
    color: #0c6b63;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 30px;
    white-space: nowrap;
}

.q-meta {
    display: flex;
    gap: 20px;
    font-size: 0.8rem;
    color: #5e6f8d;
    margin-top: 8px;
}

.daily-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 22px;
    border-bottom: 1px dashed #eef2f6;
    padding-bottom: 18px;
}

.daily-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.new-badge {
    background-color: #fef3c7;
    color: #b45309;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 30px;
    white-space: nowrap;
}

.daily-content {
    flex: 1;
}

.daily-title {
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.daily-desc {
    font-size: 0.85rem;
    color: #4b5565;
    margin-top: 4px;
}

.daily-time {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 6px;
}

.fresh-banner {
    background: linear-gradient(115deg, #0f766e 0%, #1d9e91 100%);
    border-radius: 28px;
    padding: 28px 32px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.fresh-banner h3 {
    font-size: 1.6rem;
    font-weight: 700;
}

.fresh-banner p {
    font-size: 1rem;
    opacity: 0.9;
}

.fresh-stats {
    background: rgba(255,255,255,0.2);
    border-radius: 60px;
    padding: 10px 24px;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ========= 经验分享网格 ========= */
.insight-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.insight-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
    border: 1px solid #edf2f7;
}

.insight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px -12px rgba(0, 0, 0, 0.12);
}

.insight-card .tag {
    display: inline-block;
    margin-bottom: 12px;
}

.insight-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 8px 0 10px;
}

.insight-card h4 a {
    color: #0f172a;
}

.insight-card h4 a:hover {
    color: #0f766e;
}

.insight-card p {
    color: #475569;
    font-size: 0.85rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .insight-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .insight-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 1.9rem;
    }
    .container {
        padding: 0 18px;
    }
}

/* ========= 页脚样式========= */
.footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 20px 0 !important;
    margin: 0px 0 0 0 !important;
    border-radius: 32px 32px 0 0;
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
    left: 0 !important;
    box-sizing: border-box !important;
}
.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}
.footer-links-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-links-grid a {
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.2s;
}
.footer-links-grid a:hover {
    color: #2dd4bf;
    transform: translateY(-1px);
}
.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 20px;
}
.copyright-text {
    display: block;
    text-align: center;
    line-height: 1.6;
}
.copyright-text span {
    display: block;
}
.beian {
    display: inline-block;
    align-items: center;
    gap: 6px;
}
.beian a, .copyright-text a {
    color: #94a3b8 !important;
    text-decoration: none !important;
}
.beian a:hover, .copyright-text a:hover {
    color: #2dd4bf !important;
}
.disclaimer {
    text-align: center;
    font-size: 0.7rem;
    color: #6c7a91;
    line-height: 1.5;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    margin: 0 !important;
}
.disclaimer a {
    color: #7e8aa2;
}
.disclaimer a:hover {
    color: #2dd4bf;
}
@media (max-width: 768px) {
    .footer-links-grid {
        gap: 16px;
    }
    .footer-links-grid a {
        font-size: 0.8rem;
    }
}

/* ========= SEO 隐藏标题 ========= */
.seo-h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========= 视觉 Slogan 样式 ========= */
.hero-slogan {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.hero-slogan .highlight {
    background: linear-gradient(120deg, #0f766e, #2dd4bf);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}
@media (max-width: 640px) {
    .hero-slogan {
        font-size: 1.9rem;
    }
}
