:root {
    --bg: #f4f6fb;
    --card: #ffffff;
    --line: #e6eaf2;
    --text: #2a2d34;
    --muted: #7f8899;
    --accent: #d8a13c;
    --accent-dark: #b68221;
    --shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
}
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 28px)); margin: 0 auto; }
.site-header {
    position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.topbar { display:flex; align-items:center; justify-content:space-between; min-height:68px; gap:20px; }
.brand { font-size: 22px; font-weight: 800; }
.header-nav { display:flex; gap:18px; }
.header-nav a { color: var(--muted); font-weight: 600; }
.page-wrap { padding: 22px 0 60px; }
.breadcrumb { color: var(--muted); margin-bottom: 20px; font-size: 14px; }
.hero-card {
    background: linear-gradient(135deg, #fff9ed, #fff);
    border:1px solid #f1e2bf; border-radius: 18px; padding: 24px; box-shadow: var(--shadow); margin-bottom: 24px;
}
.hero-label { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.hero-label span { color: #4695ff; }
.hero-name { display:inline-block; font-size: 30px; font-weight: 800; color: #f09a00; margin-bottom: 10px; }
.hero-text p { margin: 0; color: #625f58; }
.quick-menu { display:flex; gap:10px; flex-wrap:wrap; margin-bottom: 26px; }
.quick-menu a {
    background:#fff; border:1px solid var(--line); padding:10px 14px; border-radius:999px; color: var(--muted); font-size:14px;
}
.nav-section { margin-bottom: 34px; }
.section-head { margin-bottom: 14px; }
.section-head h2 { margin: 0 0 6px; font-size: 32px; }
.section-head p { margin: 0; color: var(--muted); }
.tabs { display:flex; gap:18px; margin-bottom: 14px; border-bottom: 1px solid var(--line); flex-wrap:wrap; }
.tab-btn {
    background: transparent; border: 0; border-bottom: 3px solid transparent; padding: 12px 0; cursor:pointer;
    font-size: 18px; color: #8b92a1;
}
.tab-btn.active { color: var(--text); border-color: var(--accent); font-weight: 700; }
.tab-panel { display:none; }
.tab-panel.active { display:block; }
.card-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:16px; }
.site-card, .empty-card {
    display:block; background: var(--card); border:1px solid var(--line); border-radius: 14px; padding: 18px;
    box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.site-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10); }
.card-title-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.site-card h3 { margin:0; font-size: 24px; }
.site-card p { margin: 12px 0 16px; color: var(--muted); min-height: 42px; font-size: 15px; }
.card-meta { display:flex; justify-content:space-between; color:#96a0ae; border-top:1px solid #f0f2f7; padding-top:12px; font-size:14px; }
.badge, .ad-tag {
    display:inline-flex; align-items:center; justify-content:center; padding:4px 8px; border-radius:999px; font-size:12px; font-weight:700;
}
.badge { background:#fff3cf; color:#b77a00; }
.ad-tag { background:#f7dede; color:#b74040; }
.site-footer { padding: 28px 0 60px; color: var(--muted); text-align:center; }
.floating-tools {
    position: fixed; right: 18px; bottom: 20px; display:flex; flex-direction:column; gap:10px; z-index:10;
}
.floating-tools a {
    width: 46px; height: 46px; border-radius:50%; background: rgba(255,255,255,.92); border:1px solid var(--line); display:flex;
    align-items:center; justify-content:center; box-shadow: var(--shadow); font-size: 20px;
}

/* admin */
.admin-wrap { display:grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-side { background:#19202d; color:#fff; padding:24px; }
.admin-side h2 { margin-top:0; }
.admin-side a { display:block; color:#cfd7e4; padding:10px 12px; border-radius:10px; margin-bottom:8px; }
.admin-side a.active, .admin-side a:hover { background:#283145; color:#fff; }
.admin-main { padding: 24px; }
.stat-grid { display:grid; grid-template-columns: repeat(4,1fr); gap:16px; margin-bottom:24px; }
.stat-card, .panel, .form-card { background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow: var(--shadow); padding:18px; }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom:1px solid var(--line); text-align:left; }
input, textarea, select {
    width:100%; padding:12px 14px; border:1px solid #d8deea; border-radius:10px; outline:0; font:inherit; background:#fff;
}
textarea { min-height: 100px; resize: vertical; }
.form-grid { display:grid; grid-template-columns: repeat(2,1fr); gap:14px; }
.form-actions, .top-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:16px; }
.btn {
    display:inline-flex; align-items:center; justify-content:center; padding:10px 16px; border-radius:10px; border:0; cursor:pointer;
    background:#22304a; color:#fff; font-weight:700;
}
.btn.secondary { background:#eef2f8; color:#25314b; }
.btn.danger { background:#c24848; }
.login-page { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:20px; }
.login-box { width:min(430px,100%); background:#fff; border:1px solid var(--line); border-radius:18px; padding:28px; box-shadow: var(--shadow); }
.notice { padding:12px 14px; border-radius:10px; margin-bottom:14px; }
.notice.error { background:#fff0f0; color:#b53636; }
.notice.success { background:#eefaf0; color:#217a33; }
.inline-form { display:inline; }

@media (max-width: 900px) {
    .card-grid, .form-grid, .stat-grid, .admin-wrap { grid-template-columns: 1fr; }
    .admin-wrap { display:block; }
    .section-head h2 { font-size: 28px; }
    .site-card h3 { font-size: 22px; }
}


.block-title{margin:8px 0 16px;font-size:20px;}
.help-text{display:block;margin-top:6px;color:#7f8899;font-size:12px;line-height:1.6;}
.footer-icp{margin-top:8px;font-size:13px;color:#97a0b0;}
.admin-page{overflow:hidden;}
.admin-wrap{display:grid;grid-template-columns:250px minmax(0,1fr);height:100vh;min-height:100vh;}
.admin-side{background:#19202d;color:#fff;position:sticky;top:0;height:100vh;overflow-y:auto;padding:0;}
.admin-side-inner{padding:24px;}
.admin-main{padding:24px;height:100vh;overflow-y:auto;overflow-x:hidden;}

@media (max-width: 900px) {
    .admin-page{overflow:auto;}
    .admin-wrap{display:block;height:auto;min-height:100vh;}
    .admin-side{position:relative;height:auto;overflow:visible;}
    .admin-main{height:auto;overflow:visible;}
}
