/* ============================================================
   成都云景商事调解中心 - Main Stylesheet
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
                 "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #333; background: #f5f7fa; line-height: 1.6; min-height: 100vh;
}
a { color: #1a5fb4; text-decoration: none; transition: color .2s; }
a:hover { color: #0d3b7a; }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }

/* ---------- Variables ---------- */
:root {
    --primary: #1a5fb4;
    --primary-dark: #0d3b7a;
    --primary-light: #3584e4;
    --accent: #e66100;
    --success: #2ec27e;
    --warning: #f5c211;
    --danger: #c01c28;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #868e96;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow: 0 2px 8px rgba(0,0,0,.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,.12);
    --radius: 6px;
    --radius-lg: 12px;
    --container: 1200px;
    --header-height: 70px;
}

/* ---------- Utility ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-gray { color: var(--gray-600); }
.text-sm { font-size: .875rem; }
.text-lg { font-size: 1.125rem; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none !important; }
.img-responsive { max-width: 100%; height: auto; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block; padding: 10px 24px; font-size: .9375rem; font-weight: 500;
    border: none; border-radius: var(--radius); cursor: pointer; transition: all .2s;
    text-align: center; line-height: 1.5;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: #cc5500; color: var(--white); }
.btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-lg { padding: 14px 36px; font-size: 1rem; }
.btn-sm { padding: 6px 16px; font-size: .8125rem; }

/* ---------- Header / Navbar ---------- */
.site-header {
    background: var(--white); box-shadow: var(--shadow-sm);
    position: sticky; top: 0; z-index: 1000; height: var(--header-height);
}
.header-inner {
    max-width: var(--container); margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between; height: 100%;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 50px; width: auto; }
.logo-text { font-size: 1.125rem; font-weight: 700; color: var(--primary); line-height: 1.3; }
.logo-text small { display: block; font-size: .7rem; font-weight: 400; color: var(--gray-600); }

/* Main Nav */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
    padding: 8px 14px; font-size: .9375rem; color: var(--gray-800);
    border-radius: var(--radius); transition: all .2s; white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); background: #e8f0fe; }

.header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* Search */
.search-box {
    display: flex; align-items: center; border: 1px solid var(--gray-300);
    border-radius: 20px; overflow: hidden; background: var(--gray-50);
}
.search-box input {
    border: none; outline: none; padding: 6px 14px; font-size: .875rem;
    background: transparent; width: 160px;
}
.search-box button {
    border: none; background: var(--primary); color: var(--white);
    padding: 6px 14px; cursor: pointer; font-size: .875rem;
}

/* Floating apply button */
.btn-apply-float {
    background: var(--accent); color: var(--white); padding: 10px 20px;
    border-radius: var(--radius); font-size: .875rem; font-weight: 600;
    white-space: nowrap; animation: pulse 2s infinite;
}
.btn-apply-float:hover { background: #cc5500; color: var(--white); }
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(230,97,0,.4); }
    50% { box-shadow: 0 0 0 8px rgba(230,97,0,0); }
}

/* Mobile menu toggle */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span {
    display: block; width: 24px; height: 2px; background: var(--gray-800);
    margin: 5px 0; transition: .3s;
}

/* ---------- Banner / Carousel ---------- */
.banner-section { position: relative; overflow: hidden; background: #fff; }
.banner-slider { display: flex; transition: transform .5s ease; }
.banner-slide {
    min-width: 100%; position: relative;
}
.banner-slide img { width: 100%; height: auto; display: block; }
.banner-slide .slide-content {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; color: var(--white);
}
.banner-slide .slide-content h2 { font-size: 2.25rem; margin-bottom: .75rem; text-shadow: 0 2px 4px rgba(0,0,0,.3); }
.banner-slide .slide-content p { font-size: 1.125rem; max-width: 600px; text-align: center; text-shadow: 0 1px 3px rgba(0,0,0,.2); }
.banner-dots {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px;
}
.banner-dots span {
    width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5);
    cursor: pointer; transition: .3s;
}
.banner-dots span.active { background: var(--white); width: 28px; border-radius: 5px; }
.banner-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.2);
    color: var(--white); border: none; padding: 16px 12px; cursor: pointer;
    font-size: 1.25rem; transition: .3s; border-radius: 4px;
}
.banner-arrow:hover { background: rgba(255,255,255,.4); }
.banner-arrow.prev { left: 16px; }
.banner-arrow.next { right: 16px; }

/* ---------- Quick Entry Cards ---------- */
.quick-entry {
    background: var(--white); padding: 40px 0; margin-top: -40px; position: relative; z-index: 10;
}
.entry-cards {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
    max-width: 900px; margin: 0 auto;
}
.entry-card {
    background: var(--white); border-radius: var(--radius-lg); padding: 28px 20px;
    text-align: center; box-shadow: var(--shadow); cursor: pointer;
    transition: all .3s; border: 2px solid transparent;
}
.entry-card:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.entry-card .icon {
    width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.entry-card:nth-child(1) .icon { background: #e8f0fe; color: var(--primary); }
.entry-card:nth-child(2) .icon { background: #e6f9ee; color: var(--success); }
.entry-card:nth-child(3) .icon { background: #fff3e0; color: var(--accent); }
.entry-card:nth-child(4) .icon { background: #fde8e8; color: var(--danger); }
.entry-card h3 { font-size: .9375rem; color: var(--gray-800); margin-bottom: 4px; }
.entry-card p { font-size: .8125rem; color: var(--gray-600); }

/* ---------- Section Title ---------- */
.section-title {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-200);
}
.section-title h2 { font-size: 1.25rem; color: var(--gray-900); position: relative; padding-left: 14px; }
.section-title h2::before {
    content: ''; position: absolute; left: 0; top: 2px; bottom: 2px;
    width: 4px; background: var(--primary); border-radius: 2px;
}
.section-title a { font-size: .875rem; color: var(--primary); }

/* ---------- Home Content Sections ---------- */
.home-sections { padding: 30px 0 50px; }
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.home-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }

/* Info Card */
.info-card {
    background: var(--white); border-radius: var(--radius-lg); padding: 24px;
    box-shadow: var(--shadow-sm);
}
.info-card .card-title {
    font-size: 1.0625rem; font-weight: 600; color: var(--gray-900);
    margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--gray-200);
    display: flex; align-items: center; gap: 8px;
}
.info-card .card-title .dot {
    width: 6px; height: 6px; background: var(--primary); border-radius: 50%;
}

/* News List */
.news-list li {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 10px 0; border-bottom: 1px dashed var(--gray-200);
}
.news-list li:last-child { border-bottom: none; }
.news-list li a {
    flex: 1; color: var(--gray-800); font-size: .9375rem;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.news-list li a:hover { color: var(--primary); }
.news-list li .date { font-size: .8125rem; color: var(--gray-500); flex-shrink: 0; margin-left: 12px; }
.news-list .top-tag {
    display: inline-block; background: var(--danger); color: var(--white);
    font-size: .6875rem; padding: 1px 6px; border-radius: 3px; margin-right: 6px;
}

/* Intro Card */
.intro-card {
    background: var(--white); border-radius: var(--radius-lg); padding: 24px;
    box-shadow: var(--shadow-sm); line-height: 1.8; color: var(--gray-700); font-size: .9375rem;
}
.intro-card p { margin-bottom: .75rem; }

/* ---------- Page Banner ---------- */
.page-banner {
    background-color: #fff;
    width: 100%;
    min-height: 60px;
}
.page-banner img {
    width: 100%;
    height: auto;
    display: block;
}
.page-banner .container { padding: 40px 0; }
.page-banner h1 { color: #fff; font-size: 28px; margin: 0; }

/* Breadcrumb */
.breadcrumb {
    padding: 12px 0; font-size: .875rem; color: var(--gray-600);
    border-bottom: 1px solid var(--gray-200); background: var(--white);
}
.breadcrumb a { color: var(--gray-600); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; color: var(--gray-400); }

/* ---------- Content Layout ---------- */
.content-wrap { padding: 30px 0 60px; }
.content-layout {
    display: grid; grid-template-columns: 220px 1fr; gap: 24px;
}
/* Sidebar */
.sidebar {
    background: var(--white); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); overflow: hidden; align-self: start;
    position: sticky; top: calc(var(--header-height) + 20px);
}
.sidebar-header {
    background: var(--primary); color: var(--white); padding: 18px 20px;
    font-size: 1.0625rem; font-weight: 600;
}
.sidebar-nav a {
    display: block; padding: 14px 20px; color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100); font-size: .9375rem;
    transition: all .2s;
}
.sidebar-nav a:hover { background: #f0f5ff; color: var(--primary); }
.sidebar-nav a.active {
    background: #e8f0fe; color: var(--primary); font-weight: 600;
    border-left: 3px solid var(--primary);
}

/* Main Content */
.main-content {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 30px; box-shadow: var(--shadow-sm); min-height: 500px;
}

/* Article Content */
.article-content { line-height: 1.9; color: var(--gray-800); }
.article-content h2 { font-size: 1.375rem; margin: 1.5rem 0 .75rem; color: var(--gray-900); }
.article-content h3 { font-size: 1.125rem; margin: 1.25rem 0 .5rem; color: var(--gray-800); }
.article-content p { margin-bottom: 1rem; }
.article-content ul, .article-content ol { padding-left: 2rem; margin-bottom: 1rem; }
.article-content li { margin-bottom: .5rem; list-style: disc; }
.article-content ol li { list-style: decimal; }
.article-content strong { color: var(--gray-900); }
.article-content img { border-radius: var(--radius); margin: 1rem 0; }
.article-content table {
    width: 100%; border-collapse: collapse; margin: 1rem 0;
}
.article-content th, .article-content td {
    border: 1px solid var(--gray-300); padding: 10px 14px; text-align: left;
}
.article-content th { background: var(--gray-100); font-weight: 600; }

/* ---------- Team Cards ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card {
    background: var(--white); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); overflow: hidden; transition: all .3s;
}
.team-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.team-card .photo {
    width: 100%; height: 240px; background: var(--gray-200); overflow: hidden;
}
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card .info { padding: 16px 20px; }
.team-card .info h3 { font-size: 1.0625rem; color: var(--gray-900); margin-bottom: 4px; }
.team-card .info .position { font-size: .875rem; color: var(--primary); margin-bottom: 8px; }
.team-card .info p { font-size: .8125rem; color: var(--gray-600); line-height: 1.6; }

/* ---------- Mediator Cards ---------- */
.mediator-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.mediator-card {
    display: flex; gap: 16px; padding: 16px; border-radius: var(--radius);
    border: 1px solid var(--gray-200); transition: all .2s; background: var(--white);
}
.mediator-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-sm); }
.mediator-card .avatar {
    width: 80px; height: 100px; flex-shrink: 0; border-radius: var(--radius);
    background: var(--gray-200); overflow: hidden;
}
.mediator-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.mediator-card .detail { flex: 1; }
.mediator-card .detail h3 { font-size: 1rem; color: var(--gray-900); }
.mediator-card .detail .specialty {
    font-size: .8125rem; color: var(--primary); margin: 4px 0;
}
.mediator-card .detail .cert-no {
    font-size: .75rem; color: var(--gray-500);
}
.status-badge {
    display: inline-block; padding: 2px 10px; border-radius: 10px;
    font-size: .75rem; font-weight: 500;
}
.status-active { background: #e6f9ee; color: var(--success); }
.status-inactive { background: var(--gray-100); color: var(--gray-500); }

/* Mediator Table (PC) */
.mediator-table { width: 100%; border-collapse: collapse; }
.mediator-table th {
    background: var(--primary); color: var(--white); padding: 12px 14px;
    text-align: left; font-size: .875rem; font-weight: 500;
}
.mediator-table td {
    padding: 12px 14px; border-bottom: 1px solid var(--gray-200); font-size: .875rem;
}
.mediator-table tr:hover td { background: #f8f9ff; }

/* ---------- Filter Bar ---------- */
.filter-bar {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
    padding: 16px 20px; background: var(--gray-50); border-radius: var(--radius);
    margin-bottom: 20px;
}
.filter-bar label { font-size: .875rem; color: var(--gray-700); font-weight: 500; }
.filter-bar select, .filter-bar input[type="text"] {
    padding: 8px 12px; border: 1px solid var(--gray-300); border-radius: var(--radius);
    font-size: .875rem; outline: none; background: var(--white);
}
.filter-bar select:focus, .filter-bar input:focus { border-color: var(--primary); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-size: .9375rem; color: var(--gray-700);
    margin-bottom: 6px; font-weight: 500;
}
.form-group label .required { color: var(--danger); margin-left: 2px; }
.form-control {
    width: 100%; padding: 10px 14px; border: 1px solid var(--gray-300);
    border-radius: var(--radius); font-size: .9375rem; outline: none;
    transition: border-color .2s;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,95,180,.1); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E") no-repeat right 12px center; }

/* File Upload */
.file-upload-area {
    border: 2px dashed var(--gray-300); border-radius: var(--radius);
    padding: 30px; text-align: center; cursor: pointer; transition: .3s;
}
.file-upload-area:hover { border-color: var(--primary); background: #f8f9ff; }
.file-upload-area .icon { font-size: 2rem; color: var(--gray-400); margin-bottom: 8px; }
.file-upload-area p { font-size: .875rem; color: var(--gray-600); }
.file-list { margin-top: 12px; }
.file-list .file-item {
    display: flex; align-items: center; gap: 8px; padding: 8px 12px;
    background: var(--gray-50); border-radius: var(--radius); margin-bottom: 6px;
    font-size: .875rem;
}
.file-list .file-item .remove { color: var(--danger); cursor: pointer; margin-left: auto; }

/* ---------- Process Flow ---------- */
.process-flow {
    display: flex; justify-content: space-between; align-items: flex-start;
    position: relative; padding: 30px 0;
}
.process-flow::before {
    content: ''; position: absolute; top: 52px; left: 5%; right: 5%;
    height: 3px; background: var(--gray-300); z-index: 0;
}
.process-step { text-align: center; position: relative; z-index: 1; flex: 1; }
.process-step .step-icon {
    width: 44px; height: 44px; border-radius: 50%; background: var(--primary);
    color: var(--white); display: flex; align-items: center; justify-content: center;
    margin: 0 auto 10px; font-weight: 700; font-size: 1rem;
}
.process-step .step-title { font-size: .875rem; font-weight: 600; color: var(--gray-800); margin-bottom: 4px; }
.process-step .step-desc { font-size: .75rem; color: var(--gray-600); padding: 0 4px; }

/* ---------- Case Table ---------- */
.case-table { width: 100%; border-collapse: collapse; }
.case-table th {
    background: var(--gray-100); padding: 12px 14px; text-align: left;
    font-size: .875rem; font-weight: 600; color: var(--gray-700);
    border-bottom: 2px solid var(--gray-300);
}
.case-table td {
    padding: 12px 14px; border-bottom: 1px solid var(--gray-200); font-size: .875rem;
}
.case-table tr:hover td { background: var(--gray-50); }

/* ---------- Download List ---------- */
.download-list .download-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; border-bottom: 1px solid var(--gray-200);
    transition: .2s;
}
.download-list .download-item:hover { background: var(--gray-50); }
.download-list .file-info { display: flex; align-items: center; gap: 12px; }
.download-list .file-icon {
    width: 40px; height: 40px; border-radius: var(--radius); display: flex;
    align-items: center; justify-content: center; font-size: .75rem;
    font-weight: 700; color: var(--white);
}
.file-icon.pdf { background: var(--danger); }
.file-icon.doc { background: var(--primary); }
.file-icon.xls { background: var(--success); }
.download-list .file-meta h4 { font-size: .9375rem; color: var(--gray-800); }
.download-list .file-meta p { font-size: .8125rem; color: var(--gray-500); }
.download-count { font-size: .8125rem; color: var(--gray-500); }

/* ---------- Statistics Charts ---------- */
.chart-container {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 20px 0;
}
.chart-box {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg); padding: 20px;
}
.chart-box h3 { font-size: 1rem; color: var(--gray-800); margin-bottom: 16px; }
.chart-placeholder {
    height: 260px; background: var(--gray-50); border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    color: var(--gray-500); font-size: .875rem;
}

/* Simple Bar Chart */
.bar-chart { display: flex; flex-direction: column; gap: 10px; }
.bar-item { display: flex; align-items: center; gap: 10px; }
.bar-item .label { width: 80px; font-size: .8125rem; color: var(--gray-700); text-align: right; }
.bar-item .bar { flex: 1; height: 24px; background: var(--gray-200); border-radius: 4px; overflow: hidden; }
.bar-item .bar .fill { height: 100%; border-radius: 4px; transition: width 1s; }
.bar-item .bar .fill.blue { background: var(--primary); }
.bar-item .bar .fill.green { background: var(--success); }
.bar-item .bar .fill.orange { background: var(--accent); }
.bar-item .value { width: 40px; font-size: .8125rem; color: var(--gray-700); }

/* Simple Pie Chart (CSS) */
.pie-chart-wrapper { display: flex; align-items: center; gap: 20px; }
.legend-list { font-size: .8125rem; }
.legend-list li { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.legend-list .dot { width: 10px; height: 10px; border-radius: 50%; }

/* ---------- Honor Gallery ---------- */
.honor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.honor-card {
    background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200);
    overflow: hidden; transition: all .3s; cursor: pointer;
}
.honor-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.honor-card .img-wrap { height: 200px; overflow: hidden; background: var(--gray-100); }
.honor-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.honor-card .caption { padding: 12px 16px; }
.honor-card .caption h4 { font-size: .9375rem; color: var(--gray-800); }
.honor-card .caption p { font-size: .8125rem; color: var(--gray-500); margin-top: 4px; }

/* ---------- Organization Chart ---------- */
.org-chart { text-align: center; padding: 20px; }
.org-chart .org-node {
    display: inline-block; padding: 14px 28px; background: var(--primary);
    color: var(--white); border-radius: var(--radius); font-weight: 600;
    margin-bottom: 20px;
}
.org-chart .org-children { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.org-chart .org-child {
    padding: 10px 20px; background: var(--gray-50); border: 1px solid var(--gray-300);
    border-radius: var(--radius); text-align: center;
}
.org-chart .org-child h4 { font-size: .9375rem; color: var(--gray-800); }
.org-chart .org-child p { font-size: .8125rem; color: var(--gray-600); margin-top: 4px; }
.org-chart .connector {
    width: 2px; height: 30px; background: var(--gray-400); margin: 0 auto;
}
.org-chart .h-line {
    height: 2px; background: var(--gray-400); margin: 0 auto 30px; max-width: 600px;
}

/* ---------- Map Container ---------- */
.map-container {
    width: 100%; height: 300px; background: var(--gray-200);
    border-radius: var(--radius); overflow: hidden;
}

/* ---------- Query Result ---------- */
.query-result {
    background: var(--gray-50); border-radius: var(--radius-lg);
    padding: 24px; margin-top: 20px;
}
.query-result h3 { font-size: 1.0625rem; color: var(--gray-900); margin-bottom: 16px; }
.result-table { width: 100%; }
.result-table td {
    padding: 10px 14px; font-size: .9375rem; border-bottom: 1px solid var(--gray-200);
}
.result-table td:first-child { font-weight: 500; color: var(--gray-700); width: 140px; }

/* ---------- Pagination ---------- */
.pagination {
    display: flex; justify-content: center; gap: 6px; margin-top: 30px;
}
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 10px;
    border: 1px solid var(--gray-300); border-radius: var(--radius);
    font-size: .875rem; color: var(--gray-700); transition: .2s;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--gray-900); color: var(--gray-400); padding: 40px 0 0;
    margin-top: 40px;
}
.footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px;
    padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col h3 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.footer-col p, .footer-col li { font-size: .875rem; line-height: 2; }
.footer-col a { color: var(--gray-400); }
.footer-col a:hover { color: var(--white); }
.footer-contact li {
    display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px;
}
.footer-contact .label { color: var(--gray-500); flex-shrink: 0; }
.footer-qr { text-align: center; }
.footer-qr .qr-placeholder {
    width: 120px; height: 120px; background: var(--white); border-radius: var(--radius);
    margin: 0 auto 8px; display: flex; align-items: center; justify-content: center;
    color: var(--gray-500); font-size: .75rem;
}
.footer-qr p { font-size: .8125rem; }
.footer-bottom {
    padding: 16px 0; text-align: center; font-size: .8125rem;
}
.footer-bottom a { color: var(--gray-500); }

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed; bottom: 40px; right: 30px; width: 44px; height: 44px;
    background: var(--primary); color: var(--white); border: none; border-radius: 50%;
    cursor: pointer; font-size: 1.25rem; box-shadow: var(--shadow);
    display: none; align-items: center; justify-content: center; transition: .3s; z-index: 999;
}
.back-to-top:hover { background: var(--primary-dark); }
.back-to-top.show { display: flex; }

/* ---------- Alert / Toast ---------- */
.alert {
    padding: 12px 20px; border-radius: var(--radius); margin-bottom: 16px; font-size: .9375rem;
}
.alert-success { background: #e6f9ee; color: #1a7f37; border: 1px solid #2ec27e33; }
.alert-danger { background: #fde8e8; color: #c01c28; border: 1px solid #c01c2833; }
.alert-warning { background: #fff8e1; color: #b8860b; border: 1px solid #f5c21133; }
.alert-info { background: #e8f0fe; color: var(--primary); border: 1px solid #3584e433; }

.toast {
    position: fixed; top: 20px; right: 20px; padding: 14px 24px;
    background: var(--gray-900); color: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); z-index: 9999; transform: translateX(120%);
    transition: transform .3s; font-size: .9375rem;
}
.toast.show { transform: translateX(0); }

/* ---------- Captcha ---------- */
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row .form-control { flex: 1; }
.captcha-img {
    height: 40px; border-radius: var(--radius); cursor: pointer;
    background: var(--gray-200); display: flex; align-items: center;
    justify-content: center; padding: 0 12px; font-size: .875rem;
    color: var(--gray-600); border: 1px solid var(--gray-300);
}

/* ---------- Loading ---------- */
.loading { text-align: center; padding: 40px; color: var(--gray-500); }
.spinner {
    display: inline-block; width: 32px; height: 32px;
    border: 3px solid var(--gray-300); border-top-color: var(--primary);
    border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Empty State ---------- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-500); }
.empty-state .icon { font-size: 3rem; margin-bottom: 12px; }

/* ---------- Modal / Image Viewer ---------- */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 10000;
    display: none; align-items: center; justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal-overlay img { max-width: 90%; max-height: 90%; border-radius: var(--radius); }
.modal-close {
    position: absolute; top: 20px; right: 30px; color: var(--white);
    font-size: 2rem; cursor: pointer; background: none; border: none;
}

/* ============================================================
   Admin Panel Styles
   ============================================================ */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 240px; background: #1f2937; color: var(--white); flex-shrink: 0;
    position: fixed; top: 0; left: 0; bottom: 0; overflow-y: auto;
}
.admin-sidebar .admin-logo {
    padding: 20px; font-size: .9375rem; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.1);
    display: flex; align-items: center; gap: 10px;
}
.admin-sidebar .admin-logo .short { font-size: 1.5rem; }
.admin-nav { padding: 12px 0; }
.admin-nav-group { margin-bottom: 4px; }
.admin-nav-group .group-title {
    padding: 10px 20px; font-size: .75rem; text-transform: uppercase;
    color: #9ca3af; letter-spacing: .05em;
}
.admin-nav a {
    display: block; padding: 10px 20px 10px 28px; color: #d1d5db;
    font-size: .875rem; transition: .2s;
}
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,.08); color: var(--white); }
.admin-nav a.active { border-left: 3px solid var(--primary-light); }

.admin-main {
    margin-left: 240px; flex: 1; background: var(--gray-50);
}
.admin-header {
    background: var(--white); padding: 14px 24px; display: flex;
    align-items: center; justify-content: space-between;
    box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 100;
}
.admin-header h2 { font-size: 1.125rem; color: var(--gray-900); }
.admin-header .user-info { display: flex; align-items: center; gap: 12px; font-size: .875rem; }

.admin-body { padding: 24px; }

/* Admin Dashboard */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card {
    background: var(--white); border-radius: var(--radius-lg); padding: 20px;
    box-shadow: var(--shadow-sm);
}
.stat-card .label { font-size: .8125rem; color: var(--gray-600); margin-bottom: 6px; }
.stat-card .value { font-size: 1.75rem; font-weight: 700; color: var(--gray-900); }
.stat-card .change { font-size: .8125rem; margin-top: 4px; }

/* Admin Table */
.admin-table {
    width: 100%; border-collapse: collapse; background: var(--white);
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
}
.admin-table th {
    background: var(--gray-50); padding: 12px 16px; text-align: left;
    font-size: .8125rem; font-weight: 600; color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
}
.admin-table td {
    padding: 12px 16px; border-bottom: 1px solid var(--gray-100); font-size: .875rem;
}
.admin-table tr:hover td { background: #f8f9ff; }

/* Admin Form */
.admin-form { background: var(--white); padding: 24px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.admin-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============================================================
   Responsive Design
   ============================================================ */
@media (max-width: 1024px) {
    .main-nav { display: none; }
    .search-box { display: none; }
    .menu-toggle { display: block; }

    .header-inner { position: relative; }

    /* Mobile Nav Overlay */
    .main-nav.open {
        display: flex; flex-direction: column; position: absolute;
        top: var(--header-height); left: 0; right: 0; background: var(--white);
        box-shadow: var(--shadow-lg); padding: 10px 0; z-index: 1001;
    }
    .main-nav.open a { padding: 12px 20px; border-bottom: 1px solid var(--gray-100); }

    .entry-cards { grid-template-columns: repeat(2, 1fr); }
    .home-grid { grid-template-columns: 1fr; }
    .home-grid-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .content-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .honor-grid { grid-template-columns: repeat(2, 1fr); }
    .chart-container { grid-template-columns: 1fr; }
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
    .admin-sidebar { display: none; }
    .admin-main { margin-left: 0; }
}

@media (max-width: 768px) {
    .banner-slide .slide-content h2 { font-size: 1.375rem; }
    .banner-slide .slide-content p { font-size: 1rem; }
    .btn-apply-float { display: none; }
    .entry-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
    .entry-card { padding: 18px 10px; }
    .entry-card .icon { width: 44px; height: 44px; font-size: 1.25rem; }
    .entry-card h3 { font-size: .8125rem; }
    .entry-card p { font-size: .75rem; }
    .quick-entry { padding: 24px 0; margin-top: -20px; }
    .home-sections { padding: 20px 0 40px; }
    .home-grid { grid-template-columns: 1fr; }
    .home-grid-3 { grid-template-columns: 1fr; }
    .home-grid, .home-grid-3 { gap: 16px; }
    .info-card { padding: 16px; }
    .intro-card { padding: 16px; }
    .content-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    /* 新闻列表：移动端标题换行，日期移到下方 */
    .news-list li {
        flex-direction: column; gap: 2px;
    }
    .news-list li a {
        white-space: normal; overflow: visible; text-overflow: clip;
        font-size: .875rem; line-height: 1.5;
    }
    .news-list li .date {
        margin-left: 0; font-size: .75rem;
    }
    .team-grid { grid-template-columns: 1fr; }
    .honor-grid { grid-template-columns: 1fr; }
    .chart-container { grid-template-columns: 1fr; }
    .stat-cards { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .site-footer { padding: 30px 0 0; }
    .footer-bottom p { font-size: .75rem; line-height: 1.8; word-break: break-all; }
    .process-flow { flex-direction: column; align-items: center; gap: 20px; }
    .process-flow::before { display: none; }
    .admin-form .form-row { grid-template-columns: 1fr; }
    .mediator-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .banner-slide .slide-content h2 { font-size: 1.125rem; }
    .banner-slide .slide-content p { font-size: .8125rem; }
    .entry-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
    .entry-card { padding: 14px 8px; }
    .entry-card .icon { width: 38px; height: 38px; font-size: 1.1rem; margin-bottom: 8px; }
    .entry-card h3 { font-size: .75rem; }
    .entry-card p { display: none; }
    .main-content { padding: 16px; }
    .back-to-top { right: 16px; bottom: 24px; width: 38px; height: 38px; font-size: 1rem; }
}
