/* ===================================================
   南京苏河电子科技有限责任公司 - 企业官网
   设计风格：深蓝科技风 · 现代 · 简约
   主色：#0a1628 (深蓝) / #1a6fc4 (亮蓝) / #e8a838 (金色)
   =================================================== */

/* ===================== 基础 ===================== */
:root {
    --primary: #0a1628;
    --primary-light: #1a6fc4;
    --primary-dark: #060f1c;
    --accent: #e8a838;
    --accent-hover: #d4921e;
    --gray-100: #f8f9fc;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --text-dark: #1a1a2e;
    --text-light: #f8f9fa;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
* { box-sizing: border-box; }
body {
    font-family: "Inter", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    padding-top: 80px;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { text-decoration: none; color: var(--primary-light); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }

/* ===================== 导航 ===================== */
.navbar-main {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1030;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    min-height: 80px;
    transition: var(--transition);
}
.navbar-main.scrolled {
    background: rgba(10, 22, 40, 0.98);
    box-shadow: 0 2px 30px rgba(0,0,0,0.3);
}
.navbar-main .navbar-brand {
    display: flex;
    align-items: center;
    padding: 10px 0;
}
.navbar-main .brand-logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    font-weight: 800;
    margin-right: 12px;
}
.navbar-main .brand-text {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.navbar-main .brand-sub {
    display: block;
    font-size: 0.65rem;
    color: var(--accent);
    font-weight: 400;
    letter-spacing: 2px;
    margin-top: -2px;
}
.navbar-main .nav-link {
    color: rgba(255,255,255,0.75) !important;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.5rem 1.1rem !important;
    transition: var(--transition);
    position: relative;
}
.navbar-main .nav-link:hover { color: #fff !important; }
.navbar-main .nav-link.active {
    color: var(--accent) !important;
}
.navbar-main .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 1.1rem;
    right: 1.1rem;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}
.navbar-main .navbar-toggler {
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.4rem 0.6rem;
}
.navbar-main .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===================== Hero ===================== */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-section .hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--primary);
}
.hero-section .hero-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(10,22,40,0.92) 0%, rgba(10,22,40,0.7) 50%, rgba(26,111,196,0.3) 100%);
}
.hero-section .hero-content {
    position: relative;
    z-index: 2;
    padding: 6rem 0;
}
.hero-section .hero-badge {
    display: inline-block;
    background: rgba(232, 168, 56, 0.15);
    border: 1px solid rgba(232, 168, 56, 0.3);
    color: var(--accent);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    backdrop-filter: blur(4px);
}
.hero-section h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1.2rem;
}
.hero-section h1 span {
    background: linear-gradient(135deg, var(--accent), #f5c842);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-section .hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    line-height: 1.8;
    margin-bottom: 2rem;
}
.hero-cta .btn-primary {
    background: linear-gradient(135deg, var(--accent), #d4921e);
    border: none;
    color: var(--primary);
    font-weight: 700;
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(232,168,56,0.3);
}
.hero-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232,168,56,0.4);
}
.hero-cta .btn-outline-light {
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    background: transparent;
}
.hero-cta .btn-outline-light:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

/* hero stats */
.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stats .stat-item h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0;
}
.hero-stats .stat-item p {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===================== 通用章节 ===================== */
.section { padding: 5rem 0; }
.section-alt { background: var(--gray-100); }
.section-dark {
    background: var(--primary);
    color: #fff;
}
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-header .section-label {
    display: inline-block;
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
}
.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}
.section-header p {
    color: var(--gray-600);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}
.section-dark .section-header h2 { color: #fff; }
.section-dark .section-header p { color: rgba(255,255,255,0.6); }

/* ===================== 关于预览(首页) ===================== */
.about-preview {
    position: relative;
}
.about-preview .about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}
.about-preview .about-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: var(--transition);
}
.about-preview .about-image:hover img { transform: scale(1.03); }
.about-preview .about-image .exp-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--accent);
    color: var(--primary);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: var(--shadow-lg);
}
.about-preview .about-image .exp-badge span:first-child {
    font-size: 2rem;
    line-height: 1;
}
.about-preview .about-image .exp-badge span:last-child {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.about-preview .about-text {
    padding-left: 2rem;
}
.about-preview .about-text p {
    color: var(--gray-600);
    line-height: 1.9;
    font-size: 1.02rem;
}
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-top: 1.5rem;
}
.about-features .feature-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}
.about-features .feature-item i {
    color: var(--primary-light);
    font-size: 1.1rem;
}

/* ===================== 产品/服务卡片 ===================== */
.product-grid { margin-top: 2rem; }
.product-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--primary-light), var(--accent));
    transition: height 0.4s ease;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.product-card:hover::before { height: 100%; }
.product-card .card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(26,111,196,0.08), rgba(232,168,56,0.08));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-light);
    margin-bottom: 1.2rem;
    transition: var(--transition);
}
.product-card:hover .card-icon {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    color: #fff;
}
.product-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-dark);
}
.product-card p {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}
.product-card .card-link {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition);
}
.product-card:hover .card-link { color: var(--accent); gap: 0.6rem; }

/* ===================== 案例卡片 ===================== */
.case-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    height: 100%;
}
.case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.case-card .case-img {
    height: 240px;
    overflow: hidden;
    position: relative;
}
.case-card .case-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.case-card:hover .case-img img { transform: scale(1.08); }
.case-card .case-img .case-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: var(--primary);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.case-card .case-body {
    padding: 1.3rem;
}
.case-card .case-body h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.case-card .case-body p {
    color: var(--gray-600);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ===================== 数据统计 ===================== */
.stats-section {
    background: linear-gradient(135deg, var(--primary), #0d2b56);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}
.stats-section::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(26,111,196,0.1) 0%, transparent 50%);
}
.stat-counter { text-align: center; position: relative; z-index: 1; }
.stat-counter .stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}
.stat-counter .stat-number::after {
    content: '+';
    color: var(--accent);
}
.stat-counter .stat-label {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    letter-spacing: 1px;
}

/* ===================== 优势/特色 ===================== */
.advantage-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
}
.advantage-card:hover {
    background: #fff;
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.advantage-card .adv-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.2rem;
    background: linear-gradient(135deg, var(--primary-light), #4a8fd4);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}
.advantage-card h5 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.advantage-card p {
    color: var(--gray-600);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ===================== 关于页 ===================== */
.page-hero {
    background: linear-gradient(135deg, var(--primary), #0d2b56);
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('/static/images/hero/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.08;
}
.page-hero .page-hero-content { position: relative; z-index: 1; }
.page-hero h1 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.page-hero .breadcrumb {
    background: transparent;
    justify-content: center;
    margin-bottom: 0;
}
.page-hero .breadcrumb-item,
.page-hero .breadcrumb-item a { color: rgba(255,255,255,0.6); }
.page-hero .breadcrumb-item.active { color: var(--accent); }
.page-hero .breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,0.3); }

.about-content { line-height: 1.9; color: var(--gray-600); font-size: 1.02rem; }
.about-content h3 { color: var(--text-dark); font-weight: 700; margin: 1.5rem 0 1rem; }
.about-content ul { padding-left: 1.2rem; }
.about-content ul li { margin-bottom: 0.5rem; }
.about-content ul li::marker { color: var(--primary-light); }

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-light), var(--accent));
}
.timeline-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 2rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-light);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--primary-light);
}
.timeline-item .year {
    font-weight: 800;
    color: var(--accent);
    font-size: 1.1rem;
}

/* ===================== 联系方式页 ===================== */
.contact-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    height: 100%;
}
.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.contact-card .contact-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(26,111,196,0.1), rgba(232,168,56,0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-light);
}
.contact-card h5 { font-weight: 700; margin-bottom: 0.5rem; }
.contact-card p { color: var(--gray-600); margin-bottom: 0; font-size: 0.9rem; }

.contact-form-wrap {
    background: #fff;
    border-radius: var(--radius);
    padding: 2.5rem;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}
.contact-form-wrap .form-control {
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    transition: var(--transition);
}
.contact-form-wrap .form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(26,111,196,0.1);
}
.contact-form-wrap .form-label { font-weight: 600; font-size: 0.9rem; color: var(--text-dark); }

/* ===================== 招聘页 ===================== */
.job-item {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.8rem;
    margin-bottom: 1.2rem;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}
.job-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}
.job-item .job-title {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.1rem;
}
.job-item .job-location {
    display: inline-block;
    background: rgba(26,111,196,0.08);
    color: var(--primary-light);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}
.job-item .job-desc { color: var(--gray-600); font-size: 0.9rem; line-height: 1.7; margin-top: 1rem; }

/* ===================== 页脚 ===================== */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.6);
    padding: 4rem 0 0;
}
.footer h5 {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
}
.footer p, .footer a { color: rgba(255,255,255,0.5); font-size: 0.88rem; line-height: 1.8; }
.footer a:hover { color: var(--accent); }
.footer .footer-links { list-style: none; padding: 0; }
.footer .footer-links li { margin-bottom: 0.5rem; }
.footer .footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.footer .footer-links a:hover { color: var(--accent); padding-left: 3px; }
.footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 1.5rem 0;
    margin-top: 3rem;
    text-align: center;
    font-size: 0.82rem;
}
.footer .footer-bottom a { color: rgba(255,255,255,0.4); }

/* ===================== CTA Section ===================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary), #0d2b56);
    padding: 4rem 0;
    text-align: center;
}
.cta-section h2 { color: #fff; font-weight: 800; font-size: 2rem; }
.cta-section p { color: rgba(255,255,255,0.6); margin-bottom: 2rem; }
.cta-section .btn-cta {
    background: var(--accent);
    color: var(--primary);
    font-weight: 700;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    transition: var(--transition);
}
.cta-section .btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232,168,56,0.4);
}

/* ===================== 动画 ===================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ===================== 响应式 ===================== */
@media (max-width: 991px) {
    .hero-section h1 { font-size: 2.2rem; }
    .about-preview .about-text { padding-left: 0; margin-top: 2rem; }
    .hero-stats { flex-wrap: wrap; gap: 1rem; }
    .hero-stats .stat-item { flex: 1; min-width: 100px; }
}
@media (max-width: 767px) {
    body { padding-top: 68px; }
    .navbar-main { min-height: 68px; }
    .hero-section { min-height: 70vh; }
    .hero-section h1 { font-size: 1.8rem; }
    .hero-section .hero-subtitle { font-size: 1rem; }
    .section { padding: 3rem 0; }
    .section-header h2 { font-size: 1.6rem; }
    .page-hero { padding: 4rem 0 3rem; }
    .page-hero h1 { font-size: 1.8rem; }
    .stat-counter .stat-number { font-size: 2rem; }
    .about-features { grid-template-columns: 1fr; }
    .about-preview .about-image .exp-badge {
        width: 90px; height: 90px;
        bottom: -15px; right: -15px;
    }
    .about-preview .about-image .exp-badge span:first-child { font-size: 1.5rem; }
    .about-preview .about-image img { height: 300px; }
}
