/* ============================================================
   Kanxue Job — Homepage-only styles
   Hero / Search / Carousel / Notice bar
   Only loaded on the homepage (index.htm)
   ============================================================ */

/* ── HERO ── */
.hero {
    position: relative;
    background: linear-gradient(160deg, #d4eafc, #e8f4fe, #f4ecf8, #f0f7ff, #e0eefa, #d4eafc, #c8e6ff);
    background-size: 200% 200%;
    animation: heroGradient 8s ease-in-out infinite;
    margin: 0;
    overflow: hidden;
    padding: 64px 0 56px;
}
@keyframes heroGradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -40px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,153,238,.14) 0%, rgba(0,153,238,.04) 50%, transparent 70%);
    pointer-events: none;
    animation: heroOrbBlue 6s ease-in-out infinite;
}
@keyframes heroOrbBlue {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-20px, 12px) scale(1.05); }
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -20px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102,126,234,.12) 0%, rgba(102,126,234,.03) 50%, transparent 70%);
    pointer-events: none;
    animation: heroOrbPurple 7s ease-in-out infinite;
}
@keyframes heroOrbPurple {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(16px, -10px) scale(1.06); }
}
.hero-inner {
    position: relative;
    z-index: 1;
}

/* Hero title */
.hero-title {
    font-size: 34px;
    font-weight: 800;
    color: var(--kp-heading);
    text-align: center;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
    line-height: 1.3;
}
.hero-title span {
    background: linear-gradient(135deg, var(--kp-blue), #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 16px;
    color: var(--kp-muted);
    text-align: center;
    margin: 0 0 24px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Trust stats */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-bottom: 28px;
}
.hero-stat {
    text-align: center;
}
.hero-stat-num {
    font-size: 26px;
    font-weight: 700;
    color: var(--kp-heading);
    line-height: 1.2;
}
.hero-stat-label {
    font-size: 12px;
    color: var(--kp-muted);
    margin-top: 2px;
}
.hero-stat-sep {
    width: 1px;
    height: 28px;
    background: rgba(0,0,0,.08);
    flex-shrink: 0;
}

/* Service notice */
.notice-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    margin-bottom: 12px;
    background: #fff8f0;
    border-radius: var(--kp-radius-sm);
    color: #d87a00;
    font-size: 13px;
    border: 1px solid #ffecd0;
}
.notice-bar i { font-size: 16px; opacity: .8; }

/* Search */
.search-box {
    max-width: 680px;
    margin: 16px auto 12px;
}
.search-box .input-group {
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--kp-radius-full);
    box-shadow: 0 2px 16px rgba(0,0,0,.06), 0 0 0 1px rgba(0,0,0,.04);
    overflow: hidden;
    transition: box-shadow var(--kp-trans), transform var(--kp-trans);
}
.search-box .input-group:focus-within {
    box-shadow: 0 4px 24px rgba(0,153,238,.15), 0 0 0 2px rgba(0,153,238,.15);
    transform: scale(1.01);
}
.search-box .form-control {
    height: 52px;
    font-size: 15px;
    border: none;
    padding: 0 8px 0 24px;
    background: transparent;
    box-shadow: none;
}
.search-box .form-control::placeholder { color: #bbb; }
.search-box .btn-search {
    height: 44px;
    margin: 4px 4px 4px 0;
    padding: 0 28px;
    font-size: 15px;
    font-weight: 600;
    background: var(--kp-blue);
    color: #fff;
    border: none;
    border-radius: var(--kp-radius-full);
    white-space: nowrap;
    transition: all var(--kp-trans);
}
.search-box .btn-search:hover { background: var(--kp-blue-dark); }

/* Hot keywords */
.hot-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 0;
    margin: 14px 0 0;
    list-style: none;
    justify-content: center;
}
.hot-tags .hot-label {
    font-size: 13px;
    color: #ff842a;
    margin-right: 2px;
}
.hot-tags .hot-label::before {
    content: '\1F525';
    margin-right: 3px;
    font-size: 11px;
}
.hot-tags a {
    display: inline-block;
    padding: 3px 14px;
    font-size: 13px;
    color: #666;
    background: rgba(0,0,0,.03);
    border-radius: var(--kp-radius-full);
    transition: all var(--kp-trans);
}
.hot-tags a:hover { color: var(--kp-blue); background: var(--kp-blue-light); }

/* Carousel */
.carousel-wrap {
    padding-top: 0;
    margin-top: 24px;
}
.carousel-wrap .carousel-inner { border-radius: var(--kp-radius); overflow: hidden; }
.carousel-wrap .carousel-inner img {
    border-radius: var(--kp-radius);
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.carousel-indicators { bottom: 8px; }
.carousel-indicators li {
    width: 8px; height: 8px;
    border-radius: 4px;
    border: none;
    background: rgba(255,255,255,.7);
    transition: all .3s;
}
.carousel-indicators .active { width: 24px; background: var(--kp-blue); }
.carousel-control-prev, .carousel-control-next { width: 8%; }

/* Homepage mobile overrides */
@media (max-width: 768px) {
    .hero {
        padding: 32px 0 36px;
    }
    .hero-title { font-size: 24px; }
    .hero-subtitle { font-size: 14px; margin-bottom: 16px; }
    .hero-stats { gap: 16px; margin-bottom: 20px; }
    .hero-stat-num { font-size: 20px; }
    .hero-stat-label { font-size: 11px; }
    .hero-stat-sep { height: 22px; }
    .search-box .form-control { height: 44px; font-size: 14px; padding-left: 18px; }
    .search-box .btn-search { height: 36px; padding: 0 20px; font-size: 13px; margin: 4px; }
    .hot-tags a { padding: 2px 10px; font-size: 12px; }
    .carousel-wrap .carousel-inner img { border-radius: 8px; }
}
