/* 无锡师专诉求反馈平台 —— 前台样式 */
:root {
    --green: #006030;
    --green-light: #0a7d41;
    --green-dark: #004024;
    --green-soft: #eaf3ee;
    --green-line: #cfe3d8;
    --text: #1f2933;
    --text-sub: #5b6b73;
    --muted: #8a979e;
    --bg: #f5f8f6;
    --card: #ffffff;
    --line: #e6ecea;
    --warn: #d97706;
    --danger: #c0392b;
    --radius: 12px;
    --shadow: 0 2px 12px rgba(0, 96, 48, .08);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- 顶部导航 ---------- */
.header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}
.header .container { display: flex; align-items: center; height: 74px; gap: 28px; }
.logo { display: flex; align-items: center; gap: 14px; font-weight: 700; flex-shrink: 0; }
/* 官方横排校标（绿版），按高度自适应 */
.logo-img { height: 46px; width: auto; display: block; }
.logo-divider { width: 1px; height: 30px; background: var(--line); }
.logo-text b { display: block; font-size: 16px; color: var(--green-dark); line-height: 1.25; white-space: nowrap; }
.logo-text span { display: block; font-size: 11px; color: var(--muted); font-weight: 400; letter-spacing: 1px; }

/* ---------- 附件上传 ---------- */
.upload-box { margin-top: 4px; }
.upload-drop {
    border: 1.5px dashed var(--line-strong, #cfd9d2); border-radius: 12px;
    padding: 22px; text-align: center; cursor: pointer; background: #fbfdfc;
    transition: border-color .15s, background .15s;
}
.upload-drop:hover, .upload-drop.drag { border-color: var(--green); background: var(--green-soft); }
.upload-icon { font-size: 26px; color: var(--green); line-height: 1; margin-bottom: 8px; }
.upload-text { font-size: 14px; color: var(--text-sub); }
.upload-sub { font-size: 12px; color: var(--muted); margin-top: 6px; }

.upload-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.up-item {
    display: flex; align-items: center; gap: 10px; padding: 8px 12px;
    background: var(--green-soft); border-radius: 8px; font-size: 13px;
}
.up-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-size { color: var(--muted); font-size: 12px; white-space: nowrap; }
.up-del {
    border: none; background: transparent; color: var(--muted); font-size: 18px;
    cursor: pointer; line-height: 1; padding: 0 4px; border-radius: 4px;
}
.up-del:hover { color: #b42318; background: rgba(180,35,24,.08); }

/* ---------- 附件展示 ---------- */
.att-box { margin: 4px 0 0; }
.att-title { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.att-list { display: flex; flex-wrap: wrap; gap: 10px; }
.att {
    display: flex; align-items: center; gap: 8px; max-width: 260px;
    padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px;
    background: #fff; font-size: 13px; color: var(--text-sub); text-decoration: none;
}
.att:hover { border-color: var(--green); color: var(--green); }
.att span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-ext {
    flex: none; min-width: 38px; text-align: center; padding: 3px 6px; border-radius: 5px;
    background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 600;
}
.att-img { flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; max-width: 190px; }
.att-img img { width: 100%; height: 118px; object-fit: cover; display: block; background: #eef2ef; }
.att-img span { padding: 6px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 900px) {
    .header .container { height: 64px; gap: 14px; }
    .logo-img { height: 38px; }
    .logo-divider, .logo-text { display: none; }
}

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
    padding: 8px 16px; border-radius: 8px; color: var(--text-sub);
    font-size: 14px; transition: .15s;
}
.nav a:hover { background: var(--green-soft); color: var(--green); }
.nav a.active { color: var(--green); font-weight: 600; background: var(--green-soft); }

.header-actions { display: flex; gap: 10px; align-items: center; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 20px; border-radius: 8px; border: 1px solid transparent;
    font-size: 14px; cursor: pointer; transition: .15s; background: #fff; color: var(--text);
    font-family: inherit;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-light); }
.btn-outline { border-color: var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green-soft); }
.btn-ghost { border-color: var(--line); color: var(--text-sub); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-sm { padding: 5px 12px; font-size: 13px; border-radius: 6px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-lg { padding: 14px 34px; font-size: 16px; border-radius: 10px; }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, #006030 0%, #0a7d41 60%, #16a05a 100%);
    color: #fff; padding: 62px 0 92px; position: relative; overflow: hidden;
}
.hero::after {
    content: ""; position: absolute; right: -120px; top: -80px;
    width: 420px; height: 420px; border-radius: 50%;
    background: rgba(255, 255, 255, .07);
}
.hero-logo { height: 60px; width: auto; margin-bottom: 26px; display: block; position: relative; z-index: 2; }
.hero h1 { font-size: 34px; margin: 0 0 14px; font-weight: 700; letter-spacing: 1px; }
.hero p { font-size: 16px; opacity: .9; margin: 0 0 30px; max-width: 620px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-outline { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.hero .btn-outline:hover { background: rgba(255,255,255,.14); }

.hero-stats {
    display: flex; gap: 44px; margin-top: 42px; flex-wrap: wrap;
    position: relative; z-index: 2;
}
.hero-stats div b { display: block; font-size: 28px; font-weight: 700; }
.hero-stats div span { font-size: 13px; opacity: .85; }

/* ---------- 卡片 ---------- */
.section { padding: 46px 0; }
.section-title { text-align: center; margin-bottom: 32px; }
.section-title h2 { font-size: 24px; margin: 0 0 8px; color: var(--green-dark); }
.section-title p { color: var(--muted); margin: 0; font-size: 14px; }

.quick-cards {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
    margin-top: -46px; position: relative; z-index: 5;
}
.qcard {
    background: #fff; border-radius: var(--radius); padding: 26px 24px;
    box-shadow: var(--shadow); border: 1px solid var(--line); transition: .2s;
}
.qcard:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,96,48,.13); }
.qcard .icon {
    width: 44px; height: 44px; border-radius: 10px; background: var(--green-soft);
    display: grid; place-items: center; font-size: 21px; margin-bottom: 14px;
}
.qcard h3 { margin: 0 0 8px; font-size: 17px; }
.qcard p { margin: 0 0 16px; color: var(--text-sub); font-size: 14px; }

/* ---------- 流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.step { text-align: center; position: relative; }
.step .num {
    width: 42px; height: 42px; border-radius: 50%; background: var(--green);
    color: #fff; display: grid; place-items: center; margin: 0 auto 12px;
    font-weight: 700; font-size: 16px;
}
.step h4 { margin: 0 0 4px; font-size: 15px; }
.step p { margin: 0; font-size: 13px; color: var(--muted); }
.step:not(:last-child)::after {
    content: ""; position: absolute; top: 21px; left: 62%; right: -12%;
    height: 1px; background: var(--green-line);
}

/* ---------- 表单 ---------- */
.form-card {
    background: #fff; border-radius: var(--radius); padding: 32px;
    border: 1px solid var(--line); box-shadow: var(--shadow);
}
.form-row { margin-bottom: 20px; }
.form-row label { display: block; margin-bottom: 7px; font-weight: 600; font-size: 14px; }
.form-row label .req { color: var(--danger); margin-right: 3px; }
.form-row .tip { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 6px; }
input[type=text], input[type=password], input[type=tel], input[type=email], input[type=date],
select, textarea {
    width: 100%; padding: 10px 13px; border: 1px solid var(--line);
    border-radius: 8px; font-size: 14px; font-family: inherit; background: #fff;
    color: var(--text); transition: .15s;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,96,48,.1);
}
textarea { min-height: 130px; resize: vertical; line-height: 1.7; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.checkbox { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-sub); }
.checkbox input { width: 16px; height: 16px; accent-color: var(--green); }

.captcha-box { display: flex; gap: 10px; align-items: center; }
.captcha-box .cap-img {
    border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
    height: 36px; display: flex; align-items: center;
}
.captcha-box input { flex: 1; }

/* ---------- 状态标签 ---------- */
.tag {
    display: inline-block; padding: 2px 10px; border-radius: 20px;
    font-size: 12px; font-weight: 600; white-space: nowrap;
}
.tag-pending { background: #fef3c7; color: #92400e; }
.tag-processing { background: #dcf4e5; color: #006030; }
.tag-resolved { background: #ccece6; color: #0f766e; }
.tag-rejected, .tag-closed { background: #eef1f3; color: #6b7280; }

/* ---------- 列表 ---------- */
.list-card {
    background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
    box-shadow: var(--shadow); overflow: hidden;
}
.list-item {
    padding: 20px 24px; border-bottom: 1px solid var(--line); transition: .15s;
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: #fbfdfc; }
.list-item h4 { margin: 0 0 6px; font-size: 16px; }
.list-item .meta { font-size: 13px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.list-item .desc { color: var(--text-sub); font-size: 14px; margin: 8px 0 0; }

.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty .ico { font-size: 40px; margin-bottom: 10px; opacity: .5; }

.pager { display: flex; justify-content: center; gap: 8px; padding: 20px; }
.pager button {
    padding: 6px 13px; border: 1px solid var(--line); background: #fff;
    border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--text-sub);
}
.pager button.active { background: var(--green); color: #fff; border-color: var(--green); }
.pager button:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- 时间轴 ---------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before {
    content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
    width: 2px; background: var(--green-line);
}
.tl-item { position: relative; padding-bottom: 22px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
    content: ""; position: absolute; left: -23px; top: 6px;
    width: 12px; height: 12px; border-radius: 50%;
    background: #fff; border: 3px solid var(--green);
}
.tl-item .tl-head { font-size: 13px; color: var(--muted); margin-bottom: 3px; }
.tl-item .tl-body { background: var(--green-soft); padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.tl-item.internal .tl-body { background: #fdf6ec; }

/* ---------- 结果卡 ---------- */
.result-card {
    background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 28px;
}
.code-box {
    background: var(--green-soft); border: 1px dashed var(--green);
    border-radius: 10px; padding: 20px; text-align: center; margin: 18px 0;
}
.code-box .code {
    font-size: 27px; font-weight: 700; letter-spacing: 5px;
    color: var(--green-dark); font-family: Consolas, monospace;
}
.stars { display: flex; gap: 6px; font-size: 26px; cursor: pointer; }
.stars span { color: #d5dde0; transition: .12s; }
.stars span.on { color: #f5a623; }

/* ---------- 筛选条 ---------- */
.filters {
    display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
    background: #fff; padding: 16px 20px; border-radius: var(--radius);
    border: 1px solid var(--line); margin-bottom: 18px;
}
.filters select, .filters input { width: auto; min-width: 132px; padding: 8px 11px; }
.filters .spacer { flex: 1; }

/* ---------- 提示 ---------- */
.toast {
    position: fixed; top: 24px; left: 50%; transform: translateX(-50%) translateY(-16px);
    background: #1f2933; color: #fff; padding: 11px 22px; border-radius: 8px;
    font-size: 14px; z-index: 9999; opacity: 0; transition: .25s; pointer-events: none;
    box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { background: var(--green); }
.toast.err { background: var(--danger); }

/* ---------- 页脚 ---------- */
/* 全站页脚统一为一行备案信息，居中显示，不再放校标 */
.footer {
    background: #12321f; color: #a9c4b5; padding: 24px 0; margin-top: 40px; font-size: 13px;
}
.footer .container { text-align: center; }
.footer .footer-line { margin: 0; line-height: 1.9; letter-spacing: .3px; }

.page-head {
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    color: #fff; padding: 34px 0;
}
.page-head h1 { margin: 0 0 6px; font-size: 25px; }
.page-head p { margin: 0; opacity: .85; font-size: 14px; }

.main-pad { padding: 34px 0 60px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--green); }

@media (max-width: 900px) {
    .quick-cards, .steps, .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .hero h1 { font-size: 26px; }
    .nav { display: none; }
    .step:not(:last-child)::after { display: none; }
}
