/* ===== 全局重置与基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --primary-light: #e8f0fe;
    --accent: #ff6d00;
    --accent-light: #fff3e0;
    --success: #00c853;
    --text-dark: #1a1a2e;
    --text-body: #4a4a68;
    --text-light: #8a8aa3;
    --bg-white: #ffffff;
    --bg-light: #f5f7fa;
    --bg-gray: #eef1f6;
    --border: #e0e4ed;
    --shadow-sm: 0 2px 8px rgba(26, 115, 232, 0.08);
    --shadow-md: 0 4px 20px rgba(26, 115, 232, 0.12);
    --shadow-lg: 0 8px 40px rgba(26, 115, 232, 0.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-body);
    background: var(--bg-light);
    line-height: 1.6;
    font-size: 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    outline: none;
}

input, select, textarea {
    font-family: inherit;
    outline: none;
}

/* ===== 顶部导航 ===== */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), #4a9eff);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -1px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

.logo-text span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu a {
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-body);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-menu a.active {
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 22px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-accent {
    background: var(--accent);
    color: #fff;
}

.btn-accent:hover {
    background: #e65100;
    box-shadow: 0 4px 16px rgba(255, 109, 0, 0.3);
}

.btn-lg {
    padding: 14px 36px;
    font-size: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--primary-light);
    border-radius: 20px;
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #4a9eff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

.logout-link {
    font-size: 13px;
    color: var(--text-light);
    cursor: pointer;
}

.logout-link:hover {
    color: var(--accent);
}

/* ===== 主内容区 ===== */
.main {
    flex: 1;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ===== 首页 Banner ===== */
.hero {
    background: linear-gradient(135deg, #1a73e8 0%, #4a9eff 50%, #6ab0ff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 560px;
    color: #fff;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero p {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

.hero-btns .btn-primary {
    background: #fff;
    color: var(--primary);
}

.hero-btns .btn-primary:hover {
    background: var(--bg-light);
}

.hero-btns .btn-outline {
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}

.hero-btns .btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}

.hero-image {
    width: 520px;
    height: 320px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== 通用区块标题 ===== */
.section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 15px;
    color: var(--text-light);
}

/* ===== 数据统计条 ===== */
.stats-bar {
    background: var(--bg-white);
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}

.stats-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
}

/* ===== 信息卡片网格 ===== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.info-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.info-card-cover {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.info-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.info-card:hover .info-card-cover img {
    transform: scale(1.05);
}

.info-card-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    z-index: 1;
}

.tag-task {
    background: var(--accent);
}

.tag-service {
    background: var(--primary);
}

.info-card-body {
    padding: 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.info-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.info-card-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.info-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--bg-gray);
}

.info-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

.info-price.negotiate {
    font-size: 15px;
}

.info-contact {
    font-size: 12px;
    color: var(--text-light);
}

/* ===== 筛选栏 ===== */
.filter-bar {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-tabs {
    display: flex;
    gap: 8px;
}

.filter-tab {
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-body);
    cursor: pointer;
    transition: var(--transition);
    background: transparent;
    border: 1px solid var(--border);
}

.filter-tab:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.filter-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.filter-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-search input {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    width: 240px;
    transition: var(--transition);
}

.filter-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--text-body);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.page-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-info {
    font-size: 14px;
    color: var(--text-light);
    margin: 0 10px;
}

/* ===== 详情弹窗 ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-gray);
    color: var(--text-body);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--accent);
    color: #fff;
}

.modal-body {
    padding: 24px 28px;
}

.modal-cover {
    width: 100%;
    height: 240px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
}

.modal-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.modal-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-body);
}

.modal-meta-item .label {
    color: var(--text-light);
}

.modal-detail {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-body);
    white-space: pre-wrap;
}

.modal-detail h4 {
    color: var(--text-dark);
    margin: 16px 0 8px;
    font-size: 15px;
}

.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent);
}

/* ===== 表单页面 ===== */
.form-page {
    min-height: calc(100vh - 72px - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
}

.form-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 520px;
    padding: 40px;
}

.form-card.wide {
    max-width: 720px;
}

.form-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 8px;
}

.form-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-label .required {
    color: var(--accent);
    margin-left: 2px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 11px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-dark);
    transition: var(--transition);
    background: var(--bg-white);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-tip {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
}

.form-agreement {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--text-body);
    margin-bottom: 24px;
}

.form-agreement input {
    margin-top: 3px;
    flex-shrink: 0;
}

.form-agreement a {
    color: var(--primary);
}

.form-agreement a:hover {
    text-decoration: underline;
}

.form-submit {
    width: 100%;
    padding: 13px;
    font-size: 16px;
}

.form-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-light);
}

.form-footer a {
    color: var(--primary);
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* 实名认证标签 */
.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.auth-badge.verified {
    background: #e8f5e9;
    color: var(--success);
}

/* ===== 发布提示条 ===== */
.publish-notice {
    background: linear-gradient(135deg, #fff8e1, #fff3e0);
    border: 1px solid #ffe0b2;
    border-radius: var(--radius-md);
    padding: 14px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #e65100;
}

.publish-notice .icon {
    font-size: 20px;
    flex-shrink: 0;
}

/* ===== 协议页面 ===== */
.doc-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 30px;
}

.doc-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 50px 60px;
    box-shadow: var(--shadow-sm);
}

.doc-card h1 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 12px;
    text-align: center;
}

.doc-card .doc-meta {
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.doc-card h2 {
    font-size: 18px;
    color: var(--text-dark);
    margin: 28px 0 12px;
}

.doc-card h3 {
    font-size: 15px;
    color: var(--text-dark);
    margin: 20px 0 8px;
}

.doc-card p {
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-body);
    margin-bottom: 12px;
}

.doc-card ul, .doc-card ol {
    padding-left: 24px;
    margin-bottom: 12px;
}

.doc-card li {
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-body);
    margin-bottom: 6px;
}

.doc-back {
    text-align: center;
    margin-top: 36px;
}

/* ===== 底部 ===== */
.footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.7);
    padding: 50px 0 0;
    margin-top: auto;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand .logo-text {
    color: #fff;
    margin-bottom: 14px;
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.8;
    opacity: 0.7;
}

.footer-col h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 18px;
    font-weight: 600;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    font-size: 13px;
    opacity: 0.7;
}

.footer-col a:hover {
    opacity: 1;
    color: #4a9eff;
}

.footer-contact li {
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 10px;
    display: flex;
    gap: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
}

.footer-bottom a {
    color: rgba(255,255,255,0.6);
}

.footer-bottom a:hover {
    color: #4a9eff;
}

/* ===== Toast 提示 ===== */
.toast {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--text-dark);
    color: #fff;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    z-index: 3000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: var(--shadow-lg);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: #ff5252;
}

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state .icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 15px;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-btns {
        justify-content: center;
    }
    .hero-image {
        width: 100%;
        max-width: 520px;
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0 16px;
        height: 60px;
    }
    .logo-text {
        font-size: 16px;
    }
    .nav-menu {
        gap: 2px;
    }
    .nav-menu a {
        padding: 8px 12px;
        font-size: 13px;
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
    .stats-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .hero h1 {
        font-size: 28px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .doc-card {
        padding: 30px 24px;
    }
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-search input {
        width: 100%;
    }
}
