/* ============================================
   新开元电销系统 - 全站视觉与布局优化 V2
   针对 xingchuwang.com.cn (site 354) 的桌面端全局优化
   配合 mobile_optimize.css 使用
   ============================================ */

/* ---------- 1. 容器加宽与全局基础 ---------- */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px !important;
        width: 1200px !important;
    }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px !important;
        width: 960px !important;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #334155;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

p {
    line-height: 1.9;
    color: #475569;
}

h1, h2, h3, h4, h5, h6 {
    color: #0F172A;
    font-weight: 600;
}

/* ---------- 2. 导航栏升级 ---------- */
.header-top {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@media (min-width: 992px) {
    .navbar {
        padding: 0.75rem 0 !important;
    }
    
    .navbar-nav .nav-item .nav-link {
        position: relative;
        padding: 0.5rem 0.9rem !important;
        font-size: 15px !important;
        transition: all 0.3s ease;
    }
    
    .navbar-nav .nav-item .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, #1E40AF, #8B5CF6);
        transition: width 0.3s ease;
    }
    
    .navbar-nav .nav-item .nav-link:hover::after,
    .navbar-nav .nav-item.active .nav-link::after {
        width: 60%;
    }
    
    .logo .logo-h1 a.navbar-brand img {
        max-height: 48px !important;
        width: auto !important;
    }
}

/* ---------- 3. 内页Banner优化 ---------- */
.inner-page-banner {
    min-height: 320px !important;
    background-size: cover !important;
    background-position: center !important;
    position: relative;
}

.inner-page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(30, 64, 175, 0.5) 50%, rgba(139, 92, 246, 0.4) 100%);
    z-index: 1;
}

.inner-page-banner .page-heading {
    position: relative;
    z-index: 2;
}

.inner-page-banner h1 {
    font-weight: 700 !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

.section_1-breadcrumbs a,
.section_1-breadcrumbs span {
    font-size: 14px !important;
    opacity: 0.9;
}

.section_1-breadcrumbs a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ---------- 4. 新闻列表卡片优化 (team页面) ---------- */
.team.py-5 {
    padding: 60px 0 !important;
    background: #F8FAFC;
}

.team .container.py-md-5 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.team .heading h3.heading {
    font-size: 32px !important;
    letter-spacing: 1px !important;
    font-weight: 700;
    margin-bottom: 12px;
}

.team .heading p {
    font-size: 15px;
    color: #64748B;
}

.team-row {
    margin-top: 40px !important;
}

.team-wrap {
    margin-bottom: 30px;
}

.team-member {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #E2E8F0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.team-member:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: #8B5CF6;
}

.team-img {
    position: relative;
    overflow: hidden;
}

.team-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.team-member:hover .team-img img {
    transform: scale(1.05);
}

.team-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(15, 23, 42, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-member:hover .team-img::after {
    opacity: 1;
}

.team-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #0F172A !important;
    line-height: 1.5 !important;
    margin: 18px 18px 10px !important;
    text-align: left !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
    transition: color 0.3s ease;
}

.team-member:hover .team-title {
    color: #1E40AF !important;
}

.team-member > span {
    font-size: 13px !important;
    line-height: 1.7 !important;
    color: #64748B !important;
    padding: 0 18px 20px !important;
    text-align: left !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* ---------- 5. 分页样式升级 ---------- */
.team .row:last-child {
    margin-top: 40px;
}

.team .pagination {
    justify-content: center;
    margin-bottom: 0;
}

.team .pagination li a,
.team .pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    margin: 0 4px;
    border-radius: 8px;
    font-size: 14px;
    color: #475569;
    background: #fff;
    border: 1px solid #E2E8F0;
    transition: all 0.25s ease;
    text-decoration: none;
}

.team .pagination li a:hover {
    background: linear-gradient(135deg, #1E40AF, #8B5CF6);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.team .pagination li.active a,
.team .pagination li.active span {
    background: linear-gradient(135deg, #1E40AF, #8B5CF6);
    color: #fff;
    border-color: transparent;
    font-weight: 600;
}

/* ---------- 6. 区块标题通用升级 ---------- */
h3.heading {
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
}

h3.heading span {
    background: linear-gradient(135deg, #1E40AF, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.heading.text-center {
    display: block;
    text-align: center;
}

.heading.pb-4 {
    padding-bottom: 30px !important;
    margin-bottom: 20px;
}

.heading.pb-4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1E40AF, #8B5CF6, #06B6D4);
    border-radius: 2px;
}

.para {
    color: #64748B;
    font-size: 15px;
    line-height: 1.9;
}

/* ---------- 7. Footer升级 ---------- */
.footer {
    background: #0F172A !important;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1E40AF, #8B5CF6, #06B6D4);
}

.footer h3 {
    color: #F1F5F9 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    margin-bottom: 20px !important;
    position: relative;
    padding-bottom: 12px;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #8B5CF6, #06B6D4);
    border-radius: 1px;
}

.footer p,
.footer li,
.footer a {
    color: #94A3B8 !important;
    font-size: 14px !important;
    line-height: 2;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #fff !important;
    text-decoration: none;
}

.footer ul li {
    margin-bottom: 6px;
}

.cpy-right {
    border-top: 1px solid #1E293B !important;
    padding: 24px 0 !important;
    margin-top: 40px;
}

.cpy-right p {
    color: #64748B !important;
    font-size: 13px !important;
    margin: 0;
}

/* ---------- 8. 特色功能卡片升级 ---------- */
.feature-grids .f1,
.features-grids .f1 {
    transition: all 0.35s ease;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.feature-grids .f1:hover,
.features-grids .f1:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.feature-grids h3,
.features-grids h3 {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #0F172A !important;
}

.feature-grids p,
.features-grids p {
    font-size: 14px !important;
    color: #64748B;
    line-height: 1.8;
}

/* ---------- 9. 按钮通用升级 ---------- */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.read a {
    border-radius: 30px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.read a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ---------- 10. 内页文章内容排版优化 ---------- */
.inner_sec {
    padding: 60px 0 !important;
    background: #fff;
}

.single-left {
    padding-right: 30px;
}

.single-left h3 {
    font-size: 26px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    line-height: 1.4 !important;
}

.single-left p {
    font-size: 16px !important;
    line-height: 2 !important;
    margin-bottom: 20px !important;
    color: #334155;
}

.single-left img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.admin {
    padding: 14px 20px;
    background: #F8FAFC;
    border-radius: 8px;
    border-left: 3px solid #8B5CF6;
    margin-bottom: 24px;
    font-size: 13px;
    color: #64748B;
}

/* ---------- 11. 关于我们页面优化 ---------- */
.Welcome.py-5 {
    padding: 70px 0 !important;
}

.welcome-grids h3 {
    font-size: 28px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    line-height: 1.4 !important;
}

.welcome-grids p {
    font-size: 16px !important;
    line-height: 2 !important;
    color: #475569;
    margin-bottom: 18px !important;
}

.welcome-image img {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 计数器区域 */
.Welcome-bottom {
    background: linear-gradient(135deg, #0F172A 0%, #1E40AF 50%, #8B5CF6 100%);
    padding: 60px 0 !important;
    position: relative;
    overflow: hidden;
}

.Welcome-bottom::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.Welcome-bottom .welcome_left_inner {
    position: relative;
    z-index: 1;
}

.counterinfo p {
    font-size: 36px !important;
    font-weight: 800 !important;
    color: #fff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #ffffff, #cffafe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 !important;
}

.countericon h3 {
    font-size: 16px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 400 !important;
    margin-top: 8px !important;
}

/* ---------- 12. 下载页优化 ---------- */
.download-section {
    padding: 60px 0;
}

.download-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #E2E8F0;
    text-align: center;
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.download-btn {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #1E40AF, #8B5CF6);
    color: #fff;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.download-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    text-decoration: none;
}

/* ---------- 13. 回到顶部按钮 ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1E40AF, #8B5CF6);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1020;
    font-size: 18px;
    text-decoration: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
    color: #fff;
    text-decoration: none;
}

/* ---------- 14. 响应式补充（桌面端大尺寸） ---------- */
@media (min-width: 1400px) {
    .container {
        max-width: 1280px !important;
        width: 1280px !important;
    }
    
    .team-member > span {
        font-size: 14px !important;
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    .team-img img {
        height: 180px;
    }
    
    .team-title {
        font-size: 15px !important;
        margin: 16px 14px 8px !important;
    }
    
    .team-member > span {
        padding: 0 14px 16px !important;
        font-size: 12px !important;
    }
}
