/**
 * 登录前首页专属样式（HP-01 ~ HP-10）
 */

/* ====== Navbar ====== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.98);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid #E8ECF4;
    box-shadow: 0 2px 12px rgba(22, 35, 89, 0.06);
    overflow: visible;
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 12px;
    overflow: visible;
}
.navbar-logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    line-height: 1.2;
    flex-shrink: 0;
}
.navbar-logo .logo-main-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.navbar-logo .logo-main {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-primary-dark);
    letter-spacing: -0.5px;
}
.navbar-logo .logo-brand {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}
.navbar-logo .logo-sub {
    font-size: 11px;
    color: var(--color-text-muted);
    font-weight: 400;
    letter-spacing: 0.3px;
}
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 16px;
}
.navbar-menu .nav-menu-item {
    padding: 6px 12px;
    font-size: 13.5px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    color: var(--color-text-secondary);
    text-decoration: none;
    white-space: nowrap;
}
.navbar-menu .nav-menu-item:hover {
    color: var(--color-primary-dark);
    background: var(--color-primary-light);
}
.navbar-menu .nav-menu-item.active {
    color: var(--color-primary-dark);
    background: var(--color-primary-light);
    font-weight: 600;
}
.navbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 0;
}
.user-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #F0F4FF;
    color: var(--color-primary);
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid #DCE5FF;
    flex-shrink: 0;
}
.user-badge-admin {
    background: #FFF4E5;
    color: #B5651D;
    border-color: #FFE0B2;
}
.user-badge-dev {
    background: #E8F5E9;
    color: #2E7D32;
    border-color: #C8E6C9;
}
.user-badge-customer {
    background: #E3F2FD;
    color: #1565C0;
    border-color: #BBDEFB;
}
.user-badge-fde {
    background: #F3E5F5;
    color: #7B1FA2;
    border-color: #E1BEE7;
}

/* ====== 用户菜单（头像+下拉） ====== */
.user-menu {
    position: relative;
    display: inline-flex;
}
.user-avatar-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.user-avatar-btn:hover {
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(47, 84, 235, 0.12);
}
.user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2F54EB, #4080FF);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
.user-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-arrow {
    font-size: 11px;
    color: var(--color-text-muted);
    transition: transform 0.15s;
}
.user-menu.open .user-arrow {
    transform: rotate(180deg);
}

/* ====== 下拉菜单面板 ====== */
.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 180px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
    z-index: 1000;
    animation: dropdownFadeIn 0.15s ease-out;
}
@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border-light);
}
.dropdown-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2F54EB, #4080FF);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}
.dropdown-user-info {
    flex: 1;
    min-width: 0;
}
.dropdown-nickname {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dropdown-phone {
    font-size: 12px;
    color: var(--color-text-muted);
}

.dropdown-section {
    padding: 12px 20px;
    border-bottom: 1px solid var(--color-border-light);
}
.dropdown-section:last-of-type {
    border-bottom: none;
}
.dropdown-section-title {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.dropdown-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.role-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}

.dropdown-hint {
    margin-top: 8px;
    font-size: 12px;
    color: var(--color-text-light);
    line-height: 1.5;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--color-text);
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}
.dropdown-item:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.dropdown-item-danger {
    color: #E53935;
}
.dropdown-item-danger:hover {
    background: #FFEBEE;
    color: #C62828;
}
.dropdown-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}
.dropdown-sub {
    margin-left: auto;
    padding-left: 8px;
    font-size: 11px;
    color: #9CA3AF;
    white-space: nowrap;
}

.dropdown-divider {
    height: 1px;
    background: var(--color-border-light);
    margin: 8px 0;
}

/* 响应式：移动端优化 */
@media (max-width: 768px) {
    .user-name {
        display: none;
    }
    .user-avatar-btn {
        padding: 4px;
    }
    .user-dropdown {
        width: 180px;
        right: -8px;
    }
}

/* ====== 导航栏按钮（覆盖 marketing.css 等页面样式） ====== */
.navbar-right .btn {
    height: auto;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    line-height: 1.4;
}
.navbar-right .btn-primary {
    height: auto;
    padding: 7px 16px;
    background: var(--color-primary);
    color: var(--color-primary-white, #fff);
    border: none;
    font-size: 13px;
    font-weight: 500;
}
.navbar-right .btn-primary:hover {
    background: var(--color-primary-dark);
}
.navbar-right .btn-secondary {
    height: auto;
    padding: 7px 16px;
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    font-size: 13px;
    font-weight: 500;
}
.navbar-right .btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-light);
}

/* ====== Hero ====== */
.hero {
    position: relative;
    background: linear-gradient(135deg, #FAFBFC 0%, #E8F1FB 50%, #F0F7FF 100%);
    padding: 100px 0 120px;
    min-height: 410px; /* 原版 Hero 高度基准：文字页与图片页高度恒定一致 */
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -100px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(25,118,210,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(25,118,210,0.05) 0%, transparent 70%);
    pointer-events: none;
}
.hero-content {
    position: relative;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
    z-index: 1;
}
.hero-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--color-text);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}
.hero-title .slash {
    color: var(--color-primary);
    margin: 0 12px;
    font-weight: 300;
    opacity: .7;
}
.hero-subtitle {
    font-size: 16px;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}
.hero-subtitle .dot {
    display: inline-block;
    width: 4px; height: 4px;
    background: var(--color-primary);
    border-radius: 50%;
    margin: 0 10px;
    vertical-align: middle;
    opacity: .6;
}
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}
.hero-buttons .btn-lg {
    padding: 14px 32px;
    font-size: 15.5px;
    font-weight: 500;
}

/* ====== Hero 轮播 ====== */
.hero-carousel {
    position: relative;
    width: 100%;
    z-index: 1;
}
.hero-slides {
    position: relative;
    min-height: 280px;
}
.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity .6s ease, transform .6s ease;
    pointer-events: none;
}
.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    position: relative;
}
.hero-slide-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 36px;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}
.hero-slide.text-only .hero-slide-inner {
    grid-template-columns: 1fr;
    max-width: 860px;
    text-align: center;
}
.hero-slide .hs-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--color-text);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}
.hero-slide .hs-title .slash {
    color: var(--color-primary);
    margin: 0 12px;
    font-weight: 300;
    opacity: .7;
}
.hero-slide .hs-sub {
    font-size: 16px;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}
.hero-slide .hs-sub .dot {
    display: inline-block;
    width: 4px; height: 4px;
    background: var(--color-primary);
    border-radius: 50%;
    margin: 0 10px;
    vertical-align: middle;
    opacity: .6;
}
.hero-slide .hs-btns {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-slide.text-only .hs-btns { justify-content: center; }
.hero-slide .hs-btns .btn-lg {
    padding: 14px 32px;
    font-size: 15.5px;
    font-weight: 500;
}
.hero-slide .hs-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 22px;
    background: #fff center/cover no-repeat;
    box-shadow: 0 20px 60px rgba(13,50,100,.16);
    border: 1px solid rgba(255,255,255,.8);
}
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.85);
    color: var(--color-text);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,.1);
    z-index: 3;
    display: none;
    transition: all .2s;
}
.hero-arrow.show { display: flex; align-items: center; justify-content: center; }
.hero-arrow:hover { background: #fff; color: var(--color-primary); transform: translateY(-50%) scale(1.05); }
.hero-arrow.prev { left: calc(50% - 560px); }
.hero-arrow.next { right: calc(50% - 560px); }
.hero-dots {
    position: absolute;
    left: 0; right: 0; bottom: 18px;
    display: none;
    justify-content: center;
    gap: 8px;
    z-index: 3;
}
.hero-dots.show { display: flex; }
.hero-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(148,163,184,.5);
    cursor: pointer;
    transition: all .2s;
}
.hero-dot.active {
    background: var(--color-primary);
    width: 22px;
    border-radius: 5px;
}
/* 轮播层铺满整个 Hero 区域：图片 banner 上下铺满原版高度（含留白），高度恒定不跳动 */
.hero-carousel { position: absolute; inset: 0; }
.hero-slides { position: relative; width: 100%; height: 100%; min-height: 0; }
.hero-slide.active { position: absolute; } /* 全部绝对定位纯淡入淡出，高度由 .hero 固定 */
.hero-slide.text-only { padding: 100px 0 120px; } /* 文字页保留原版上下留白与位置 */
/* CMS 图片 banner：上下铺满整个 Hero（图内自带文案，不叠加标题） */
.hero-slide.has-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
}
.hero-slide.has-image.linked { cursor: pointer; }
.hero-slide.has-image.linked:hover { filter: brightness(.97); }

@media (max-width: 1200px) {
    .hero-arrow.prev { left: 16px; }
    .hero-arrow.next { right: 16px; }
}

/* ====== 数据看板 ====== */
.stats-section { background: var(--color-bg); }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap);
}
.stats-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-card);
    padding: 36px 24px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all .25s;
}
.stats-card:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(25,118,210,0.2);
    transform: translateY(-2px);
}
.stats-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--color-primary-dark);
    line-height: 1.1;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}
.stats-unit {
    font-size: 18px;
    color: var(--color-primary);
    font-weight: 500;
    margin-left: 2px;
}
.stats-label {
    font-size: 14px;
    color: var(--color-text-secondary);
}

/* ====== 五大能力卡片 ====== */
.features-section { background: var(--color-bg-section); }
.feature-card {
    background: var(--color-bg);
    border-radius: var(--radius-card);
    padding: 24px 20px;
    box-shadow: var(--shadow-card);
    transition: all .25s;
    border: 1px solid transparent;
    position: relative;
}
.feature-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
    border-color: rgba(25,118,210,0.18);
}
/* 卡片头部三列：图标 | 标题+概要 | 端标签 */
.feature-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.feature-headtext { flex: 1; min-width: 0; }
.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.feature-card:nth-child(1) .feature-icon { background: #E3F2FD; color: #1976D2; }
.feature-card:nth-child(2) .feature-icon { background: #FFF3E0; color: #EF6C00; }
.feature-card:nth-child(3) .feature-icon { background: #E8F5E9; color: #2E7D32; }
.feature-card:nth-child(4) .feature-icon { background: #FCE4EC; color: #C2185B; }
.feature-card:nth-child(5) .feature-icon { background: #F3E5F5; color: #7B1FA2; }

.feature-headtext h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 3px;
    line-height: 1.3;
}
.feature-end-tag {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 11px;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    font-weight: 500;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2px;
    white-space: nowrap;
}
.feature-desc {
    font-size: 12.5px;
    color: var(--color-text-secondary);
    line-height: 1.55;
}
.feature-points {
    list-style: none;
}
.feature-points li {
    font-size: 13px;
    color: var(--color-text-secondary);
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}
.feature-points li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 12px;
}
/* 桌面 5 列（卡片约 226px）：收紧图标/间距/标签，把横向空间让给标题+概要列 */
@media (min-width: 961px) {
    .feature-card { padding: 22px 16px; }
    .feature-head { gap: 10px; margin-bottom: 14px; }
    .feature-icon { width: 40px; height: 40px; font-size: 20px; border-radius: 10px; }
    .feature-headtext h3 { font-size: 15px; }
    .feature-desc { font-size: 12px; line-height: 1.5; }
    .feature-end-tag { font-size: 10px; padding: 2px 7px; }
    .feature-points li { font-size: 12.5px; }
}

/* ====== 应用精选预览 ====== */
.apps-section { background: var(--color-bg); }
.apps-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
}
.apps-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-text);
}
.apps-header .more-link {
    font-size: 14px;
    color: var(--color-primary);
    font-weight: 500;
}
.apps-header .more-link:hover { opacity: .8; }

.app-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    transition: all .25s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.app-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
    border-color: rgba(25,118,210,0.22);
}
.app-cover {
    height: 160px;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    position: relative;
    overflow: hidden;
}
.app-card:nth-child(2) .app-cover { background: linear-gradient(135deg, #FFF3E0, #FFE0B2); }
.app-card:nth-child(3) .app-cover { background: linear-gradient(135deg, #E8F5E9, #C8E6C9); }
.app-card:nth-child(4) .app-cover { background: linear-gradient(135deg, #FCE4EC, #F8BBD0); }
.app-card:nth-child(5) .app-cover { background: linear-gradient(135deg, #F3E5F5, #E1BEE7); }
.app-card:nth-child(6) .app-cover { background: linear-gradient(135deg, #E0F2F1, #B2DFDB); }

/* ====== 生成式封面（与 apps.css 同款） ====== */
.gen-cover {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    user-select: none;
}
.gen-cover .gc-name {
    max-width: 90%;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .25);
    z-index: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 1px;
    padding: 0 16px;
    box-sizing: border-box;
    line-height: 1.25;
}
.gen-cover .gc-cls {
    position: absolute;
    left: 10px;
    bottom: 8px;
    font-size: 11px;
    color: #fff;
    background: rgba(0, 0, 0, .28);
    padding: 2px 9px;
    border-radius: 10px;
    z-index: 1;
    white-space: nowrap;
}

.app-tag {
    position: absolute;
    top: 12px; left: 12px;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 9px;
    border-radius: 10px;
    background: rgba(255,255,255,0.92);
    color: var(--color-primary-dark);
}
.app-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.app-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.app-category-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--tag-default-bg);
    color: var(--tag-default-color);
    font-weight: 500;
}
.app-description {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.app-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--color-border-light);
}
.app-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary-dark);
}
.app-price.free { color: var(--color-success); }

/* ====== 开发者社区 CTA ====== */
.dev-cta-section { background: var(--color-bg-section); }
.dev-cta-inner {
    background: linear-gradient(135deg, #0D47A1 0%, #1976D2 100%);
    border-radius: 20px;
    padding: 60px 64px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
    color: #FFF;
    overflow: hidden;
    position: relative;
}
.dev-cta-inner::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.dev-cta-inner::after {
    content: '';
    position: absolute;
    bottom: -100px; left: 120px;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}
.dev-cta-content { position: relative; z-index: 1; }
.dev-cta-content h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 14px;
}
.dev-cta-content p {
    font-size: 15px;
    opacity: .9;
    line-height: 1.9;
    margin-bottom: 28px;
}
.dev-paths {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 32px;
}
.dev-path {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 18px 20px;
    backdrop-filter: blur(6px);
}
.dev-path .path-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}
.dev-path .path-desc {
    font-size: 12.5px;
    opacity: .78;
}
.dev-cta-buttons { display: flex; gap: 12px; }
.dev-cta-buttons .btn-primary { background: #FFF; color: var(--color-primary-dark); }
.dev-cta-buttons .btn-primary:hover { background: #F0F7FF; }
.dev-cta-buttons .btn-accent { background: rgba(255,255,255,0.12); color: #FFF; border: 1px solid rgba(255,255,255,0.3); }
.dev-cta-buttons .btn-accent:hover { background: rgba(255,255,255,0.2); }

.dev-cta-visual {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.dev-visual-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    backdrop-filter: blur(10px);
}
.calc-label { font-size: 13px; opacity: .8; margin-bottom: 8px; }
.calc-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.2);
    font-size: 14px;
}
.calc-row:last-child {
    border-bottom: none;
    padding-top: 18px;
    margin-top: 4px;
    font-size: 17px;
    font-weight: 700;
    color: #FFD54F;
}
.calc-row .num { font-variant-numeric: tabular-nums; }

/* ====== 融媒体通路 ====== */
.media-section { background: var(--color-bg); }
.media-channels {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--grid-gap);
    margin-bottom: 48px;
}
.media-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-card);
    padding: 32px 20px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all .25s;
}
.media-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
    border-color: rgba(25,118,210,0.2);
}
.media-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 14px;
    color: #FFF;
    font-weight: 700;
}
.media-card:nth-child(1) .media-icon { background: #000; }
.media-card:nth-child(2) .media-icon { background: linear-gradient(135deg, #FF2442, #FF6B35); }
.media-card:nth-child(3) .media-icon { background: #2932E1; }
.media-card:nth-child(4) .media-icon { background: #FE2C55; }
.media-card:nth-child(5) .media-icon { background: #07C160; }

.media-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
}
.media-note {
    font-size: 12px;
    color: var(--color-text-muted);
    line-height: 1.7;
}
.media-highlight {
    background: var(--color-primary-light);
    border-radius: var(--radius-card);
    padding: 32px 48px;
    text-align: center;
    color: var(--color-primary-dark);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.9;
}
.media-highlight .hl {
    color: var(--color-primary);
    font-weight: 700;
}

/* ====== FDE CTA ====== */
.fde-section { background: var(--color-bg-section); }
.fde-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.fde-slogan {
    font-size: 15px;
    color: var(--color-primary);
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 16px;
    text-transform: uppercase;
}
.fde-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.3;
    margin-bottom: 14px;
}
.fde-desc {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.9;
    margin-bottom: 32px;
}
.fde-abilities {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 36px;
}
.fde-ability {
    padding: 16px;
    background: var(--color-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    text-align: center;
}
.fde-ability .a-icon {
    font-size: 22px;
    margin-bottom: 6px;
}
.fde-ability .a-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
}
.fde-buttons { display: flex; gap: 12px; }
.fde-visual-box {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
    border-radius: var(--radius-card);
    padding: 48px 40px;
    box-shadow: var(--shadow-card-hover);
    position: relative;
    overflow: hidden;
}
.fde-visual-box::before {
    content: '✦';
    position: absolute;
    top: 20px; right: 24px;
    font-size: 80px;
    color: rgba(255,183,0,0.18);
    line-height: 1;
}
.fde-feature-title {
    font-size: 18px;
    font-weight: 700;
    color: #E65100;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}
.fde-dim-list { position: relative; z-index: 1; }
.fde-dim {
    background: rgba(255,255,255,0.75);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 14px;
    backdrop-filter: blur(4px);
}
.fde-dim:last-child { margin-bottom: 0; }
.fde-dim .dim-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.fde-dim .dim-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}
.fde-dim .dim-badge {
    font-size: 11px;
    padding: 2px 9px;
    border-radius: 10px;
    background: #FFECB3;
    color: #E65100;
    font-weight: 600;
}
.fde-dim .dim-desc {
    font-size: 12.5px;
    color: var(--color-text-secondary);
}

/* ====== Footer ====== */
.footer {
    background: var(--color-bg-dark);
    color: rgba(255,255,255,0.75);
    padding: 64px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .f-logo {
    font-size: 22px;
    font-weight: 800;
    color: #FFF;
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.footer-brand .f-logo span { color: #64B5F6; }
.footer-brand .f-desc {
    font-size: 13px;
    line-height: 1.8;
    opacity: .75;
    margin-bottom: 20px;
    max-width: 280px;
}
.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    color: #FFF;
    margin-bottom: 18px;
}
.footer-col li {
    margin-bottom: 12px;
}
.footer-col a {
    font-size: 13px;
    opacity: .7;
    transition: all .2s;
}
.footer-col a:hover {
    opacity: 1;
    color: #64B5F6;
}
.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 12px;
    opacity: .6;
    line-height: 2;
}
.footer-bottom .sep { margin: 0 10px; opacity: .4; }
.footer-bottom .footer-legal { margin-top: 4px; }
.footer-bottom .footer-legal a { color: inherit; text-decoration: none; }
.footer-bottom .footer-legal a:hover { color: #1D4ED8; opacity: 1; }

/* ====== 响应式 ====== */
@media (max-width: 960px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .card-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
    .media-channels { grid-template-columns: repeat(3, 1fr); }
    .dev-cta-inner { grid-template-columns: 1fr; padding: 40px 32px; }
    .fde-inner { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .hero-slide-inner { grid-template-columns: 1fr; gap: 24px; max-width: 620px; }
    .hero-slide .hs-image { max-height: 320px; }
    .hero-slide .hs-btns { justify-content: center; }
    .hero-arrow.prev { left: 8px; }
    .hero-arrow.next { right: 8px; }
    .hero-dots { bottom: 14px; }
}
@media (max-width: 600px) {
    .navbar-menu { display: none; }
    .hero { padding: 64px 0 80px; }
    .hero-slide.text-only { padding: 64px 0 80px; }
    .hero-title { font-size: 26px; }
    .hero-slide .hs-title { font-size: 26px; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-slide .hs-btns { flex-direction: column; align-items: stretch; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .media-channels { grid-template-columns: repeat(2, 1fr); }
    /* 五大能力引擎：手机端单列拉通往下滚，不再两列并排 */
    .card-grid.cols-5 { grid-template-columns: 1fr; }
    /* 单列全宽下，卡片头部三列适当放大、更舒展 */
    .feature-card { padding: 24px 22px; }
    .feature-head { gap: 16px; margin-bottom: 18px; }
    .feature-icon { width: 54px; height: 54px; font-size: 26px; border-radius: 14px; }
    .feature-headtext h3 { font-size: 18px; }
    .feature-desc { font-size: 13.5px; }
    .feature-end-tag { font-size: 11px; padding: 3px 11px; margin-top: 3px; }
    .fde-abilities { grid-template-columns: repeat(2, 1fr); }
    .dev-paths { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .fde-visual-box { padding: 32px 24px; }
    .stats-number { font-size: 32px; }
    .hero-arrow { width: 36px; height: 36px; font-size: 16px; }
}

/* ====== 首页 Hero 轮播移动端：全宽铺满，参考 PC 端视觉效果 ====== */
@media (max-width: 768px) {
    /* Hero 区：取消固定高度与上下留白，让图片 banner 全宽铺满 */
    .hero {
        min-height: 0;
        padding: 0;
    }
    /* 轮播层回到文档流（PC 为 absolute 铺满），全宽无侧距 */
    .hero-carousel {
        position: relative;
        inset: auto;
        padding: 0;
    }
    .hero-slides {
        position: relative;
        height: auto;
        min-height: 0;
    }
    /* active 项回到文档流撑开高度（PC 为全部 absolute 纯淡入淡出） */
    .hero-slide.active { position: relative; }
    /* 文字页：保留上下留白与两侧间距 */
    .hero-slide.text-only { padding: 48px 20px 56px; }
    /* 文字兜底页：隐藏两个入口按钮（移动端已有底部导航/菜单入口），避免向下撑高轮播区 */
    .hero-slide.text-only .hs-btns { display: none; }
    .hero-slide.text-only .hs-sub { margin-bottom: 0; }
    /* 图片 banner：全宽铺满直角（不缩卡片、不留侧距），cover 居中保留图内中部文字 */
    .hero-slide.has-image {
        height: 200px;
        border-radius: 0;
        box-shadow: none;
        border: none;
        background-position: center;
    }
    /* 指示点：叠在 banner 底部居中（同 PC），不占额外高度 */
    .hero-dots.show {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 14px;
        display: flex;
        justify-content: center;
        margin-top: 0;
    }
    /* 移动端隐藏左右箭头，靠指示点切换（避免遮挡画面文字） */
    .hero-arrow { display: none !important; }
    /* 文字页标题字号 */
    .hero-title { font-size: 26px; }
    .hero-subtitle { font-size: 14px; margin-bottom: 28px; }
}
@media (max-width: 380px) {
    .hero-slide.has-image { height: 180px; }
}

/* ====== 动态加载状态 ====== */
.loading-tip, .empty-tip {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 16px;
    color: var(--color-text-muted);
    font-size: 14px;
}
.empty-tip {
    color: var(--color-text-light);
}

/* ===== 返回顶部按钮 ===== */
.back-to-top {
    position: fixed;
    right: 28px;
    bottom: 36px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--color-primary, #2F54EB);
    color: #fff;
    box-shadow: 0 4px 16px rgba(47, 84, 235, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity .28s ease, transform .28s ease, visibility .28s;
    z-index: 900;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--color-primary-dark, #1D39C4);
    box-shadow: 0 6px 20px rgba(47, 84, 235, 0.4);
    transform: translateY(-2px);
}
.back-to-top:active {
    transform: translateY(0);
}
@media (max-width: 600px) {
    .back-to-top { right: 16px; bottom: 24px; width: 40px; height: 40px; }
}

/* ══════════ AI 应用服务团推荐卡片（首页 HP-06B） ══════════ */
.team-card {
    background: #fff;
    border: 1px solid var(--color-border-light, #E5E7EB);
    border-radius: 12px;
    padding: 20px;
    transition: transform .18s, box-shadow .18s, border-color .18s;
    display: flex;
    flex-direction: column;
}
.team-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.12);
    border-color: #0D9488;
}
.team-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}
.team-card-name {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--color-text, #1F2A44);
    line-height: 1.4;
}
.team-card-badge {
    flex-shrink: 0;
    font-size: 11.5px;
    font-weight: 600;
    background: #FEF3C7;
    color: #B45309;
    padding: 2px 10px;
    border-radius: 10px;
}
.team-card-intro {
    font-size: 12.5px;
    color: var(--color-text-muted, #8A94A6);
    line-height: 1.6;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.team-card-caps {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
    flex: 1;
}
.team-cap-tag {
    display: inline-block;
    background: #F0FDFA;
    color: #0F766E;
    border: 1px solid #CCFBF1;
    border-radius: 6px;
    padding: 2px 9px;
    font-size: 11.5px;
}
.team-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--color-text-muted, #8A94A6);
    border-top: 1px dashed var(--color-border-light, #E5E7EB);
    padding-top: 10px;
}
.team-card-more {
    color: #0D9488;
    font-weight: 600;
}
