:root {
    --primary: #007A9C;
    --primary-dark: #005f7a;
    --primary-light: #e6f4f8;
    --accent: #FF6B35;
    --accent-hover: #e55a2b;
    --bg: #FFFFFF;
    --bg-gray: #f5f7f8;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --border: #e8ecef;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
    --spacing: 24px;
    --max-width: 1200px;
}

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

body {
    font-family: -apple-system, "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content { flex: 1; }

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

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--spacing); }

/* ===== Navigation ===== */
.navbar {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}
.navbar-brand:hover { color: var(--primary); }
.navbar-brand .logo {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
}
.nav-menu a {
    display: block;
    padding: 8px 16px;
    color: var(--text);
    font-size: 15px;
    border-radius: var(--radius);
    transition: all 0.2s;
}
.nav-menu a:hover,
.nav-menu a.active {
    background: var(--primary-light);
    color: var(--primary);
}
.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-search input {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    width: 200px;
    outline: none;
    transition: border-color 0.2s;
}
.nav-search input:focus { border-color: var(--primary); }
.nav-search button {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}
.nav-search button:hover { background: var(--primary-dark); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ===== Hero / Featured ===== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #0099bb 100%);
    color: white;
    padding: 48px 0;
    text-align: center;
}
.hero h1 { font-size: 32px; margin-bottom: 12px; }
.hero p { font-size: 18px; opacity: 0.9; max-width: 600px; margin: 0 auto; }

/* ===== Section ===== */
.section { padding: 40px 0; }
.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.section-title .more {
    font-size: 14px;
    color: var(--text-light);
    font-weight: normal;
}

/* ===== Cards ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}
.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    border-color: transparent;
}
.card-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--primary);
}
.card h3 { font-size: 17px; margin-bottom: 6px; }
.card p { font-size: 14px; color: var(--text-light); line-height: 1.5; flex: 1; }
.card .meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* ===== Article List ===== */
.post-list { display: flex; flex-direction: column; gap: 16px; }
.post-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s;
}
.post-item:hover { box-shadow: var(--shadow); }
.post-item .post-info { flex: 1; }
.post-item h3 { font-size: 17px; margin-bottom: 6px; }
.post-item h3 a { color: var(--text); }
.post-item h3 a:hover { color: var(--primary); }
.post-item .summary { font-size: 14px; color: var(--text-light); margin-bottom: 10px; }
.post-item .post-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.tag {
    display: inline-block;
    padding: 2px 10px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    font-size: 12px;
}
.tag.orange { background: #fff3ed; color: var(--accent); }
.tag.green { background: #e8f8ee; color: #2d8a4e; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); color: white; }
.btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 36px; font-size: 17px; }

/* ===== Download Button ===== */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: white;
    padding: 16px 40px;
    border-radius: var(--radius);
    font-size: 18px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}
.download-btn:hover {
    background: var(--accent-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}
.download-btn .icon { font-size: 24px; }

/* ===== Tool Detail ===== */
.tool-detail-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px 0;
    align-items: start;
}
.tool-screenshot {
    background: var(--bg-gray);
    border-radius: var(--radius);
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    border: 1px solid var(--border);
}
.tool-info h1 { font-size: 28px; margin-bottom: 8px; }
.tool-info .desc { font-size: 16px; color: var(--text-light); margin-bottom: 16px; }
.tool-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.tool-features span {
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
}
.tool-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 12px;
}
.tool-content {
    max-width: 800px;
    padding-bottom: 40px;
}
.tool-content h2 { font-size: 22px; margin: 28px 0 12px; }
.tool-content h3 { font-size: 18px; margin: 20px 0 10px; }
.tool-content p { margin-bottom: 12px; color: var(--text-light); }
.tool-content ul, .tool-content ol { padding-left: 20px; margin-bottom: 12px; color: var(--text-light); }
.tool-content li { margin-bottom: 4px; }
.tool-content code {
    background: var(--bg-gray);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
}

/* ===== Sidebar Layout ===== */
.with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
}
.sidebar-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.2s;
    cursor: pointer;
}
.sidebar-card:hover { box-shadow: var(--shadow); }
.sidebar-card h4 { font-size: 14px; color: var(--text); }
.sidebar-card .label { font-size: 12px; color: var(--text-muted); }

/* ===== Social Proof ===== */
.social-proof {
    background: var(--primary-light);
    padding: 32px 0;
    text-align: center;
}
.social-proof .number { font-size: 36px; font-weight: 800; color: var(--primary); }
.social-proof .label { font-size: 16px; color: var(--text-light); margin-top: 4px; }
.social-proof .quote {
    font-style: italic;
    color: var(--text-light);
    margin-top: 16px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Benefit Bar ===== */
.benefit-bar {
    background: #fafbfc;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    text-align: center;
}
.benefit-bar .label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.benefit-bar .links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
}
.benefit-bar .links a {
    font-size: 14px;
    color: var(--text-light);
}
.benefit-bar .links a:hover { color: var(--accent); }

/* ===== Footer ===== */
.footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.7);
    padding: 32px 0;
    text-align: center;
    font-size: 14px;
}
.footer a { color: rgba(255,255,255,0.8); }
.footer a:hover { color: white; }
.footer .info { margin-bottom: 8px; }

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}
.pagination a, .pagination span {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); color: white; border-color: var(--primary); }

/* ===== Admin ===== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 220px;
    background: #1a1a2e;
    padding: 20px 0;
    flex-shrink: 0;
}
.admin-sidebar .brand {
    padding: 0 20px 20px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 12px;
}
.admin-sidebar .nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    transition: all 0.2s;
}
.admin-sidebar .nav a:hover,
.admin-sidebar .nav a.active {
    background: rgba(255,255,255,0.08);
    color: white;
}
.admin-main { flex: 1; padding: 24px; background: var(--bg-gray); }
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.admin-header h1 { font-size: 22px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
}
.stat-card .value { font-size: 28px; font-weight: 700; color: var(--primary); }
.stat-card .label { font-size: 14px; color: var(--text-light); margin-top: 4px; }

.table-wrap {
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; font-size: 14px; }
th { background: var(--bg-gray); font-weight: 600; color: var(--text-light); }
td { border-top: 1px solid var(--border); }
tr:hover td { background: #fafbfc; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    outline: none;
    font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}
.form-group textarea { min-height: 120px; resize: vertical; }

.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}
.badge-success { background: #e8f8ee; color: #2d8a4e; }
.badge-warning { background: #fff3ed; color: var(--accent); }
.badge-info { background: var(--primary-light); color: var(--primary); }

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.gap-16 { gap: 16px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* ===== Category Filter ===== */
.category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.category-tabs a {
    padding: 6px 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-light);
    transition: all 0.2s;
}
.category-tabs a:hover,
.category-tabs a.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===== Login Page ===== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-gray);
}
.login-box {
    background: var(--bg);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 360px;
    max-width: 90%;
}
.login-box h1 { font-size: 24px; margin-bottom: 24px; text-align: center; color: var(--primary); }
.login-box .error {
    background: #fff3ed;
    color: var(--accent);
    padding: 10px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 14px;
    text-align: center;
}

/* ===== About Page ===== */
.about-section { max-width: 700px; margin: 0 auto; padding: 40px 0; }
.about-section h2 { font-size: 22px; margin: 24px 0 12px; }
.about-section p { color: var(--text-light); margin-bottom: 12px; }
.about-section .info-row {
    display: flex;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}
.about-section .info-row .label { color: var(--text-muted); min-width: 80px; }

/* ===== Breadcrumb ===== */
.breadcrumb {
    padding: 12px 0;
    font-size: 14px;
    color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; }
