/* ==========================================================================
   新联网 (XLS.中国) 官方门户与媒体商城样式表 - portal.css
   ========================================================================== */

:root {
    --primary-color: #1875F0;
    --primary-hover: #0d5ecc;
    --primary-light: #e8f3ff;
    --secondary-color: #0b1e42;
    --accent-gold: #ff9800;
    --accent-red: #ff4d4f;
    --accent-green: #52c41a;
    --text-main: #1f2937;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
    color: var(--text-main);
    background-color: #fdfdfd;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 72px;
}

/* 链接与通用重置 */
a {
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.25s ease;
}
a:hover, a:focus {
    color: var(--primary-color);
    text-decoration: none;
}

/* 导航栏 */
.portal-navbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    height: 72px;
    transition: all 0.3s ease;
    z-index: 1030;
}
.portal-navbar .navbar-brand {
    display: flex;
    align-items: center;
    height: 72px;
    padding: 0 15px 0 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--secondary-color);
    letter-spacing: -0.5px;
}
.portal-navbar .navbar-brand .logo-badge {
    background: linear-gradient(135deg, var(--primary-color), #00c6ff);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    text-transform: uppercase;
}
.portal-navbar .nav > li > a {
    color: #334155;
    font-size: 15px;
    font-weight: 500;
    padding: 24px 18px;
    line-height: 24px;
}
.portal-navbar .nav > li > a:hover,
.portal-navbar .nav > li.active > a {
    color: var(--primary-color);
    background: transparent;
}
.portal-navbar .nav > li.active > a::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

/* 导航下拉菜单 */
.portal-navbar .dropdown-menu {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    min-width: 200px;
    margin-top: 0;
    animation: fadeInDown 0.2s ease;
}
.portal-navbar .dropdown-menu > li > a {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: #475569;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}
.portal-navbar .dropdown-menu > li > a:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

/* 导航右侧按钮 */
.navbar-btn-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
}
.btn-nav-cart {
    position: relative;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    border: 1px solid rgba(24, 117, 240, 0.2);
}
.btn-nav-cart:hover {
    background: var(--primary-color);
    color: #fff;
}
.btn-nav-cart .cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-red);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(255, 77, 79, 0.4);
}
.btn-nav-login {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    color: #475569;
    background: #f1f5f9;
}
.btn-nav-login:hover {
    background: #e2e8f0;
    color: var(--text-main);
}
.btn-nav-register {
    padding: 8px 22px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), #0d5ecc);
    box-shadow: 0 4px 14px rgba(24, 117, 240, 0.3);
}
.btn-nav-register:hover {
    background: linear-gradient(135deg, #0d5ecc, #084396);
    color: #fff;
    transform: translateY(-1px);
}

/* 通用按钮 */
.btn-primary-gradient {
    background: linear-gradient(135deg, #1875f0 0%, #0d5ecc 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 28px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 6px 18px rgba(24, 117, 240, 0.28);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-primary-gradient:hover {
    background: linear-gradient(135deg, #0d5ecc 0%, #09479e 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(24, 117, 240, 0.38);
}
.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    border-radius: var(--radius-md);
    padding: 10px 26px;
    font-weight: 600;
    font-size: 15px;
}
.btn-outline-primary:hover {
    background: var(--primary-light);
    color: var(--primary-hover);
}

/* Banner 专区 */
.portal-hero {
    background: radial-gradient(circle at 10% 20%, rgba(24, 117, 240, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(0, 198, 255, 0.08) 0%, transparent 40%),
                linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    padding: 70px 0 80px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(24, 117, 240, 0.1);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}
.hero-title {
    font-size: 44px;
    font-weight: 900;
    line-height: 1.25;
    color: var(--secondary-color);
    margin-bottom: 20px;
    letter-spacing: -1px;
}
.hero-title .highlight {
    background: linear-gradient(135deg, #1875F0 0%, #00c6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-desc {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 35px;
    max-width: 620px;
}
.hero-search-box {
    background: #fff;
    border: 2px solid #dbeafe;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 36px rgba(24, 117, 240, 0.12);
    padding: 8px;
    display: flex;
    align-items: center;
    max-width: 600px;
    margin-bottom: 30px;
}
.hero-search-box input {
    border: none;
    outline: none;
    font-size: 16px;
    padding: 10px 16px;
    flex: 1;
    color: var(--text-main);
}
.hero-search-box button {
    border-radius: var(--radius-md);
    padding: 12px 28px;
    font-weight: 600;
}
.hero-quick-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
}
.hero-quick-tags a {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    color: #475569;
}
.hero-quick-tags a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Banner 右侧视觉图表/卡片 */
.hero-visual-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
}
.hero-visual-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}
.geo-status-badge {
    background: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}
.hero-engine-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.hero-engine-item {
    background: var(--bg-light);
    border: 1px solid #eef2f6;
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.hero-engine-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    font-size: 20px;
    color: var(--primary-color);
}

/* 统计数据条 */
.portal-stats-bar {
    background: #fff;
    margin-top: -35px;
    position: relative;
    z-index: 10;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid #edf2f7;
    padding: 30px 20px;
}
.stat-item {
    text-align: center;
    border-right: 1px solid #f1f5f9;
}
.stat-item:last-child {
    border-right: none;
}
.stat-number {
    font-size: 34px;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1.1;
    margin-bottom: 6px;
    letter-spacing: -1px;
}
.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* 通用区块样式 */
.section-wrapper {
    padding: 80px 0;
    position: relative;
}
.section-header {
    text-align: center;
    margin-bottom: 55px;
}
.section-subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    background: var(--primary-light);
    padding: 4px 14px;
    border-radius: var(--radius-full);
}
.section-title {
    font-size: 34px;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}
.section-desc {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto;
}

/* GEO 信源专区卡片 */
.geo-section {
    background: linear-gradient(180deg, #f3f8fe 0%, #ffffff 100%);
}
.geo-feature-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.geo-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: #bfdbfe;
}
.geo-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color), #00c6ff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 22px;
    box-shadow: 0 8px 20px rgba(24, 117, 240, 0.25);
}
.geo-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 12px;
}
.geo-card-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* 业务矩阵卡片 */
.matrix-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 30px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.matrix-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 14px 30px rgba(24, 117, 240, 0.12);
    transform: translateY(-5px);
}
.matrix-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}
.matrix-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}
.matrix-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}
.matrix-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.matrix-link:hover {
    color: var(--primary-hover);
    transform: translateX(4px);
}

/* 媒体资源卡片 */
.media-item-card {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid #eef2f6;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    margin-bottom: 20px;
}
.media-item-card:hover {
    border-color: #bfdbfe;
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.media-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.media-avatar {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    border: 1px solid #e2e8f0;
}
.media-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0 4px;
}
.media-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.tag-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #475569;
}
.tag-badge.badge-geo {
    background: #e6f7ff;
    color: #096dd9;
    border: 1px solid #91d5ff;
}
.tag-badge.badge-speed {
    background: #f6ffed;
    color: #389e0d;
    border: 1px solid #b7eb8f;
}
.media-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px dashed #f1f5f9;
}
.price-display {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent-red);
}
.price-display small {
    font-size: 12px;
    font-weight: normal;
    color: var(--text-muted);
}
.btn-add-cart-sm {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: var(--primary-color);
    color: #fff;
    border: none;
}
.btn-add-cart-sm:hover {
    background: var(--primary-hover);
    color: #fff;
}

/* 套餐卡片 */
.pkg-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.pkg-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}
.pkg-header {
    background: linear-gradient(135deg, #0b1e42 0%, #1e3a8a 100%);
    color: #fff;
    padding: 24px;
    position: relative;
}
.pkg-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--accent-gold);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}
.pkg-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
}
.pkg-price-row {
    margin-top: 14px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.pkg-price {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
}
.pkg-orig-price {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: line-through;
}
.pkg-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.pkg-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}
.pkg-feature-list li {
    font-size: 14px;
    color: #475569;
    padding: 8px 0;
    border-bottom: 1px solid #f8fafc;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pkg-feature-list li i {
    color: var(--accent-green);
}

/* 客户案例卡片 */
.case-card {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
}
.case-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: #bfdbfe;
}
.case-img {
    height: 180px;
    background: linear-gradient(135deg, #1e293b, #334155);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    position: relative;
    overflow: hidden;
}
.case-img-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 4px;
}
.case-body {
    padding: 20px;
}
.case-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.case-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 新闻资讯卡片 */
.news-card {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid #f1f5f9;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.25s ease;
    display: flex;
    gap: 16px;
}
.news-card:hover {
    border-color: #bfdbfe;
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}
.news-date-badge {
    min-width: 55px;
    height: 55px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}
.news-day {
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}
.news-month {
    font-size: 11px;
    font-weight: 600;
}
.news-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--secondary-color);
}
.news-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 合作客户品牌墙 */
.brand-wall {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}
.brand-logo-card {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: var(--radius-md);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-weight: 700;
    color: #64748b;
    font-size: 15px;
    transition: all 0.25s ease;
}
.brand-logo-card:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* 底部 Footer */
.portal-footer {
    background: #0b1329;
    color: #94a3b8;
    padding: 70px 0 25px;
    font-size: 14px;
}
.footer-logo {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}
.footer-desc {
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 320px;
}
.footer-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--primary-color);
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #94a3b8;
    transition: all 0.2s ease;
}
.footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}
.footer-bottom {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

/* 浮动挂件 (客服/购物车/回顶) */
.floating-widget {
    position: fixed;
    right: 24px;
    bottom: 90px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1020;
}
.float-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: #fff;
    color: #475569;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}
.float-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(24, 117, 240, 0.3);
}
.float-btn.float-cart .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--accent-red);
    color: #fff;
    font-size: 10px;
    padding: 2px 5px;
}

/* 动画效果 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式调整 */
@media (max-width: 991px) {
    .portal-hero {
        padding: 40px 0;
    }
    .hero-title {
        font-size: 32px;
    }
    .brand-wall {
        grid-template-columns: repeat(3, 1fr);
    }
    .stat-item {
        border-right: none;
        margin-bottom: 20px;
    }
    .stat-number {
        font-size: 28px;
    }
}
@media (max-width: 767px) {
    .brand-wall {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-engine-grid {
        grid-template-columns: 1fr;
    }
}

/* 全站底部 Footer 统一隐藏 */
.footer-bg, .portal-footer, footer.portal-footer {
    display: none !important;
}

