/* ===== 六六优设计 全局样式（苹果官网配色：白黑灰 + 苹果蓝） ===== */
:root {
  --navy: #161617;
  --navy-2: #2c2c2e;
  --blue: #0071e3;
  --blue-2: #0077ed;
  --gold: #0071e3;
  --gold-dark: #0077ed;
  --gold-light: #2997ff;
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #86868b;
  --green: #28a745;
  --red: #e05252;
  --border: #d2d2d7;
  --radius: 14px;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.12);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-2); }
.container { width: 1080px; max-width: 96%; margin: 0 auto; }
main { flex: 1; padding: 28px 0 60px; }

/* ===== 顶部导航（苹果官网：白色半透明毛玻璃 + 黑字） ===== */
.navbar {
  background: rgba(251, 251, 253, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.navbar .container { display: flex; align-items: center; height: 52px; gap: 28px; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--text); flex-shrink: 0; }
.logo img { height: 34px; width: auto; border-radius: 5px; background: #fff; padding: 1px; }
.logo-text { font-size: 16px; font-weight: 600; letter-spacing: 1px; color: var(--text); }
.logo-text .gold { color: var(--blue); }
.nav-search {
  flex: 1; max-width: 340px; display: flex; background: rgba(0, 0, 0, 0.05);
  border: none; border-radius: 980px; overflow: hidden; height: 30px;
}
.nav-search input {
  flex: 1; border: none; outline: none; padding: 0 14px; font-size: 13px;
  background: transparent; color: var(--text);
}
.nav-search input::placeholder { color: var(--muted); }
.nav-search button {
  border: none; background: rgba(0, 0, 0, 0.06); color: var(--text);
  padding: 0 16px; cursor: pointer; font-size: 12px; transition: .2s;
}
.nav-search button:hover { background: rgba(0, 0, 0, 0.12); }
.nav-links { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav-links a { color: #515154; font-size: 13px; transition: .15s; }
.nav-links a:hover { color: var(--blue); }
.btn-post {
  background: var(--blue); color: #fff !important; font-weight: 500;
  padding: 5px 16px; border-radius: 980px; font-size: 13px;
}
.btn-post:hover { background: var(--blue-2); color: #fff !important; }
.nav-user { display: flex; align-items: center; gap: 8px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--gold);
  color: var(--navy); font-weight: 700; display: inline-flex; align-items: center;
  justify-content: center; font-size: 14px; overflow: hidden;
}
.role-tag {
  font-size: 11px; padding: 1px 8px; border-radius: 10px; color: #fff;
}
.role-tag.customer { background: var(--blue); }
.role-tag.designer { background: var(--gold-dark); }

/* ===== 按钮 ===== */
.btn {
  display: inline-block; border: none; cursor: pointer; border-radius: 980px;
  padding: 10px 26px; font-size: 14px; font-weight: 500; transition: .2s;
  text-align: center; font-family: inherit;
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-orange { background: #ff5000; color: #fff; }
.btn-orange:hover { background: #e64500; color: #fff; }
.btn-gold:hover { background: var(--gold-dark); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-2); }
.btn-outline { background: #fff; color: var(--blue); border: 1px solid var(--blue); }
.btn-outline:hover { background: #f0f5fd; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { opacity: .9; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { opacity: .9; }
.btn-sm { padding: 4px 14px; font-size: 12px; font-weight: 500; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ===== 卡片 ===== */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px; margin-bottom: 16px;
}
.card-title { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 14px; }
.section-title {
  font-size: 26px; font-weight: 600; color: var(--text); margin: 40px 0 18px;
  letter-spacing: .5px;
}
.section-title::before { content: none; }

/* ===== 标签 ===== */
.tag {
  display: inline-block; padding: 2px 10px; border-radius: 6px; font-size: 12px;
  background: #eef3fb; color: var(--blue); margin-right: 6px;
}
.tag-gold { background: #e8f1fd; color: var(--gold-dark); }
.tag-green { background: #e5f5eb; color: var(--green); }
.tag-red { background: #fdecea; color: var(--red); }
.tag-gray { background: #eef0f2; color: #6e6e73; }

/* ===== 需求卡片列表 ===== */
.demand-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.demand-card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 26px; transition: .25s; display: block; color: var(--text);
}
.demand-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--text); }
.demand-card h3 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.demand-card .desc {
  color: var(--muted); font-size: 13px; line-height: 1.65; height: 40px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.demand-card .meta {
  display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 12px; color: var(--muted);
  flex-wrap: wrap;
}
.budget { color: #c0392b; font-weight: 600; font-size: 15px; }

/* ===== 首页 hero（苹果官网浅色版：白底 + 黑字大标题） ===== */
.hero {
  background: linear-gradient(180deg, #f5f5f7 0%, #ffffff 100%);
  color: var(--text); padding: 96px 0 90px; margin-bottom: 12px; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero h1 { font-size: 44px; font-weight: 700; margin-bottom: 14px; letter-spacing: 1px; position: relative; }
.hero h1 .gold { color: var(--blue); }
.hero p { color: var(--muted); font-size: 16px; margin-bottom: 26px; position: relative; }
.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; position: relative; }
.hero-tag {
  padding: 6px 18px; border-radius: 980px; font-size: 13px;
  background: #e8e8ed; color: var(--text);
}
.hero .steps { display: flex; gap: 30px; flex-wrap: wrap; position: relative; }
.step { font-size: 14px; display: flex; align-items: center; gap: 8px; color: #6e6e73; }
.step b { color: var(--blue); font-size: 16px; font-weight: 600; }

/* ===== 分类导航 ===== */
.cat-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.cat-item {
  background: var(--card); border-radius: 980px; padding: 7px 18px; font-size: 13px;
  color: var(--text); box-shadow: var(--shadow); transition: .2s;
}
.cat-item:hover { color: var(--blue); }
.cat-item.active { background: var(--navy); color: #fff; box-shadow: none; }

/* ===== 表单 ===== */
.form-card { max-width: 460px; margin: 30px auto; }
.form-card .card-title { text-align: center; font-size: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: #555; margin-bottom: 6px; font-weight: 600; }
.form-group input[type=text], .form-group input[type=password], .form-group input[type=number],
.form-group input[type=date], .form-group select, .form-group textarea {
  width: 100%; border: 1px solid #d8dce4; border-radius: 6px; padding: 10px 12px;
  font-size: 14px; font-family: inherit; outline: none; background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 2px rgba(31,78,140,.12);
}
.form-group textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }
.form-tip { font-size: 12px; color: var(--muted); margin-top: 4px; }
.error-msg {
  background: #fdecea; color: var(--red); border: 1px solid #f5c6c2;
  padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; font-size: 13px;
}
.ok-msg {
  background: #e5f7ee; color: var(--green); border: 1px solid #b7e5cb;
  padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; font-size: 13px;
}

/* ===== 需求详情 ===== */
.detail-head h2 { font-size: 22px; color: var(--navy); margin-bottom: 10px; }
.detail-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.info-item {
  background: #f8f9fb; border-radius: 6px; padding: 10px 14px; font-size: 13px;
}
.info-item b { display: block; color: var(--navy); margin-bottom: 3px; font-size: 12px; color: var(--muted); }
.info-item .val { font-weight: 600; color: var(--text); }
.detail-desc { line-height: 1.8; color: #555; white-space: pre-wrap; }

/* ===== 接单请求（案例卡片） ===== */
.bid-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; background: #fbfcfe; }
.bid-card .head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bid-card .quote { color: var(--red); font-weight: 700; font-size: 17px; margin-left: auto; }
.case-imgs { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.case-imgs img {
  width: 140px; height: 105px; object-fit: cover; border-radius: 6px;
  border: 1px solid var(--border); cursor: zoom-in;
}
.bid-actions { display: flex; gap: 10px; margin-top: 12px; }

/* ===== 订单页（聊天 + 交付） ===== */
.order-layout { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
.chat-box {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; height: 640px;
}
.chat-head {
  padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex;
  align-items: center; gap: 10px;
}
.chat-head h3 { font-size: 16px; color: var(--navy); }
.chat-head .status { margin-left: auto; }
.chat-msgs { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; padding: 20px 16px; background: #f0f0f0; min-height: 0; }
/* 微信风格消息行 */
.message-row { display: flex; align-items: flex-start; width: 100%; margin-bottom: 16px; }
.message-row--other { justify-content: flex-start; }
.message-row--self { justify-content: flex-end; }
.message-avatar {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600; color: #fff; user-select: none;
}
.message-row--other .message-avatar { margin-right: 10px; background: #b2b2b6; }
.message-row--self .message-avatar { margin-left: 10px; background: #576b95; }
.message-content { display: flex; flex-direction: column; min-width: 0; max-width: 75%; }
.message-row--self .message-content { align-items: flex-end; }
.message-row--other .message-content { align-items: flex-start; }
.message-time { margin-bottom: 4px; color: #999; font-size: 12px; line-height: 1.4; }
.message-bubble {
  display: inline-block;
  width: fit-content;
  min-width: 40px;
  max-width: 100%;
  height: auto;
  min-height: 0;
  padding: 10px 13px;
  box-sizing: border-box;
  border-radius: 4px;
  color: #222;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.message-row--other .message-bubble { background: #95ec69; }
.message-row--self .message-bubble { background: #95ec69; }
.message-row--sys { justify-content: center; }
.message-row--sys .message-bubble {
  background: transparent; box-shadow: none; color: #999;
  font-size: 12px; padding: 2px 10px; max-width: 90%;
}
.message-row--sys .message-bubble a.sys-link {
  color: var(--blue); text-decoration: underline; font-weight: 600;
}
.message-bubble img { max-width: 100%; max-height: 320px; border-radius: 4px; display: block; }
.message-bubble .flagged {
  display: block; color: #e54d42; font-size: 11px; margin-top: 4px;
  border-top: 1px dashed rgba(229,77,66,.4); padding-top: 4px;
}
/* 设计师近期案例横条 */
.chat-cases { padding: 10px 16px; border-bottom: 1px solid var(--border); background: #f0f6ff; }
.chat-cases-title { font-size: 12px; color: var(--blue); margin-bottom: 8px; }
.chat-cases-list { display: flex; gap: 10px; overflow-x: auto; }
.chat-case-item { flex: 0 0 110px; text-align: center; text-decoration: none; }
.chat-case-item img { width: 110px; height: 74px; object-fit: cover; border-radius: 6px; border: 1px solid #eee; display: block; background: #f0f1f4; }
.chat-case-item span { display: block; font-size: 11px; color: #555; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-case-noimg { width: 110px; height: 74px; background: #f0f1f4; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
/* 聊天区安全提醒横幅 */
.chat-notice {
  padding: 8px 16px; font-size: 12px; color: #8a6d1a;
  background: #e8f1fd; border-bottom: 1px solid #d5e6fa;
  line-height: 1.8;
}
.chat-input { border-top: 1px solid #ddd; padding: 10px 14px; background: #f7f7f7; }
.chat-actions {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  padding: 8px 14px; border-top: 1px solid #ddd; background: #f7f7f7;
}
.chat-action-panel {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  padding: 8px 14px; border-top: 1px solid #ddd; background: #f7f7f7;
}
.chat-action-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chat-action-fname { font-size: 12px; color: #666; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-action-input {
  width: 110px; height: 28px; border: 1px solid #ddd; border-radius: 4px;
  padding: 0 8px; font-size: 12px; outline: none;
}
.chat-action-select {
  height: 28px; border: 1px solid #ddd; border-radius: 4px; font-size: 12px;
  background: #fff; outline: none;
}
.chat-action-file { max-width: 130px; font-size: 11px; }
.chat-input textarea {
  display: block; width: 100%; min-height: 44px; max-height: 120px;
  padding: 10px 12px; box-sizing: border-box;
  border: 1px solid #ddd; border-radius: 4px; background: #fff;
  color: #222; font-size: 14px; line-height: 1.5; text-align: left;
  resize: none; overflow-y: auto; outline: none; font-family: inherit;
}
.chat-input textarea:focus { border-color: #95ec69; box-shadow: 0 0 0 2px rgba(149,236,105,.25); }
.chat-input .row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.chat-input .chat-tip { font-size: 12px; color: var(--muted); }
.chat-input .chat-tip:hover { color: var(--navy); }
.chat-input .btn { border-radius: 18px; padding: 6px 22px; font-size: 13px; }
.chat-input .row .btn { margin-left: auto; }
.chat-tip { font-size: 11px; color: var(--muted); }

/* 交付文件 */
.delivery-list .item {
  display: flex; align-items: center; gap: 10px; padding: 10px 4px;
  border-bottom: 1px dashed var(--border); font-size: 13px;
}
.delivery-list .item:last-child { border-bottom: none; }
.delivery-list .fname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.delivery-list .fsize { color: var(--muted); font-size: 12px; }
.file-ico {
  width: 34px; height: 34px; border-radius: 6px; background: #eef3fb; color: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0;
}
.upload-form { margin-top: 12px; }
.upload-form input[type=file] { font-size: 12px; }

/* ===== 个人中心 ===== */
.profile-head { display: flex; align-items: center; gap: 16px; }
.profile-head .avatar { width: 56px; height: 56px; font-size: 24px; }
.mini-table { width: 100%; border-collapse: collapse; }
.mini-table th, .mini-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
.mini-table th { color: var(--muted); font-weight: 600; background: #fafbfc; }

/* ===== 案例库 ===== */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: block; color: var(--text); transition: .15s;
}
.case-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(20,35,60,.14); color: var(--text); }
.case-cover { position: relative; height: 190px; background: #eef1f6; overflow: hidden; }
.case-cover img { width: 100%; height: 100%; object-fit: cover; transition: .3s; }
.case-card:hover .case-cover img { transform: scale(1.05); }
.case-cat {
  position: absolute; top: 10px; left: 10px; background: rgba(20,35,60,.82);
  color: var(--gold); font-size: 12px; padding: 3px 10px; border-radius: 12px;
}
.case-body { padding: 14px 16px; }
.case-body h3 { font-size: 15px; color: var(--navy); margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-desc { font-size: 12px; color: #888; line-height: 1.6; height: 38px; overflow: hidden; margin-bottom: 10px; }
.case-meta { display: flex; align-items: center; font-size: 12px; color: var(--muted); }
.case-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.case-gallery img {
  width: 100%; border-radius: 8px; cursor: zoom-in; border: 1px solid var(--border);
  max-height: 460px; object-fit: cover;
}
.case-gallery img:first-child { grid-column: 1 / -1; max-height: 560px; }
.nav-active { color: var(--gold) !important; font-weight: 700; }

/* 消息角标 */
.nav-msg { position: relative; }
.badge {
  position: absolute; top: -8px; right: -14px; background: var(--red); color: #fff;
  font-size: 10px; min-width: 16px; height: 16px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
  font-weight: 700;
}

/* ===== 消息中心 ===== */
.msg-item {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px; margin-bottom: 12px; display: block; color: var(--text);
  border-left: 3px solid var(--gold); transition: .15s;
}
.msg-item:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(20,35,60,.12); color: var(--text); }
.msg-item.unread { border-left-color: var(--red); background: #fffdf8; }
.msg-item .head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.msg-item .head .title { font-size: 15px; font-weight: 700; color: var(--navy); }
.msg-item .body { font-size: 13px; color: #666; line-height: 1.6; }
.msg-item .meta { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 12px; color: var(--muted); }

/* ===== 管理后台 ===== */
.admin-body { background: #f2f3f6; }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 210px; background: var(--navy); color: #cfd8ea; flex-shrink: 0;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.admin-brand { padding: 22px 20px 16px; font-size: 17px; font-weight: 700; color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-brand small { display: block; font-size: 11px; color: var(--gold); font-weight: 400; margin-top: 4px; }
.admin-sidebar nav { padding: 12px 0; flex: 1; }
.admin-sidebar nav a {
  display: flex; align-items: center; gap: 8px; color: #cfd8ea; padding: 11px 20px;
  font-size: 14px; border-left: 3px solid transparent;
}
.admin-sidebar nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-sidebar nav a.active { background: rgba(201,162,39,.12); color: var(--gold); border-left-color: var(--gold); font-weight: 700; }
.admin-sidebar nav a .cnt { margin-left: auto; background: var(--red); color: #fff; border-radius: 8px; font-size: 10px; padding: 1px 6px; }
.admin-user { padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; }
.admin-user a { color: var(--gold); margin-left: 8px; }
.admin-main { flex: 1; padding: 22px 26px; min-width: 0; }
.admin-main h1 { font-size: 20px; color: var(--navy); margin-bottom: 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { background: #fff; border-radius: 8px; padding: 16px 18px; box-shadow: var(--shadow); }
.stat-card .label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.stat-card .value { font-size: 24px; font-weight: 700; color: var(--navy); }
.stat-card .value.gold { color: var(--gold-dark); }
.admin-table { width: 100%; background: #fff; border-radius: 8px; box-shadow: var(--shadow); border-collapse: collapse; overflow: hidden; }
.admin-table th, .admin-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.admin-table th { background: #fafbfc; color: var(--muted); font-weight: 600; }
.admin-table tr:hover td { background: #fafbfd; }
.admin-panel { background: #fff; border-radius: 8px; box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 16px; }
.admin-panel h3 { font-size: 15px; color: var(--navy); margin-bottom: 12px; }
.admin-msgs { max-height: 60vh; overflow-y: auto; padding: 12px; background: #f7f8fa; border-radius: 8px; }
.admin-msg { margin-bottom: 10px; font-size: 13px; line-height: 1.6; }
.admin-msg .meta { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.admin-msg .box { background: #fff; border-radius: 6px; padding: 8px 12px; box-shadow: 0 1px 2px rgba(0,0,0,.05); display: inline-block; max-width: 85%; }
.admin-msg .box.flagged { border: 1px dashed var(--red); background: #fff8f7; }
.admin-msg .raw { color: var(--red); font-size: 12px; margin-top: 3px; }
.admin-msg .box.sys { background: #eef1f6; color: #666; font-style: italic; }

/* 初稿确认（截图网格，高级排版） */
.draft-card { border-top: 3px solid #C9A227 !important; }
.draft-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important; gap: 12px !important; margin: 10px 0 14px !important; }
.draft-item { position: relative !important; background: #fff !important; border: 1px solid #e8e2cd !important; border-radius: 10px !important; padding: 8px !important; transition: box-shadow .2s !important; }
.draft-item:hover { box-shadow: 0 4px 14px rgba(169,132,80,.18) !important; }
.draft-num {
  position: absolute !important; top: -8px !important; left: 8px !important;
  background: linear-gradient(135deg, #C9A227, #AA8C50) !important; color: #fff !important;
  font-size: 11px !important; font-weight: 700 !important; border-radius: 8px !important;
  padding: 1px 8px !important; box-shadow: 0 1px 4px rgba(0,0,0,.15) !important;
}
.draft-thumb {
  width: 100% !important; height: 100px !important; object-fit: cover !important;
  border-radius: 6px !important; cursor: zoom-in !important; display: block !important;
  background: #f5f3ec !important; border: 1px solid #efe9d8 !important;
}
.draft-expired {
  display: flex !important; flex-direction: column !important; align-items: center !important;
  justify-content: center !important; color: #999 !important; font-size: 13px !important;
  text-align: center !important; line-height: 1.6 !important;
}
.draft-meta { font-size: 11px !important; color: #666 !important; margin-top: 6px !important; line-height: 1.5 !important; }
.draft-meta span { color: #a89a7d !important; }
.draft-empty { border: 1px dashed #d8cfb4 !important; border-radius: 8px !important; padding: 18px !important; color: #a89a7d !important; text-align: center !important; font-size: 13px !important; margin-bottom: 10px !important; }

/* 需求附件 */
.attach-list { display: flex; flex-wrap: wrap; gap: 12px; }
.attach-img {
  width: 130px; text-decoration: none; display: block; text-align: center;
}
.attach-img img {
  width: 130px; height: 92px; object-fit: cover; border-radius: 6px;
  border: 1px solid var(--border); display: block; background: #f0f1f4;
}
.attach-img span {
  display: block; font-size: 11px; color: #555; margin-top: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.attach-file {
  display: inline-block; border: 1px dashed var(--border); border-radius: 6px;
  padding: 8px 14px; font-size: 13px; color: var(--navy); text-decoration: none;
  background: #f8f9fb;
}
.attach-file:hover { border-color: var(--gold); }

/* ===== 页脚 ===== */
.footer {
  background: #f5f5f7; color: #6e6e73; padding: 26px 0; text-align: center;
  font-size: 12px; line-height: 2; margin-top: 20px;
  border-top: 1px solid var(--border);
}
.footer .gold { color: var(--blue); }

/* ===== 空状态 / 提示 ===== */
.empty { text-align: center; color: var(--muted); padding: 40px 0; font-size: 14px; }
.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 999;
  display: none; align-items: center; justify-content: center;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff; border-radius: 10px; padding: 24px; max-width: 92%;
  max-height: 90vh; overflow: auto; position: relative;
}
.modal img { max-width: 100%; display: block; }
.modal .close {
  position: absolute; top: 8px; right: 12px; font-size: 22px; cursor: pointer;
  color: var(--muted); background: none; border: none;
}
.modal .close:hover { color: var(--red); }

@media (max-width: 900px) {
  .order-layout { grid-template-columns: 1fr; }
  .demand-list { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-info { grid-template-columns: 1fr 1fr; }
  .navbar .container { gap: 12px; }
  .nav-search { display: none; }
  .logo-text { font-size: 16px; }
  /* 手机端导航：logo 居中第一排，按钮第二排均匀分布 */
  .navbar .container { flex-wrap: wrap; height: auto; padding: 8px 10px; row-gap: 6px; }
  .logo { width: 100%; justify-content: center; order: 1; padding: 2px 0 4px; }
  .nav-links { order: 2; width: 100%; margin-left: 0; justify-content: space-evenly; flex-wrap: wrap; gap: 6px 12px; }
  .nav-links a { font-size: 13px; white-space: nowrap; }
  .btn-post { padding: 5px 12px; font-size: 13px; }
  .nav-user .avatar { display: none; }
}
@media (max-width: 480px) {
  .case-grid { grid-template-columns: 1fr; }
  .case-gallery { grid-template-columns: 1fr; }
  .case-gallery img:first-child { grid-column: auto; max-height: 420px; }
  .nav-links a { font-size: 13px; }
  .nav-links { gap: 12px; }
}

/* ===== 动效（结合型：苹果风骨架 + 渐入/流光点缀） ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes navIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes gradFlow { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }

.nav { animation: navIn .5s ease both; }
.hero-in { animation: fadeUp .7s cubic-bezier(.22,.61,.36,1) both; }
.hero-in.d1 { animation-delay: .08s; }
.hero-in.d2 { animation-delay: .16s; }
.hero-in.d3 { animation-delay: .24s; }

.grad-text {
  background: linear-gradient(90deg, #0071e3, #5e5ce6, #7b5ce6, #0071e3);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradFlow 6s linear infinite;
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

.btn { transition: transform .18s ease, box-shadow .18s ease, background .2s; }
.btn:hover { transform: translateY(-1px) scale(1.02); }
.btn-blue:hover, .btn-gold:hover, .btn-orange:hover { box-shadow: 0 6px 18px rgba(0,113,227,.22); }

.demand-card { transition: transform .25s ease, box-shadow .25s ease; }
.demand-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.10); }

.hero-tag { transition: transform .2s ease, border-color .2s ease, color .2s ease; }
.hero-tag:hover { transform: translateY(-2px); border-color: #0071e3; color: #0071e3; }

.step { transition: transform .25s ease, box-shadow .25s ease; }
.step:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.07); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-in { animation: none; opacity: 1; }
  .nav { animation: none; }
  .grad-text { animation: none; }
}
