/* ========================================
   赚钱方法分享站 - 全局样式
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --bg: #f5f7fa;
    --card-bg: #ffffff;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --border: #e8e8e8;
    --accent: #ff6b35;
    --success: #52c41a;
    --warning: #faad14;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --radius: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    font-size: 16px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

/* ========================================
   头部导航
   ======================================== */

.header {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo:hover {
    color: white;
}

.logo-icon {
    font-size: 28px;
}

.nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s;
}

.nav a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

/* ========================================
   主页横幅
   ======================================== */

.banner {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: white;
    padding: 60px 24px;
    text-align: center;
}

.banner h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.banner p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   内容区域
   ======================================== */

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 24px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 4px solid var(--primary);
}

/* ========================================
   文章列表 (主页)
   ======================================== */

.article-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    transition: all 0.3s;
    border: 1px solid var(--border);
    display: block;
    color: var(--text);
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    color: var(--text);
    border-color: var(--primary);
}

.article-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.article-card h2 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
}

.article-card:hover h2 {
    color: var(--primary);
}

.article-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.tag-ecommerce { background: #e6f7ff; color: #1890ff; }
.tag-sidejob { background: #fff7e6; color: #fa8c16; }
.tag-invest { background: #f6ffed; color: #52c41a; }
.tag-tech { background: #f9f0ff; color: #722ed1; }
.tag-default { background: #f0f0f0; color: #666; }

.article-card .summary {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========================================
   文章详情页
   ======================================== */

.article-page {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
    border: 1px solid var(--border);
}

.article-page .article-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 16px;
    color: #111;
}

.article-page .article-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
    font-size: 14px;
    color: var(--text-muted);
}

.article-page .article-info span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 文章内容排版 */
.article-content {
    font-size: 16px;
    line-height: 2;
    color: var(--text);
}

.article-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 36px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    color: #111;
}

.article-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 12px;
    color: #222;
}

.article-content p {
    margin-bottom: 16px;
}

.article-content ul, .article-content ol {
    margin: 12px 0 16px 24px;
}

.article-content li {
    margin-bottom: 6px;
}

.article-content strong {
    color: #111;
}

.article-content em {
    color: var(--primary);
    font-style: normal;
}

/* 分隔线 */
.article-content hr {
    border: none;
    border-top: 1px dashed var(--border);
    margin: 28px 0;
}

/* 表格 */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 15px;
}

.article-content th {
    background: #f0f5ff;
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border: 1px solid #d9e4f5;
}

.article-content td {
    padding: 10px 16px;
    border: 1px solid var(--border);
}

.article-content tr:nth-child(even) td {
    background: #fafafa;
}

.article-content tr:hover td {
    background: #f0f5ff;
}

/* 引用框 */
.article-content blockquote {
    background: #fffbe6;
    border-left: 4px solid var(--warning);
    padding: 16px 20px;
    margin: 16px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 15px;
}

/* 提示框 */
.highlight-box {
    background: #e6f7ff;
    border: 1px solid #91d5ff;
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: 16px 0;
}

.highlight-box.warning {
    background: #fff2e8;
    border-color: #ffbb96;
}

.highlight-box.success {
    background: #f6ffed;
    border-color: #b7eb8f;
}

/* 步骤 */
.step {
    background: #f8f9ff;
    border-radius: var(--radius);
    padding: 20px;
    margin: 16px 0;
    border-left: 4px solid var(--primary);
}

.step-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

/* 流程图示 */
.flow-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 20px 0;
    font-size: 15px;
}

.flow-step {
    background: #f0f5ff;
    padding: 10px 24px;
    border-radius: 20px;
    border: 1px solid #d9e4f5;
}

.flow-arrow {
    color: var(--primary);
    font-size: 18px;
}

/* 作者信息框 */
.author-box {
    background: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin: 24px 0;
    font-size: 14px;
    line-height: 1.8;
}

.author-box .author-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
}

.author-box a {
    color: var(--primary);
}

/* 声明 */
.copyright-notice {
    text-align: center;
    padding: 16px;
    margin: 24px 0;
    border-top: 1px dashed var(--border);
    border-bottom: 1px dashed var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

/* ========================================
   返回列表按钮
   ======================================== */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s;
}

.back-link:hover {
    background: #f0f0f0;
    color: var(--primary);
}

/* ========================================
   页脚
   ======================================== */

.footer {
    text-align: center;
    padding: 32px 24px;
    font-size: 14px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

.footer a {
    color: var(--primary);
}

/* ========================================
   响应式
   ======================================== */

@media (max-width: 768px) {
    .banner h1 { font-size: 26px; }
    .banner p { font-size: 15px; }
    .article-page { padding: 24px 16px; }
    .article-page .article-title { font-size: 22px; }
    .article-content table { font-size: 13px; }
    .article-content th, .article-content td { padding: 8px 10px; }
    .header-inner { padding: 12px 16px; }
    .logo { font-size: 18px; }
    .nav { gap: 12px; }
    .nav a { font-size: 13px; padding: 4px 8px; }
}

/* ========================================
   工具类
   ======================================== */

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
