/* ========================================
   Ink Minimal Theme - 墨迹极简
   设计理念：杂志排版、粗边框美学、全宽布局
   配色：墨黑 #0a0a0a | 橙韵 #ff6b35 | 纯白 #ffffff
   ======================================== */

:root {
    --primary: #0a0a0a;
    --accent: #ff6b35;
    --accent-dark: #e55a2b;
    --background: #ffffff;
    --surface: #f8f8f8;
    --surface-dark: #f0f0f0;
    --border: #0a0a0a;
    --border-light: #e5e5e5;
    --text: #0a0a0a;
    --text-secondary: #404040;
    --text-muted: #6b6b6b;
    --text-light: #a0a0a0;
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 80px;
    --radius-sm: 2px;
    --radius-md: 4px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text);
    background: var(--background);
}

::selection {
    background: var(--accent);
    color: var(--background);
}

a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent);
}

a:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

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

/* Typography - Magazine Style */
h1, h2, h3, h4, h5, h6 {
    color: var(--text);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

/* Layout - Full Width */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.main-layout {
    margin-top: var(--space-2xl);
    padding-bottom: var(--space-4xl);
}

.content-area {
    width: 100%;
    max-width: 100%;
}

/* Header - Top Bar Style */
.header {
    background: var(--background);
    border-bottom: 3px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: var(--space-xl);
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.03em;
    white-space: nowrap;
    text-transform: uppercase;
}

.site-logo:hover {
    color: var(--text);
}

.site-logo span {
    color: var(--accent);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.site-nav a {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: var(--space-sm) 0;
    position: relative;
    transition: color 0.2s ease;
}

.site-nav a:hover {
    color: var(--text);
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: width 0.2s ease;
}

.site-nav a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-search-toggle {
    background: none;
    cursor: pointer;
    padding: var(--space-sm);
    border: 2px solid var(--border);
    transition: all 0.2s ease;
}

.nav-search-toggle:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.nav-search-toggle:hover svg {
    color: var(--background);
}

.nav-search-toggle:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.nav-search-toggle svg {
    display: block;
    width: 18px;
    height: 18px;
    color: var(--text);
}

.nav-search-form {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--primary);
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 3px solid var(--accent);
}

.nav-search-form.active {
    display: block;
}

.nav-search-form form {
    display: flex;
    max-width: 640px;
    margin: 0 auto;
}

.nav-search-form input {
    flex: 1;
    background: var(--background);
    padding: var(--space-md) var(--space-lg);
    font-size: 1rem;
    outline: none;
    border: none;
    color: var(--text);
    font-weight: 500;
}

.nav-search-form input::placeholder {
    color: var(--text-light);
}

.nav-search-form button {
    background: var(--accent);
    cursor: pointer;
    padding: var(--space-md) var(--space-xl);
    color: var(--background);
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.2s ease;
}

.nav-search-form button:hover {
    background: var(--accent-dark);
}

.menu-toggle {
    display: none;
    background: none;
    cursor: pointer;
    padding: var(--space-sm);
    border: 2px solid var(--border);
    transition: border-color 0.2s ease;
}

.menu-toggle:hover {
    border-color: var(--accent);
}

.menu-toggle svg {
    display: block;
    width: 20px;
    height: 20px;
    color: var(--text);
}

/* Hero Section */
.hero-section {
    padding: var(--space-4xl) 0;
    border-bottom: 3px solid var(--border);
    margin-bottom: var(--space-3xl);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
}

.hero-title span {
    color: var(--accent);
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.8;
}

/* Article Grid - Magazine Layout */
.article-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-lg);
}

.article-grid .article-card {
    grid-column: span 6;
}

.article-grid .article-card:first-child {
    grid-column: span 12;
}

/* Article Card - Horizontal Style */
.article-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--background);
    border: 3px solid var(--border);
    transition: border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.article-card:hover {
    border-color: var(--accent);
}

.article-card:first-child {
    grid-template-columns: 1fr;
}

.article-card-num {
    position: absolute;
    top: var(--space-lg);
    left: var(--space-lg);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    z-index: 10;
    font-family: Georgia, "Times New Roman", serif;
}

.article-card-thumb-wrapper {
    overflow: hidden;
    background: var(--surface);
}

.article-card-thumb {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .article-card-thumb {
    transform: scale(1.03);
}

.article-card:first-child .article-card-thumb {
    height: 420px;
}

.article-card-body {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-card:first-child .article-card-body {
    padding: var(--space-2xl);
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article-card-meta .cate-tag {
    background: var(--accent);
    color: var(--background);
    padding: 4px 12px;
    font-weight: 700;
}

.article-card-title {
    font-size: 1.375rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: var(--space-md);
    line-height: 1.35;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.article-card:first-child .article-card-title {
    font-size: 2rem;
}

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

.article-card-desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.75;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Section Title - Bold Style */
.section-title {
    font-size: 1rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 3px solid var(--border);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.section-title::before {
    content: '';
    width: 20px;
    height: 3px;
    background: var(--accent);
}

.section-title a {
    color: var(--text);
}

.section-title a:hover {
    color: var(--accent);
}

/* Article Content - Magazine Reading */
.article-content {
    width: 100%;
    padding: var(--space-3xl) 0;
}

.article-header {
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 3px solid var(--border);
}

.article-header h1 {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--text);
    line-height: 1.25;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    font-size: 0.8125rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    font-weight: 600;
}

.article-meta .cate-link {
    background: var(--accent);
    color: var(--background);
    padding: 6px 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.6875rem;
    transition: background 0.2s ease;
}

.article-meta .cate-link:hover {
    background: var(--accent-dark);
    color: var(--background);
}

.article-body {
    font-size: 1.0625rem;
    line-height: 1.9;
    color: var(--text-secondary);
    font-weight: 400;
}

.article-body p {
    margin-bottom: var(--space-lg);
}

.article-body h2,
.article-body h3,
.article-body h4 {
    margin: var(--space-2xl) 0 var(--space-lg);
    color: var(--text);
    font-weight: 900;
}

.article-body h2 {
    font-size: 1.625rem;
    padding-bottom: var(--space-md);
    border-bottom: 3px solid var(--border);
}

.article-body h3 {
    font-size: 1.375rem;
}

.article-body h4 {
    font-size: 1.125rem;
}

.article-body img {
    margin: var(--space-2xl) 0;
    border: 3px solid var(--border);
}

.article-body a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.article-body a:hover {
    color: var(--text);
}

.article-body blockquote {
    padding: var(--space-xl) var(--space-2xl);
    margin: var(--space-2xl) 0;
    background: var(--surface);
    color: var(--text);
    font-size: 1.1875rem;
    font-weight: 700;
    border-left: 5px solid var(--accent);
    font-style: italic;
    line-height: 1.7;
}

.article-body code {
    background: var(--surface);
    padding: 3px 8px;
    font-size: 0.875rem;
    font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace;
    border: 1px solid var(--border-light);
}

.article-body pre {
    background: var(--primary);
    color: var(--background);
    padding: var(--space-lg);
    overflow-x: auto;
    margin: var(--space-2xl) 0;
    border: 3px solid var(--border);
    font-size: 0.875rem;
    line-height: 1.6;
}

.article-body pre code {
    background: none;
    padding: 0;
    color: var(--background);
    border: none;
}

.article-body ul,
.article-body ol {
    padding-left: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.article-body li {
    margin-bottom: var(--space-sm);
    line-height: 1.8;
}

.article-body hr {
    border: none;
    height: 3px;
    background: var(--border);
    margin: var(--space-2xl) 0;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-2xl) 0;
}

.article-body th,
.article-body td {
    padding: var(--space-md);
    border: 2px solid var(--border);
    text-align: left;
}

.article-body th {
    background: var(--surface);
    font-weight: 700;
}

/* Page Content */
.page-content {
    width: 100%;
    padding: var(--space-3xl) 0;
}

.page-content h1 {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-lg);
    letter-spacing: -0.02em;
    border-bottom: 3px solid var(--border);
}

/* Pagination - Bold Style */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin: var(--space-3xl) 0;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 var(--space-lg);
    background: var(--background);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 700;
    border: 3px solid var(--border);
    transition: all 0.2s ease;
}

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

.page-btn.active {
    background: var(--accent);
    color: var(--background);
    border-color: var(--accent);
}

.page-dots {
    padding: 0 var(--space-md);
    color: var(--text-muted);
    font-weight: 700;
}

/* Footer - Magazine Style */
.footer {
    background: var(--primary);
    color: var(--text-light);
    padding: var(--space-3xl) 0;
    margin-top: var(--space-4xl);
    border-top: 6px solid var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand {
    font-size: 1.375rem;
    font-weight: 900;
    color: var(--background);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
}

.footer-brand span {
    color: var(--accent);
}

.footer-desc {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.75;
}

.footer-title {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--background);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

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

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
    display: inline-block;
}

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

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid #2a2a2a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-copy {
    font-size: 0.8125rem;
    color: var(--text-light);
}

/* Error Page */
.error-page {
    text-align: center;
    padding: var(--space-4xl) 20px;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.error-page h1 {
    font-size: 8rem;
    font-weight: 900;
    color: var(--border-light);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.04em;
    line-height: 1;
}

.error-page p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: var(--space-2xl);
    font-weight: 500;
}

.error-page .btn {
    display: inline-block;
    padding: var(--space-md) var(--space-2xl);
    background: var(--primary);
    color: var(--background);
    font-size: 0.875rem;
    font-weight: 700;
    border: 3px solid var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: all 0.2s ease;
}

.error-page .btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--background);
}

/* No Data */
.no-data {
    text-align: center;
    padding: var(--space-3xl) 20px;
    color: var(--text-muted);
    font-size: 0.9375rem;
    background: var(--surface);
    font-weight: 500;
    border: 3px solid var(--border);
}

/* Related Articles */
.related-section {
    margin-top: var(--space-3xl);
    padding-top: var(--space-2xl);
    border-top: 3px solid var(--border);
    width: 100%;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.related-grid .article-card {
    grid-template-columns: 1fr;
}

.related-grid .article-card-thumb {
    height: 180px;
    min-height: 180px;
}

/* Category Page Header */
.category-header {
    padding: var(--space-3xl) 0;
    border-bottom: 3px solid var(--border);
    margin-bottom: var(--space-2xl);
}

.category-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
}

.category-header p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Search Results */
.search-header {
    padding: var(--space-2xl) 0;
    border-bottom: 3px solid var(--border);
    margin-bottom: var(--space-2xl);
}

.search-header h1 {
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-sm);
}

.search-header p {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Utility */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

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

.article-card {
    animation: fadeInUp 0.4s ease forwards;
}

.article-card:nth-child(1) { animation-delay: 0s; }
.article-card:nth-child(2) { animation-delay: 0.05s; }
.article-card:nth-child(3) { animation-delay: 0.1s; }
.article-card:nth-child(4) { animation-delay: 0.15s; }
.article-card:nth-child(5) { animation-delay: 0.2s; }
.article-card:nth-child(6) { animation-delay: 0.25s; }

/* Responsive */
@media (max-width: 1200px) {
    .container {
        padding: 0 var(--space-lg);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 1024px) {
    .article-grid {
        grid-template-columns: 1fr;
    }

    .article-grid .article-card,
    .article-grid .article-card:first-child {
        grid-column: span 1;
    }

    .article-card {
        grid-template-columns: 1fr;
    }

    .article-card:first-child {
        grid-template-columns: 1fr;
    }

    .article-card-thumb {
        height: 220px !important;
        min-height: 220px !important;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        height: 64px;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--background);
        flex-direction: column;
        padding: var(--space-lg);
        gap: 0;
        border-bottom: 3px solid var(--border);
    }

    .site-nav.active {
        display: flex;
    }

    .site-nav a {
        padding: var(--space-md) 0;
        width: 100%;
        border-bottom: 1px solid var(--border-light);
        color: var(--text);
    }

    .site-nav a:last-child {
        border-bottom: none;
    }

    .site-nav a::after {
        display: none;
    }

    .nav-search-form {
        top: 64px;
    }

    .menu-toggle {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }

    .main-layout {
        margin-top: var(--space-lg);
    }

    .article-card-body {
        padding: var(--space-lg);
    }

    .article-card-title {
        font-size: 1.125rem;
    }

    .article-card:first-child .article-card-title {
        font-size: 1.375rem;
    }

    .article-card-num {
        font-size: 2rem;
    }

    .hero-section {
        padding: var(--space-2xl) 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .article-content,
    .page-content {
        padding: var(--space-xl) var(--space-md);
    }

    .article-header h1,
    .page-content h1 {
        font-size: 1.625rem;
    }

    .article-body {
        font-size: 1rem;
    }

    .error-page h1 {
        font-size: 5rem;
    }

    .category-header h1 {
        font-size: 2rem;
    }

    .category-header {
        padding: var(--space-2xl) 0;
    }

    .related-section {
        padding: var(--space-xl) var(--space-md);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .header-inner {
        height: 56px;
    }

    .site-logo {
        font-size: 1.25rem;
    }

    .site-nav {
        top: 56px;
    }

    .nav-search-form {
        top: 56px;
        padding: var(--space-md);
    }

    .nav-search-form form {
        flex-direction: column;
    }

    .nav-search-form button {
        margin-top: var(--space-sm);
    }

    .article-content,
    .page-content {
        padding: var(--space-lg) var(--space-md);
    }

    .article-header h1,
    .page-content h1 {
        font-size: 1.375rem;
    }

    .article-card-body {
        padding: var(--space-md);
    }

    .article-card-title {
        font-size: 1rem;
    }

    .article-card-thumb {
        height: 180px !important;
        min-height: 180px !important;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .error-page h1 {
        font-size: 4rem;
    }

    .footer {
        padding: var(--space-xl) 0;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .page-btn {
        min-width: 40px;
        height: 40px;
        font-size: 0.8125rem;
    }
}
