/* ============================================
   模板库 - 现代化UI样式
   ============================================ */

/* CSS Variables */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-bg: #eff6ff;
    --secondary: #6366f1;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1e293b;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--gray-50);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

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

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

/* ============================================
   Header
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo:hover {
    color: var(--primary-dark);
}

.nav {
    display: flex;
    gap: 8px;
}

.nav-item {
    padding: 8px 16px;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary);
    background: var(--primary-bg);
}

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

.search-box {
    display: flex;
    align-items: center;
    background: var(--gray-100);
    border-radius: 24px;
    padding: 4px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.search-input {
    width: 200px;
    padding: 8px 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
    color: var(--gray-700);
}

.search-input::placeholder {
    color: var(--gray-400);
}

.search-btn {
    padding: 8px 20px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--primary-dark);
}

.user-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-btn {
    padding: 8px 16px;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: var(--radius);
    transition: var(--transition);
}

.user-btn:hover {
    color: var(--primary);
    background: var(--primary-bg);
}

.user-btn.active {
    background: var(--primary);
    color: var(--white);
}

/* ============================================
   Banner
   ============================================ */
.banner-section {
    padding: 20px 0;
}

.banner-slider {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.banner-item {
    display: none;
}

.banner-item.active {
    display: block;
}

.banner-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: var(--white);
    text-align: center;
}

.banner-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.banner-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--white);
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
    border-radius: 24px;
    transition: var(--transition);
}

.banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-dark);
}

/* ============================================
   Quick Entry
   ============================================ */
.quick-entry-section {
    padding: 20px 0;
}

.quick-entry-list {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.quick-entry-item {
    padding: 12px 24px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition);
}

.quick-entry-item:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   VIP Banner
   ============================================ */
.vip-banner-section {
    padding: 20px 0;
}

.vip-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 40px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.vip-banner-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.vip-banner-content p {
    color: var(--gray-700);
    font-size: 16px;
}

.vip-banner-btn {
    padding: 14px 32px;
    background: var(--gray-900);
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    border-radius: 24px;
    transition: var(--transition);
}

.vip-banner-btn:hover {
    background: var(--dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

/* ============================================
   Section Header
   ============================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    position: relative;
    padding-left: 16px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--primary);
    border-radius: 2px;
}

.section-more {
    font-weight: 500;
    color: var(--gray-500);
    transition: var(--transition);
}

.section-more:hover {
    color: var(--primary);
}

/* ============================================
   Floor Section
   ============================================ */
.floor-section {
    padding: 20px 0;
}

.floor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.floor-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    position: relative;
    padding-left: 16px;
}

.floor-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 2px;
}

.floor-more {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-500);
}

.floor-more:hover {
    color: var(--primary);
}

/* ============================================
   Template Grid
   ============================================ */
.template-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.template-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.template-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.template-card-link {
    display: block;
    color: inherit;
}

.template-card-link:hover {
    color: inherit;
}

.template-card-cover {
    position: relative;
    padding-top: 75%;
    background: var(--gray-100);
    overflow: hidden;
}

.template-card-cover img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.template-card:hover .template-card-cover img {
    width: 95%;
    height: 95%;
}

.template-card-vip {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: var(--gray-900);
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
}

.template-card-info {
    padding: 16px;
}

.template-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.template-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.template-card-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--danger);
}

.template-card-downloads {
    font-size: 12px;
    color: var(--gray-400);
}

/* ============================================
   Article Section
   ============================================ */
.article-section {
    padding: 40px 0;
}

.article-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.article-card-link {
    display: block;
    color: inherit;
}

.article-card-link:hover {
    color: inherit;
}

.article-card-cover {
    padding-top: 56%;
    background: var(--gray-100);
    position: relative;
    overflow: hidden;
}

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

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

.article-card-info {
    padding: 16px;
}

.article-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--gray-400);
}

/* ============================================
   Auth Pages
   ============================================ */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 40px;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: 32px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.auth-form .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--gray-700);
    transition: var(--transition);
}

.auth-form .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.auth-form .form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.forgot-link {
    font-size: 14px;
    color: var(--gray-500);
}

.forgot-link:hover {
    color: var(--primary);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--gray-500);
}

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

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--gray-600);
    border: 1px solid var(--gray-300);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

/* ============================================
   Category Page
   ============================================ */
.filter-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.filter-group {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

.filter-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-group:first-child {
    padding-top: 0;
}

.filter-label {
    width: 80px;
    font-weight: 600;
    color: var(--gray-700);
    padding-top: 4px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-option {
    padding: 6px 16px;
    color: var(--gray-600);
    border-radius: 16px;
    font-size: 14px;
    transition: var(--transition);
}

.filter-option:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.filter-option.active {
    background: var(--primary);
    color: var(--white);
}

.template-list-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px 24px 0;
    box-shadow: var(--shadow);
}

.template-list-section .section-title {
    margin-bottom: 24px;
}

.empty-tip {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-400);
    font-size: 16px;
}

/* Search page */
.search-result-header {
    padding: 24px 0;
}
.search-result-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-800);
}
.search-result-title em {
    font-style: normal;
    color: var(--primary);
}
.search-result-subtitle {
    font-size: 14px;
    color: var(--gray-400);
    margin-top: 8px;
}
.result-count {
    font-size: 14px;
    font-weight: 400;
    color: var(--gray-400);
}

/* Tag Search page */
.tag-result-header {
    padding: 24px 0;
}
.tag-result-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-800);
}
.tag-result-title em {
    font-style: normal;
    color: var(--primary);
}
.tag-result-subtitle {
    font-size: 14px;
    color: var(--gray-400);
    margin-top: 8px;
}
.tag-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--gray-200);
}
.tag-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-500);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}
.tag-tab:hover {
    color: var(--primary);
    text-decoration: none;
}
.tag-tab.active {
    color: var(--primary);
    font-weight: 600;
    border-bottom-color: var(--primary);
}
.tag-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 10px;
    background: var(--gray-100);
    color: var(--gray-500);
}
.tag-tab.active .tag-tab-count {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
}
.tag-tab-content {
    min-height: 200px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    margin-bottom: 60px;
    list-style: none;
    padding: 0;
}

.pagination li {
    list-style: none;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination a {
    background: var(--white);
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
}

.pagination a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination .active span,
.pagination .current span {
    background: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}

.pagination .disabled span {
    background: var(--gray-50);
    color: var(--gray-400);
    border: 1px solid var(--gray-200);
    cursor: not-allowed;
}

/* ============================================
   Template Detail Page
   ============================================ */
.breadcrumb {
    padding: 16px 0;
    font-size: 14px;
    color: var(--gray-500);
}

.breadcrumb a {
    color: var(--gray-500);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .separator {
    margin: 0 8px;
    color: var(--gray-300);
}

.breadcrumb .current {
    color: var(--gray-700);
}

.template-detail {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    padding-bottom: 40px;
}

.template-detail-left {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    min-width: 0;
}

.template-detail-right {
    min-width: 0;
}

/* removed old cover */

/* removed old cover img */

/* removed old info */

.template-detail-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.template-detail-subtitle {
    font-size: 16px;
    color: var(--gray-500);
    margin-bottom: 16px;
}

.template-detail-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-label {
    color: var(--gray-500);
    font-size: 14px;
}

.meta-value {
    font-weight: 500;
    color: var(--gray-800);
}

.meta-value.price {
    font-size: 20px;
    color: var(--danger);
}

.template-detail-actions {
    display: flex;
    gap: 12px;
}

.template-detail-content {
    margin-bottom: 24px;
}

.template-detail-content .section-title {
    font-size: 18px;
    margin-bottom: 16px;
}

.content-body {
    line-height: 1.8;
    color: var(--gray-700);
}

.content-body h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 16px 0 8px;
}

.content-body ul {
    padding-left: 20px;
}

.content-body li {
    margin-bottom: 8px;
}

/* ============================================
   Comment Section
   ============================================ */
.template-detail-comments .section-title {
    font-size: 18px;
    margin-bottom: 16px;
}

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

.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    resize: vertical;
    margin-bottom: 12px;
    font-family: inherit;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.comment-list {
    border-top: 1px solid var(--gray-200);
}

.comment-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
}

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

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-user {
    font-weight: 500;
    color: var(--gray-800);
}

.comment-time {
    font-size: 12px;
    color: var(--gray-400);
    margin-left: auto;
}

.comment-body {
    color: var(--gray-700);
    line-height: 1.6;
}

.comment-empty {
    text-align: center;
    padding: 40px;
    color: var(--gray-400);
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-item a {
    display: flex;
    gap: 12px;
    color: inherit;
}

.related-item a:hover {
    color: inherit;
}

.related-cover {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.related-info {
    flex: 1;
    min-width: 0;
}

.related-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--danger);
}

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

.sidebar-list li {
    margin-bottom: 8px;
}

.sidebar-list a {
    display: block;
    padding: 8px 12px;
    color: var(--gray-600);
    border-radius: var(--radius);
    transition: var(--transition);
}

.sidebar-list a:hover {
    background: var(--gray-100);
    color: var(--primary);
}

/* ============================================
   Article Blocks (Homepage)
   ============================================ */
.article-blocks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.article-block {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.article-block:hover {
    box-shadow: var(--shadow-md);
}

.article-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
    background: var(--gray-50);
}

.article-block-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
    position: relative;
    padding-left: 12px;
}

.article-block-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: var(--primary);
    border-radius: 2px;
}

.article-block-more {
    font-size: 13px;
    color: var(--gray-400);
}

.article-block-more:hover {
    color: var(--primary);
}

.article-block-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-block-item {
    border-bottom: 1px solid var(--gray-50);
}

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

.article-block-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: inherit;
    transition: var(--transition);
}

.article-block-item a:hover {
    background: var(--gray-50);
    color: inherit;
}

.article-block-item-title {
    flex: 1;
    font-size: 14px;
    color: var(--gray-700);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 12px;
}

.article-block-item a:hover .article-block-item-title {
    color: var(--primary);
}

.article-block-item-date {
    font-size: 12px;
    color: var(--gray-400);
    white-space: nowrap;
}

/* ============================================
   Article Page
   ============================================ */
.article-list-page {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
}

.article-main {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
}

.article-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-100);
}

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

.article-item a {
    color: inherit;
}

.article-item a:hover {
    color: inherit;
}

.article-item-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 8px;
    transition: var(--transition);
}

.article-item:hover .article-item-title {
    color: var(--primary);
}

.article-item-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--gray-400);
}

.article-sidebar {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    align-self: start;
}

/* ============================================
   Single Column Article List
   ============================================ */
.article-single-page {
    max-width: 900px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 0;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.page-desc {
    font-size: 16px;
    color: var(--gray-500);
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
    justify-content: center;
}

.filter-item {
    padding: 8px 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    color: var(--gray-600);
    font-size: 14px;
    transition: var(--transition);
}

.filter-item:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-item.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.article-list-single {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-card-single {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    color: inherit;
}

.article-card-single:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: inherit;
}

.article-card-content {
    flex: 1;
}

.article-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-card-single:hover .article-card-title {
    color: var(--primary);
}

.article-card-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--gray-400);
}

.article-card-meta .icon {
    margin-right: 4px;
}

.article-card-arrow {
    font-size: 24px;
    color: var(--gray-300);
    margin-left: 20px;
    transition: var(--transition);
}

.article-card-single:hover .article-card-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state p {
    color: var(--gray-500);
    font-size: 16px;
}

.pagination-single {
    margin-top: 40px;
    text-align: center;
}

.pagination-single ul.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-single li {
    list-style: none;
}

.pagination-single a,
.pagination-single span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination-single a {
    background: var(--white);
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
}

.pagination-single a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination-single .active span {
    background: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}

.pagination-single .disabled span {
    background: var(--gray-50);
    color: var(--gray-400);
    border: 1px solid var(--gray-200);
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .article-card-single {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-card-arrow {
        display: none;
    }
    
    .article-card-meta {
        flex-wrap: wrap;
    }
}

/* ============================================
   7-Shaped Article Layout
   ============================================ */
.article-layout-7 {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.article-main-7 {
    min-width: 0;
}

.article-sidebar-7 {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 24px;
}

.category-filter-7 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.filter-item-7 {
    padding: 6px 16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    color: var(--gray-600);
    font-size: 13px;
    transition: var(--transition);
}

.filter-item-7:hover {
    border-color: var(--primary);
    color: var(--primary);
}


.filter-btn-7 {
    padding: 6px 16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    color: var(--gray-600);
    font-size: 13px;
    text-decoration: none;
    transition: var(--transition);
}

.filter-btn-7:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn-7.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.filter-item-7.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.article-categories-7 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.article-category-link-7 {
    color: var(--gray-600);
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}

.article-category-link-7:hover {
    color: var(--primary);
}

.article-category-link-7.active {
    color: var(--primary);
    font-weight: 500;
}
.article-list-7 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-item-7 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    color: inherit;
}

.article-item-7:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: inherit;
}

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

.article-item-title-7 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 8px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-item-7:hover .article-item-title-7 {
    color: var(--primary);
}

.article-item-meta-7 {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--gray-400);
}

.article-item-arrow-7 {
    font-size: 20px;
    color: var(--gray-300);
    margin-left: 16px;
    transition: var(--transition);
}

.article-item-7:hover .article-item-arrow-7 {
    color: var(--primary);
    transform: translateX(4px);
}

.empty-state-7 {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.empty-icon-7 {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state-7 p {
    color: var(--gray-500);
    font-size: 16px;
}

.pagination-7 {
    margin-top: 30px;
    margin-bottom: 60px;
    text-align: center;
}

.pagination-7 ul.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-7 li {
    list-style: none;
}

.pagination-7 a,
.pagination-7 span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination-7 a {
    background: var(--white);
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
}

.pagination-7 a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination-7 .active span {
    background: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}

.pagination-7 .disabled span {
    background: var(--gray-50);
    color: var(--gray-400);
    border: 1px solid var(--gray-200);
    cursor: not-allowed;
}

.sidebar-widget-7 {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget-title-7 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.sidebar-list-7 {
    list-style: none;
}

.sidebar-list-7 li {
    margin-bottom: 10px;
}

.sidebar-list-7 li:last-child {
    margin-bottom: 0;
}

.sidebar-list-7 a {
    display: block;
    padding: 8px 12px;
    color: var(--gray-600);
    font-size: 14px;
    border-radius: 6px;
    transition: var(--transition);
}

.sidebar-list-7 a:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.sidebar-tags-7 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar-tag-7 {
    padding: 6px 12px;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 12px;
    border-radius: 16px;
    transition: var(--transition);
}

.sidebar-tag-7:hover {
    background: var(--primary);
    color: var(--white);
}

/* ============================================
   Article Detail 7-Shaped Layout
   ============================================ */
.article-detail-7 {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.article-detail-title-7 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 16px;
    line-height: 1.4;
}

.article-detail-meta-7 {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-100);
}

.article-detail-content-7 {
    line-height: 1.8;
    color: var(--gray-700);
}

.article-detail-content-7 h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

.article-detail-content-7 h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 24px 0 12px;
}

.article-detail-content-7 p {
    margin-bottom: 16px;
}

.article-detail-content-7 img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

.article-detail-content-7 pre {
    background: var(--gray-900);
    color: var(--gray-100);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
}

.article-detail-content-7 code {
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
}

.article-detail-content-7 pre code {
    background: none;
    padding: 0;
}

.article-nav-7 {
    margin-top: 24px;
}

/* ============================================
   Friendly Links Section
   ============================================ */
.friendly-links-section {
    padding: 20px 0;
    margin-top: 10px;
}

.friendly-links-section .section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 16px;
}

.friendly-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.friendly-link-item {
    font-size: 14px;
    color: var(--gray-500);
    transition: color 0.2s;
}

.friendly-link-item:hover {
    color: var(--primary);
}

.friendly-link-item img {
    max-height: 24px;
    max-width: 80px;
    object-fit: contain;
}

@media (max-width: 992px) {
    .article-layout-7 {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar-7 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .article-sidebar-7 {
        grid-template-columns: 1fr;
    }
    
    .article-item-meta-7 {
        flex-wrap: wrap;
    }
}

/* ============================================
   Hosting Detail Page
   ============================================ */
.hosting-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    padding-bottom: 40px;
}

.hosting-detail-main {
    min-width: 0;
}

.hosting-ad-single {
    margin: 20px 0;
}

.hosting-ad-single .hosting-ad-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.hosting-ad-single .hosting-ad-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hosting-ad-single .hosting-ad-item img {
    width: 100%;
    height: auto;
    display: block;
}

.hosting-article {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}

.hosting-article-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
    line-height: 1.3;
}

.hosting-article-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.hosting-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding: 6px;
    background: var(--gray-100);
    border-radius: 12px;
    flex-wrap: wrap;
}

.hosting-tab {
    padding: 10px 24px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.hosting-tab:hover {
    color: var(--gray-800);
}

.hosting-tab.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

.hosting-report {
    min-height: 400px;
}

.report-terminal {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.terminal-content {
    padding: 20px;
    background: var(--gray-900);
    color: #e2e8f0;
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.7;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    min-height: 360px;
}

.hosting-nav {
    margin-top: 24px;
}

.merchant-banner {
    padding: 16px 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #0c4a6e;
    line-height: 1.6;
}

.hosting-footer {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.test-time-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--gray-600);
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

.test-time-label {
    font-weight: 500;
}

.test-time-value {
    color: var(--gray-800);
}

.risk-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    margin-top: 20px;
}

.disclaimer-icon {
    font-size: 16px;
    color: #d97706;
    line-height: 1;
    flex-shrink: 0;
}

.disclaimer-content {
    font-size: 12px;
    color: #92400e;
    line-height: 1.5;
}

.hosting-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-self: start;
}

.sidebar-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
}

.sidebar-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.hosting-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

.stat-label {
    font-size: 13px;
    color: var(--gray-600);
}

.stat-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

.sidebar-links {
    list-style: none;
}

.sidebar-links li {
    margin-bottom: 10px;
}

.sidebar-links li:last-child {
    margin-bottom: 0;
}

.sidebar-links a {
    display: block;
    padding: 10px 14px;
    color: var(--gray-600);
    font-size: 14px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    background: var(--gray-50);
}

.sidebar-links a:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar-tag-7 {
    padding: 6px 12px;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 12px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.2s;
}

.sidebar-tag-7:hover {
    background: var(--primary);
    color: var(--white);
}

@media (max-width: 992px) {
    .hosting-detail-layout {
        grid-template-columns: 1fr;
    }
    
    .hosting-detail-sidebar {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .hosting-article {
        padding: 24px;
    }
    
    .hosting-article-title {
        font-size: 22px;
    }
    
    .hosting-detail-sidebar {
        grid-template-columns: 1fr;
    }
    
    .hosting-tabs {
        gap: 4px;
        padding: 4px;
    }
    
    .hosting-tab {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .terminal-content {
        font-size: 11px;
        padding: 14px;
    }
}

/* ============================================
   Article Detail
   ============================================ */
.article-detail {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.article-detail-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
    line-height: 1.3;
}

.article-detail-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--gray-400);
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.article-detail-content {
    line-height: 1.8;
    color: var(--gray-700);
}

.article-detail-content h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 32px 0 16px;
}

.article-detail-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 24px 0 12px;
}

.article-detail-content p {
    margin-bottom: 16px;
}

.article-detail-content ul,
.article-detail-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.article-detail-content li {
    margin-bottom: 8px;
}

.article-nav {
    text-align: center;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 40px 0 24px;
    margin-top: 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
}

.footer-links a {
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-copyright {
    text-align: center;
    font-size: 14px;
}

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

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 20px;
        gap: 12px;
    }
    
    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .search-box {
        flex: 1;
    }
    
    .search-input {
        width: 100%;
    }
    
    .banner-content h1 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .article-list {
        grid-template-columns: 1fr;
    }
    
    .vip-banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .article-list-page {
        grid-template-columns: 1fr;
    }
    
    .article-blocks {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .template-grid {
        grid-template-columns: 1fr;
    }
    
    .template-detail-meta {
        grid-template-columns: 1fr;
    }
    
    .template-detail-actions {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .article-blocks {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Merchant Navigation Page
   ============================================ */
.merchant-page {
    padding: 0 0 60px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.page-desc {
    font-size: 16px;
    color: var(--gray-500);
    margin-bottom: 32px;
}

.merchant-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-100);
}

.filter-item {
    padding: 5px 14px;
    border-radius: 16px;
    font-size: 12px;
    color: var(--gray-600);
    background: var(--gray-100);
    text-decoration: none;
    transition: all 0.2s;
}

.filter-item:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.filter-item.active {
    background: var(--primary);
    color: var(--white);
}

.merchant-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px;
}

.merchant-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    text-decoration: none;
    transition: all 0.2s;
    text-align: center;
}

.merchant-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.merchant-logo-text {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.merchant-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    margin-bottom: 8px;
    background: var(--gray-50);
    padding: 4px;
}

.merchant-info {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.merchant-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-700);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.merchant-desc {
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: none;
}

.merchant-arrow {
    display: none;
}

.merchant-card:hover .merchant-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .merchant-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px;
}
    
    .merchant-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    text-decoration: none;
    transition: all 0.2s;
    text-align: center;
}
    
    .merchant-logo-text {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.merchant-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    margin-bottom: 8px;
    background: var(--gray-50);
    padding: 4px;
}
    
    .merchant-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-700);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}
}

/* Sticky footer */
html {
    height: 100%;
}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.main {
    flex: 1;
}
.footer {
    margin-top: auto;
}

/* Comment login tip */
.comment-login-tip {
    text-align: center;
    padding: 40px 20px;
    background: var(--gray-50);
    border-radius: 8px;
    border: 1px dashed var(--gray-200);
}
.comment-login-tip p {
    margin: 0 0 16px;
    color: var(--gray-500);
    font-size: 15px;
}

/* Comment user info */
.comment-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}
.comment-user-info .comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.comment-user-info span {
    font-weight: 500;
    color: var(--gray-700);
}

/* User nickname in header */
.user-nick {
    color: var(--primary);
    font-weight: 500;
    font-size: 14px;
    margin-right: 8px;
    white-space: nowrap;
}

/* User dropdown */
.user-dropdown {
    position: relative;
    display: inline-block;
}
.user-dropdown-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}
.user-dropdown-btn:hover {
    opacity: 0.9;
}
.user-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    min-width: 120px;
    z-index: 1000;
    overflow: hidden;
}
.user-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--gray-700);
    text-decoration: none;
    transition: var(--transition);
}
.user-dropdown-menu a:hover {
    background: var(--gray-50);
    color: var(--primary);
}
.user-dropdown.open .user-dropdown-menu {
    display: block;
}

/* Member layout */
.member-layout {
    display: flex;
    gap: 24px;
    padding-bottom: 40px;
}
.member-sidebar {
    width: 240px;
    flex-shrink: 0;
}
.member-content {
    flex: 1;
    min-width: 0;
}

/* Sidebar avatar box */
.member-avatar-box {
    background: var(--white);
    border-radius: 10px;
    border: 1px solid var(--gray-100);
    padding: 24px 20px;
    text-align: center;
    margin-bottom: 16px;
}
.member-avatar-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gray-100);
    margin-bottom: 12px;
}
.member-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.member-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
}
.vip-badge {
    display: inline-block;
    padding: 2px 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: var(--white);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}
.user-level-tag {
    display: inline-block;
    padding: 2px 12px;
    background: var(--gray-100);
    color: var(--gray-500);
    border-radius: 12px;
    font-size: 12px;
}

/* Sidebar nav */
.member-nav {
    background: var(--white);
    border-radius: 10px;
    border: 1px solid var(--gray-100);
    overflow: hidden;
}
.member-nav-item {
    display: flex;
    align-items: center;
    padding: 13px 20px;
    font-size: 14px;
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.member-nav-item:hover {
    background: var(--gray-50);
    color: var(--primary);
}
.member-nav-item.active {
    background: var(--primary-bg);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 500;
}

/* Content cards */
.member-card {
    background: var(--white);
    padding: 24px 28px;
    border-radius: 10px;
    border: 1px solid var(--gray-100);
    margin-bottom: 20px;
}
.member-card-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
}
.member-card-desc {
    margin: 0;
    color: var(--gray-500);
    font-size: 14px;
}

/* Stats grid */
.member-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
.member-stat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--gray-100);
}
.member-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.member-stat-val {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 2px;
}
.member-stat-lbl {
    font-size: 13px;
    color: var(--gray-500);
}

/* Shortcuts */
.member-shortcuts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.member-shortcut-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 16px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 10px;
    text-decoration: none;
    color: var(--gray-700);
    font-size: 14px;
    transition: all 0.2s;
}
.member-shortcut-item:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.1);
}
.shortcut-icon {
    font-size: 28px;
}

/* Profile form */
.form-row {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-50);
}
.form-row:last-of-type {
    border-bottom: none;
}
.form-label {
    width: 80px;
    font-size: 14px;
    color: var(--gray-600);
    flex-shrink: 0;
}
.form-input {
    flex: 1;
    max-width: 360px;
    padding: 10px 14px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 14px;
    color: var(--gray-800);
    outline: none;
    transition: border-color 0.2s;
}
.form-input:focus {
    border-color: var(--primary);
}
.form-plaintext {
    font-size: 14px;
    color: var(--gray-800);
}
.form-actions {
    padding-top: 20px;
    margin-left: 80px;
}

/* Empty state */
.empty-box {
    text-align: center;
    padding: 48px 20px;
    color: var(--gray-500);
}
.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.empty-box p {
    margin: 4px 0;
}
.empty-desc {
    font-size: 13px;
    color: var(--gray-400);
}

/* VIP active box */
.vip-active-box {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 10px;
    padding: 20px 24px;
    margin-top: 16px;
}
.vip-active-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #92400e;
}

/* Privileges */
.vip-privileges {
    margin-top: 24px;
}
.privilege-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 16px;
}
.privilege-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 10px;
    font-size: 14px;
    color: var(--gray-700);
}
.privilege-icon {
    font-size: 32px;
}

/* Comment records */
.comment-record-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.comment-record-item {
    padding: 16px 20px;
    background: var(--gray-50);
    border-radius: 8px;
    border: 1px solid var(--gray-100);
}
.comment-record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.comment-record-type {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}
.comment-record-time {
    font-size: 12px;
    color: var(--gray-400);
}
.comment-record-content {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 8px;
}
.comment-record-status {
    display: flex;
    justify-content: flex-end;
}
.status-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
}
.status-tag.pending {
    background: #fef3c7;
    color: #d97706;
}
.status-tag.approved {
    background: #dcfce7;
    color: #16a34a;
}
.status-tag.rejected {
    background: #fee2e2;
    color: #dc2626;
}

/* Favorite list */
.favorite-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.favorite-item {
    border-bottom: 1px solid var(--gray-100);
}
.favorite-item:last-child {
    border-bottom: none;
}
.favorite-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    text-decoration: none;
    transition: var(--transition);
}
.favorite-link:hover .favorite-title {
    color: var(--primary);
}
.favorite-title {
    font-size: 14px;
    color: var(--gray-700);
    transition: var(--transition);
}
.favorite-time {
    font-size: 12px;
    color: var(--gray-400);
    flex-shrink: 0;
}

/* Download & Favorite list */
.download-list, .favorite-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.download-item, .favorite-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: 8px;
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}
.download-item:hover, .favorite-item:hover {
    border-color: var(--gray-200);
    background: var(--white);
}
.download-cover, .favorite-cover {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--white);
    border: 1px solid var(--gray-100);
}
.download-cover img, .favorite-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.download-cover-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--gray-400);
    background: var(--gray-100);
}
.download-info, .favorite-info {
    flex: 1;
    min-width: 0;
}
.download-title, .favorite-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-800);
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.download-title:hover, .favorite-title:hover {
    color: var(--primary);
}
.download-meta, .favorite-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--gray-400);
}
.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

/* Content Body - 模板介绍内容 */

.content-body p {
    margin-bottom: 0;
    line-height: 1.8;
    text-indent: 2em;
}
.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
    display: block;
}

.content-body br {
    display: none;
}

.content-body div + div {
    margin-top: 16px;
}
.content-body {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.content-body div {
    margin-bottom: 0;
    text-indent: 2em;
}

.content-body span[style] {
    display: inline;
}

.content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}

.content-body td, .content-body th {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
}
 }


/* ============================================
   Template Detail Page - Clean Layout
   ============================================ */

/* Main grid: left content + right sidebar */
.template-detail {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    padding-bottom: 40px;
}

.template-detail-left {
    min-width: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
}

.template-detail-right {
    min-width: 0;
}

/* Left column: cover image + info side by side */
.template-detail-top {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--gray-200);
}

.template-detail-cover {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--gray-100);
}

.template-detail-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.template-detail-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.template-detail-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.template-detail-subtitle {
    font-size: 16px;
    color: var(--gray-500);
    margin-bottom: 16px;
}

.template-detail-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.template-detail-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

/* Left column: description content */
.template-detail-content {
    margin-bottom: 24px;
}

.template-detail-content .section-title {
    font-size: 18px;
    margin-bottom: 16px;
}

.content-body {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    line-height: 1.8;
    color: var(--gray-700);
}


.content-body p {
    margin-bottom: 0;
    line-height: 1.8;
    text-indent: 2em;
}
.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
    display: block;
}

.content-body h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 16px 0 8px;
}

.content-body div {
    margin-bottom: 0;
    text-indent: 2em;
}

.content-body span[style] {
    display: inline;
}

.content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}

.content-body td,
.content-body th {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
}

/* Left column: comments */
.template-detail-comments .section-title {
    font-size: 18px;
    margin-bottom: 16px;
}

/* Right sidebar */
.sidebar-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-ad {
    border-radius: var(--radius);
    overflow: hidden;
}

.sidebar-more {
    display: block;
    text-align: center;
    padding: 8px 0;
    color: var(--primary);
    font-size: 14px;
    text-decoration: none;
}

.sidebar-more:hover {
    text-decoration: underline;
}

.hosting-list {
    display: flex;
    flex-direction: column;
}

.hosting-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
}

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

.hosting-link {
    text-decoration: none;
    color: var(--gray-700);
}

.hosting-link:hover {
    color: var(--primary);
}

.hosting-name {
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.4;
}

.hosting-meta {
    font-size: 12px;
    color: var(--gray-500);
    display: flex;
    gap: 12px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gray-100);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--gray-600);
    text-decoration: none;
    transition: var(--transition);
}

.tag-item:hover {
    background: var(--primary);
    color: var(--white);
}

.related-list {
    display: flex;
    flex-direction: column;
}

.related-item a {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    text-decoration: none;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

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

.related-cover {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.related-info {
    flex: 1;
    min-width: 0;
}

.related-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-price {
    font-size: 13px;
    color: var(--danger);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .template-detail {
        grid-template-columns: 1fr;
    }
    .template-detail-top {
        grid-template-columns: 1fr;
    }
    .template-detail-cover img {
        max-height: 240px;
    }
}

@media (max-width: 900px) {
    .template-detail-top {
        grid-template-columns: 1fr;
    }
    .template-detail-cover img {
        max-height: 240px;
    }
}
/* Smaller action buttons for template detail */
.template-detail-actions .btn {
    padding: 6px 16px;
    font-size: 13px;
    line-height: 1.5;
}
.template-detail-actions .btn-primary {
    padding: 6px 18px;

/* Hot tag links */
.hot-tag-link {
    display: inline-block;
    padding: 2px 8px;
    margin: 2px 4px;
    font-size: 12px;
    color: #3b82f6;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.hot-tag-link:hover {
    color: #2563eb;
    background-color: #dbeafe;
    border-color: #93c5fd;
}
/* Offer banner (coupon + direct) */
.offer-banner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #bae6fd;
    border-radius: 8px;
    margin-bottom: 24px;
}
.offer-banner-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.offer-badge {
    padding: 4px 12px;
    background: #2563eb;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
}
.offer-code {
    font-size: 22px;
    font-weight: 700;
    color: #0c4a6e;
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
}
.offer-code-img {
    height: 48px;
    border-radius: 6px;
    flex-shrink: 0;
}
.offer-go-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: #fff;
    color: #2563eb;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #93c5fd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    white-space: nowrap;
}
.offer-go-btn:hover {
    background: #eff6ff;
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37,99,235,0.15);
}