/* ========================================
   点我98 主样式
   ======================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary: #2b7a3e;
    --primary-dark: #1e5a2c;
    --accent: #f5a623;
    --text: #333;
    --text-light: #666;
    --border: #e8e8e8;
    --bg: #f7f8fa;
    --white: #fff;
    --shadow: 0 2px 12px rgba(0,0,0,.06);
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 15px;
}
a { color: var(--primary); text-decoration: none; transition: .2s; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* Header */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky; top: 0; z-index: 100;
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.logo a { font-size: 24px; font-weight: 700; color: var(--primary); letter-spacing: 1px; }
.logo img { height: 40px; }
.main-nav ul { display: flex; gap: 8px; }
.main-nav a {
    display: block; padding: 8px 14px; border-radius: 6px;
    color: var(--text); font-weight: 500;
}
.main-nav a:hover { background: var(--primary); color: var(--white); }
.user-bar { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.user-bar a { color: var(--text-light); }
.user-bar a:hover { color: var(--primary); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.menu-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* Layout */
.layout { display: flex; gap: 24px; margin: 24px auto; max-width: 1200px; padding: 0 15px; }
.main-content { flex: 1; min-width: 0; }
.sidebar { width: 320px; flex-shrink: 0; }

/* Cards */
.card {
    background: var(--white); border-radius: 10px; box-shadow: var(--shadow);
    padding: 20px; margin-bottom: 20px;
}
.card-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; padding-left: 12px; border-left: 4px solid var(--primary); }

/* Article list */
.article-item {
    display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border);
}
.article-item:last-child { border-bottom: 0; }
.article-cover { width: 200px; height: 130px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.article-info { flex: 1; min-width: 0; }
.article-title { font-size: 17px; font-weight: 600; margin-bottom: 8px; display: block; color: var(--text); }
.article-title:hover { color: var(--primary); }
.article-desc { color: var(--text-light); font-size: 14px; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-meta { font-size: 13px; color: #999; display: flex; gap: 14px; }
.price-tag { color: var(--accent); font-weight: 600; }

/* Buttons */
.btn {
    display: inline-block; padding: 9px 22px; border-radius: 6px; border: 0; cursor: pointer;
    font-size: 14px; font-weight: 500; transition: .2s; text-align: center;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); }
.btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-block { display: block; width: 100%; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; }
.form-control {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px;
    font-size: 14px; transition: border .2s;
}
.form-control:focus { border-color: var(--primary); outline: none; }
textarea.form-control { min-height: 120px; resize: vertical; }
.form-tip { font-size: 12px; color: #999; margin-top: 4px; }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 24px 0; }
.pagination a, .pagination span {
    padding: 7px 13px; border-radius: 6px; border: 1px solid var(--border); background: var(--white);
}
.pagination .active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* Footer */
.site-footer { background: #222; color: #bbb; margin-top: 40px; padding: 40px 0 0; }
.footer-widgets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-bottom: 30px; }
.footer-widgets h4 { color: var(--white); font-size: 16px; margin-bottom: 14px; }
.footer-widgets a { color: #bbb; }
.footer-widgets a:hover { color: var(--accent); }
.footer-widgets ul li { margin-bottom: 8px; font-size: 14px; }
.link-list { display: flex; flex-wrap: wrap; gap: 8px; }
.link-list li a { background: rgba(255,255,255,.08); padding: 4px 10px; border-radius: 4px; }
.footer-bottom { border-top: 1px solid #333; padding: 18px 0; text-align: center; font-size: 13px; color: #888; }
.footer-bottom .icp { margin-top: 6px; }

/* Article detail */
.article-detail .article-head { text-align: center; margin-bottom: 24px; }
.article-detail h1 { font-size: 26px; margin-bottom: 12px; }
.article-detail .content { font-size: 16px; line-height: 1.9; }
.article-detail .content img { margin: 16px auto; border-radius: 8px; }
.article-detail .pay-mask {
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    padding: 60px 20px; text-align: center; margin-top: -180px; position: relative; z-index: 2;
}
.pay-box { background: #fffaf0; border: 1px dashed var(--accent); border-radius: 10px; padding: 30px; text-align: center; margin: 20px 0; }
.pay-box .price { font-size: 32px; color: var(--accent); font-weight: 700; }

/* Alert */
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #eef9f1; color: #1e7e34; border: 1px solid #c3e6cb; }
.alert-error { background: #fbeaea; color: #c92a2a; border: 1px solid #f5c6cb; }

/* Tag */
.tag { display: inline-block; padding: 2px 8px; background: #eef3f0; color: var(--primary); border-radius: 4px; font-size: 12px; margin-right: 6px; }

/* Breadcrumb */
.breadcrumb { font-size: 13px; color: #999; margin-bottom: 16px; }
.breadcrumb a { color: #999; }
.breadcrumb a:hover { color: var(--primary); }
