/* 匿邮盒 - 内页统一样式（依赖 mail.css 变量） */

body.page-inner {
    padding-top: 0;
    background: var(--bg);
}

/* 内页顶栏横幅 */
.page-banner {
    margin-top: var(--nav-h);
    background: var(--gradient-brand);
    padding: 52px 0;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 45%);
    pointer-events: none;
}

.page-banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-banner-title {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.page-banner-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.65;
}

/* 子页主区域 */
.sub-page {
    padding: 48px 0 72px;
    background: var(--bg-soft);
    min-height: 50vh;
}

/* 关于我们 */
.about-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    max-width: 1000px;
    margin: 0 auto;
}

.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 8px;
    height: fit-content;
    position: sticky;
    top: calc(var(--nav-h) + 20px);
}

.about-nav-item {
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-muted);
    border-radius: var(--radius);
    transition: var(--transition);
}

.about-nav-item:hover,
.about-nav-item.active {
    background: #EEF2FF;
    color: var(--brand);
}

.about-content {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 40px;
    min-height: 400px;
}

.about-section { display: none; }
.about-section.active { display: block; }

.about-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 16px;
}

.about-section p {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.85;
    margin-bottom: 12px;
}

.about-section a { color: var(--brand); }

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.about-stat {
    text-align: center;
    padding: 20px;
    background: var(--bg-soft);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.about-stat-num {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 4px;
}

.about-stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.team-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}

.team-avatar {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    background: var(--gradient-brand);
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-title);
    margin-bottom: 4px;
}

.team-role {
    font-size: 13px;
    color: var(--brand);
    margin-bottom: 8px;
}

.team-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.timeline {
    margin-top: 20px;
    padding-left: 20px;
    border-left: 2px solid var(--border);
}

.timeline-item {
    position: relative;
    padding-left: 24px;
    padding-bottom: 28px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
    content: "";
    position: absolute;
    left: -27px;
    top: 4px;
    width: 10px;
    height: 10px;
    background: var(--brand);
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--brand-light);
}

.timeline-year {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand);
    margin-bottom: 6px;
}

.timeline-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-title);
    margin-bottom: 6px;
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 0;
}

.about-list {
    margin-top: 12px;
    padding-left: 20px;
}

.about-list li {
    font-size: 15px;
    color: var(--text-body);
    line-height: 2;
}

.info-card {
    margin-top: 20px;
    padding: 20px 24px;
    background: var(--bg-soft);
    border-radius: var(--radius);
    border-left: 3px solid var(--brand);
}

.info-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-title);
    margin-bottom: 8px;
}

/* 联系我们 */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.contact-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-title);
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 14px;
    color: var(--text-muted);
}

.contact-highlight {
    font-size: 18px;
    font-weight: 600;
    color: var(--brand) !important;
    margin-bottom: 4px !important;
}

.contact-form {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.contact-form h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 20px;
}

.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-body);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--brand-light);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.contact-submit {
    width: 100%;
    justify-content: center;
    border: none;
    cursor: pointer;
    margin-top: 8px;
}

/* 加入我们 */
.join-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto 40px;
}

.join-benefit {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
}

.join-benefit h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-title);
    margin-bottom: 8px;
}

.join-benefit p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.65;
}

.join-positions {
    max-width: 800px;
    margin: 0 auto;
}

.join-positions h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 20px;
    text-align: center;
}

.job-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.job-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.job-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--brand-light);
}

.job-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-title);
    margin-bottom: 4px;
}

.job-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.job-apply {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    border: 1px solid var(--brand);
    border-radius: 100px;
    transition: var(--transition);
    flex-shrink: 0;
}

.job-apply:hover {
    background: var(--gradient-brand);
    color: #fff;
    border-color: transparent;
}

.join-email {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

.join-email a { color: var(--brand); }

/* 新闻列表 */
.news-page {
    padding: 48px 0 72px;
    background: var(--bg-soft);
    min-height: 50vh;
}

.news-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.news-tab {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: var(--transition);
}

.news-tab:hover,
.news-tab.active {
    background: var(--gradient-brand);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.news-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-item {
    display: flex;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    color: inherit;
}

.news-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--brand-light);
    transform: translateY(-2px);
}

.news-item-content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-item-cat {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--brand);
    background: #EEF2FF;
    border-radius: 100px;
    width: fit-content;
    margin-bottom: 10px;
}

.news-item-cat.news-cat-experience {
    color: #0891B2;
    background: #ECFEFF;
}

.news-item-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-title);
    margin-bottom: 8px;
    line-height: 1.5;
}

.news-item-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.news-item-image {
    width: 200px;
    flex-shrink: 0;
    background: var(--bg-muted);
}

.news-placeholder {
    width: 100%;
    height: 100%;
    min-height: 140px;
    background: linear-gradient(135deg, #EEF2FF 0%, #ECFEFF 100%);
}

.news-placeholder-green {
    background: linear-gradient(135deg, #ECFEFF 0%, #F0FDF4 100%);
}

.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    font-size: 14px;
    color: var(--text-muted);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.page-btn:hover:not(.disabled),
.page-btn.active {
    background: var(--gradient-brand);
    color: #fff;
    border-color: transparent;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn svg { width: 16px; height: 16px; }

.page-ellipsis { padding: 0 4px; color: var(--text-muted); }

/* 新闻详情 */
.news-detail-page {
    padding: 32px 0 72px;
    background: var(--bg-soft);
    min-height: 50vh;
}

.news-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 28px;
    color: var(--text-muted);
}

.news-breadcrumb a {
    color: var(--text-muted);
    transition: color var(--transition);
}

.news-breadcrumb a:hover { color: var(--brand); }

.breadcrumb-current { color: var(--text-body); }

.news-detail {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.news-detail-cat {
    display: inline-block;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand);
    background: #EEF2FF;
    border-radius: 100px;
    margin-bottom: 16px;
}

.news-detail-cat.news-cat-experience {
    color: #0891B2;
    background: #ECFEFF;
}

.news-detail-content code {
    padding: 2px 6px;
    font-size: 14px;
    background: var(--bg-soft);
    border-radius: 4px;
    font-family: Consolas, Monaco, monospace;
}

.news-detail-title {
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 700;
    color: var(--text-title);
    line-height: 1.4;
    margin-bottom: 16px;
}

.news-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.news-detail-cover {
    margin-bottom: 28px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.news-detail-placeholder {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #EEF2FF 0%, #ECFEFF 100%);
}

.news-detail-content {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-body);
}

.news-detail-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-title);
    margin: 28px 0 14px;
}

.news-detail-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.news-detail-content blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    background: var(--bg-soft);
    border-left: 3px solid var(--brand);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text-muted);
    font-style: italic;
}

.news-detail-tags {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-label { font-size: 13px; color: var(--text-muted); }

.news-tag {
    padding: 4px 14px;
    font-size: 12px;
    color: var(--text-body);
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: var(--transition);
}

.news-tag:hover {
    color: var(--brand);
    border-color: var(--brand-light);
}

.news-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 800px;
    margin: 32px auto 0;
}

.news-nav-btn {
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.news-nav-btn:hover {
    border-color: var(--brand-light);
    box-shadow: var(--shadow-sm);
}

.news-nav-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.news-nav-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-title);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-nav-btn:hover .news-nav-title { color: var(--brand); }

.news-back {
    margin-top: 24px;
    text-align: center;
}

.news-back a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand);
}

.news-back svg { width: 16px; height: 16px; }

@media (max-width: 992px) {
    .about-layout { grid-template-columns: 1fr; }
    .about-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .join-benefits { grid-template-columns: repeat(2, 1fr); }
    .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .page-banner { padding: 36px 0; }
    .about-content { padding: 24px 20px; }
    .team-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr; }
    .join-benefits { grid-template-columns: 1fr; }
    .job-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .news-item { flex-direction: column; }
    .news-item-image { width: 100%; height: 160px; }
    .news-detail { padding: 24px 20px; }
    .news-detail-placeholder { height: 180px; }
    .news-nav { grid-template-columns: 1fr; }
}
