/* ================================
   XX网络科技 - 全局样式
   主色调: #165DFF (科技蓝)
   辅助色: #F5F7FA (浅灰) / #333333 (深灰)
   ================================ */

:root {
    --primary: #165DFF;
    --primary-dark: #0d47e1;
    --primary-light: #4080ff;
    --accent: #00D4AA;
    --dark: #0a1628;
    --dark-2: #1e3a5f;
    --gray-100: #F5F7FA;
    --gray-200: #E8ECF1;
    --gray-300: #D0D7E2;
    --gray-600: #6B7A99;
    --gray-800: #333333;
    --white: #ffffff;
    --shadow: 0 2px 20px rgba(22, 93, 255, 0.1);
    --shadow-lg: 0 10px 40px rgba(22, 93, 255, 0.15);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--gray-800);
    line-height: 1.7;
    overflow-x: hidden;
}

/* 顶部栏 */
.top-bar { background: var(--dark); color: rgba(255,255,255,0.7); padding: 8px 0; font-size: 13px; }
.top-bar a { color: rgba(255,255,255,0.7); text-decoration: none; transition: var(--transition); }
.top-bar a:hover { color: var(--primary-light); }

/* 导航栏 */
.navbar { padding: 12px 0; }
.navbar-brand { display: flex; align-items: center; gap: 8px; }
.brand-text { font-weight: 700; font-size: 18px; color: var(--dark); }
.navbar .nav-link {
    color: var(--gray-800) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 6px;
    transition: var(--transition);
    position: relative;
}
.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 2px;
    background: var(--primary);
    transition: var(--transition);
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { width: 60%; }
.navbar .nav-link:hover,
.navbar .nav-link.active { color: var(--primary) !important; }

/* Banner */
.main-banner { margin-top: 0; }
.banner-slide {
    min-height: 600px;
    display: flex; align-items: center;
    position: relative; overflow: hidden;
}
.banner-slide::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.banner-content { position: relative; z-index: 2; color: white; max-width: 700px; }
.banner-title {
    font-size: 3rem; font-weight: 800;
    margin-bottom: 16px; line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.banner-desc { font-size: 1.2rem; opacity: 0.85; margin-bottom: 8px; }
.carousel-indicators button {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent; margin: 0 4px;
}
.carousel-indicators button.active { background: white; border-color: white; }

/* 区块通用 */
.section { padding: 80px 0; }
.section-header { margin-bottom: 50px; }
.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), #4080ff);
    color: white; font-size: 12px; font-weight: 600;
    padding: 4px 16px; border-radius: 20px;
    letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 12px;
}
.section-title { font-size: 2.2rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.section-subtitle { font-size: 1rem; }

/* 服务卡片 */
.service-card {
    background: white; border-radius: var(--radius);
    padding: 36px 30px; box-shadow: var(--shadow);
    transition: var(--transition); height: 100%;
    border: 1px solid var(--gray-200);
    position: relative; overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0); transition: var(--transition);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: white; margin-bottom: 20px; transition: var(--transition);
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(5deg); box-shadow: 0 8px 25px rgba(22, 93, 255, 0.35); }
.service-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.service-card p { color: var(--gray-600); font-size: 14px; margin-bottom: 16px; }
.service-tags { list-style: none; padding: 0; margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.service-tags li { background: var(--gray-100); color: var(--gray-600); font-size: 12px; padding: 3px 10px; border-radius: 20px; }
.service-link { color: var(--primary); font-weight: 600; font-size: 14px; text-decoration: none; }
.service-link:hover { color: var(--primary-dark); }
.service-card-highlight { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border: none; }
.service-icon-light { background: rgba(255,255,255,0.2); }

/* 解决方案卡片 */
.solutions-section { background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%); }
.solution-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    gap: 24px;
    border: 1px solid rgba(0,0,0,0.06);
    height: 100%;
}
.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(22,93,255,0.15);
    border-color: rgba(22,93,255,0.2);
}
.solution-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    transition: all 0.4s;
}
.solution-card:hover .solution-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(22,93,255,0.4);
}
.solution-content { flex: 1; }
.solution-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}
.solution-content p {
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}
.solution-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}
.solution-link:hover {
    color: var(--accent);
    gap: 10px;
}

/* 核心优势 */
.advantages-section { background: var(--dark); color: white; }
.advantage-item { padding: 30px; }
.advantage-num {
    font-size: 3.5rem; font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 10px;
}
.advantages-section h4 { font-weight: 700; margin-bottom: 8px; }
.advantages-section p { color: rgba(255,255,255,0.6); font-size: 14px; }

/* 案例卡片 - 科技感设计 */
.cases-section { background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 50%, #0a1628 100%); position: relative; overflow: hidden; }
.cases-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(22,93,255,0.15) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(0,212,170,0.1) 0%, transparent 50%);
    pointer-events: none;
}
.cases-section .section-tag { background: linear-gradient(135deg, var(--accent), #00a884); }
.cases-section .section-title { color: white; }
.cases-section .section-subtitle { color: rgba(255,255,255,0.6); }
.case-card {
    background: linear-gradient(145deg, rgba(30,58,95,0.9) 0%, rgba(10,22,40,0.95) 100%);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(22,93,255,0.4);
    box-shadow: 0 0 15px rgba(22,93,255,0.1), inset 0 0 30px rgba(22,93,255,0.03);
    backdrop-filter: blur(10px);
    position: relative;
}
.case-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(22,93,255,0.5), rgba(0,212,170,0.3), rgba(22,93,255,0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s;
}
.case-card:hover { transform: translateY(-12px) scale(1.02); box-shadow: 0 30px 60px rgba(22,93,255,0.3); }
.case-card:hover::before { opacity: 1; }
.case-img {
    height: 200px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.case-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(10,22,40,0.8) 0%, transparent 100%);
    pointer-events: none;
}
.case-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.9) saturate(1.2);
}
.case-card:hover .case-img img { transform: scale(1.1); filter: brightness(1) saturate(1.1); }
.case-placeholder {
    height: 100%;
    background: linear-gradient(135deg, #165DFF 0%, #0a1628 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.2);
}
.case-overlay-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(22,93,255,0.9);
    border: 2px solid rgba(0,212,170,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s;
    z-index: 2;
    box-shadow: 0 0 30px rgba(22,93,255,0.5);
}
.case-overlay-icon i { font-size: 1.2rem; color: white; }
.case-card:hover .case-overlay-icon { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
.case-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}
.case-number {
    position: absolute;
    top: -15px;
    right: 20px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(22,93,255,0.15);
    line-height: 1;
    font-family: Arial, sans-serif;
}
.case-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    padding: 4px 12px;
    background: rgba(0,212,170,0.1);
    border-radius: 20px;
    width: fit-content;
}
.case-category i { font-size: 10px; }
.case-body h5 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.case-body p {
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    line-height: 1.7;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}
.case-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.case-tag {
    display: inline-block;
    background: rgba(22,93,255,0.15);
    color: rgba(255,255,255,0.7);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(22,93,255,0.3);
    transition: all 0.3s;
}
.case-card:hover .case-tag {
    background: rgba(0,212,170,0.15);
    color: var(--accent);
    border-color: rgba(0,212,170,0.3);
}
.case-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 16px;
}
.case-client {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.case-client::before { content: ''; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.case-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(22,93,255,0.2);
    border: 1px solid rgba(22,93,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: all 0.3s;
}
.case-card:hover .case-arrow {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: rotate(-45deg);
}
.case-card-img {
    height: 220px;
    background: linear-gradient(135deg, var(--dark-2), var(--primary));
    position: relative; overflow: hidden;
}
.case-card-img img { width: 100%; height: 100%; object-fit: cover; }
.case-card-img .case-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(22, 93, 255, 0.85);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: var(--transition);
}
.case-card:hover .case-overlay { opacity: 1; }
.case-card-img .case-overlay a { color: white; font-size: 14px; font-weight: 600; text-decoration: none; border: 2px solid white; padding: 8px 20px; border-radius: 6px; }
.case-card-body { padding: 20px; }
.case-card-body h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.case-card-body .case-client { color: var(--primary); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.case-card-body .case-tags span { background: var(--gray-100); color: var(--gray-600); font-size: 11px; padding: 2px 8px; border-radius: 4px; margin-right: 4px; }

/* 客户评价 */
.testimonials-section { background: var(--gray-100); }
.testimonial-card { background: white; border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); max-width: 800px; margin: 0 auto; text-align: center; }
.testimonial-stars { color: #FFB800; font-size: 20px; margin-bottom: 16px; }
.testimonial-text { font-size: 1.15rem; color: var(--gray-800); line-height: 1.9; margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: 12px; }
.testimonial-avatar {
    width: 50px; height: 50px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 18px;
}
.testimonial-info h5 { font-weight: 700; margin: 0; }
.testimonial-info small { color: var(--gray-600); }
.carousel-control-prev-icon, .carousel-control-next-icon { width: 40px; height: 40px; border-radius: 50% !important; }

/* 合作品牌 */
.partner-logo { height: 60px; opacity: 0.6; filter: grayscale(100%); transition: var(--transition); object-fit: contain; }
.partner-logo:hover { opacity: 1; filter: grayscale(0); }

/* CTA */
.cta-section { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; padding: 60px 0; }
.cta-section h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 8px; }

/* 页脚 */
.footer { background: var(--dark); color: white; padding: 60px 0 0; }
.footer h5 { font-weight: 700; margin-bottom: 20px; color: white; }
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; transition: var(--transition); }
.footer ul li a:hover { color: var(--primary-light); }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; transition: var(--transition); }
.footer-social a:hover { background: var(--primary); border-color: var(--primary); }
.footer-bottom { margin-top: 40px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.1); }

/* 返回顶部 */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px; background: var(--primary); color: white; border: none; border-radius: 50%; cursor: pointer; display: none; align-items: center; justify-content: center; font-size: 16px; box-shadow: var(--shadow-lg); transition: var(--transition); z-index: 1000; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }
.back-to-top.show { display: flex; }

/* 内页通用 */
.page-header { background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%); color: white; padding: 80px 0; }
.page-header h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 8px; }
.page-header p { opacity: 0.8; }
.breadcrumb-nav { background: var(--gray-100); padding: 12px 0; }
.breadcrumb-nav .breadcrumb { margin: 0; background: transparent; font-size: 14px; }
.breadcrumb-nav a { color: var(--gray-600); text-decoration: none; }
.breadcrumb-nav .breadcrumb-item.active { color: var(--primary); }

/* 按钮 */
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

/* 响应式 */
@media (max-width: 991px) {
    .banner-title { font-size: 2.2rem; }
    .banner-slide { min-height: 500px; }
    .section { padding: 60px 0; }
    .advantage-num { font-size: 2.8rem; }
}
@media (max-width: 767px) {
    .banner-title { font-size: 1.8rem; }
    .banner-slide { min-height: 400px; }
    .section { padding: 50px 0; }
    .section-title { font-size: 1.8rem; }
    .testimonial-card { padding: 24px; }
}
