/* 栏目详情页样式 - 参考Cornerstone风格 */

/* Hero Banner */
.column-hero {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.column-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.column-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.column-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 2rem;
}

.column-hero-content h1 {
    font-size: 2.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.column-hero-content p {
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero-buttons .btn-primary {
    display: inline-block;
    background: #f26522;
    color: #fff;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-buttons .btn-primary:hover {
    background: #d9551a;
}

.hero-buttons .btn-secondary {
    display: inline-block;
    background: transparent;
    color: #fff;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #fff;
    transition: all 0.3s ease;
}

.hero-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 面包屑导航 */
.column-breadcrumb {
    background: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.875rem;
}

.column-breadcrumb a {
    color: #666;
    text-decoration: none;
}

.column-breadcrumb a:hover {
    color: #0863c4;
}

.column-breadcrumb span {
    color: #999;
    margin: 0 0.5rem;
}

.column-breadcrumb .current {
    color: #333;
}

/* 栏目详情内容区域 */
.column-detail-page {
    background: #fff;
}

.column-detail-page > * {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.column-detail-page > .section-intro,
.column-detail-page > .section-title-block,
.column-detail-page > .section-stats,
.column-detail-page > .section-features,
.column-detail-page > .section-module,
.column-detail-page > .section-articles {
    max-width: 100%;
}

.column-detail-page img {
    max-width: 100%;
    height: auto;
}

.column-detail-page p,
.column-detail-page h2,
.column-detail-page h3,
.column-detail-page h4 {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* ========== 可在富文本中使用的样式类 ========== */

/* 简介区块 - 带小图标 */
.section-intro {
    padding: 60px 10rem;
    text-align: center;
    background: #fff;
}

.section-intro .intro-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.section-intro .intro-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2.5rem;
}

.section-intro .intro-icons {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.section-intro .intro-icon-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-intro .intro-icon-item img {
    width: 32px;
    height: 32px;
}

.section-intro .intro-icon-item span {
    font-size: 0.9375rem;
    color: #555;
}

/* 大标题区块 */
.section-title-block {
    padding: 50px 10rem;
    text-align: center;
    background: #fff;
}

.section-title-block h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
}

.section-title-block .subtitle {
    font-size: 1.125rem;
    color: #0863c4;
    margin-bottom: 1rem;
}

.section-title-block p {
    font-size: 0.9375rem;
    color: #666;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

/* 数据统计区块 */
.section-stats {
    padding: 50px 10rem;
    background: #fff;
}

.section-stats .stats-wrapper {
    display: flex;
    justify-content: center;
    gap: 8rem;
    flex-wrap: wrap;
}

.section-stats .stat-item {
    text-align: left;
}

.section-stats .stat-prefix {
    font-size: 0.875rem;
    color: #999;
    margin-bottom: 0.25rem;
}

.section-stats .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    line-height: 1.1;
}

.section-stats .stat-number span {
    font-size: 1.25rem;
    font-weight: 400;
    color: #666;
}

.section-stats .stat-label {
    font-size: 0.9375rem;
    color: #666;
    margin-top: 0.25rem;
}

/* 功能图标网格 - 3列 */
.section-features {
    padding: 60px 10rem;
    background: #f9f9f9;
}

.section-features .features-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-features .features-title h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.section-features .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.section-features .feature-item {
    padding: 2rem 1.5rem;
    text-align: center;
    border-right: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.section-features .feature-item:nth-child(3n) {
    border-right: none;
}

.section-features .feature-item:nth-last-child(-n+3) {
    border-bottom: none;
}

.section-features .feature-icon {
    margin-bottom: 1rem;
}

.section-features .feature-icon img {
    width: 48px;
    height: 48px;
}

.section-features .feature-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
}

.section-features .feature-subtitle {
    font-size: 0.8125rem;
    color: #999;
}

/* 左右交替模块 */
.section-module {
    padding: 80px 10rem;
    display: flex;
    align-items: center;
    gap: 5rem;
    background: #fff;
}

.section-module.reverse {
    flex-direction: row-reverse;
}

.section-module.bg-gray {
    background: #f5f7fa;
}

.section-module .module-content {
    flex: 1;
}

.section-module .module-image {
    flex: 1;
}

.section-module .module-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.section-module .module-tag {
    display: inline-block;
    background: #0863c4;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-module .module-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.section-module .module-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
}

.section-module .module-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.section-module .module-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    color: #555;
    line-height: 1.6;
}

.section-module .module-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #0863c4;
    font-weight: bold;
}

/* 文章推荐区块 */
.section-articles {
    padding: 60px 10rem;
    background: #fff;
}

.section-articles .articles-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-articles .articles-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.section-articles .articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-articles .article-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-decoration: none;
}

.section-articles .article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-articles .article-date {
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.section-articles .article-date .day {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.section-articles .article-date .month {
    font-size: 0.8125rem;
    color: #999;
}

.section-articles .article-content {
    padding: 1.25rem 1.5rem;
}

.section-articles .article-tag {
    display: inline-block;
    background: #e8f4fd;
    color: #0863c4;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.section-articles .article-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== 子栏目网格 ========== */
.column-children {
    padding: 60px 0;
    background: #f9f9f9;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1rem;
    color: #666;
}

.children-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.child-item {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.child-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: #0863c4;
}

.child-item .child-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.child-item .child-icon img {
    max-width: 100%;
    max-height: 100%;
}

.child-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.child-item:hover h3 {
    color: #0863c4;
}

.child-item p {
    font-size: 0.8125rem;
    color: #888;
    line-height: 1.5;
}

/* ========== 联系表单 ========== */
.column-contact {
    padding: 60px 0;
    background: #f5f7fa;
}

.column-contact .section-header .header-tag {
    display: inline-block;
    background: #e8f4fd;
    color: #0863c4;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.column-contact .section-header h2 {
    font-size: 1.5rem;
}

.contact-form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 2.5rem 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.contact-form .form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.contact-form .form-row.three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.contact-form .form-group {
    flex: 1;
}

.contact-form .form-group.full {
    flex: 1 1 100%;
}

.contact-form label {
    display: block;
    font-size: 0.875rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-form label span {
    color: #e53e3e;
    margin-left: 2px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    background: #fff;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #0863c4;
}

.contact-form textarea {
    resize: vertical;
    min-height: 80px;
}

.form-submit {
    text-align: center;
    margin-top: 1.5rem;
}

.btn-submit {
    background: #f26522;
    color: #fff;
    border: none;
    padding: 0.875rem 3rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #d9551a;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ========== 响应式 ========== */
@media screen and (max-width: 1200px) {
    .section-intro,
    .section-title-block,
    .section-stats,
    .section-features,
    .section-module,
    .section-articles {
        padding-left: 3rem;
        padding-right: 3rem;
    }

    .children-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .section-stats .stats-wrapper {
        gap: 4rem;
    }
}

@media screen and (max-width: 992px) {
    .column-hero {
        height: 400px;
    }

    .column-hero-content h1 {
        font-size: 2rem;
    }

    .section-intro,
    .section-title-block,
    .section-stats,
    .section-features,
    .section-module,
    .section-articles {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .section-module {
        flex-direction: column !important;
        gap: 2rem;
    }

    .section-features .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-articles .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .children-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-form .form-row,
    .contact-form .form-row.three-col {
        flex-direction: column;
        display: flex;
        gap: 1rem;
    }

    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .column-hero {
        height: 350px;
    }

    .column-hero-content h1 {
        font-size: 1.75rem;
    }

    .column-hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        max-width: 250px;
    }

    .section-intro .intro-icons {
        flex-direction: column;
        gap: 1.5rem;
    }

    .section-stats .stats-wrapper {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .section-stats .stat-item {
        text-align: center;
    }

    .section-features .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-articles .articles-grid {
        grid-template-columns: 1fr;
    }

    .children-grid {
        grid-template-columns: 1fr;
    }
}
