/* ========== 通用单页面（联系我们 / 商务合作 / 关于我们） ========== */

.page-page .main-content { background: #f5f6f8; }
.page-page .right-hero-bg,
.page-page .right-hero-overlay { display: none; }
.page-page .content-wrapper { padding-top: 24px; }

/* 面包屑与页面标题区间距 */
.page-page .breadcrumb-top { margin-bottom: 20px; }

/* ========== 页面 Hero 标题区 ========== */
.page-hero {
    margin-bottom: 28px;
}

.page-hero h1 {
    font-size: 26px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 10px;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.page-hero p {
    font-size: 14.5px;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}

/* ========== 两列布局：主内容 + 侧栏 ========== */
.page-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.page-main {
    flex: 1;
    min-width: 0;
}

.page-side {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ========== 白色卡片容器 ========== */
.page-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    padding: 28px 30px;
    margin-bottom: 24px;
}

.page-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f1f3;
}

.page-card-title svg { color: #6366f1; }

/* ========== 富文本内容区（支持 h2/h3/p/img/blockquote/pre/code/ol/ul/hr/table） ========== */
.page-content {
    font-size: 15px;
    line-height: 1.85;
    color: #374151;
    word-break: break-word;
}

.page-content p {
    margin: 0 0 16px;
}

.page-content p:last-child {
    margin-bottom: 0;
}

/* 标题 */
.page-content h2,
.page-content h3,
.page-content h4 {
    color: #111827;
    font-weight: 700;
    line-height: 1.4;
    margin: 28px 0 12px;
    word-break: break-word;
}

.page-content h2 {
    font-size: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f1f3;
}

.page-content h3 {
    font-size: 17px;
}

.page-content h4 {
    font-size: 15.5px;
    color: #374151;
}

.page-content h2:first-child,
.page-content h3:first-child,
.page-content h4:first-child {
    margin-top: 0;
}

/* 图片：圆角 + 限宽不超出父级 */
.page-content img {
    max-width: 100%;
    width: auto;
    height: auto;
    border-radius: 12px;
    margin: 16px 0 20px;
    display: block;
    background: #f3f4f6;
}

/* 引用块 */
.page-content blockquote {
    margin: 18px 0;
    padding: 14px 18px;
    background: #f9fafb;
    border-left: 3px solid #6366f1;
    border-radius: 0 10px 10px 0;
    color: #4b5563;
    font-size: 14.5px;
    line-height: 1.75;
}

.page-content blockquote p {
    margin: 0 0 8px;
}

.page-content blockquote p:last-child {
    margin-bottom: 0;
}

/* 代码块 */
.page-content pre {
    margin: 16px 0;
    padding: 16px 18px;
    background: #1f2937;
    color: #e5e7eb;
    border-radius: 10px;
    overflow-x: auto;
    font-family: "JetBrains Mono", "Fira Code", "Consolas", monospace;
    font-size: 13px;
    line-height: 1.65;
    -webkit-overflow-scrolling: touch;
    white-space: pre;
}

.page-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: inherit;
    border-radius: 0;
}

/* 行内 code */
.page-content code {
    font-family: "JetBrains Mono", "Fira Code", "Consolas", monospace;
    font-size: 13px;
    padding: 2px 7px;
    background: #f3f4f6;
    color: #db2777;
    border-radius: 4px;
    word-break: break-word;
}

/* 列表 */
.page-content ul,
.page-content ol {
    margin: 14px 0 18px;
    padding-left: 26px;
    line-height: 1.8;
}

.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }

.page-content li { margin: 5px 0; }

.page-content li > ul,
.page-content li > ol { margin: 5px 0 0; }

.page-content li::marker { color: #6366f1; }

/* 分隔线 */
.page-content hr {
    border: 0;
    border-top: 1px solid #f0f1f3;
    margin: 24px 0;
    height: 0;
}

/* 链接 */
.page-content a {
    color: #6366f1;
    text-decoration: underline;
    text-decoration-color: rgba(99, 102, 241, 0.4);
    text-underline-offset: 2px;
    transition: color 0.2s ease;
    word-break: break-word;
}

.page-content a:hover {
    color: #4f46e5;
    text-decoration-color: #4f46e5;
}

/* 表格 */
.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    font-size: 14px;
    display: block;
    overflow-x: auto;
}

.page-content th,
.page-content td {
    border: 1px solid #e5e7eb;
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
}

.page-content th {
    background: #f9fafb;
    color: #1f2937;
    font-weight: 600;
}

.page-content tr:nth-child(even) td {
    background: #fafbfc;
}

/* 强制换行：覆盖粘贴的 nowrap 内联样式 */
.page-content [style*="nowrap"] {
    text-wrap-mode: wrap !important;
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ========== 联系表单 ========== */
.page-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

.page-form-row {
    display: flex;
    gap: 16px;
}

.page-form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.page-form-label {
    font-size: 13.5px;
    font-weight: 600;
    color: #374151;
}

.page-form-label .req {
    color: #ef4444;
    margin-left: 2px;
}

.page-form-input,
.page-form-textarea,
.page-form-select {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    color: #1f2937;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.page-form-input:focus,
.page-form-textarea:focus,
.page-form-select:focus {
    border-color: #6366f1;
    background: #fff;
}

.page-form-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.7;
}

.page-form-submit {
    align-self: flex-start;
    padding: 11px 32px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-form-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}

/* 表单提交成功提示 */
.page-form-msg {
    display: none;
    padding: 10px 14px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    color: #047857;
    font-size: 13.5px;
}

.page-form-msg.show { display: block; }

/* ========== 侧栏信息卡片 ========== */
.page-side-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    padding: 22px;
}

.page-side-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px;
}

.page-side-card-title svg { color: #6366f1; }

/* 联系方式列表 */
.page-contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.page-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.page-contact-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.page-contact-label {
    font-size: 12px;
    color: #9ca3af;
}

.page-contact-value {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    word-break: break-all;
}

/* 二维码块 */
.page-qr-block {
    text-align: center;
}

.page-qr-img {
    width: 160px;
    height: 160px;
    margin: 0 auto 12px;
    border-radius: 12px;
    background: #f3f4f6;
    object-fit: cover;
    border: 1px solid #f0f1f3;
}

.page-qr-desc {
    font-size: 12.5px;
    color: #6b7280;
    line-height: 1.6;
}

/* 工作时间 */
.page-hours {
    font-size: 13.5px;
    color: #4b5563;
    line-height: 1.9;
}

.page-hours-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.page-hours-day { color: #6b7280; }
.page-hours-time { color: #1f2937; font-weight: 500; }

/* ========== 响应式 ========== */
@media (max-width: 960px) {
    .page-layout { flex-direction: column; }
    .page-side { width: 100%; flex-direction: row; flex-wrap: wrap; }
    .page-side-card { flex: 1 1 260px; }
}

@media (max-width: 640px) {
    .page-page .content-wrapper { padding: 16px; }
    .page-card { padding: 20px; border-radius: 14px; }
    .page-hero h1 { font-size: 22px; }
    .page-form-row { flex-direction: column; gap: 16px; }
    .page-side { flex-direction: column; }
    .page-side-card { flex: none; }
}
