/* ============================================================================
   coding4kids 站点精确样式（复刻 www.coding4kids.cn）
   来源：旧站 Bootstrap 3.3.5 子集（lib.css）+ 旧站页面内联 <style> 规则。
   仅作用于本站点（.c4k-body 作用域），不污染其他站点。
   所有数值与旧站一一对应（base font 14px / Helvetica Neue；标题 3.5em=49px 等）。
   ========================================================================== */

/* ---------- Base（Bootstrap 3 scaffolding 子集）---------- */
.c4k-body {
    margin: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.42857143;
    color: #333;
    background-color: #fff;
    border-top: 2px solid #ddd;
}
.c4k-body *,
.c4k-body *:before,
.c4k-body *:after { box-sizing: border-box; }

.c4k-body h1,
.c4k-body h2,
.c4k-body h3,
.c4k-body h4 { font-family: inherit; font-weight: 500; line-height: 1.1; color: inherit; }
.c4k-body h1,
.c4k-body h2,
.c4k-body h3 { margin-top: 20px; margin-bottom: 10px; }
.c4k-body h1 { font-size: 36px; }
.c4k-body h3 { font-size: 24px; }

.c4k-body p { margin: 0 0 10px; }
.c4k-body a { color: #337ab7; text-decoration: none; background-color: transparent; }
.c4k-body a:hover,
.c4k-body a:focus { color: #23527c; text-decoration: underline; }
.c4k-body img { display: inline-block; vertical-align: middle; border: 0; }
.c4k-body ul { margin-top: 0; margin-bottom: 10px; }

/* ---------- 栅格 ---------- */
.c4k-body .container {
    padding-right: 15px; padding-left: 15px;
    margin-right: auto; margin-left: auto; width: auto;
    /* 关键：抵消 Tailwind 自带 .container 工具的 max-width 断点（640/768/1024/1280/1536），
       否则在 1024–1279px 视口会被压到 1024px，比旧站的 1170px 窄。 */
    max-width: none;
}
@media (min-width: 768px)  { .c4k-body .container { width: 750px; } }
@media (min-width: 992px)  { .c4k-body .container { width: 970px; } }
@media (min-width: 1200px) { .c4k-body .container { width: 1170px; } }

.c4k-body .row { margin-right: -15px; margin-left: -15px; }
.c4k-body .row:before,
.c4k-body .row:after { content: " "; display: table; }
.c4k-body .row:after { clear: both; }

.c4k-body [class*="col-"] { position: relative; min-height: 1px; padding-right: 15px; padding-left: 15px; }
@media (min-width: 768px) {
    .c4k-body .col-sm-3  { float: left; width: 25%; }
    .c4k-body .col-sm-12 { float: left; width: 100%; }
}
@media (min-width: 992px) {
    .c4k-body .col-md-4 { float: left; width: 33.33333333%; }
    .c4k-body .col-md-6 { float: left; width: 50%; }
    .c4k-body .col-md-8 { float: left; width: 66.66666667%; }
}

/* ---------- 对齐/浮动工具类 ---------- */
.c4k-body .text-center { text-align: center; }
.c4k-body .text-left   { text-align: left; }
.c4k-body .text-right  { text-align: right; }
.c4k-body .text-end    { text-align: right; }
.c4k-body .pull-right  { float: right !important; }
.c4k-body .pull-left   { float: left !important; }
.c4k-body .hidden      { display: none !important; }

/* ---------- 导航 ---------- */
.c4k-body .nav { padding-left: 0; margin-bottom: 0; list-style: none; }
.c4k-body .nav:before,
.c4k-body .nav:after { content: " "; display: table; }
.c4k-body .nav:after { clear: both; }
.c4k-body .nav > li { position: relative; display: block; float: left; }
.c4k-body .nav > li > a { position: relative; display: block; padding: 10px; }
.c4k-body .nav > li > a:hover,
.c4k-body .nav > li > a:focus { background: none; border-bottom: 3px solid #ED9B0D; color: #ED9B0D; text-decoration: none; }

.c4k-body ul.navbar-nav { margin-left: -15px; margin-right: -15px; font-size: 1.4em; }
.c4k-body .navbar-nav > li > a { padding-top: 10px; padding-bottom: 10px; line-height: 20px; }
@media (min-width: 768px) {
    .c4k-body ul.navbar-nav { float: left; }
    .c4k-body .navbar-collapse { width: auto; border-top: 0; box-shadow: none; padding-right: 0; padding-left: 15px; }
}

/* ---------- 按钮 ---------- */
.c4k-body .btn {
    display: inline-block; padding: 6px 12px; margin-bottom: 0;
    font-size: 14px; font-weight: 400; line-height: 1.42857143;
    text-align: center; white-space: nowrap; vertical-align: middle;
    cursor: pointer; user-select: none; background-image: none;
    border: 1px solid transparent; border-radius: 4px;
}
.c4k-body .btn:hover,
.c4k-body .btn:focus { text-decoration: none; }
.c4k-body .btn-lg { padding: 10px 16px; font-size: 18px; line-height: 1.3333333; border-radius: 6px; }
.c4k-body .btn-primary { color: #fff; background-color: #337ab7; border-color: #2e6da4; }
.c4k-body .btn-primary:hover,
.c4k-body .btn-primary:focus { color: #fff; background-color: #286090; border-color: #204d74; }
.c4k-body .btn-danger { color: #fff; background-color: #d9534f; border-color: #d43f3a; }
.c4k-body .btn-danger:hover,
.c4k-body .btn-danger:focus { color: #fff; background-color: #c9302c; border-color: #ac2925; }
.c4k-body .btn-success { color: #fff; background-color: #5cb85c; border-color: #4cae4c; }
.c4k-body .btn-success:hover,
.c4k-body .btn-success:focus { color: #fff; background-color: #449d44; border-color: #398439; }

/* ---------- 表单 / 面板（Bootstrap 3，用于登录注册等）---------- */
.c4k-body .form-group { margin-bottom: 15px; }
.c4k-body .control-label { display: inline-block; max-width: 100%; margin-bottom: 5px; font-weight: 700; }
.c4k-body .form-control {
    display: block; width: 100%; height: 34px; padding: 6px 12px;
    font-size: 14px; line-height: 1.42857143; color: #555;
    background-color: #fff; background-image: none;
    border: 1px solid #ccc; border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}
.c4k-body .form-control:focus {
    border-color: #66afe9; outline: 0;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
}
.c4k-body .form-control::placeholder { color: #999; opacity: 1; }
.c4k-body textarea.form-control { height: auto; }
.c4k-body .help-block { display: block; margin-top: 5px; margin-bottom: 10px; color: #737373; }
.c4k-body .has-error .form-control { border-color: #a94442; }
.c4k-body .has-error .help-block { color: #a94442; }

.c4k-body .panel {
    margin-bottom: 20px; background-color: #fff;
    border: 1px solid transparent; border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
}
.c4k-body .panel-default { border-color: #ddd; }
.c4k-body .panel-default > .panel-heading { color: #333; background-color: #f5f5f5; border-color: #ddd; }
.c4k-body .panel-heading {
    padding: 10px 15px; border-bottom: 1px solid transparent;
    border-top-left-radius: 3px; border-top-right-radius: 3px;
}
.c4k-body .panel-title { margin-top: 0; margin-bottom: 0; font-size: 16px; color: inherit; }
.c4k-body .panel-body { padding: 15px; }

.c4k-body .alert { padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 4px; }
.c4k-body .alert-danger { color: #a94442; background-color: #f2dede; border-color: #ebccd1; }
.c4k-body .alert-success { color: #3c763d; background-color: #dff0d8; border-color: #d6e9c6; }

.c4k-body .btn-block { display: block; width: 100%; }
.c4k-body .auth-card { max-width: 420px; margin: 0 auto; }

@media (min-width: 992px) {
    .c4k-body .col-md-5 { float: left; width: 41.66666667%; }
    .c4k-body .col-md-offset-4 { margin-left: 33.33333333%; }
}

/* ---------- 头部（旧站内联样式）---------- */
.c4k-body div.header {
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
    height: 130px; padding-top: 10px; background-color: #fff;
    border-bottom: 1px solid #eee; margin-bottom: 0;
}
.c4k-body div.top-nav { margin-top: 40px; }
.c4k-body div#main { min-height: 500px; }
.c4k-body img.logo-img { max-width: 100%; }
.c4k-body .topnavbar { float: right; }
.c4k-body .navbar-header:before,
.c4k-body .navbar-header:after { content: " "; display: table; }
.c4k-body .navbar-header:after { clear: both; }
.c4k-body .navbar-toggle {
    display: none; position: relative; float: left; padding: 9px 10px;
    margin-top: 10px; margin-bottom: 0; background-color: transparent;
    background-image: none; border: 1px solid transparent; border-radius: 4px;
    font-size: 14px; color: #333; cursor: pointer;
}
.c4k-body span.nav-sr { font-size: 1.6em; display: inline-block; margin-top: -3px; }
.c4k-body .fs2 { font-size: 1.7em; }

@media (max-width: 767px) {
    .c4k-body .navbar-toggle { display: block; }
    .c4k-body .navbar-collapse { display: none; }
    .c4k-body .navbar-collapse.in { display: block; float: left; width: 100%; margin: 0; padding: 0; }
    .c4k-body .navbar-collapse.in ul { display: block; float: left; width: 100%; padding: 0; margin: 5px 0; }
    .c4k-body .navbar-collapse.in ul li { float: left; width: 100%; }
}

/* ---------- 页脚 ---------- */
.c4k-body div.footer { border-top: 1px solid #e3e3e3; padding-top: 20px; padding-bottom: 20px; color: #333; }

/* ---------- 首页各区块（旧站内联样式）---------- */
.c4k-body .section { width: 100%; height: 600px; }
.c4k-body .section .inner-wrapper { height: 580px; width: 100%; }
.c4k-body .section .main-title { font-size: 3.5em; margin-top: 50px; margin-bottom: 40px; }
.c4k-body .section .sub-title { font-size: 2.5em; margin-bottom: 50px; }

.c4k-body img.start-running { max-width: 750px; margin-left: 200px; margin-top: -70px; }
.c4k-body .top-sec h1.top-h1 { font-size: 3.5em; text-align: left; z-index: 20; margin-top: -400px; color: #fff; }
.c4k-body .top-sec h1.sec-h1 { font-size: 3.5em; text-align: left; display: block; z-index: 9999; color: #fff; text-shadow: 1px 2px 3px #888; }

.c4k-body .huge-banner .inner-wrapper {
    height: 620px; width: 100%;
    background-image: var(--c4k-band, url('/coding4kids/images/huge_banner_01.png'));
    background-size: 100% 100%;
}
.c4k-body .huge-banner .main-title { font-size: 3.5em; color: #0b0; margin-top: 50px; margin-bottom: 40px; }
.c4k-body .huge-banner .sub-title { font-size: 2.5em; color: #0a0; margin-bottom: 50px; }

.c4k-body .banner-cells .cell { background-color: #fff; padding: 0; }
.c4k-body .banner-cells .cell img { height: 180px; width: 100%; }
.c4k-body .banner-cells .cell h3 { padding: 3px 10px; font-size: 1.4em; }
.c4k-body .banner-cells .cell p { padding: 10px; text-align: left; }

.c4k-body .course-series .cell { background-color: #eee; padding: 0; }
.c4k-body .course-section { min-height: 660px; }
.c4k-body .course-section .inner-wrapper { height: 660px; }

.c4k-body .background-image-fixed .inner-wrapper {
    height: 600px; width: 100%;
    background-image: var(--c4k-bg, url('/coding4kids/images/qinghua001.jpg'));
    background-size: 100% 100%; background-attachment: fixed;
}
.c4k-body .background-image-fixed .main-title { font-size: 3.5em; color: #fff; text-shadow: 2px 2px 3px #555; margin-top: 50px; margin-bottom: 40px; }
.c4k-body .background-image-fixed .sub-title { font-size: 2.5em; color: #fff; text-shadow: 2px 2px 3px #555; margin-bottom: 50px; }

.c4k-body .feature-title { margin-top: 50px; }
.c4k-body .feature-section .sub-title { margin-top: 20px; }
.c4k-body img.online-tutoring { width: 100%; }
.c4k-body img.supervising { max-height: 300px; }
.c4k-body .yellow-title { color: #f23ab3; }
.c4k-body .blue-title { color: #0000ff; }

/* 轮播（旧站 .carousel） */
.c4k-body .carousel { position: relative; margin-top: -15px; }
.c4k-body .carousel-inner { position: relative; width: 100%; overflow: hidden; }
.c4k-body .carousel-inner > .item { position: relative; display: none; }
.c4k-body .carousel-inner > .item.active { display: block; }
.c4k-body .carousel-inner .item { height: 300px; }

/* 回到顶部按钮 */
.c4k-body #totop {
    position: fixed; right: 10px; bottom: 15%; z-index: 111;
    display: block; padding: 28px 0 21px; width: 49px; text-align: center;
    font-size: 13px; font-weight: 500; line-height: 1; color: #fff;
    background-color: #404040; border-radius: 2px; opacity: 0;
    transition: opacity .2s;
}
.c4k-body #totop.show { opacity: .7; }
.c4k-body #totop:hover { opacity: 1; text-decoration: none; color: #fff; }

/* ---------- 旧站响应式 ---------- */
@media (max-width: 1190px) {
    .c4k-body li.navitem-homepage { display: none; }
}
@media (max-width: 749px) {
    .c4k-body div.top-nav { margin-top: 15px; }
    .c4k-body img.logo-img { max-height: 70px; max-width: 100%; margin: 0; float: none; }
    .c4k-body div.logo-box { text-align: center; }
    .c4k-body div.header { height: auto; }
    .c4k-body ul.navbar-nav { margin-left: 0 !important; margin-right: 0 !important; }
    .c4k-body .carousel > .carousel-inner > .item img { height: 240px; width: 100%; }
}
@media (min-width: 750px) and (max-width: 949px) {
    .c4k-body div.top-nav { margin-top: 15px; }
    .c4k-body img.logo-img { max-height: 70px; max-width: 100%; margin: 0; float: none; }
    .c4k-body div.logo-box { text-align: center; }
    .c4k-body div.header { height: auto; }
    .c4k-body .carousel > .carousel-inner > .item img { height: 240px; width: 100%; }
    .c4k-body img.start-running { display: none; }
}
@media (max-width: 750px) {
    .c4k-body img.start-running { display: none; }
    .c4k-body .top-sec h1.top-h1 { margin-top: 50px; margin-bottom: 30px; }
    .c4k-body .top-sec h1.sec-h1 { line-height: 1.5em; margin-top: -50px; }
    .c4k-body .huge-banner .inner-wrapper { height: auto; background: none; background-color: #eee; }
    .c4k-body .course-section { height: auto; padding-bottom: 20px; }
    .c4k-body .course-section .inner-wrapper { height: auto; }
    .c4k-body .feature-section .sub-title { font-size: 24px; text-align: center; margin-top: 10px; }
    .c4k-body img.online-tutoring { max-height: 220px; }
    .c4k-body img.supervising { max-height: 220px; }
    .c4k-body .feature-section { min-height: 640px; }
    .c4k-body .carousel-inner { min-height: 440px; }
    .c4k-body .feature-section .btn-wrapper { text-align: center; margin-top: -10px; }
}
@media (max-width: 575.98px) {
    .c4k-body .top-sec h1.sec-h1 { font-size: 3em !important; }
    .c4k-body .feature-section { min-height: 700px; }
    .c4k-body .main-title { font-size: 2.5em !important; }
    .c4k-body .sub-title { font-size: 1.5em !important; }
    .c4k-body .background-image-fixed { height: 400px; }
    .c4k-body .background-image-fixed .inner-wrapper { height: 400px; width: 100%; }
    .c4k-body .background-image-fixed .main-title { font-size: 2.5em; }
    .c4k-body .background-image-fixed .sub-title { font-size: 1.5em; }
}
