﻿/* ===========================
   华科能达 - 响应式样式
   =========================== */

:root {
    --hk-primary: #0066cc;
    --hk-primary-dark: #004d99;
    --hk-primary-light: #e6f0ff;
    --hk-accent: #0099cc;
    --hk-text: #1a1a2e;
    --hk-text-light: #666;
    --hk-bg: #ffffff;
    --hk-bg-gray: #f7f9fc;
    --hk-border: #e8edf3;
    --hk-shadow: 0 4px 20px rgba(0, 102, 204, 0.08);
    --hk-radius: 12px;
    --hk-transition: all 0.3s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: var(--hk-text);
    background: var(--hk-bg);
    line-height: 1.7;
    margin: 0;
    padding-bottom: 0;
}

@media (max-width: 991px) {
    body { padding-bottom: 60px; }
}

a { color: var(--hk-primary); text-decoration: none; transition: var(--hk-transition); }
a:hover { color: var(--hk-primary-dark); }

/* ====== 导航栏 ====== */
.site-header .navbar {
    background: linear-gradient(90deg, #0052cc 0%, #0077ff 100%);
    box-shadow: 0 2px 12px rgba(0, 82, 204, 0.25);
    padding: 0.5rem 0;
}
.site-header .navbar-brand { gap: 10px; }
.brand-text-wrap { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 1.3rem; font-weight: 700; color: #fff; }
.brand-sub { font-size: 0.7rem; color: rgba(255,255,255,0.7); letter-spacing: 1px; }

.navbar-toggler { border-color: rgba(255,255,255,0.3); }
.navbar-toggler:focus { box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.25); }
.navbar-toggler-icon { filter: invert(1); }

.navbar-nav .nav-link {
    font-size: 1.2rem; font-weight: 600; color: rgba(255,255,255,0.9) !important;
    padding: 0.5rem 1.4rem !important; border-radius: 8px;
    transition: var(--hk-transition); position: relative;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff !important; background: rgba(255,255,255,0.15);
}
.navbar-nav .nav-link.active::after {
    content: ""; position: absolute; bottom: 2px; left: 50%;
    transform: translateX(-50%); width: 24px; height: 3px;
    background: #fff; border-radius: 2px;
}

@media (max-width: 991px) {
    .navbar-nav { padding-top: 0.5rem; }
    .navbar-nav .nav-link { padding: 0.7rem 1rem !important; }
    .navbar-nav .nav-link.active::after { display: none; }
}

/* ====== 主体 ====== */
.main-content { min-height: 60vh; }

/* ====== Hero 横幅 ====== */
.hero-section {
    position: relative; overflow: hidden;
}
/* 上半部分：纯图片展示 */
.hero-banner {
    width: 100%;
    height: 420px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
/* 下半部分：内容区域 */
.hero-bottom {
    background: linear-gradient(135deg, #0052cc 0%, #0077ff 50%, #0099cc 100%);
    color: #fff;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}
.hero-bottom::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        radial-gradient(circle at 85% 15%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 15% 85%, rgba(0,153,204,0.15) 0%, transparent 40%);
    pointer-events: none;
}
.hero-bottom > .container { position: relative; z-index: 1; }

.hero-content { max-width: 640px; }

.hero-badge {
    display: inline-flex; align-items: center;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 0.45rem 1rem; border-radius: 50px;
    font-size: 0.85rem; margin-bottom: 1.4rem;
    border: 1px solid rgba(255,255,255,0.25);
    font-weight: 500;
}
.hero-badge svg { opacity: 0.9; }

.hero-title {
    font-size: 2.4rem; font-weight: 800;
    margin-bottom: 1rem; line-height: 1.25;
}
.hero-highlight {
    background: linear-gradient(135deg, #ffd54a 0%, #ffa726 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.05rem; opacity: 0.92;
    margin-bottom: 1.8rem; line-height: 1.8;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.btn-hk-pill {
    display: inline-flex; align-items: center;
    background: #fff; color: #0052cc;
    padding: 0.7rem 1.8rem; border-radius: 50px;
    font-weight: 600; font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}
.btn-hk-pill:hover {
    background: #ffd54a; color: #1a1a2e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}
.btn-hk-outline-pill {
    display: inline-flex; align-items: center;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.6);
    padding: 0.7rem 1.8rem; border-radius: 50px;
    font-weight: 600; font-size: 1rem;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.btn-hk-outline-pill:hover {
    background: rgba(255,255,255,0.25);
    border-color: #fff; color: #fff;
    transform: translateY(-2px);
}

/* 右侧浮动数据卡片 */
.hero-feature-card {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    display: flex; align-items: center; justify-content: space-around;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    max-width: 460px;
    margin-left: auto;
}
.hfc-stat { text-align: center; flex: 1; }
.hfc-num {
    font-size: 2rem; font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #e3f2fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 0.3rem;
}
.hfc-label { font-size: 0.85rem; opacity: 0.85; }
.hfc-divider {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.4), transparent);
}

@media (max-width: 991px) {
    .hero-banner { height: 300px; }
    .hero-bottom { padding: 2.5rem 0; }
    .hero-feature-card { margin: 1rem auto 0; }
}
@media (max-width: 768px) {
    .hero-banner { height: 220px; }
    .hero-bottom { padding: 2rem 0; }
    .hero-title { font-size: 1.6rem; }
    .hero-subtitle { font-size: 0.9rem; }
    .hero-subtitle br { display: none; }
    .hero-cta { gap: 0.6rem; }
    .btn-hk-pill, .btn-hk-outline-pill { padding: 0.55rem 1.3rem; font-size: 0.9rem; }
}/* ====== 通用 Section ====== */
.section { padding: 3.5rem 0; }
@media (max-width: 768px) { .section { padding: 2.5rem 0; } }
.section-gray { background: var(--hk-bg-gray); }

.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title h2 {
    font-size: 1.7rem; font-weight: 700; color: var(--hk-text);
    margin-bottom: 0.5rem; display: inline-block;
}
.section-title h2::after {
    content: ""; display: block; width: 50px; height: 4px;
    background: var(--hk-primary); border-radius: 2px; margin: 0.6rem auto 0;
}
.section-title p { color: var(--hk-text-light); font-size: 0.95rem; }

@media (max-width: 768px) {
    .section-title h2 { font-size: 1.4rem; }
}

/* ====== 统计卡片 ====== */
.stat-card {
    text-align: center; padding: 2rem 1rem; background: #fff;
    border-radius: var(--hk-radius); box-shadow: var(--hk-shadow);
    transition: var(--hk-transition); border: 1px solid var(--hk-border); height: 100%;
}
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0,102,204,0.15); }
.stat-number { font-size: 2.2rem; font-weight: 800; color: var(--hk-primary); line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.9rem; color: var(--hk-text-light); }

@media (max-width: 768px) { .stat-number { font-size: 1.8rem; } }

/* ====== 产品卡片 ====== */
.product-card {
    background: #fff; border-radius: var(--hk-radius); overflow: hidden;
    box-shadow: var(--hk-shadow); transition: var(--hk-transition);
    border: 1px solid var(--hk-border); height: 100%;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0,102,204,0.15); }
.product-img-wrap {
    height: 200px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #f0f6ff 0%, #e6f0ff 100%); padding: 1.5rem; overflow: hidden;
}
.product-img-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; transition: var(--hk-transition); }
.product-card:hover .product-img-wrap img { transform: scale(1.08); }
.product-card .card-body { padding: 1.2rem; text-align: center; }
.product-card h5 { font-size: 1rem; font-weight: 600; margin-bottom: 0.3rem; }
.product-card .product-desc { font-size: 0.85rem; color: var(--hk-text-light); margin-bottom: 0; }

/* ====== 信息面板 ====== */
.info-panel {
    background: #fff; border-radius: var(--hk-radius); padding: 2rem;
    box-shadow: var(--hk-shadow); border: 1px solid var(--hk-border);
}
.info-panel h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; color: var(--hk-text); }
.info-panel p { color: var(--hk-text-light); margin-bottom: 0.8rem; line-height: 1.8; }

/* ====== 按钮 ====== */
.btn-hk {
    background: var(--hk-primary); color: #fff; border: none;
    padding: 0.6rem 2rem; border-radius: 50px; font-weight: 500; transition: var(--hk-transition);
}
.btn-hk:hover { background: var(--hk-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,102,204,0.3); }
.btn-hk-outline {
    background: transparent; color: var(--hk-primary); border: 2px solid var(--hk-primary);
    padding: 0.5rem 1.8rem; border-radius: 50px; font-weight: 500; transition: var(--hk-transition);
}
.btn-hk-outline:hover { background: var(--hk-primary); color: #fff; }

/* ====== 应用领域卡片 ====== */
.app-card {
    text-align: center; padding: 2rem 1rem; border-radius: var(--hk-radius);
    background: #fff; box-shadow: var(--hk-shadow); transition: var(--hk-transition);
    border: 1px solid var(--hk-border); height: 100%;
}
.app-card:hover { transform: translateY(-5px); border-color: var(--hk-primary); }
.app-icon {
    width: 64px; height: 64px; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center;
    background: var(--hk-primary-light); border-radius: 50%; color: var(--hk-primary);
}
.app-card h5 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.app-card p { font-size: 0.85rem; color: var(--hk-text-light); margin-bottom: 0; }

/* ====== 合作伙伴 ====== */
.partner-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.partner-item {
    background: #fff; border: 1px solid var(--hk-border); border-radius: 8px;
    padding: 0.8rem 1.5rem; font-size: 0.95rem; font-weight: 600;
    color: var(--hk-text-light); transition: var(--hk-transition);
}
.partner-item:hover { border-color: var(--hk-primary); color: var(--hk-primary); transform: translateY(-2px); }

/* ====== 时间线 ====== */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
    content: ""; position: absolute; left: 6px; top: 0; bottom: 0;
    width: 2px; background: linear-gradient(to bottom, var(--hk-primary), var(--hk-accent));
}
.timeline-item { position: relative; padding-bottom: 1.5rem; }
.timeline-item::before {
    content: ""; position: absolute; left: -2rem; top: 0.3rem;
    width: 14px; height: 14px; border-radius: 50%; background: var(--hk-primary);
    border: 3px solid #fff; box-shadow: 0 0 0 2px var(--hk-primary);
}
.timeline-year { font-size: 1.1rem; font-weight: 700; color: var(--hk-primary); margin-bottom: 0.2rem; }
.timeline-text { color: var(--hk-text-light); font-size: 0.9rem; margin-bottom: 0; }

/* ====== 新闻列表 ====== */
.news-item {
    display: flex; align-items: center; gap: 1rem; padding: 1.2rem;
    border-radius: var(--hk-radius); background: #fff; border: 1px solid var(--hk-border);
    margin-bottom: 1rem; transition: var(--hk-transition);
}
.news-item:hover { border-color: var(--hk-primary); box-shadow: var(--hk-shadow); transform: translateX(4px); }
.news-date { flex-shrink: 0; text-align: center; min-width: 70px; }
.news-date .day { font-size: 1.5rem; font-weight: 700; color: var(--hk-primary); line-height: 1; }
.news-date .month { font-size: 0.75rem; color: var(--hk-text-light); }
.news-title { font-size: 1rem; font-weight: 500; color: var(--hk-text); margin-bottom: 0.2rem; }
.news-summary { font-size: 0.85rem; color: var(--hk-text-light); margin-bottom: 0; }

@media (max-width: 576px) {
    .news-item { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* ====== 联系信息 ====== */
.contact-info-item { display: flex; align-items: flex-start; gap: 0.8rem; margin-bottom: 1.2rem; }
.contact-info-icon {
    flex-shrink: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    background: var(--hk-primary-light); border-radius: 8px; color: var(--hk-primary);
}
.contact-info-text .label { font-size: 0.8rem; color: var(--hk-text-light); margin-bottom: 0.1rem; }
.contact-info-text .value { font-size: 0.95rem; font-weight: 500; color: var(--hk-text); }

/* ====== 页脚 ====== */
.site-footer { background: #1a1a2e; color: #b8b8c8; padding: 3rem 0 1.5rem; }
.footer-title { color: #fff; font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; }
.footer-label { color: #8888a0; font-weight: 500; }
.text-muted-light { color: #8888a0 !important; font-size: 0.9rem; }
.footer-divider { border-color: #2a2a3e; margin: 2rem 0 1rem; }
.footer-link { color: #8888a0; font-size: 0.85rem; transition: var(--hk-transition); }
.footer-link:hover { color: #fff; }
.site-footer p { font-size: 0.9rem; margin-bottom: 0.4rem; }

/* ====== 手机底部联系条 ====== */
.mobile-contact-bar {
    position: fixed; bottom: 0; left: 0; right: 0; display: flex; z-index: 1030;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}
.mc-btn {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; padding: 0.5rem; font-size: 0.75rem; font-weight: 500;
    text-decoration: none; transition: var(--hk-transition);
}
.mc-call { background: var(--hk-primary); color: #fff; }
.mc-call:hover { background: var(--hk-primary-dark); color: #fff; }
.mc-msg { background: var(--hk-accent); color: #fff; }
.mc-msg:hover { background: #007ba8; color: #fff; }

/* ====== 页面横幅 ====== */
.page-banner {
    background: linear-gradient(135deg, #0066cc 0%, #0099cc 100%);
    color: #fff; padding: 3rem 0; text-align: center;
}
.page-banner h1 { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.page-banner p { opacity: 0.85; font-size: 0.95rem; margin-bottom: 0; }

@media (max-width: 768px) {
    .page-banner { padding: 2rem 0; }
    .page-banner h1 { font-size: 1.5rem; }
}

/* ====== 搜索栏 ====== */
.search-bar { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin-bottom: 2rem; }
.search-bar .form-control, .search-bar .form-select {
    border-radius: 8px; border: 1px solid var(--hk-border); padding: 0.6rem 1rem;
}
.search-bar .form-control:focus, .search-bar .form-select:focus {
    border-color: var(--hk-primary); box-shadow: 0 0 0 0.2rem rgba(0,102,204,0.15);
}

/* ====== 优势卡片 ====== */
.advantage-card {
    text-align: center; padding: 1.8rem 1rem; border-radius: var(--hk-radius);
    background: #fff; box-shadow: var(--hk-shadow); border: 1px solid var(--hk-border);
    transition: var(--hk-transition); height: 100%;
}
.advantage-card:hover { transform: translateY(-5px); border-color: var(--hk-primary); }
.advantage-icon {
    width: 56px; height: 56px; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center;
    background: var(--hk-primary-light); border-radius: 12px; color: var(--hk-primary);
}
.advantage-card h5 { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }
.advantage-card p { font-size: 0.85rem; color: var(--hk-text-light); margin-bottom: 0; }

/* ====== 图片轮播 ====== */
.size-swiper-wrap { margin: 2rem 0; }
.size-swiper-wrap h4 { text-align: center; margin-bottom: 1rem; font-weight: 600; }
.carousel-inner img { width: 100%; object-fit: contain; max-height: 500px; border-radius: var(--hk-radius); }
@media (max-width: 768px) {
    .carousel-inner img { max-height: 300px; }
}

/* 轮播翻页按钮 */
.carousel-control-prev,
.carousel-control-next {
    width: 56px;
    height: 56px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border: 2px solid var(--hk-primary);
    opacity: 1;
    transition: var(--hk-transition);
    z-index: 5;
}
.carousel-control-prev {
    left: 10px;
}
.carousel-control-next {
    right: 10px;
}
.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--hk-primary);
    box-shadow: 0 6px 24px rgba(0, 102, 204, 0.35);
    transform: translateY(-50%) scale(1.1);
}
.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    filter: brightness(0) invert(1);
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
    background-image: none;
    filter: brightness(0);
    position: relative;
}
.carousel-control-prev-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-left: 3px solid var(--hk-primary);
    border-bottom: 3px solid var(--hk-primary);
    transform: translate(-50%, -50%) rotate(45deg);
}
.carousel-control-next-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    border-right: 3px solid var(--hk-primary);
    border-top: 3px solid var(--hk-primary);
    transform: translate(-50%, -50%) rotate(45deg);
}
.carousel-control-prev:hover .carousel-control-prev-icon::after,
.carousel-control-next:hover .carousel-control-next-icon::after {
    border-color: #fff;
}
/* hover 时按钮内的箭头变白 */
.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    filter: none;
}

@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 44px;
        height: 44px;
    }
    .carousel-control-prev { left: 4px; }
    .carousel-control-next { right: 4px; }
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 18px;
        height: 18px;
    }
    .carousel-control-prev-icon::after,
    .carousel-control-next-icon::after {
        width: 11px;
        height: 11px;
        border-width: 2px;
    }
}

/* ====== 表单 ====== */
.contact-form .form-control, .contact-form .form-select {
    border-radius: 8px; border: 1px solid var(--hk-border); padding: 0.7rem 1rem; transition: var(--hk-transition);
}
.contact-form .form-control:focus, .contact-form .form-select:focus {
    border-color: var(--hk-primary); box-shadow: 0 0 0 0.2rem rgba(0,102,204,0.15);
}
.btn-submit {
    background: var(--hk-primary); color: #fff; border: none;
    padding: 0.7rem 2.5rem; border-radius: 8px; font-weight: 500; transition: var(--hk-transition);
}
.btn-submit:hover { background: var(--hk-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,102,204,0.3); }

/* ====== Bootstrap 兼容 ====== */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}
