/**
 * 微教育首页样式 (welcome-page.css)
 * 现代化教育风格 - 独立样式，不依赖 bootstrap.css / common.css
 */

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: #1f2937;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
img { border: 0; vertical-align: middle; max-width: 100%; }
ul { list-style: none; }
button, input { font-family: inherit; outline: none; }

/* ============ 容器 ============ */
.wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ 顶部导航 ============ */
.topnav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid #eef0f3;
}

.topnav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #111827;
    flex-shrink: 0;
}

.logo img {
    height: 32px;
    width: auto;
}

.logo span {
    font-size: 17px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 32px;
    margin: 0 32px;
}

.nav-links a {
    color: #4b5563;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #4f9ffe;
}

.nav-btns {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* ============ 按钮 ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.4;
}

.btn-outline {
    background: transparent;
    color: #4f9ffe;
    border-color: #4f9ffe;
}

.btn-outline:hover {
    background: #4f9ffe;
    color: #fff;
}

.btn-solid {
    background: #4f9ffe;
    color: #fff;
    border-color: #4f9ffe;
}

.btn-solid:hover {
    background: #3a8ef0;
    border-color: #3a8ef0;
}

.btn-hero-solid {
    background: #fff;
    color: #4f9ffe;
    border-color: #fff;
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 500;
}

.btn-hero-solid:hover {
    background: #f0f6ff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-hero-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    padding: 13px 28px;
    font-size: 15px;
}

.btn-hero-ghost:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

/* ============ Hero ============ */
.hero {
    position: relative;
    background: linear-gradient(135deg, #4f9ffe 0%, #6a5af9 100%);
    color: #fff;
    padding: 90px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-circle.c1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -100px;
    background: rgba(255, 255, 255, 0.05);
}

.hero-circle.c2 {
    width: 400px;
    height: 400px;
    bottom: -150px;
    left: -100px;
    background: rgba(255, 255, 255, 0.06);
}

.hero-circle.c3 {
    width: 200px;
    height: 200px;
    top: 30%;
    left: 20%;
    background: rgba(255, 255, 255, 0.04);
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.hero-left {
    flex: 1;
    max-width: 580px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 24px;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.hero-title .hl {
    color: #fbbf24;
    position: relative;
}

.hero-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 36px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item b {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.stat-item span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.25);
}

/* Hero 右侧卡片堆 */
.hero-right {
    flex: 0 0 380px;
    position: relative;
    height: 320px;
}

.hero-card-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
    transition: transform 0.3s;
}

.hero-card:hover {
    transform: translateY(-4px);
}

.hero-card.hc-1 {
    top: 20px;
    left: 0;
    right: 80px;
}

.hero-card.hc-2 {
    top: 110px;
    left: 60px;
    right: 20px;
}

.hero-card.hc-3 {
    top: 200px;
    left: 0;
    right: 100px;
}

.hc-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.hc-icon.hc-blue { background: linear-gradient(135deg, #4f9ffe 0%, #3a8ef0 100%); }
.hc-icon.hc-purple { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); }
.hc-icon.hc-green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }

.hc-text {
    flex: 1;
    min-width: 0;
}

.hc-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.hc-desc {
    font-size: 12px;
    color: #6b7280;
}

/* ============ 通用 Section ============ */
.section {
    padding: 80px 0;
}

.section-gray {
    background: #f8fafc;
}

.section-dark {
    background: #1e293b;
    color: #fff;
}

.sec-head {
    text-align: center;
    margin-bottom: 56px;
}

.sec-tag {
    display: inline-block;
    padding: 4px 14px;
    background: #e6f4ff;
    color: #1677ff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.sec-tag-light {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.sec-title {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.sec-title-light {
    color: #fff;
}

.sec-desc {
    font-size: 15px;
    color: #6b7280;
}

.sec-desc-light {
    color: rgba(255, 255, 255, 0.7);
}

/* ============ 应用场景 ============ */
.scenario-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.scenario-card {
    position: relative;
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 16px;
    padding: 32px 28px;
    transition: all 0.25s;
    overflow: hidden;
}

.scenario-card:hover {
    border-color: #4f9ffe;
    box-shadow: 0 16px 40px rgba(79, 159, 254, 0.12);
    transform: translateY(-4px);
}

.sc-num {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 40px;
    font-weight: 700;
    color: #f3f4f6;
    line-height: 1;
}

.scenario-card:hover .sc-num {
    color: #e6f4ff;
}

.sc-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.sc-icon-1 { background: linear-gradient(135deg, #4f9ffe 0%, #3a8ef0 100%); }
.sc-icon-2 { background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%); }
.sc-icon-3 { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }
.sc-icon-4 { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }

.scenario-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
}

.scenario-card > p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 16px;
}

.sc-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sc-list li {
    font-size: 13px;
    color: #4b5563;
    padding-left: 16px;
    position: relative;
}

.sc-list li::before {
    content: "·";
    position: absolute;
    left: 0;
    color: #4f9ffe;
    font-weight: 700;
}

/* ============ 核心优势 ============ */
.adv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.adv-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    transition: all 0.25s;
}

.adv-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(79, 159, 254, 0.5);
    transform: translateY(-4px);
}

.adv-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #4f9ffe 0%, #6a5af9 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.adv-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.adv-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 20px;
}

.adv-line {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #4f9ffe 0%, #6a5af9 100%);
    border-radius: 2px;
    margin: 0 auto;
}

/* ============ 功能模块 ============ */
.mod-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.mod-card {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 12px;
    padding: 22px 10px;
    text-align: center;
    transition: all 0.2s;
}

.mod-card:hover {
    border-color: #4f9ffe;
    box-shadow: 0 8px 20px rgba(79, 159, 254, 0.1);
    transform: translateY(-2px);
}

.mod-emoji {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
    line-height: 1;
}

.mod-name {
    font-size: 13px;
    color: #374151;
    font-weight: 500;
}

/* ============ 动态公告 ============ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.news-col {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 14px;
    padding: 24px 28px;
}

.news-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef0f3;
}

.news-head h3 {
    font-size: 17px;
    font-weight: 600;
    color: #111827;
}

.news-badge {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.news-badge-blue {
    background: #e6f4ff;
    color: #1677ff;
}

.news-badge-orange {
    background: #fff7e6;
    color: #fa8c16;
}

.news-list li {
    border-bottom: 1px dashed #eef0f3;
}

.news-list li:last-child {
    border-bottom: 0;
}

.news-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    color: #4b5563;
    font-size: 14px;
    transition: color 0.2s;
}

.news-list a:hover {
    color: #4f9ffe;
}

.news-list a svg {
    opacity: 0;
    transition: opacity 0.2s;
}

.news-list a:hover svg {
    opacity: 1;
}

.news-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

/* ============ 联系我们 ============ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.contact-card {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    transition: all 0.2s;
}

.contact-card:hover {
    border-color: #4f9ffe;
    box-shadow: 0 8px 20px rgba(79, 159, 254, 0.1);
}

.contact-card-wide {
    grid-column: 1 / -1;
}

.ct-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #e6f4ff;
    color: #1677ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ct-label {
    font-size: 12px;
    color: #9ca3af;
}

.ct-value {
    font-size: 15px;
    color: #1f2937;
    line-height: 1.6;
}

.contact-profile .ct-value {
    font-size: 14px;
    color: #4b5563;
}

/* ============ 底部版权 ============ */
.footer {
    background: #1f2937;
    color: rgba(255, 255, 255, 0.7);
    padding: 32px 0;
    margin-top: auto;
}

.footer .wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-row {
    margin: 4px 0;
    font-size: 13px;
    line-height: 1.8;
}

.footer-row a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
}

.footer-row a:hover {
    color: #fff;
}

.footer-row b {
    font-weight: 600;
    color: #fff;
}

.footer-icp {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
}

.footer-icp .icp-item {
    display: inline-flex;
    align-items: center;
}

.footer-icp img {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    opacity: 0.9;
}

.footer-icp a {
    display: inline-flex;
    align-items: center;
}

/* ============ 响应式 ============ */
@media (max-width: 992px) {
    .nav-links { display: none; }
    .hero-title { font-size: 32px; }
    .hero-right { flex: 0 0 320px; }
    .scenario-grid { grid-template-columns: 1fr; }
    .adv-grid { grid-template-columns: 1fr; }
    .mod-grid { grid-template-columns: repeat(4, 1fr); }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-inner { flex-direction: column; text-align: center; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-right { flex: 0 0 auto; width: 100%; max-width: 320px; height: 280px; }
    .hero-title { font-size: 26px; }
    .hero-desc { font-size: 14px; }
    .sec-title { font-size: 24px; }
    .section { padding: 56px 0; }
    .mod-grid { grid-template-columns: repeat(3, 1fr); }
    .news-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .topnav .wrap { height: 56px; }
    .logo span { font-size: 15px; }
    .nav-btns .btn { padding: 6px 14px; font-size: 13px; }
    .hero { padding: 60px 0; }
    .hero-title { font-size: 22px; }
    .hero-stats { gap: 16px; }
    .stat-item b { font-size: 18px; }
    .stat-divider { height: 24px; }
    .mod-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-card-wide { grid-column: auto; }
}
