/* ========================================
   NZ HAIXI 复刻主题 - Typecho
   目标: new.nzhaixi.com (WordPress Soledad)
   ======================================== */

/* -------- Reset -------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: 'PT Sans', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #313131;
    background: #f5f5f5;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary, #01579B); text-decoration: none; transition: color .2s; }
a:hover { color: #0288d1; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, button { font-family: inherit; }

/* -------- Container -------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* -------- Top Social Bar -------- */
.top-social {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 8px 0;
    font-size: 13px;
}
.top-social .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-social .social-icons a {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    color: var(--primary, #01579B);
    margin-right: 4px;
    border-radius: 50%;
    transition: all .2s;
}
.top-social .social-icons a:hover {
    background: var(--primary, #01579B);
    color: #fff;
}
.top-social .top-search form {
    display: flex;
    position: relative;
}
.top-social .top-search input {
    width: 180px;
    padding: 5px 30px 5px 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 12px;
    outline: none;
    transition: border-color .2s;
}
.top-social .top-search input:focus { border-color: var(--primary, #01579B); }
.top-social .top-search button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 13px;
}

/* -------- Hero Carousel（首页跑马灯） -------- */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}
.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.15) 100%);
    z-index: 1;
}
.hero-caption {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 0 30px;
    color: #fff;
    text-align: left;
}
.hero-tag {
    display: inline-block;
    background: var(--primary, #01579B);
    color: #fff;
    padding: 3px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.hero-caption h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 8px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.hero-caption p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 14px;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.hero-btn {
    display: inline-block;
    background: var(--primary, #01579B);
    color: #fff !important;
    padding: 7px 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 3px;
    text-transform: uppercase;
    transition: background .2s, transform .2s;
    text-decoration: none;
}
.hero-btn:hover {
    background: #0277bd;
    transform: translateY(-2px);
}

/* 左右箭头 */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 18px;
    z-index: 10;
    border: 2px solid rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background .2s, border-color .2s;
    backdrop-filter: blur(4px);
}
.hero-arrow:hover {
    background: rgba(255,255,255,0.4);
    border-color: #fff;
}
.hero-prev { left: 20px; }
.hero-next { right: 20px; }

/* 指示器 */
.hero-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.hero-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .2s;
    padding: 0;
}
.hero-dots .dot.active {
    background: #fff;
    transform: scale(1.2);
    border-color: rgba(255,255,255,0.6);
}

/* -------- Page Banner（非首页） -------- */
.page-banner {
    background: #fff;
    border-bottom: 3px solid var(--primary, #01579B);
    padding: 22px 0;
    position: relative;
    min-height: 90px;
    display: flex;
    align-items: center;
}
.page-banner-inner {
    display: flex;
    align-items: center;
    gap: 25px;
    width: 100%;
}
.page-banner .logo img { max-height: 55px; }
.page-banner .logo-text {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary, #01579B);
}
.page-banner-title {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 2px solid var(--primary, #01579B);
}

/* -------- Nav -------- */
.main-nav {
    background: #fff;
    border-bottom: 3px solid var(--primary, #01579B);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.main-nav .container { position: relative; }
.nav-list {
    display: flex;
    flex-wrap: wrap;
}
.nav-list li { position: relative; }
.nav-list a {
    display: block;
    padding: 16px 18px;
    font-weight: 700;
    font-size: 14px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color .2s, background .2s;
}
.nav-list a:hover { color: var(--primary, #01579B); }
.nav-list li.current > a { color: var(--primary, #01579B); }
.nav-list li.current > a::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 18px; right: 18px;
    height: 3px;
    background: var(--primary, #01579B);
}
.menu-toggle {
    display: none;
    padding: 14px 0;
    font-size: 20px;
    color: var(--primary, #01579B);
}

/* 下拉子菜单 */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: all .2s;
    z-index: 101;
}
.nav-list li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.sub-menu li {
    border-top: 1px solid #f5f5f5;
}
.sub-menu li:first-child { border-top: none; }
.sub-menu a {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: #555;
    white-space: nowrap;
}
.sub-menu a:hover {
    color: var(--primary, #01579B);
    background: #f9fbfd;
}

/* -------- Body Layout -------- */
.site-body { padding: 30px 0 0; }
.main-container .content-wrap {
    display: flex;
    gap: 30px;
}
.site-main {
    flex: 1;
    min-width: 0;
}
.site-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* -------- Archive Header -------- */
.archive-header {
    background: #fff;
    padding: 20px 25px;
    margin-bottom: 25px;
    border-left: 4px solid var(--primary, #01579B);
}
.archive-title {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
}

/* -------- Post Grid (Home / List) -------- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
}
.post-card {
    background: #fff;
    overflow: hidden;
    border-radius: 4px;
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.post-thumb {
    display: block;
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    background: #eee;
}
.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.post-card:hover .post-thumb img { transform: scale(1.05); }

/* 无图卡片：内容充满 + 稍微有层次感 */
.post-card.no-thumb {
    min-height: 300px; /* 接近有图卡片总高，网格整齐 */
    background: #fff;
}
.post-card.no-thumb .post-info {
    padding: 28px 22px; /* 更大 padding 让内容区呼吸 */
    flex: 1;
}
.post-card.no-thumb .post-info .post-title {
    font-size: 20px; /* 没图时标题稍大 */
}
.post-card.no-thumb .post-info .post-excerpt {
    color: #777;
}
.post-info {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.post-info .post-title {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
}
.post-info .post-title a { color: #313131; }
.post-info .post-title a:hover { color: var(--primary, #01579B); }
.post-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}
.post-meta span {
    display: inline-block;
    margin-right: 12px;
}
.post-meta i { margin-right: 3px; color: var(--primary, #01579B); }
.post-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
    flex: 1;
}
.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}
.post-cats { color: #888; }
.post-cats a { color: var(--primary, #01579B); }
.post-cats i { margin-right: 3px; }
.read-more {
    font-weight: 700;
    color: var(--primary, #01579B);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

/* -------- No Result -------- */
.no-result {
    background: #fff;
    padding: 60px 30px;
    text-align: center;
    border-radius: 4px;
}
.no-result h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

/* -------- Pagination -------- */
.pagination {
    margin-top: 30px;
    text-align: center;
}
.page-nav {
    display: inline-flex;
    gap: 6px;
}
.page-nav a,
.page-nav span {
    display: inline-block;
    min-width: 36px;
    height: 36px;
    line-height: 36px;
    padding: 0 12px;
    background: #fff;
    color: #555;
    font-size: 13px;
    font-weight: 600;
    border-radius: 3px;
    transition: all .2s;
}
.page-nav a:hover {
    background: var(--primary, #01579B);
    color: #fff;
}
.page-nav .current {
    background: var(--primary, #01579B);
    color: #fff;
}
.page-nav .ellipsis {
    background: transparent;
}

/* -------- Detail Page -------- */
.post-detail,
.page-detail {
    background: #fff;
    padding: 30px 35px;
    border-radius: 4px;
    margin-bottom: 25px;
}
.breadcrumb {
    font-size: 12px;
    color: #888;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.breadcrumb a { color: #888; }
.breadcrumb a:hover { color: var(--primary, #01579B); }
.breadcrumb .sep { margin: 0 5px; }
.detail-title {
    font-family: 'Oswald', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #313131;
    line-height: 1.3;
    margin-bottom: 15px;
}
.detail-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}
.detail-meta span {
    display: inline-block;
    margin-right: 18px;
}
.detail-meta i { margin-right: 4px; color: var(--primary, #01579B); }
.detail-meta a { color: #888; }
.detail-meta a:hover { color: var(--primary, #01579B); }
.detail-cover {
    margin-bottom: 25px;
    border-radius: 4px;
    overflow: hidden;
}
.detail-cover img { width: 100%; }

.detail-content {
    font-size: 15px;
    line-height: 1.9;
    color: #333;
    max-width: 100%;
}
.detail-content p { margin-bottom: 18px; }
.detail-content h2,
.detail-content h3,
.detail-content h4 {
    font-family: 'Oswald', sans-serif;
    color: #222;
    margin: 28px 0 15px;
    line-height: 1.3;
}
.detail-content h2 { font-size: 22px; }
.detail-content h3 { font-size: 19px; }
.detail-content h4 { font-size: 16px; }
.detail-content ul,
.detail-content ol {
    margin: 15px 0;
    padding-left: 25px;
}
.detail-content ul { list-style: disc; }
.detail-content ol { list-style: decimal; }
.detail-content li { margin-bottom: 8px; }
.detail-content blockquote {
    border-left: 4px solid var(--primary, #01579B);
    padding: 10px 20px;
    margin: 20px 0;
    background: #f8fafb;
    color: #555;
    font-style: italic;
}
.detail-content code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
    color: #d14;
}
.detail-content pre {
    background: #2d2d2d;
    color: #ccc;
    padding: 18px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 20px 0;
    font-size: 13px;
    line-height: 1.6;
}
.detail-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}
.detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.detail-content th,
.detail-content td {
    border: 1px solid #ddd;
    padding: 10px 14px;
    text-align: left;
    font-size: 14px;
}
.detail-content th {
    background: var(--primary, #01579B);
    color: #fff;
    font-weight: 600;
}
.detail-content tr:nth-child(even) { background: #f9f9f9; }
.detail-content img {
    border-radius: 4px;
    margin: 15px 0;
}
.detail-content a {
    color: var(--primary, #01579B);
    text-decoration: underline;
}

/* Detail Tags */
.detail-tags {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #666;
}
.detail-tags i { color: var(--primary, #01579B); margin-right: 5px; }
.detail-tags a {
    display: inline-block;
    padding: 3px 10px;
    background: #f0f0f0;
    color: #666;
    border-radius: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 12px;
    text-decoration: none;
}
.detail-tags a:hover {
    background: var(--primary, #01579B);
    color: #fff;
}

/* Author Box */
.author-box {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 30px;
    padding: 20px;
    background: #f9fbfd;
    border-radius: 4px;
    border: 1px solid #e8edf1;
}
.author-box .avatar img {
    border-radius: 50%;
    width: 72px;
    height: 72px;
}
.author-info h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary, #01579B);
    margin-bottom: 3px;
}
.author-info p {
    font-size: 13px;
    color: #888;
    margin: 0;
}

/* Post Near (Prev / Next) */
.post-near {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 25px;
}
.near-item {
    background: #fff;
    padding: 18px 20px;
    border-left: 3px solid var(--primary, #01579B);
    border-radius: 0 4px 4px 0;
}
.near-item.next {
    border-left: none;
    border-right: 3px solid var(--primary, #01579B);
    text-align: right;
}
.near-label {
    display: block;
    font-size: 12px;
    color: var(--primary, #01579B);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.near-item a {
    color: #333;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
}
.near-item a:hover { color: var(--primary, #01579B); }

/* Related Posts */
.related-posts {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}
.related-posts .widget-title {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary, #01579B);
    display: inline-block;
}
.related-posts ul li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}
.related-posts ul li a {
    flex: 1;
    color: #333;
}
.related-posts ul li a:hover { color: var(--primary, #01579B); }
.related-posts .date {
    color: #aaa;
    font-size: 12px;
    margin-left: 10px;
}
.related-posts .date i { color: var(--primary, #01579B); margin-right: 3px; }

/* -------- Sidebar -------- */
.site-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.widget {
    background: #fff;
    padding: 22px;
    border-radius: 4px;
}
.widget-title {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eee;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}
.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--primary, #01579B);
}

/* Sidebar Search */
.widget-search form {
    display: flex;
    position: relative;
}
.widget-search input {
    flex: 1;
    padding: 10px 40px 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    transition: border-color .2s;
}
.widget-search input:focus { border-color: var(--primary, #01579B); }
.widget-search button {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: var(--primary, #01579B);
    color: #fff;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
}

/* Sidebar List */
.widget-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    font-size: 13px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    line-height: 1.5;
}
.widget-list li:last-child { border-bottom: none; }
.widget-list li::before {
    content: '\f0da';
    font-family: FontAwesome;
    color: var(--primary, #01579B);
    font-size: 11px;
    flex-shrink: 0;
    margin-top: 3px;
}
/* 有缩略图时不显示箭头 */
.widget-list li.has-thumb::before { display: none; }
.widget-list .widget-thumb {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    overflow: hidden;
    border-radius: 3px;
    margin-right: 2px;
}
.widget-list .widget-thumb img { width: 100%; height: 100%; object-fit: cover; }
/* 文本区域：标题和日期同一行，标题超长截断 */
.widget-list .widget-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}
.widget-list .widget-link {
    color: #333;
    line-height: 1.5;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.widget-list .widget-link:hover { color: var(--primary, #01579B); }
.widget-list .widget-date {
    font-size: 11px;
    color: #aaa;
    flex-shrink: 0;
    white-space: nowrap;
}
.widget-list .widget-date i { color: var(--primary, #01579B); margin-right: 3px; }

/* Sidebar Cats（仅顶级 + 徽章） */
.widget-cats { padding: 0; }
.widget-cats li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    font-size: 13px;
    line-height: 1.5;
}
.widget-cats li::before { display: none !important; }
.widget-cats li:last-child { border-bottom: none; }
.widget-cats li a {
    flex: 1;
    min-width: 0;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.widget-cats li a:hover { color: var(--primary, #01579B); }
.widget-cats .cat-count {
    flex-shrink: 0;
    background: var(--primary, #01579B);
    color: #fff;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
    min-width: 24px;
}

/* Sidebar Tags */
.widget-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.widget-tags a {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f0f0;
    color: #666;
    border-radius: 3px;
    font-size: 12px;
    transition: all .2s;
}
.widget-tags a:hover {
    background: var(--primary, #01579B);
    color: #fff;
}

/* Sidebar Social */
.sidebar-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.sidebar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #f5f5f5;
    color: var(--primary, #01579B);
    border-radius: 50%;
    font-size: 14px;
    transition: all .2s;
}
.sidebar-social a:hover {
    background: var(--primary, #01579B);
    color: #fff;
}

/* -------- Comments -------- */
.comments-area {
    background: #fff;
    padding: 30px 35px;
    border-radius: 4px;
}
.comments-title,
.comment-form-title {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary, #01579B);
}
.comments-title i,
.comment-form-title i { color: var(--primary, #01579B); margin-right: 8px; }
.comments-list .comment-item {
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
}
.comments-list .comment-author {
    font-weight: 700;
    color: #333;
}
.comments-list .comment-date {
    font-size: 12px;
    color: #aaa;
    margin-left: 10px;
}
.comment-content {
    margin-top: 10px;
    font-size: 14px;
    color: #444;
    line-height: 1.7;
}
.comment-respond {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #eee;
}
.comment-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.comment-respond label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}
.comment-respond input,
.comment-respond textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color .2s;
}
.comment-respond input:focus,
.comment-respond textarea:focus {
    border-color: var(--primary, #01579B);
}
.comment-respond textarea { resize: vertical; }
.comment-form .form-submit {
    margin-top: 15px;
    text-align: right;
}
.comment-form .submit {
    background: var(--primary, #01579B);
    color: #fff;
    padding: 10px 28px;
    font-weight: 600;
    border-radius: 4px;
    font-size: 14px;
    transition: background .2s;
}
.comment-form .submit:hover { background: #0277bd; }
.comment-logged {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}
.comment-logged a { color: var(--primary, #01579B); }
.comment-logged .logout { color: #999; }
.comment-closed h3 {
    color: #888;
    text-align: center;
    padding: 30px 0;
}

/* -------- Footer -------- */
.site-footer {
    background: #171717;
    color: #999;
    padding: 40px 0 25px;
    margin-top: 40px;
}
.footer-social {
    text-align: center;
    margin-bottom: 20px;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.08);
    color: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    font-size: 15px;
    transition: all .25s;
}
.footer-social a:hover {
    background: var(--primary, #01579B);
    color: #fff;
    transform: translateY(-2px);
}
.footer-menu {
    text-align: center;
    margin-bottom: 18px;
    font-size: 13px;
}
.footer-menu a {
    color: #999;
    margin: 0 10px;
}
.footer-menu a:hover { color: #fff; }
.footer-copy {
    text-align: center;
    font-size: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 18px;
}
.footer-copy a { color: #bbb; }
.footer-copy a:hover { color: var(--primary, #01579B); }
.footer-copy .icp { margin-left: 10px; }

/* -------- Back-to-Top -------- */
#back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 42px;
    height: 42px;
    background: var(--primary, #01579B);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(1, 87, 155, 0.4);
}
#back-top.show {
    opacity: 1;
    visibility: visible;
}
#back-top:hover { background: #0277bd; }

/* -------- 404 Page -------- */
.error-404 {
    background: #fff;
    padding: 80px 30px;
    text-align: center;
    border-radius: 4px;
}
.error-404 h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 120px;
    font-weight: 700;
    color: var(--primary, #01579B);
    line-height: 1;
    margin-bottom: 10px;
}
.error-404 h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}
.error-404 p {
    color: #888;
    margin-bottom: 25px;
}
.error-404 .search-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto 25px;
}
.error-404 input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    outline: none;
}
.error-404 input:focus { border-color: var(--primary, #01579B); }
.error-404 button {
    background: var(--primary, #01579B);
    color: #fff;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    font-size: 16px;
}
.btn-home {
    display: inline-block;
    background: var(--primary, #01579B);
    color: #fff;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    transition: background .2s;
}
.btn-home:hover {
    background: #0277bd;
    color: #fff;
}

/* -------- Responsive -------- */
@media (max-width: 1024px) {
    .main-container .content-wrap { flex-direction: column; }
    .site-sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }
    .site-sidebar .widget {
        flex: 1 1 calc(50% - 10px);
        min-width: 260px;
    }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .top-social .container {
        flex-direction: column;
        gap: 8px;
    }
    .top-social .top-search input { width: 140px; }
    .hero-carousel { height: 360px; }
    .hero-caption h1 { font-size: 28px; }
    .hero-caption p { font-size: 14px; }
    .hero-arrow { width: 38px; height: 38px; font-size: 18px; }
    .hero-prev { left: 10px; }
    .hero-next { right: 10px; }
    .page-banner { padding: 14px 0; }
    .page-banner-title { font-size: 16px; padding-left: 12px; margin-left: 12px; }
    .main-nav { position: relative; }
    .nav-list {
        display: none;
        flex-direction: column;
        border-top: 1px solid #eee;
    }
    .nav-list.show { display: flex; }
    .nav-list a { padding: 12px 18px; border-bottom: 1px solid #f5f5f5; font-size: 13px; }
    .menu-toggle { display: block; float: right; }
    .post-grid { grid-template-columns: 1fr; }
    .detail-title { font-size: 22px; }
    .post-detail,
    .page-detail,
    .comments-area { padding: 20px; }
    .comment-fields { grid-template-columns: 1fr; }
    .post-near { grid-template-columns: 1fr; }
    .site-sidebar .widget { flex: 1 1 100%; min-width: auto; }
    .author-box { flex-direction: column; text-align: center; }
    .error-404 h1 { font-size: 80px; }
}

@media (max-width: 480px) {
    .post-thumb { height: 150px; }
    .site-sidebar { gap: 15px; }
}
