/* 临时最小可用样式 (仅保证布局可用, 正式视觉待 UI 设计稿后替换) */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, "Segoe UI", "Microsoft YaHei", Roboto, Arial, sans-serif; color: #222; background: #fff; line-height: 1.6; }
a { color: #0b5; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 16px; }
.wrap { min-height: 70vh; }

/* 顶栏 */
.site-header { border-bottom: 1px solid #eee; background: #fff; position: sticky; top: 0; z-index: 50; }
.site-header .bar { display: flex; align-items: center; gap: 16px; max-width: 1200px; margin: 0 auto; padding: 12px 16px; }
.logo { font-size: 20px; font-weight: 700; color: #063; }
.logo small { color: #888; font-weight: 400; font-size: 12px; display: block; }
nav.main { display: flex; gap: 14px; flex-wrap: wrap; }
nav.main a { color: #333; padding: 6px 2px; border-bottom: 2px solid transparent; }
nav.main a.active { border-bottom-color: #0b5; color: #0b5; }
.header-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.lang-switch a { padding: 4px 8px; border: 1px solid #ddd; border-radius: 4px; font-size: 12px; }
.lang-switch a.cur { background: #0b5; color: #fff; border-color: #0b5; }
.btn { display: inline-block; padding: 8px 16px; background: #0b5; color: #fff; border: 0; border-radius: 4px; cursor: pointer; font-size: 14px; }
.btn.secondary { background: #eee; color: #333; }
.btn.outline { background: transparent; color: #0b5; border: 1px solid #0b5; }
.btn-sm { padding: 4px 10px; font-size: 12px; }

/* 通用板块 */
.section { padding: 32px 0; border-bottom: 1px solid #f0f0f0; }
.section h2 { font-size: 22px; margin-bottom: 16px; border-left: 4px solid #0b5; padding-left: 10px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { border: 1px solid #eee; border-radius: 8px; overflow: hidden; background: #fff; }
.card .thumb { height: 160px; background: #f3f3f3; display: flex; align-items: center; justify-content: center; color: #aaa; font-size: 12px; }
.card .body { padding: 12px; }
.card .body h3 { font-size: 16px; margin-bottom: 6px; }
.card .body p { color: #666; font-size: 13px; }

/* Banner */
.banner { position: relative; background: linear-gradient(135deg,#0a3d2e,#0b5); color: #fff; padding: 64px 16px; text-align: center; }
.banner h1 { font-size: 34px; margin-bottom: 10px; }
.banner p { font-size: 16px; opacity: .9; margin-bottom: 18px; }
.banner .actions { display: flex; gap: 10px; justify-content: center; }

/* 树状结构 */
.tree { font-family: monospace; background: #f7f9f7; padding: 16px; border-radius: 6px; white-space: pre; }

/* 表单 */
.form { max-width: 560px; }
.form .row { margin-bottom: 12px; }
.form label { display: block; font-size: 13px; margin-bottom: 4px; color: #555; }
.form input, .form textarea, .form select { width: 100%; padding: 8px 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; }
.form textarea { min-height: 100px; }
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { border: 1px solid #eee; padding: 8px 10px; text-align: left; font-size: 14px; }
table.data th { background: #f7f9f7; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 10px; background: #eef; color: #336; font-size: 12px; }
.placeholder { background: #fffbe6; border: 1px dashed #e0c200; color: #8a6d00; padding: 8px 12px; border-radius: 4px; font-size: 13px; margin: 8px 0; }
.muted { color: #999; font-size: 12px; }
.flash { padding: 10px 14px; border-radius: 4px; margin-bottom: 12px; }
.flash.success { background: #e8f8ee; color: #146c2e; }
.flash.error { background: #fdecea; color: #b00020; }
.flash.info { background: #e9f3ff; color: #0b4ea8; }

/* 浮动联系 */
.float-contact { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.float-contact a { width: 44px; height: 44px; border-radius: 50%; background: #0b5; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }

/* Footer */
.site-footer { background: #0a3d2e; color: #cfe; padding: 28px 16px; margin-top: 40px; }
.site-footer .cols { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.site-footer h4 { color: #fff; margin-bottom: 8px; font-size: 14px; }
.site-footer a { color: #cfe; font-size: 13px; display: block; padding: 2px 0; }
.site-footer .copyright { max-width: 1200px; margin: 16px auto 0; border-top: 1px solid #1c5340; padding-top: 12px; font-size: 12px; color: #9cb; }
@media (max-width: 700px) { .site-footer .cols { grid-template-columns: repeat(2,1fr); } }

/* Admin */
.admin-header { background: #1f2937; color: #fff; }
.admin-header .bar { display: flex; align-items: center; gap: 16px; max-width: 1280px; margin: 0 auto; padding: 10px 16px; }
.admin-header nav a { color: #cbd5e1; padding: 4px 8px; }
.admin-header nav a.active { color: #fff; }
.admin-body { display: flex; max-width: 1280px; margin: 0 auto; }
.admin-side { width: 200px; border-right: 1px solid #eee; padding: 12px; min-height: 70vh; }
.admin-side a { display: block; padding: 8px 10px; border-radius: 4px; color: #333; }
.admin-side a.active, .admin-side a:hover { background: #eef; text-decoration: none; }
.admin-main { flex: 1; padding: 16px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { border: 1px solid #eee; padding: 8px; font-size: 13px; text-align: left; }
.admin-table th { background: #f3f4f6; }
.badge { padding: 2px 6px; border-radius: 4px; font-size: 11px; }
.badge.new { background: #dbeafe; color: #1e40af; }
.badge.replied, .badge.in_progress { background: #fef3c7; color: #92400e; }
.badge.closed, .badge.accepted { background: #dcfce7; color: #166534; }
.badge.rejected { background: #fee2e2; color: #991b1b; }
