/* 广西中职招生信息网 */

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #333;
    background: #f0f2f5;
    line-height: 1.6;
}
a { text-decoration: none; }

/* Navbar */
.navbar { background: #fff !important; border-bottom: 1px solid #e8e8e8; padding: 0.5rem 0; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.navbar-brand { font-size: 1rem; font-weight: 700; color: #1a1a1a !important; }
.brand-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; background: linear-gradient(135deg, #1890ff, #096dd9); color: #fff; border-radius: 6px; font-size: 0.85rem; font-weight: 900; margin-right: 8px; }
.navbar .nav-link { font-size: 0.87rem; font-weight: 500; padding: 0.4rem 0.85rem !important; border-radius: 6px; color: #555 !important; transition: 0.15s; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: #1890ff !important; background: #e6f7ff; }

/* Hero */
.hero-section { background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%); padding: 1.2rem 0; }
.hero-section h1 { font-weight: 700; font-size: 1.75rem; color: #fff; }
.hero-section input, .hero-section select { padding: 0.55rem 2.5rem 0.55rem 0.85rem; border-radius: 6px; border: none; font-size: 0.85rem; color: #333; box-shadow: 0 1px 3px rgba(0,0,0,0.08); -webkit-appearance: none; -moz-appearance: none; appearance: none; background: #fff url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E\") no-repeat right 0.75rem center; }
.hero-section input, .hero-section select { height: 44px !important; }
.hero-section input:focus, .hero-section select:focus { outline: 2px solid rgba(255,255,255,0.5); outline-offset: 1px; }
.hero-section select option { color: #333; }

/* City Pills */
.city-pill { display: inline-block; font-size: 0.78rem; padding: 5px 14px; border-radius: 20px; background: #fff; color: #555; border: 1px solid #e8e8e8; transition: 0.2s; }
.city-pill:hover { border-color: #1890ff; color: #1890ff; background: #e6f7ff; }

/* Stats */
.stat-card { background: #fff; border-radius: 8px; padding: 1rem 0.5rem; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.04); border: 1px solid #f0f0f0; }
.stat-number { font-size: 1.5rem; font-weight: 700; color: #1890ff; }
.stat-label { font-size: 0.75rem; color: #999; margin-top: 2px; }

/* Card */
.card-white { background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); border: 1px solid #f0f0f0; transition: box-shadow 0.2s, transform 0.2s; }
.card-white:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }

/* Tags */
.tag { display: inline-flex; font-size: 0.7rem; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.tag-city { background: #e6f7ff; color: #1890ff; }
.tag-type-pub { background: #f6ffed; color: #52c41a; }
.tag-type-pri { background: #fff7e6; color: #fa8c16; }
.tag-star-a { background: #fffbe6; color: #d48806; font-weight: 700; }
.tag-star-b { background: #f0f5ff; color: #597ef7; font-weight: 700; }
.tag-star-c { background: #f5f5f5; color: #8c8c8c; }

/* Detail */
.detail-header { background: linear-gradient(135deg, #1890ff, #096dd9); padding: 2rem 0; }

/* Info Grid */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
@media (min-width: 768px) { .info-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } }
.info-item { padding: 0.55rem 0.75rem; background: #fafafa; border-radius: 6px; border-left: 3px solid #1890ff; }
.info-label { color: #999; font-size: 0.73rem; font-weight: 500; display: block; }
.info-value { color: #333; font-size: 0.84rem; font-weight: 600; }

/* Tabs */
.nav-tabs-custom { display: flex; gap: 4px; border-bottom: 2px solid #f0f0f0; margin-bottom: 1rem; }
.nav-tabs-custom .nav-link { border: none !important; border-radius: 6px 6px 0 0 !important; padding: 0.65rem 1.1rem; font-size: 0.85rem; font-weight: 600; color: #999; background: transparent; }
.nav-tabs-custom .nav-link:hover { color: #1890ff; }
.nav-tabs-custom .nav-link.active { color: #1890ff !important; border-bottom: 2px solid #1890ff !important; background: transparent !important; }

/* Table */
.major-table { width: 100%; border-collapse: collapse; }
.major-table thead th { background: #fafafa; color: #666; font-weight: 600; font-size: 0.75rem; padding: 0.65rem 0.9rem; border-bottom: 1px solid #f0f0f0; }
.major-table tbody td { padding: 0.65rem 0.9rem; border-bottom: 1px solid #f5f5f5; font-size: 0.85rem; color: #333; }
.major-table tbody tr:hover { background: #fafafa; }

/* CTA */
.cta-button { display: inline-block; background: linear-gradient(135deg, #ff7a45, #fa541c); color: #fff; font-weight: 600; border-radius: 8px; padding: 0.7rem 1.6rem; font-size: 0.9rem; box-shadow: 0 2px 8px rgba(250,84,28,0.2); transition: 0.3s; }
.cta-button:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(250,84,28,0.3); color: #fff; }

/* Pagination */
.pagination .page-link { border: none; border-radius: 6px; margin: 0 2px; padding: 0.4rem 0.7rem; font-weight: 600; font-size: 0.82rem; color: #666; }
.pagination .page-link:hover { background: #f0f0f0; color: #1890ff; }
.pagination .page-item.active .page-link { background: #1890ff; color: #fff; }

/* Footer */
.site-footer { background: #fff; color: #999; padding: 2.5rem 0 1.5rem; margin-top: 3rem; border-top: 1px solid #f0f0f0; font-size: 0.84rem; }
.site-footer h5, .site-footer h6 { color: #333; font-weight: 700; }
.site-footer a { color: #999; } .site-footer a:hover { color: #1890ff; }

/* Score */
.score-badge { width: 44px; height: 44px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; font-size: 1rem; }
.score-badge small { font-size: 0.45rem; font-weight: 600; }
.score-high { background: #f6ffed; color: #52c41a; }
.score-mid { background: #e6f7ff; color: #1890ff; }
.score-low { background: #f5f5f5; color: #999; }

/* AI Result */
.ai-result-card { background: #fff; border-radius: 8px; border: 1px solid #f0f0f0; padding: 1rem; transition: 0.2s; }
.ai-result-card:hover { border-color: #1890ff; box-shadow: 0 4px 16px rgba(24,144,255,0.08); transform: translateX(2px); }

/* Article */
.article-content { font-size: 1rem; line-height: 1.9; color: #374151; }
.article-content h2 { font-size: 1.3rem; font-weight: 700; color: #1e293b; margin: 2rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid #f0f2f5; }
.article-content h3 { font-size: 1.1rem; font-weight: 700; color: #334155; margin: 1.5rem 0 0.8rem; }
.article-content p { margin-bottom: 1rem; }
.article-content ul, .article-content ol { margin: 0.8rem 0 1.2rem 1.2rem; }
.article-content li { margin-bottom: 0.5rem; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9rem; }
.article-content th { background: #f8fafc; padding: 10px 14px; text-align: left; font-weight: 700; border: 1px solid #e8eef4; }
.article-content td { padding: 10px 14px; border: 1px solid #e8eef4; }
.article-content tr:nth-child(even) td { background: #fafbfc; }

/* School Description */
.school-desc { font-size: 0.8rem; color: #4a5568; line-height: 1.8; }
.school-desc h3 { font-size: 0.88rem; font-weight: 700; color: #1e3a5f; margin: 1.5rem 0 0.7rem; padding-bottom: 0.4rem; border-bottom: 1px solid #f0f0f0; }
.school-desc p { margin-bottom: 0.7rem; text-indent: 2em; }
.school-desc ul { margin: 0.4rem 0 0.8rem 1.2rem; padding: 0; }
.school-desc li { margin-bottom: 0.35rem; font-size: 0.88rem; }
.school-desc strong { color: #333; }

/* Utilities */
.empty-state { padding: 3rem 1rem; text-align: center; }
.empty-icon { font-size: 3rem; opacity: 0.2; margin-bottom: 0.8rem; }

/* Mobile Contact Bar - 底部固定 */
.mobile-contact-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    padding: 12px 16px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    display: flex;
    gap: 12px;
    align-items: center;
}
.mobile-contact-bar .phone-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mobile-contact-bar .phone-icon {
    width: 40px; height: 40px;
    background: #fff7e6;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.mobile-contact-bar .phone-num {
    font-size: 1.05rem;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
}
.mobile-contact-bar .phone-sub {
    font-size: 0.7rem;
    color: #999;
}
.mobile-contact-bar .cta-btn {
    background: linear-gradient(135deg, #ff7a45, #fa541c);
    color: #fff;
    font-weight: 600;
    border-radius: 24px;
    padding: 10px 28px;
    font-size: 0.95rem;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(250,84,28,0.25);
    text-decoration: none;
    flex-shrink: 0;
}
/* 底部留空给悬浮条 */
@media (max-width: 991px) {
    body { padding-bottom: 80px; }
}
