/* Ashley 个人站 - 深蓝商务风（参考 cdg.com.cn） */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #003a70;
  --primary-light: #1e5aa8;
  --accent: #d4a017;
  --text: #1e293b;
  --text-light: #64748b;
  --bg: #f8fafc;
  --border: #e2e8f0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.6;
}
a { color: var(--primary-light); text-decoration: none; }
a:hover { color: var(--primary); }

/* 顶部导航 */
.navbar { background: #fff; border-bottom: 3px solid var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,.04); position: sticky; top: 0; z-index: 100; }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 900; border-radius: 6px; font-size: 18px; }
.brand-name { font-size: 18px; font-weight: 700; color: var(--primary); }
.brand-sub { font-size: 12px; color: var(--text-light); }
.nav-menu { display: flex; gap: 4px; align-items: center; }
.nav-menu a { color: var(--text); padding: 8px 16px; font-size: 15px; font-weight: 500; border-radius: 4px; transition: .2s; }
.nav-menu a:hover, .nav-menu a.active { background: var(--primary); color: #fff; }
.nav-user { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.btn-login { padding: 8px 20px; background: var(--primary); color: #fff !important; border-radius: 4px; font-weight: 500; }
.btn-login:hover { background: var(--primary-light); }
.btn-outline { padding: 6px 16px; border: 1px solid var(--primary); color: var(--primary) !important; border-radius: 4px; font-weight: 500; background: #fff; cursor: pointer; }

/* Hero */
.hero { background: linear-gradient(135deg,#003a70 0%,#1e5aa8 100%); color: #fff; padding: 96px 24px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; right: -100px; top: -100px; width: 500px; height: 500px; border-radius: 50%; background: rgba(255,255,255,.05); }
.hero-inner { max-width: 1280px; margin: 0 auto; position: relative; z-index: 1; }
.hero h1 { font-size: 48px; font-weight: 800; margin-bottom: 20px; line-height: 1.2; }
.hero .subtitle { font-size: 20px; opacity: .9; max-width: 720px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary, .btn-secondary { padding: 14px 32px; font-size: 16px; font-weight: 600; border-radius: 4px; cursor: pointer; border: none; transition: .2s; text-decoration: none; display: inline-block; }
.btn-primary { background: var(--accent); color: #1e293b; }
.btn-primary:hover { background: #f0b829; transform: translateY(-2px); color: #1e293b; }
.btn-secondary { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-secondary:hover { background: #fff; color: var(--primary); }

.container { max-width: 1280px; margin: 0 auto; padding: 64px 24px; }
.section-title { font-size: 32px; font-weight: 700; color: var(--primary); margin-bottom: 12px; text-align: center; }
.section-subtitle { text-align: center; color: var(--text-light); margin-bottom: 48px; font-size: 16px; }

/* 项目卡片 */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.project-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: .3s; display: flex; flex-direction: column; }
.project-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,58,112,.12); border-color: var(--primary-light); }
.project-cover { height: 180px; color: #fff; display: grid; place-items: center; font-size: 64px; }
.project-cover.c1 { background: linear-gradient(135deg,#003a70,#1e5aa8); }
.project-cover.c2 { background: linear-gradient(135deg,#0e7c5b,#10b981); }
.project-cover.c3 { background: linear-gradient(135deg,#8a2be2,#c084fc); }
.project-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.project-tag { display: inline-block; background: #eff6ff; color: var(--primary); padding: 4px 12px; border-radius: 4px; font-size: 12px; font-weight: 600; margin-bottom: 12px; align-self: flex-start; }
.project-title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.project-desc { color: var(--text-light); font-size: 14px; flex: 1; margin-bottom: 16px; }
.project-meta { display: flex; gap: 12px; align-items: center; font-size: 12px; color: var(--text-light); margin-bottom: 16px; flex-wrap: wrap; }
.project-actions { display: flex; gap: 8px; }
.project-actions .btn { flex: 1; text-align: center; padding: 10px; border-radius: 4px; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; border: none; }
.btn-open { background: var(--primary); color: #fff; }
.btn-open:hover { background: var(--primary-light); color: #fff; }
.btn-bug { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.btn-bug:hover { background: #fde68a; }
.btn-locked { background: #f1f5f9; color: var(--text-light); cursor: not-allowed; text-align: center; padding: 10px; border-radius: 4px; font-size: 14px; }

/* 关于卡片 */
.about-card { background: #fff; border-radius: 8px; padding: 40px; border: 1px solid var(--border); }
.about-title { font-size: 24px; color: var(--primary); margin-bottom: 20px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-top: 24px; }
.info-item strong { display: block; color: var(--primary); font-size: 14px; margin-bottom: 4px; }

/* 表单 */
.auth-wrap { max-width: 440px; margin: 64px auto; padding: 0 24px; }
.auth-card { background: #fff; border-radius: 8px; padding: 40px; border-top: 4px solid var(--primary); box-shadow: 0 8px 32px rgba(0,58,112,.08); }
.auth-title { font-size: 28px; font-weight: 700; color: var(--primary); margin-bottom: 8px; text-align: center; }
.auth-sub { color: var(--text-light); text-align: center; margin-bottom: 32px; font-size: 14px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 4px; font-size: 15px; transition: .2s; background: #fff; font-family: inherit; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,58,112,.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit { width: 100%; padding: 12px; background: var(--primary); color: #fff; border: none; border-radius: 4px; font-size: 16px; font-weight: 600; cursor: pointer; transition: .2s; }
.btn-submit:hover { background: var(--primary-light); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }
.auth-links { text-align: center; margin-top: 20px; font-size: 14px; }
.msg { padding: 12px 16px; border-radius: 4px; margin-bottom: 16px; font-size: 14px; display: none; }
.msg.error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.msg.success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.msg.info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* 反馈列表 */
.feedback-list { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.feedback-item { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 16px; }
.feedback-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 8px; flex-wrap: wrap; }
.badge { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-critical { background: #fee2e2; color: #991b1b; }
.badge-normal { background: #dbeafe; color: #1e40af; }
.badge-minor { background: #f1f5f9; color: #475569; }
.feedback-meta { font-size: 12px; color: var(--text-light); }
.feedback-content { color: var(--text); font-size: 14px; margin-top: 4px; white-space: pre-wrap; }

/* 页脚 */
.footer { background: #1a2b4a; color: #cbd5e1; padding: 40px 24px; margin-top: 64px; text-align: center; font-size: 14px; }
.footer a { color: #93c5fd; }

/* 响应式 */
@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .hero .subtitle { font-size: 16px; }
  .hero { padding: 60px 24px; }
  .nav-menu { display: none; }
  .container { padding: 40px 20px; }
  .section-title { font-size: 24px; }
}
