/* 深色黑金高端风 */
:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-nav: rgba(10, 10, 10, 0.85);
    --gold: #d4af37;
    --gold-light: #f9d86c;
    --text-main: #eaeaea;
    --text-muted: #999999;
    --border: #2a2a2a;
    --shadow: 0 8px 32px rgba(212, 175, 55, 0.12);
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 8px rgba(212, 175, 55, 0.2); }
    50% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.5), 0 0 30px rgba(212, 175, 55, 0.3); }
    100% { box-shadow: 0 0 8px rgba(212, 175, 55, 0.2); }
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    max-width: 1200px;
    margin: 0 auto;
}

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

/* Hero 区域 */
.hero {
    background: radial-gradient(circle at top right, #1a1a2e 0%, var(--bg-dark) 60%);
    padding: 0.7rem 1rem 1.8rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.hero h1 {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.6rem;
    letter-spacing: 1px;
}

.hero .subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.hero .description {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: rgba(25, 118, 210, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(25, 118, 210, 0.9);
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
    animation: pulse-glow 2.5s infinite ease-in-out;
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    background: rgba(25, 118, 210, 0.85);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.6);
}

/* 导航栏 */
.nav-bar {
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
}

.nav-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.nav-bar a {
    color: var(--gold);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
}

.nav-bar a:hover,
.nav-bar a.active {
    background: var(--gold);
    color: #0a0a0a;
}

/* 精选文章 */
.featured-posts {
    padding: 40px 0;
}

.featured-posts h2 {
    font-size: 1.6rem;
    color: #eaeaea;
    margin-bottom: 1.5rem;
    border-left: 4px solid #d4af37;
    padding-left: 1rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.2rem;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.3rem;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
}

.post-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.post-card h3 {
    font-size: 1.15rem;
    color: #eaeaea;
    margin-bottom: 0.8rem;
}

.post-card h3 a {
    color: #eaeaea;
    text-decoration: none;
}

.post-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.post-card .read-more {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.post-card .read-more:hover {
    text-decoration: underline;
}

/* 核心服务 */
.why-us {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.why-us h2 {
    font-size: 1.6rem;
    color: #eaeaea;
    margin-bottom: 1.5rem;
    border-left: 4px solid #d4af37;
    padding-left: 1rem;
}

.why-us h3 {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    text-align: center;
}

.why-us ul {
    list-style: none;
    max-width: 800px;
    padding-left: 1rem;
}

.why-us li {
    padding: 0.8rem;
    border-bottom: 1px solid var(--border);
    color: #ccc;
}

.why-us li strong {
    color: var(--gold);
}

/* 搜索关键词 */
.keywords {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.keywords h2 {
    font-size: 1.6rem;
    color: #eaeaea;
    margin-bottom: 1.5rem;
    border-left: 4px solid #d4af37;
    padding-left: 1rem;
}

.keywords p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 2;
    padding-left: 1rem;
}

/* 投稿合作 */
.contact {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.contact h2 {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.contact p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact a {
    color: var(--gold);
}

/* 页脚 */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 30px 20px;
    text-align: center;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

footer a {
    color: var(--gold);
}

/* 分类页面 */
.category-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.category-page .page-header {
    text-align: left;
    margin-bottom: 40px;
}

.category-page .page-header h1 {
    margin: 0.5rem 0;
    font-size: 1.8rem;
    color: var(--gold);
}

.category-page .page-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

.category-page .article-content {
    font-size: 1rem;
    line-height: 1.8;
}

.category-page .article-content h2 {
    font-size: 1.6rem;
    color: var(--text-main);
    margin: 30px 0 15px;
}

.category-page .article-content h3 {
    font-size: 1.25rem;
    color: #ddd;
    margin: 20px 0 10px;
}

.category-page .article-content p {
    margin-bottom: 15px;
    color: #ccc;
}

.category-page .article-content ul,
.category-page .article-content ol {
    margin-bottom: 15px;
    padding-left: 25px;
    color: #ccc;
}

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

.category-page .article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
}

.category-page .article-content th,
.category-page .article-content td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    color: #ccc;
}

.category-page .article-content th {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    font-weight: 600;
}

/* 文章页面 */
.article-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.article-page .article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.article-page .article-header .tag {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
}

.article-page .article-header h1 {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 10px;
    line-height: 1.3;
}

.article-page .article-header .meta {
    color: var(--text-muted);
    font-size: 14px;
}

.article-page .article-content {
    font-size: 1rem;
    line-height: 1.8;
}

.article-page .article-content h2 {
    font-size: 1.6rem;
    color: var(--text-main);
    margin: 30px 0 15px;
}

.article-page .article-content h3 {
    font-size: 1.25rem;
    color: #ddd;
    margin: 20px 0 10px;
}

.article-page .article-content p {
    margin-bottom: 15px;
    color: #ccc;
}

.article-page .article-content ul,
.article-page .article-content ol {
    margin-bottom: 15px;
    padding-left: 25px;
    color: #ccc;
}

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

.article-page .article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
}

.article-page .article-content th,
.article-page .article-content td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    color: #ccc;
}

.article-page .article-content th {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    font-weight: 600;
}

.article-page .article-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.article-page .article-tags h3 {
    font-size: 16px;
    color: var(--gold);
    margin-bottom: 10px;
}

.article-page .article-tags a {
    display: inline-block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    margin: 5px 5px 5px 0;
}

.article-page .article-contact {
    margin-top: 40px;
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-align: center;
}

.article-page .article-contact h3 {
    color: var(--gold);
    margin-bottom: 10px;
}

.article-page .article-contact a {
    color: var(--gold);
}

/* 响应式 */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.5rem; }
    .hero { padding: 0.5rem 1rem 1.2rem; }
    .nav-bar .container { gap: 0.6rem; }
    .posts-grid { grid-template-columns: 1fr; }
    .article-page .article-content table { font-size: 0.85rem; }
}

/* 文章阅读视图 */
.article-view {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 100;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    overflow-y: auto;
}

.article-view-inner {
    background: var(--bg-dark);
    border: 2px solid var(--gold);
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    margin: 20px auto;
    position: relative;
    padding: 30px;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.3);
}

.article-view-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
}

.article-view-close:hover {
    color: var(--gold-light);
}

.article-view h2 {
    font-size: 1.4rem;
    color: var(--gold);
    margin: 25px 0 15px;
}

.article-view h3 {
    font-size: 1.15rem;
    color: #ddd;
    margin: 20px 0 10px;
}

.article-view p {
    color: #ccc;
    margin-bottom: 15px;
    line-height: 1.8;
}

.article-view ul {
    list-style: none;
    margin: 15px 0;
}

.article-view ul li {
    color: #ccc;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.article-view ul li::before {
    content: "•";
    color: var(--gold);
    margin-right: 10px;
}

.article-view table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.article-view table th,
.article-view table td {
    border: 1px solid var(--border);
    padding: 10px;
    text-align: left;
}

.article-view table th {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
}

/* 分类页面统一风格 */
body.article-view-mode .category-page .page-header {
    background: radial-gradient(ellipse at top left, rgba(212, 175, 55, 0.08), transparent 70%), var(--bg-card);
    border-bottom: 1px solid var(--gold);
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
}

body.article-view-mode .category-page .page-header h1 {
    margin: 0.5rem 0;
    font-size: 1.8rem;
    color: var(--gold);
}

body.article-view-mode .category-page .page-header .subtitle,
body.article-view-mode .category-page .page-header p.meta {
    color: var(--text-muted);
    font-size: 0.95rem;
}

body.article-view-mode .article-page article {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05), var(--bg-card));
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

body.article-view-mode .category-page > article {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05), var(--bg-card));
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

body.article-view-mode .category-page .article-content {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05), var(--bg-card));
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

body.article-view-mode .category-page > article .article-content {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

body.article-view-mode .article-content h2 {
    font-size: 1.4rem;
    color: var(--gold);
    margin: 25px 0 15px;
}

body.article-view-mode .article-content h3 {
    font-size: 1.15rem;
    color: #ddd;
    margin: 20px 0 10px;
}

body.article-view-mode .article-content p {
    color: #ccc;
    margin-bottom: 15px;
    line-height: 1.8;
}

body.article-view-mode .article-content ul,
body.article-view-mode .article-content ol {
    list-style: none;
    margin: 15px 0;
}

body.article-view-mode .article-content ul li,
body.article-view-mode .article-content ol li {
    color: #ccc;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

body.article-view-mode .article-content ul li::before {
    content: "•";
    color: var(--gold);
    margin-right: 10px;
}

body.article-view-mode .article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

body.article-view-mode .article-content table th,
body.article-view-mode .article-content table td {
    border: 1px solid var(--border);
    padding: 10px;
    text-align: left;
}

body.article-view-mode .article-content table th {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
}

body.article-view-mode .article-tags {
    display: none;
}

body.article-view-mode .article-contact {
    display: none;
}

/* 文章页返回链接 */
.back-link {
    display: inline-block;
    color: var(--gold);
    text-decoration: none;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.back-link:hover {
    color: var(--gold-light);
}
