@charset "utf-8";
/* ========================================
   深圳市捷沛科技有限公司 - IC芯片贸易
   参考风格：jeper.cn
   ======================================== */

/* ---- Reset & Base ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: "Microsoft YaHei", "微软雅黑", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; border: 0; vertical-align: top; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul, ol { list-style: none; }
.clearfix::after { content: ""; display: block; clear: both; }

/* ---- Variables ---- */
:root {
    --primary: #09409A;
    --primary-dark: #062d6d;
    --accent: #FF9900;
    --text: #333;
    --text-light: #666;
    --text-muted: #999;
    --bg: #fff;
    --bg-gray: #f5f5f5;
    --footer-bg: #363636;
    --footer-border: #595959;
    --max-width: 1400px;
}

/* ---- Layout ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 36px;
    font-weight: normal;
    color: var(--text);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}
.section-title h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}
.section-title p {
    font-size: 16px;
    color: var(--text-muted);
    margin-top: 10px;
}

/* ---- Header ---- */
.header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    z-index: 9999;
    transition: all 0.3s;
}
.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-icon {
    width: 50px; height: 50px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    position: relative;
}
.logo-icon::before {
    content: "";
    position: absolute;
    top: 6px; right: 6px;
    width: 10px; height: 10px;
    background: var(--accent);
    border-radius: 50%;
}
.logo-text h1 {
    font-size: 20px;
    font-weight: bold;
    color: var(--text);
    line-height: 1.2;
}
.logo-text span {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ---- Navigation ---- */
.nav-desktop { display: flex; align-items: center; gap: 5px; }
.nav-desktop > li { position: relative; }
.nav-desktop > li > a {
    display: block;
    padding: 0 22px;
    line-height: 90px;
    font-size: 15px;
    color: var(--text);
    position: relative;
    white-space: nowrap;
}
.nav-desktop > li > a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s;
}
.nav-desktop > li:hover > a,
.nav-desktop > li > a.active {
    color: var(--primary);
}
.nav-desktop > li:hover > a::after,
.nav-desktop > li > a.active::after {
    width: 100%;
}

/* Dropdown */
.nav-desktop .sub {
    position: absolute;
    top: 90px;
    left: 0;
    min-width: 200px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    border-top: 2px solid var(--primary);
    padding: 8px 0;
}
.nav-desktop > li:hover .sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-desktop .sub li a {
    display: block;
    padding: 10px 25px;
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
}
.nav-desktop .sub li:last-child a { border-bottom: none; }
.nav-desktop .sub li a:hover {
    color: var(--primary);
    background: #f8fbff;
    padding-left: 30px;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    width: 36px; height: 36px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
}

/* Mobile Menu */
@media (max-width: 992px) {
    .nav-desktop {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        flex-direction: column;
        padding: 10px 0;
    }
    .nav-desktop.mobile-open {
        display: flex;
    }
    .nav-desktop > li {
        width: 100%;
    }
    .nav-desktop > li > a {
        line-height: 50px;
        padding: 0 20px;
        border-bottom: 1px solid #f0f0f0;
    }
    .nav-desktop .sub {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        padding: 0;
        display: none;
    }
    .nav-desktop > li:hover .sub,
    .nav-desktop > li.active .sub {
        display: block;
    }
}

/* ---- Banner ---- */
.banner {
    margin-top: 90px;
    position: relative;
    overflow: hidden;
}
.banner-slide {
    position: relative;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}
.banner-slide .bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}
.banner-slide .bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,20,60,0.55);
}
.banner-slide .content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}
.banner-slide h2 {
    font-size: 48px;
    font-weight: normal;
    margin-bottom: 20px;
    letter-spacing: 2px;
}
.banner-slide p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 35px;
    opacity: 0.95;
}
.btn-primary {
    display: inline-block;
    padding: 12px 36px;
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    font-size: 15px;
    border: 1px solid var(--primary);
    transition: all 0.3s;
    cursor: pointer;
}
.btn-primary:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
}
.btn-outline {
    display: inline-block;
    padding: 10px 32px;
    border: 1px solid #fff;
    color: #fff;
    border-radius: 50px;
    font-size: 14px;
    transition: all 0.3s;
}
.btn-outline:hover {
    background: #fff;
    color: var(--primary);
}

/* Banner dots */
.banner-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}
.banner-dots span {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
}
.banner-dots span.active,
.banner-dots span:hover {
    background: #fff;
}

/* ---- Brands / Partners ---- */
.brands-section { background: var(--bg-gray); padding: 60px 0; }
.brand-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
}
.brand-item {
    background: #fff;
    border: 1px solid #eee;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}
.brand-item:hover {
    box-shadow: 0 8px 24px rgba(9,64,154,0.1);
    border-color: var(--primary);
    transform: translateY(-3px);
}
.brand-item .icon {
    width: 60px; height: 60px;
    margin: 0 auto 12px;
    background: #f0f4fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary);
    font-weight: bold;
}
.brand-item h4 {
    font-size: 15px;
    color: var(--text);
    font-weight: normal;
}

/* ---- Application Areas ---- */
.app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.app-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    height: 280px;
}
.app-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.app-item:hover img { transform: scale(1.08); }
.app-item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(9,64,154,0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.3s;
}
.app-item:hover .overlay {
    background: rgba(9,64,154,0.6);
}
.app-item h3 {
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 15px;
}
.app-item .app-icon {
    font-size: 40px;
    margin-bottom: 10px;
    opacity: 0.9;
}

/* ---- About Section ---- */
.about-section { background: var(--bg-gray); }
.about-wrap {
    display: flex;
    gap: 50px;
    align-items: center;
}
.about-left { flex: 1; }
.about-left h3 {
    font-size: 28px;
    color: var(--text);
    margin-bottom: 20px;
    font-weight: normal;
}
.about-left h3 span { color: var(--primary); font-weight: bold; }
.about-left p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 2;
    margin-bottom: 25px;
}
.about-right {
    flex: 1;
    position: relative;
}
.about-right .about-img {
    width: 100%;
    height: 380px;
    background: linear-gradient(135deg, #e8eff8 0%, #d4e3f7 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.about-right .about-img::before {
    content: "CHIP SUPPLY";
    position: absolute;
    font-size: 60px;
    font-weight: bold;
    color: rgba(9,64,154,0.06);
    letter-spacing: 8px;
}
.about-right .about-img svg {
    width: 180px;
    height: 180px;
    opacity: 0.3;
}

/* Stats */
.stats-row {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}
.stat-item {
    text-align: center;
}
.stat-item .num {
    font-size: 42px;
    color: var(--primary);
    font-weight: bold;
    line-height: 1;
}
.stat-item .num span { font-size: 18px; vertical-align: top; }
.stat-item .label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ---- Products ---- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s;
}
.product-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-4px);
    border-color: var(--primary);
}
.product-img {
    height: 180px;
    background: linear-gradient(135deg, #f5f8fc 0%, #e8eff8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.product-img .chip-icon {
    width: 80px; height: 80px;
    border: 3px solid var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    font-size: 12px;
    color: var(--primary);
    font-weight: bold;
}
.product-img .chip-icon::before {
    content: "";
    position: absolute;
    width: 100px; height: 100px;
    border: 1px dashed rgba(9,64,154,0.15);
    border-radius: 50%;
}
.product-info { padding: 20px; }
.product-info h4 {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 8px;
}
.product-info p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}
.product-tag {
    display: inline-block;
    padding: 3px 12px;
    background: #f0f4fa;
    color: var(--primary);
    font-size: 12px;
    border-radius: 3px;
    margin-top: 12px;
}

/* ---- News ---- */
.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.news-featured {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    height: 100%;
    min-height: 360px;
}
.news-featured img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.news-featured .news-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 40px 25px 25px;
    color: #fff;
}
.news-featured .news-overlay .date {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 8px;
}
.news-featured .news-overlay h3 {
    font-size: 18px;
    font-weight: normal;
    line-height: 1.5;
}

.news-list { display: flex; flex-direction: column; gap: 18px; }
.news-item {
    display: flex;
    gap: 18px;
    padding: 18px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    transition: all 0.3s;
}
.news-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(9,64,154,0.06);
}
.news-item .date-box {
    width: 60px;
    text-align: center;
    flex-shrink: 0;
}
.news-item .date-box .day {
    font-size: 28px;
    color: var(--primary);
    font-weight: bold;
    line-height: 1;
}
.news-item .date-box .year {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}
.news-item .news-body h4 {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.4;
}
.news-item .news-body p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- Contact Page ---- */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.contact-info h3 {
    font-size: 22px;
    margin-bottom: 25px;
    color: var(--text);
    font-weight: normal;
}
.contact-info .info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}
.contact-info .info-icon {
    width: 44px; height: 44px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.contact-info .info-text h4 {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 4px;
}
.contact-info .info-text p {
    font-size: 14px;
    color: var(--text-light);
}

.contact-form {
    background: var(--bg-gray);
    padding: 40px;
    border-radius: 8px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ---- Footer ---- */
.footer {
    background: var(--footer-bg);
    color: #999;
    padding-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--footer-border);
}
.footer-col h4 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 20px;
    font-weight: normal;
    position: relative;
    padding-bottom: 12px;
}
.footer-col h4::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}
.footer-col p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    font-size: 14px;
    color: #999;
    transition: color 0.3s;
}
.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #777;
}
.footer-bottom a { color: #aaa; }
.footer-bottom a:hover { color: #fff; }

/* ---- Sidebar Float ---- */
.side-float {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9998;
    display: flex;
    flex-direction: column;
}
.side-float a {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
    transition: all 0.3s;
}
.side-float a:hover {
    background: var(--primary-dark);
    width: 55px;
}
.side-float a .side-tip {
    position: absolute;
    right: 60px;
    white-space: nowrap;
    background: var(--primary);
    color: #fff;
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s;
}
.side-float a:hover .side-tip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}
.side-float a:last-child { border-bottom: none; }

/* ---- Breadcrumb ---- */
.breadcrumb-bar {
    margin-top: 90px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 50px 0;
    text-align: center;
    color: #fff;
}
.breadcrumb-bar h2 {
    font-size: 32px;
    font-weight: normal;
    margin-bottom: 10px;
}
.breadcrumb-bar p {
    font-size: 14px;
    opacity: 0.8;
}

/* ---- Page Content ---- */
.page-content {
    padding: 50px 0 80px;
}
.page-content p {
    font-size: 15px;
    line-height: 2;
    color: var(--text-light);
    margin-bottom: 20px;
}
.page-content h3 {
    font-size: 22px;
    color: var(--text);
    margin: 30px 0 15px;
    font-weight: normal;
    padding-left: 15px;
    border-left: 3px solid var(--primary);
}
.page-content ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
}
.page-content ul li {
    font-size: 15px;
    color: var(--text-light);
    line-height: 2;
}

/* ---- Applications Page Cards ---- */
.app-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.app-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}
.app-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: var(--primary);
}
.app-card-img {
    height: 200px;
    background: linear-gradient(135deg, #e8eff8, #d4e3f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--primary);
    opacity: 0.8;
}
.app-card-body { padding: 25px; }
.app-card-body h4 {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 12px;
}
.app-card-body p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
    .brand-grid { grid-template-columns: repeat(4, 1fr); }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 992px) {
    .nav-desktop { display: none; }
    .nav-toggle { display: flex; }
    .about-wrap { flex-direction: column; }
    .app-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: 1fr; }
    .contact-wrap { grid-template-columns: 1fr; }
    .banner-slide { height: 400px; }
    .banner-slide h2 { font-size: 32px; }
    .app-card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .brand-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .app-grid { grid-template-columns: 1fr; }
    .stats-row { flex-wrap: wrap; justify-content: center; }
    .footer-grid { grid-template-columns: 1fr; }
    .side-float { display: none; }
    .banner-slide { height: 320px; }
    .banner-slide h2 { font-size: 24px; }
    .banner-slide p { font-size: 14px; }
    .section-title h2 { font-size: 26px; }
    .app-card-grid { grid-template-columns: 1fr; }
    .about-right .about-img { height: 260px; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
    .brand-grid { grid-template-columns: 1fr; }
}
