/* ============================================================
   style.css - Main Stylesheet for 家居装修网 (Home Renovation Website)
   ============================================================ */

/* ---------------------------------------------------------------
   1. RESET & BASE STYLES
   --------------------------------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica,
        Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #C07B32;
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    outline: none;
    border: none;
    background: none;
}

button {
    cursor: pointer;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.35;
    color: #333;
}

h1 { font-size: 28px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

p {
    margin-bottom: 12px;
    color: #666;
    line-height: 1.8;
}

::selection {
    background-color: #C07B32;
    color: #fff;
}

/* ---------------------------------------------------------------
   2. UTILITY CLASSES
   --------------------------------------------------------------- */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none !important; }
.visible { display: block !important; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.ml-10 { margin-left: 10px; }
.mr-10 { margin-right: 10px; }
.pt-20 { padding-top: 20px; }
.pb-20 { padding-bottom: 20px; }

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

/* ---------------------------------------------------------------
   3. CONTAINER & GRID SYSTEM
   --------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
}

.col-1  { flex: 0 0 8.333%; max-width: 8.333%; }
.col-2  { flex: 0 0 16.666%; max-width: 16.666%; }
.col-3  { flex: 0 0 25%; max-width: 25%; }
.col-4  { flex: 0 0 33.333%; max-width: 33.333%; }
.col-5  { flex: 0 0 41.666%; max-width: 41.666%; }
.col-6  { flex: 0 0 50%; max-width: 50%; }
.col-7  { flex: 0 0 58.333%; max-width: 58.333%; }
.col-8  { flex: 0 0 66.666%; max-width: 66.666%; }
.col-9  { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333%; max-width: 83.333%; }
.col-11 { flex: 0 0 91.666%; max-width: 91.666%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* Homepage three-column layout */
.layout-three-col {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.layout-three-col .sidebar-left {
    flex: 0 0 25%;
    max-width: 25%;
}

.layout-three-col .main-content {
    flex: 0 0 50%;
    max-width: 50%;
}

.layout-three-col .sidebar-right {
    flex: 0 0 25%;
    max-width: 25%;
}

/* Article detail two-column layout */
.layout-two-col {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.layout-two-col .content-area {
    flex: 0 0 70%;
    max-width: 70%;
}

.layout-two-col .sidebar-right {
    flex: 0 0 30%;
    max-width: 30%;
}

/* Category/Search page layout */
.layout-category {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.layout-category .content-area {
    flex: 1;
}

.layout-category .sidebar-right {
    flex: 0 0 280px;
    max-width: 280px;
}

/* ---------------------------------------------------------------
   4. NAVIGATION BAR
   --------------------------------------------------------------- */
.navbar {
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #C07B32;
    flex-shrink: 0;
}

.navbar-logo:hover {
    color: #C07B32;
}

.navbar-logo i,
.navbar-logo .logo-icon {
    font-size: 24px;
    color: #C07B32;
}

.navbar-logo img {
    height: 32px;
    width: auto;
}

/* Search */
.navbar-search {
    display: flex;
    align-items: center;
    max-width: 320px;
    width: 100%;
    margin: 0 20px;
    position: relative;
}

.navbar-search input {
    width: 100%;
    height: 36px;
    padding: 0 40px 0 14px;
    border: 1px solid #e5e5e5;
    border-radius: 18px;
    background-color: #f5f5f5;
    font-size: 13px;
    color: #333;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.navbar-search input:focus {
    border-color: #C07B32;
    background-color: #fff;
}

.navbar-search input::placeholder {
    color: #999;
}

.navbar-search .search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    border-radius: 50%;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.navbar-search .search-btn:hover {
    color: #C07B32;
    background-color: rgba(192, 123, 50, 0.08);
}

/* Category Navigation Links */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.navbar-nav a {
    display: inline-block;
    padding: 6px 12px;
    font-size: 14px;
    color: #666;
    border-radius: 4px;
    white-space: nowrap;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: #C07B32;
    background-color: rgba(192, 123, 50, 0.06);
}

.navbar-nav a.active {
    font-weight: 600;
}

/* Login Button */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    font-size: 13px;
    color: #C07B32;
    border: 1px solid #C07B32;
    border-radius: 20px;
    background: transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-login:hover {
    color: #fff;
    background-color: #C07B32;
}

.btn-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e5e5e5;
    transition: border-color 0.3s ease;
}

.btn-user-avatar:hover {
    border-color: #C07B32;
}

.btn-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hamburger Menu (Mobile) */
.navbar-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    cursor: pointer;
    gap: 5px;
}

.navbar-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.navbar-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation Dropdown */
.navbar-mobile-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 10px 0;
    z-index: 999;
}

.navbar-mobile-menu.active {
    display: block;
}

.navbar-mobile-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 15px;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.navbar-mobile-menu a:last-child {
    border-bottom: none;
}

.navbar-mobile-menu a:hover,
.navbar-mobile-menu a.active {
    color: #C07B32;
    background-color: rgba(192, 123, 50, 0.04);
}

.navbar-mobile-menu .mobile-search {
    padding: 10px 20px;
}

.navbar-mobile-menu .mobile-search input {
    width: 100%;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    background-color: #f5f5f5;
    font-size: 14px;
}

/* ---------------------------------------------------------------
   5. CAROUSEL / BANNER
   --------------------------------------------------------------- */
.banner {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    background-color: #e5e5e5;
}

.banner-slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.banner-slide {
    flex: 0 0 100%;
    position: relative;
    overflow: hidden;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-slide .banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 50px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
}

.banner-overlay h2 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.banner-overlay p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Banner Navigation Dots */
.banner-dots {
    position: absolute;
    bottom: 16px;
    right: 50px;
    display: flex;
    gap: 8px;
}

.banner-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.banner-dots .dot.active,
.banner-dots .dot:hover {
    background-color: #fff;
    transform: scale(1.2);
}

/* Banner Arrow Buttons */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    z-index: 10;
}

.banner:hover .banner-arrow {
    opacity: 1;
}

.banner-arrow:hover {
    background: rgba(0, 0, 0, 0.5);
}

.banner-arrow.prev {
    left: 20px;
}

.banner-arrow.next {
    right: 20px;
}

/* ---------------------------------------------------------------
   6. SECTION HEADERS
   --------------------------------------------------------------- */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e5e5;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    position: relative;
    padding-left: 12px;
}

.section-header h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background-color: #C07B32;
    border-radius: 2px;
}

.section-header .more-link {
    font-size: 13px;
    color: #999;
    transition: color 0.3s ease;
}

.section-header .more-link:hover {
    color: #C07B32;
}

/* ---------------------------------------------------------------
   7. ARTICLE CARDS
   --------------------------------------------------------------- */
.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.article-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.article-grid.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.article-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.article-card .card-image-link {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
}

.article-card img.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover img.card-image {
    transform: scale(1.05);
}

.article-card .card-image .category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.article-card .card-body {
    padding: 14px 16px;
}

.article-card .card-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.article-card .card-title:hover,
.article-card:hover .card-title {
    color: #C07B32;
}

.article-card .card-excerpt {
    font-size: 13px;
    color: #999;
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card .card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.article-card .card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.article-card .card-meta i {
    font-size: 13px;
}

.card-meta-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Horizontal card variant */
.article-card-horizontal {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 16px;
}

.article-card-horizontal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.article-card-horizontal .card-image {
    flex: 0 0 240px;
    height: 160px;
    overflow: hidden;
}

.article-card-horizontal .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card-horizontal:hover .card-image img {
    transform: scale(1.05);
}

.article-card-horizontal .card-body {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ---------------------------------------------------------------
   8. CATEGORY BADGE
   --------------------------------------------------------------- */
.category-badge {
    display: inline-block;
    padding: 2px 8px;
    background-color: #C07B32;
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
    line-height: 1.6;
    font-weight: 500;
    white-space: nowrap;
}

.category-badge.badge-living { background-color: #C07B32; }
.category-badge.badge-bedroom { background-color: #5B8C5A; }
.category-badge.badge-kitchen { background-color: #4A90D9; }
.category-badge.badge-bathroom { background-color: #9B59B6; }
.category-badge.badge-balcony { background-color: #E67E22; }
.category-badge.badge-entrance { background-color: #1ABC9C; }

/* ---------------------------------------------------------------
   9. LEFT SIDEBAR - HOT CONTENT
   --------------------------------------------------------------- */
.sidebar-panel {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.hot-list {
    list-style: none;
}

.hot-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed #f0f0f0;
    transition: background-color 0.2s ease;
}

.hot-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hot-list li:first-child {
    padding-top: 0;
}

.hot-list .rank-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background-color: #ccc;
    border-radius: 4px;
    margin-top: 2px;
}

.hot-list li:nth-child(1) .rank-num { background-color: #E74C3C; }
.hot-list li:nth-child(2) .rank-num { background-color: #E67E22; }
.hot-list li:nth-child(3) .rank-num { background-color: #F1C40F; color: #333; }

.hot-list .hot-item-info {
    flex: 1;
    min-width: 0;
}

.hot-list .hot-item-title {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.hot-list .hot-item-title:hover {
    color: #C07B32;
}

.hot-list .hot-item-views {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ---------------------------------------------------------------
   10. RIGHT SIDEBAR - TOP ARTICLES & TAG CLOUD
   --------------------------------------------------------------- */
/* Top Liked Articles */
.top-articles-list {
    list-style: none;
}

.top-articles-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed #f0f0f0;
}

.top-articles-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.top-articles-list li:first-child {
    padding-top: 0;
}

.top-articles-list .rank-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background-color: #ccc;
    border-radius: 4px;
    margin-top: 2px;
}

.top-articles-list li:nth-child(1) .rank-num { background-color: #E74C3C; }
.top-articles-list li:nth-child(2) .rank-num { background-color: #E67E22; }
.top-articles-list li:nth-child(3) .rank-num { background-color: #F1C40F; color: #333; }

.top-articles-list .article-info {
    flex: 1;
    min-width: 0;
}

.top-articles-list .article-info a {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.top-articles-list .article-info a:hover {
    color: #C07B32;
}

.top-articles-list .article-views {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    color: #666;
    background-color: #f5f5f5;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tag-cloud a:hover {
    color: #C07B32;
    border-color: #C07B32;
    background-color: rgba(192, 123, 50, 0.06);
}

/* Sidebar Image Ad / Promo */
.sidebar-promo {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.sidebar-promo img {
    width: 100%;
    height: auto;
}

/* ---------------------------------------------------------------
   11. ARTICLE DETAIL PAGE
   --------------------------------------------------------------- */
/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 14px 0;
    font-size: 13px;
    color: #999;
}

.breadcrumb a {
    color: #999;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #C07B32;
}

.breadcrumb .separator {
    color: #ccc;
    margin: 0 4px;
}

.breadcrumb .current {
    color: #666;
}

/* Article Header */
.article-detail {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.article-detail .article-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.article-detail .article-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1.5;
    margin-bottom: 14px;
}

.article-detail .article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #999;
}

.article-detail .article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.article-detail .article-meta .category-badge {
    margin-right: 4px;
}

/* Article Content Typography */
.article-content {
    line-height: 2;
    font-size: 15px;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-content p {
    margin-bottom: 16px;
    color: #333;
    line-height: 2;
}

.article-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 30px 0 16px;
    padding-left: 12px;
    border-left: 4px solid #C07B32;
}

.article-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 24px 0 12px;
}

.article-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 20px 0 10px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.article-content blockquote {
    margin: 20px 0;
    padding: 16px 20px;
    border-left: 4px solid #C07B32;
    background-color: #fdf8f1;
    border-radius: 0 8px 8px 0;
    color: #666;
    font-style: italic;
}

.article-content ul,
.article-content ol {
    margin: 12px 0;
    padding-left: 24px;
}

.article-content ul {
    list-style: disc;
}

.article-content ol {
    list-style: decimal;
}

.article-content li {
    margin-bottom: 8px;
    line-height: 1.8;
    color: #333;
}

.article-content a {
    color: #C07B32;
    text-decoration: underline;
}

.article-content a:hover {
    color: #a06428;
}

.article-content code {
    padding: 2px 6px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 13px;
    color: #C07B32;
}

.article-content pre {
    margin: 16px 0;
    padding: 16px;
    background-color: #2d2d2d;
    border-radius: 8px;
    overflow-x: auto;
    color: #f8f8f2;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 13px;
    line-height: 1.6;
}

.article-content table {
    width: 100%;
    margin: 16px 0;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

.article-content table th,
.article-content table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.article-content table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.article-content table tr:last-child td {
    border-bottom: none;
}

/* Article Actions (Like, Bookmark, Share) */
.article-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.article-actions .action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    font-size: 14px;
    color: #666;
    background-color: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.article-actions .action-btn:hover {
    color: #C07B32;
    border-color: #C07B32;
    background-color: rgba(192, 123, 50, 0.06);
}

.article-actions .action-btn.active {
    color: #fff;
    background-color: #C07B32;
    border-color: #C07B32;
}

.article-actions .action-btn i {
    font-size: 16px;
}

/* Prev / Next Navigation */
.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 24px 0;
    padding: 20px 0;
}

.article-nav .nav-item {
    flex: 1;
    min-width: 0;
}

.article-nav .nav-item.next {
    text-align: right;
}

.article-nav .nav-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}

.article-nav .nav-title {
    font-size: 14px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.article-nav .nav-title:hover {
    color: #C07B32;
}

/* Related Articles */
.related-articles {
    margin-top: 30px;
}

.related-articles .article-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* ---------------------------------------------------------------
   12. CATEGORY / TAG / SEARCH PAGES
   --------------------------------------------------------------- */
.page-header {
    margin-bottom: 20px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.page-header .page-desc {
    font-size: 14px;
    color: #999;
    margin-top: 6px;
}

.page-header .result-count {
    font-size: 13px;
    color: #999;
    margin-top: 6px;
}

/* Search Page Search Box */
.search-box {
    display: flex;
    margin-bottom: 24px;
    max-width: 600px;
}

.search-box input {
    flex: 1;
    height: 44px;
    padding: 0 16px;
    border: 2px solid #e5e5e5;
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 15px;
    color: #333;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    border-color: #C07B32;
}

.search-box button {
    flex-shrink: 0;
    height: 44px;
    padding: 0 24px;
    background-color: #C07B32;
    color: #fff;
    font-size: 15px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: #a06428;
}

/* ---------------------------------------------------------------
   13. PAGINATION
   --------------------------------------------------------------- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 30px 0;
    padding: 20px 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 14px;
    color: #666;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    color: #C07B32;
    border-color: #C07B32;
    background-color: rgba(192, 123, 50, 0.06);
}

.pagination .active,
.pagination .active:hover {
    color: #fff;
    background-color: #C07B32;
    border-color: #C07B32;
}

.pagination .disabled {
    color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination .dots {
    border: none;
    background: none;
    color: #999;
    min-width: auto;
    padding: 0 4px;
}

.pagination .prev,
.pagination .next {
    font-weight: 500;
}

/* ---------------------------------------------------------------
   14. FORMS (LOGIN, REGISTER, SEARCH)
   --------------------------------------------------------------- */
/* Auth Page Container */
.auth-container {
    max-width: 420px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.auth-container .auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-container .auth-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.auth-container .auth-header p {
    font-size: 14px;
    color: #999;
}

/* Form Group */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

.form-group .required {
    color: #E74C3C;
    margin-left: 2px;
}

.form-control {
    display: block;
    width: 100%;
    height: 42px;
    padding: 0 14px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #C07B32;
    box-shadow: 0 0 0 3px rgba(192, 123, 50, 0.1);
}

.form-control::placeholder {
    color: #ccc;
}

.form-control.error {
    border-color: #E74C3C;
}

textarea.form-control {
    height: auto;
    min-height: 100px;
    padding: 10px 14px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* Input with icon */
.input-icon-wrap {
    position: relative;
}

.input-icon-wrap .form-control {
    padding-left: 40px;
}

.input-icon-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

/* Form Messages */
.form-error {
    font-size: 12px;
    color: #E74C3C;
    margin-top: 4px;
}

.form-help {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* Form Actions */
.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.form-actions label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.form-actions a {
    font-size: 13px;
    color: #C07B32;
}

/* Checkbox */
.checkbox-custom {
    width: 16px;
    height: 16px;
    accent-color: #C07B32;
    cursor: pointer;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #999;
}

.auth-footer a {
    color: #C07B32;
    font-weight: 500;
}

/* Social Login */
.social-login {
    margin-top: 24px;
    text-align: center;
}

.social-login .divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    color: #999;
    font-size: 13px;
}

.social-login .divider::before,
.social-login .divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #e5e5e5;
}

.social-login .social-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-login .social-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    font-size: 18px;
    color: #666;
    transition: all 0.3s ease;
}

.social-login .social-btn:hover {
    color: #C07B32;
    border-color: #C07B32;
}

/* ---------------------------------------------------------------
   15. BUTTONS
   --------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    line-height: 1.5;
    border: 1px solid transparent;
}

.btn-primary {
    color: #fff;
    background-color: #C07B32;
    border-color: #C07B32;
}

.btn-primary:hover {
    background-color: #a06428;
    border-color: #a06428;
    color: #fff;
}

.btn-outline {
    color: #C07B32;
    background-color: transparent;
    border-color: #C07B32;
}

.btn-outline:hover {
    color: #fff;
    background-color: #C07B32;
}

.btn-secondary {
    color: #666;
    background-color: #f5f5f5;
    border-color: #e5e5e5;
}

.btn-secondary:hover {
    color: #333;
    background-color: #e5e5e5;
}

.btn-danger {
    color: #fff;
    background-color: #E74C3C;
    border-color: #E74C3C;
}

.btn-danger:hover {
    background-color: #c0392b;
    border-color: #c0392b;
    color: #fff;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 6px;
}

.btn-lg {
    padding: 12px 32px;
    font-size: 16px;
    border-radius: 10px;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ---------------------------------------------------------------
   16. FOOTER
   --------------------------------------------------------------- */
.footer {
    background-color: #333;
    color: #999;
    padding: 30px 0;
    margin-top: 40px;
}

.footer .container {
    text-align: center;
}

.footer .footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 16px;
}

.footer .footer-links a {
    font-size: 13px;
    color: #999;
    transition: color 0.3s ease;
}

.footer .footer-links a:hover {
    color: #C07B32;
}

.footer .copyright {
    font-size: 13px;
    color: #777;
    line-height: 1.8;
}

.footer .copyright a {
    color: #999;
}

.footer .copyright a:hover {
    color: #C07B32;
}

.footer .footer-bottom {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #444;
    font-size: 12px;
    color: #666;
}

/* ---------------------------------------------------------------
   17. ADMIN STYLES
   --------------------------------------------------------------- */
/* Admin Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 220px;
    background-color: #2d2d2d;
    color: #ccc;
    flex-shrink: 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;
}

.admin-sidebar .sidebar-logo {
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 700;
    color: #C07B32;
    border-bottom: 1px solid #3d3d3d;
}

.admin-sidebar .sidebar-menu {
    padding: 10px 0;
}

.admin-sidebar .menu-group {
    margin-bottom: 6px;
}

.admin-sidebar .menu-group-title {
    padding: 8px 20px;
    font-size: 11px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-sidebar .menu-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 14px;
    color: #ccc;
    transition: all 0.2s ease;
}

.admin-sidebar .menu-item a:hover,
.admin-sidebar .menu-item a.active {
    color: #fff;
    background-color: rgba(192, 123, 50, 0.15);
}

.admin-sidebar .menu-item a.active {
    border-right: 3px solid #C07B32;
}

.admin-sidebar .menu-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

/* Admin Main Area */
.admin-main {
    flex: 1;
    margin-left: 220px;
    background-color: #f5f5f5;
    min-height: 100vh;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 24px;
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.admin-topbar .topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-topbar .breadcrumb {
    padding: 0;
}

.admin-topbar .topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-content {
    padding: 24px;
}

/* Admin Cards / Panels */
.admin-panel {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
}

.admin-panel .panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.admin-panel .panel-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.admin-panel .panel-header h3::before {
    display: none;
}

.admin-panel .panel-body {
    padding: 20px;
}

/* Admin Stats */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 22px;
    color: #fff;
}

.stat-card .stat-icon.bg-primary { background-color: #C07B32; }
.stat-card .stat-icon.bg-success { background-color: #5B8C5A; }
.stat-card .stat-icon.bg-info { background-color: #4A90D9; }
.stat-card .stat-icon.bg-warning { background-color: #E67E22; }

.stat-card .stat-info h4 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.stat-card .stat-info p {
    font-size: 13px;
    color: #999;
    margin-bottom: 0;
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.admin-table th {
    font-weight: 600;
    color: #666;
    background-color: #fafafa;
    white-space: nowrap;
}

.admin-table td {
    color: #333;
}

.admin-table tr:hover td {
    background-color: #fafafa;
}

.admin-table .actions {
    display: flex;
    gap: 8px;
}

.admin-table .actions a,
.admin-table .actions button {
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.admin-table .actions .btn-edit {
    color: #4A90D9;
    background-color: rgba(74, 144, 217, 0.08);
}

.admin-table .actions .btn-edit:hover {
    background-color: rgba(74, 144, 217, 0.15);
}

.admin-table .actions .btn-delete {
    color: #E74C3C;
    background-color: rgba(231, 76, 60, 0.08);
}

.admin-table .actions .btn-delete:hover {
    background-color: rgba(231, 76, 60, 0.15);
}

/* Admin Status Badge */
.status-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 4px;
    font-weight: 500;
}

.status-badge.published {
    color: #5B8C5A;
    background-color: rgba(91, 140, 90, 0.1);
}

.status-badge.draft {
    color: #E67E22;
    background-color: rgba(230, 126, 34, 0.1);
}

.status-badge.archived {
    color: #999;
    background-color: #f0f0f0;
}

/* Admin Form */
.admin-form .form-row {
    display: flex;
    gap: 20px;
}

.admin-form .form-row .form-group {
    flex: 1;
}

/* ---------------------------------------------------------------
   18. COMMENTS SECTION
   --------------------------------------------------------------- */
.comments-section {
    margin-top: 30px;
}

.comment-form {
    margin-bottom: 30px;
}

.comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.comment-form textarea:focus {
    border-color: #C07B32;
}

.comment-form .form-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.comment-list {
    list-style: none;
}

.comment-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.comment-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f0f0f0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-body {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.comment-header .author {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.comment-header .date {
    font-size: 12px;
    color: #999;
}

.comment-text {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

.comment-actions {
    margin-top: 6px;
    display: flex;
    gap: 16px;
}

.comment-actions a {
    font-size: 12px;
    color: #999;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.comment-actions a:hover {
    color: #C07B32;
}

/* Nested replies */
.comment-replies {
    margin-left: 54px;
    margin-top: 4px;
}

/* ---------------------------------------------------------------
   19. ALERT / MESSAGE BOXES
   --------------------------------------------------------------- */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    color: #5B8C5A;
    background-color: rgba(91, 140, 90, 0.1);
    border: 1px solid rgba(91, 140, 90, 0.2);
}

.alert-error {
    color: #E74C3C;
    background-color: rgba(231, 76, 60, 0.06);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.alert-warning {
    color: #E67E22;
    background-color: rgba(230, 126, 34, 0.06);
    border: 1px solid rgba(230, 126, 34, 0.2);
}

.alert-info {
    color: #4A90D9;
    background-color: rgba(74, 144, 217, 0.06);
    border: 1px solid rgba(74, 144, 217, 0.2);
}

/* ---------------------------------------------------------------
   20. MODAL
   --------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-header h3::before {
    display: none;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #999;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: #333;
    background-color: #f0f0f0;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
}

/* ---------------------------------------------------------------
   21. LOADING & EMPTY STATES
   --------------------------------------------------------------- */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.loading-spinner::after {
    content: "";
    width: 36px;
    height: 36px;
    border: 3px solid #e5e5e5;
    border-top-color: #C07B32;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state .empty-icon {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 16px;
}

.empty-state h4 {
    font-size: 18px;
    color: #666;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: #999;
}

/* ---------------------------------------------------------------
   22. TOOLTIP
   --------------------------------------------------------------- */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    font-size: 12px;
    color: #fff;
    background-color: #333;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
    pointer-events: none;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ---------------------------------------------------------------
   23. BACK TO TOP
   --------------------------------------------------------------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #C07B32;
    color: #fff;
    font-size: 18px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(192, 123, 50, 0.3);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 500;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #a06428;
    transform: translateY(-2px);
}

/* ---------------------------------------------------------------
   24. ANIMATIONS & TRANSITIONS
   --------------------------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-fadeIn { animation: fadeIn 0.5s ease; }
.animate-fadeInUp { animation: fadeInUp 0.5s ease; }
.animate-fadeInDown { animation: fadeInDown 0.5s ease; }
.animate-slideInLeft { animation: slideInLeft 0.5s ease; }
.animate-slideInRight { animation: slideInRight 0.5s ease; }

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-title {
    height: 20px;
    width: 70%;
    margin-bottom: 12px;
    border-radius: 4px;
}

.skeleton-image {
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 8px 8px 0 0;
}

/* ---------------------------------------------------------------
   25. DROPDOWN
   --------------------------------------------------------------- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 160px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: all 0.2s ease;
    z-index: 100;
}

.dropdown.active .dropdown-menu,
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    color: #666;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover {
    color: #C07B32;
    background-color: rgba(192, 123, 50, 0.04);
}

.dropdown-menu .divider {
    height: 1px;
    margin: 6px 0;
    background-color: #f0f0f0;
}

/* ---------------------------------------------------------------
   26. USER PROFILE
   --------------------------------------------------------------- */
.profile-header {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e5e5e5;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h2 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
}

.profile-info .bio {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}

.profile-stats {
    display: flex;
    gap: 24px;
}

.profile-stats .stat {
    text-align: center;
}

.profile-stats .stat-num {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.profile-stats .stat-label {
    font-size: 12px;
    color: #999;
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    gap: 4px;
    background: #fff;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.profile-tabs a {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    font-size: 14px;
    color: #666;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.profile-tabs a.active,
.profile-tabs a:hover {
    color: #C07B32;
    background-color: rgba(192, 123, 50, 0.06);
}

.profile-tabs a.active {
    font-weight: 600;
}

/* ---------------------------------------------------------------
   27. RESPONSIVE MEDIA QUERIES
   --------------------------------------------------------------- */

/* Large Desktop (>1200px) - Default styles apply */

/* Tablet / Small Desktop (768px - 1200px) */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    /* Navigation: hide some links if needed */
    .navbar-nav {
        gap: 2px;
    }

    .navbar-nav a {
        padding: 6px 8px;
        font-size: 13px;
    }

    .navbar-search {
        max-width: 240px;
    }

    /* Homepage: stack three columns to two + sidebar below */
    .layout-three-col {
        flex-wrap: wrap;
    }

    .layout-three-col .sidebar-left {
        flex: 0 0 100%;
        max-width: 100%;
        order: 2;
    }

    .layout-three-col .main-content {
        flex: 0 0 65%;
        max-width: 65%;
        order: 1;
    }

    .layout-three-col .sidebar-right {
        flex: 0 0 35%;
        max-width: 35%;
        order: 1;
    }

    /* Article detail */
    .layout-two-col .content-area {
        flex: 0 0 65%;
        max-width: 65%;
    }

    .layout-two-col .sidebar-right {
        flex: 0 0 35%;
        max-width: 35%;
    }

    /* Category layout */
    .layout-category .sidebar-right {
        flex: 0 0 240px;
        max-width: 240px;
    }

    /* Banner */
    .banner {
        height: 340px;
    }

    /* Admin */
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet (768px - 992px) */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    /* Hide desktop nav, show hamburger */
    .navbar-nav {
        display: none;
    }

    .navbar-hamburger {
        display: flex;
    }

    .navbar-search {
        max-width: 200px;
        margin: 0 12px;
    }

    /* Homepage layout */
    .layout-three-col .main-content {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .layout-three-col .sidebar-right {
        flex: 0 0 100%;
        max-width: 100%;
        order: 3;
    }

    /* Article detail */
    .layout-two-col {
        flex-direction: column;
    }

    .layout-two-col .content-area {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .layout-two-col .sidebar-right {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Category layout */
    .layout-category {
        flex-direction: column;
    }

    .layout-category .sidebar-right {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Article grid: still 2 columns */
    .article-grid.grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Related articles */
    .related-articles .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Banner */
    .banner {
        height: 280px;
    }

    .banner-overlay h2 {
        font-size: 22px;
    }

    /* Admin */
    .admin-sidebar {
        width: 60px;
    }

    .admin-sidebar .sidebar-logo {
        font-size: 0;
        text-align: center;
    }

    .admin-sidebar .menu-group-title {
        display: none;
    }

    .admin-sidebar .menu-item a span {
        display: none;
    }

    .admin-sidebar .menu-item a {
        justify-content: center;
        padding: 12px;
    }

    .admin-main {
        margin-left: 60px;
    }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 12px;
    }

    /* Navbar */
    .navbar {
        height: 54px;
    }

    .navbar-logo {
        font-size: 17px;
    }

    .navbar-search {
        display: none;
    }

    .navbar-mobile-menu {
        top: 54px;
    }

    /* Banner */
    .banner {
        height: 220px;
    }

    .banner-overlay {
        padding: 20px;
    }

    .banner-overlay h2 {
        font-size: 18px;
    }

    .banner-overlay p {
        font-size: 13px;
    }

    .banner-arrow {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .banner-dots {
        right: 20px;
        bottom: 10px;
    }

    /* Layout */
    .layout-three-col {
        flex-direction: column;
    }

    .layout-three-col .sidebar-left,
    .layout-three-col .main-content,
    .layout-three-col .sidebar-right {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Article grid: single column */
    .article-grid {
        grid-template-columns: 1fr;
    }

    .article-grid.grid-3,
    .article-grid.grid-4 {
        grid-template-columns: 1fr;
    }

    /* Horizontal card stacks */
    .article-card-horizontal {
        flex-direction: column;
    }

    .article-card-horizontal .card-image {
        flex: none;
        height: 180px;
    }

    /* Article detail */
    .article-detail {
        padding: 20px;
    }

    .article-detail .article-title {
        font-size: 20px;
    }

    .article-detail .article-meta {
        gap: 10px;
    }

    .article-content h2 {
        font-size: 18px;
    }

    .article-content h3 {
        font-size: 16px;
    }

    /* Article actions */
    .article-actions {
        gap: 10px;
    }

    .article-actions .action-btn {
        padding: 6px 14px;
        font-size: 13px;
    }

    /* Prev / Next */
    .article-nav {
        flex-direction: column;
        gap: 12px;
    }

    .article-nav .nav-item.next {
        text-align: left;
    }

    /* Related articles */
    .related-articles .article-grid {
        grid-template-columns: 1fr;
    }

    /* Pagination */
    .pagination {
        gap: 4px;
    }

    .pagination a,
    .pagination span {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
        padding: 0 8px;
    }

    /* Auth */
    .auth-container {
        margin: 20px auto;
        padding: 24px;
        border-radius: 0;
        box-shadow: none;
    }

    /* Search box */
    .search-box {
        max-width: 100%;
    }

    /* Page header */
    .page-header h1 {
        font-size: 20px;
    }

    /* Section header */
    .section-header h3 {
        font-size: 16px;
    }

    /* Footer */
    .footer {
        padding: 24px 0;
    }

    .footer .footer-links {
        gap: 12px;
    }

    /* Profile */
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .profile-stats {
        justify-content: center;
    }

    /* Admin */
    .admin-sidebar {
        display: none;
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .admin-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    /* Admin topbar */
    .admin-topbar {
        padding: 0 12px;
    }

    /* Admin table scroll */
    .admin-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Back to top */
    .back-to-top {
        bottom: 20px;
        right: 16px;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    /* Modal */
    .modal {
        width: 95%;
        border-radius: 8px;
    }

    /* Comments */
    .comment-item {
        gap: 10px;
    }

    .comment-avatar {
        width: 34px;
        height: 34px;
    }

    .comment-replies {
        margin-left: 44px;
    }
}

/* Extra small (< 480px) */
@media (max-width: 480px) {
    h1 { font-size: 22px; }
    h2 { font-size: 20px; }
    h3 { font-size: 17px; }

    .navbar-logo {
        font-size: 15px;
    }

    .banner {
        height: 180px;
    }

    .banner-overlay h2 {
        font-size: 16px;
    }

    .banner-overlay p {
        font-size: 12px;
        display: none;
    }

    .article-card .card-body {
        padding: 12px;
    }

    .article-card .card-title {
        font-size: 14px;
    }

    .article-detail {
        padding: 16px;
    }

    .article-detail .article-title {
        font-size: 18px;
    }

    .article-actions {
        flex-wrap: wrap;
    }

    .auth-container {
        padding: 20px 16px;
    }

    .auth-container .auth-header h2 {
        font-size: 20px;
    }

    .btn-lg {
        padding: 10px 24px;
        font-size: 15px;
    }

    /* Stat cards full width */
    .profile-stats {
        gap: 16px;
    }
}

/* ---------------------------------------------------------------
   28. PRINT STYLES
   --------------------------------------------------------------- */
@media print {
    .navbar,
    .footer,
    .sidebar-left,
    .sidebar-right,
    .back-to-top,
    .banner,
    .pagination,
    .article-actions,
    .article-nav,
    .comment-form,
    .related-articles {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
        font-size: 12pt;
    }

    .article-detail {
        box-shadow: none;
        padding: 0;
    }

    .layout-two-col .content-area {
        flex: 0 0 100%;
        max-width: 100%;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .article-content img {
        max-width: 100%;
        page-break-inside: avoid;
    }

    h2, h3, h4 {
        page-break-after: avoid;
    }
}

/* ===== 搜索框修复 ===== */
.navbar-search form { position: relative; width: 100%; display: flex; }

/* ===== 轮播修复 ===== */
.banner-slides { position: relative; height: 100%; }
.banner-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.6s ease-in-out; overflow: hidden; }
.banner-slide.active { opacity: 1; z-index: 1; }

/* ===== 卡片图片修复 ===== */
.article-card .card-image-link { display: block; position: relative; width: 100%; height: 0; padding-bottom: 56.25%; overflow: hidden; }
.article-card img.card-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.article-card:hover img.card-image { transform: scale(1.05); }

/* ===== Footer 新三栏布局 ===== */
.footer { background-color: #333; color: #ccc; padding: 40px 0 0; margin-top: 40px; font-size: 14px; line-height: 1.8; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 0.8fr 1fr; gap: 40px; padding-bottom: 30px; border-bottom: none; }
.footer-col h4 { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.footer-desc { color: #aaa; font-size: 13px; line-height: 1.9; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav li a { color: #aaa; text-decoration: none; font-size: 13px; transition: color 0.3s; }
.footer-nav li a:hover { color: #C07B32; }
.footer-bottom { text-align: center; padding: 20px 0; color: #777; font-size: 13px; }

/* ===== 文章内容样式强化 ===== */
.article-content { font-size: 16px; line-height: 1.9; color: #333; word-wrap: break-word; overflow-wrap: break-word; }
.article-content h2 { font-size: 22px; font-weight: 700; color: #222; margin: 28px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #C07B32; }
.article-content h3 { font-size: 18px; font-weight: 600; color: #333; margin: 22px 0 10px; padding-left: 10px; border-left: 3px solid #C07B32; }
.article-content p { margin: 0 0 16px; }
.article-content ul, .article-content ol { margin: 12px 0 16px 20px; padding: 0; }
.article-content li { margin-bottom: 6px; line-height: 1.8; }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 16px 0; display: block; }
.article-content .article-img { margin: 20px 0; }
.article-content blockquote { border-left: 4px solid #C07B32; padding: 12px 20px; margin: 16px 0; background: #faf6f1; color: #666; }
.article-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.article-content th, .article-content td { border: 1px solid #e5e5e5; padding: 10px 14px; text-align: left; }
.article-content th { background: #f8f8f8; font-weight: 600; }

/* ===== 响应式Footer ===== */
@media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
