/*
Theme Name: NoDrill Diaries Theme
Theme URI: https://junjieg.com
Author: NoDrill Diaries
Description: A clean, modern theme for renter-friendly smart living and gift guides.
Version: 1.0
License: GPL-2.0-or-later
Text Domain: no-drill-diaries
*/

/* ========== 整体渐变背景 (蓝灰调) ========== */
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a202c;
    background: linear-gradient(180deg, #dce3ea 0%, #e9eef4 35%, #f3f6f9 70%, #ffffff 100%);
    background-attachment: fixed;
    line-height: 1.8;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: #1d4ed8;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ========== 头部导航 ========== */
.site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 22px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.site-branding h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #0f172a;
}
.site-branding h1 a {
    color: #0f172a;
}
.site-branding p {
    margin: 4px 0 0;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 32px;
}
.main-navigation a {
    font-weight: 600;
    color: #334155;
    font-size: 16px;
    letter-spacing: 0.2px;
}
.main-navigation a:hover {
    color: #2563eb;
}

/* ========== 英雄区域 ========== */
.hero-message {
    padding: 90px 0 60px;
    text-align: center;
    background: transparent;
}
.hero-message h2 {
    font-size: 76px;
    margin-bottom: 20px;
    color: #0f172a;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
}
.hero-message p {
    font-size: 16px;
    color: #64748b;
    max-width: 660px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

/* ========== 首页磨砂玻璃层次 ========== */
body.home .hero-message + .container,
body.home .hero-message + .container + .container {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 40px 36px 28px;
    margin-top: 28px;
    margin-bottom: 28px;
    box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.7);
}
body.home .category-grid {
    padding: 0 0 30px;
}

/* ========== 分类卡片 ========== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 50px 0 60px;
}
.category-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    padding: 36px 32px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border-top: 4px solid #2563eb;
    position: relative;
}
.category-card:nth-child(2) {
    border-top-color: #e07b5a;
}
.category-card:nth-child(3) {
    border-top-color: #2d6a4f;
}
.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.15);
    border-color: #cbd5e1;
}
.category-card h3 {
    margin-top: 0;
    font-size: 24px;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 12px;
}
.category-card p {
    color: #475569;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.7;
    flex-grow: 1;
}
.card-link {
    font-weight: 700;
    color: #2563eb;
    font-size: 16px;
    margin-top: auto;
}

/* ========== 内容区域 ========== */
.container h2 {
    font-size: 26px;
    color: #0f172a;
    margin-bottom: 28px;
    font-weight: 700;
    letter-spacing: -0.3px;
}
.container hr {
    margin: 24px 0 48px;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.site-main {
    padding: 50px 0;
}
.entry-title {
    font-size: 24px;
    margin: 0 0 8px;
    font-weight: 700;
}
.entry-title a {
    color: #0f172a;
}
.entry-title a:hover {
    color: #2563eb;
}
.entry-meta {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}
.entry-content {
    margin-bottom: 40px;
    color: #334155;
}

/* ========== 页脚 ========== */
.site-footer {
    background: #1e293b;
    border-top: none;
    padding: 40px 0;
    margin-top: 80px;
}
.footer-links {
    text-align: center;
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.footer-links a {
    color: #cbd5e1;
    font-size: 14px;
    transition: color 0.2s ease;
}
.footer-links a:hover {
    color: #ffffff;
}
.footer-disclosure {
    max-width: 600px;
    margin: 0 auto 14px;
    text-align: center;
}
.footer-disclosure p {
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}
.footer-copy {
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .hero-message h2 {
        font-size: 36px;
    }
    .site-header .container {
        flex-direction: column;
        gap: 14px;
    }
    .main-navigation ul {
        gap: 20px;
    }
    body.home .hero-message + .container,
    body.home .hero-message + .container + .container {
        border-radius: 16px;
        padding: 24px 20px;
        margin-left: 12px;
        margin-right: 12px;
    }
    .category-card {
        padding: 28px 24px;
    }
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}