/* ===== Fonts ===== */
@font-face {
    font-family: 'Oswald-Bold';
    src: url('../fonts/Oswald-Bold.eot');
    src: url('../fonts/Oswald-Bold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Oswald-Bold.woff2') format('woff2'),
         url('../fonts/Oswald-Bold.woff') format('woff'),
         url('../fonts/Oswald-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #f39c12;
    --primary-dark: #e67e22;
    --primary-light: #f5b041;
    --text-dark: #333;
    --text-gray: #666;
    --text-light: #999;
    --bg-dark: #2c3e50;
    --bg-darker: #1a252f;
    --bg-light: #f8f8f8;
    --border: #e0e0e0;
    --white: #fff;
    --transition: all 0.3s ease;
}

body {
    font-family: "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
    font-size: 14px;
    opacity: 0;
    animation: fadeInPage 0.8s ease-out forwards;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 60px;
}

.section {
    padding: 70px 60px;
}

/* ===== 顶部联系栏 ===== */
.top-bar {
    background: var(--bg-darker);
    color: var(--white);
    height: 36px;
    line-height: 36px;
    padding: 0 20px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a:hover {
    color: var(--primary);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* ===== 头部导航 ===== */
.header {
    background: rgba(30, 40, 50, 0.6);
    position: absolute;
    top: 36px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 60px;
}

.header.scrolled {
    background: rgba(30, 40, 50, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
}

.header.scrolled .nav-menu a {
    color: var(--white);
}

.header.scrolled .menu-toggle span {
    background: var(--white);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav {
    width: 1200px;
    margin: 0 auto;
}

.nav-menu {
    display: flex;
    gap: 0;
    flex: 1;
    justify-content: space-around;
    padding: 0 40px;
}

.nav-menu > li {
    flex: 1;
    text-align: center;
}

.nav-menu a {
    font-size: 15px;
    color: var(--white);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    display: inline-block;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

/* ===== 二级下拉菜单 ===== */
.nav-menu .has-dropdown {
    position: relative;
}

.nav-menu .has-dropdown > a::after {
    content: " ▾";
    font-size: 12px;
    margin-left: 4px;
}

.nav-menu .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -15px;
    background: rgba(30, 40, 50, 0.95);
    min-width: 240px;
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    flex-direction: column;
    gap: 0;
}

.nav-menu .has-dropdown:hover .dropdown-menu {
    display: flex;
}

.nav-menu .dropdown-menu li {
    width: 100%;
}

.nav-menu .dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--white);
    font-weight: 400;
    white-space: nowrap;
}

.nav-menu .dropdown-menu a:hover {
    background: var(--primary);
    color: var(--white);
}

.nav-menu .dropdown-menu a:hover::after,
.nav-menu .dropdown-menu a.active::after {
    display: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
}

/* ===== Hero 轮播图 ===== */
.banner {
    position: relative;
    height: 900px;
    overflow: hidden;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.banner-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.banner-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.banner-dots {
    display: flex;
    gap: 10px;
}

.banner-dot {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.banner-dot.active,
.banner-dot:hover {
    background: var(--primary);
    color: var(--white);
}

/* ===== 章节标题 ===== */
.section-title-wrap {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}

.section-title a:hover {
    color: var(--primary);
}

/* ===== 产品分类 ===== */
.product-category .section-title {
    font-family: 'Oswald-Bold', sans-serif;
    font-size: 48px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-item {
    background: var(--white);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}

.product-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.product-item a {
    display: block;
}

.product-item p a {
    display: inline;
    color: inherit;
    text-decoration: none;
}

.product-item img {
    width: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-item:hover img {
    transform: scale(1.05);
}

.product-item p {
    text-align: center;
    padding: 15px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    border-top: 1px solid var(--border);
}

.product-item:hover p {
    color: var(--primary);
    background: #fff8f0;
}

.view-more-center {
    text-align: center;
    margin-top: 35px;
}

.view-more {
    display: inline-block;
    padding: 8px 25px;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    border-radius: 3px;
    transition: var(--transition);
}

.view-more:hover {
    background: var(--primary);
    color: var(--white);
}

/* ===== 热销产品 ===== */
.best-selling {
    background: var(--bg-light);
}

.best-selling .section-title {
    font-family: 'Oswald-Bold', sans-serif;
    font-size: 48px;
}

.best-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.best-item {
    background: var(--white);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.best-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.best-item a img {
    width: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.best-item:hover a img {
    transform: scale(1.03);
}

.best-info {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.best-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.best-info h3 a {
    color: inherit;
    text-decoration: none;
}

/* ===== 应用案例 ===== */
.application-cases {
    padding: 60px 0;
}

.application-cases .section-title {
    font-family: 'Oswald-Bold', sans-serif;
    font-size: 48px;
}

.application-full {
    width: 100%;
}

.application-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    background: transparent;
}

.application-item {
    position: relative;
    overflow: hidden;
    background: #000;
}

.application-image {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.application-image img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.application-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.application-title a {
    color: #fff;
    text-decoration: none;
}

.application-item:hover .application-title {
    opacity: 0;
}

.application-item:hover .application-image img {
    transform: scale(1.03);
}

.application-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(243, 156, 18, 0.95);
    color: #fff;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 35px 30px;
    box-sizing: border-box;
    transition: top 0.5s ease;
    z-index: 2;
}

.application-item:hover .application-overlay {
    top: 0;
}

.application-content {
    color: var(--white);
    width: 100%;
}

.application-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    line-height: 1.4;
}

.application-content h3 a {
    color: #fff;
    text-decoration: none;
}

.application-content p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
    opacity: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.application-content .view-more {
    color: var(--white);
    border: none;
    border-bottom: 2px solid var(--white);
    padding: 6px 0;
    font-size: 14px;
    font-weight: 700;
}

.application-content .view-more:hover {
    background: transparent;
    color: #fff;
    opacity: 0.85;
}

/* ===== CTA 横幅 ===== */
.cta-banner {
    background: #f39c12;
    padding: 50px 60px;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.cta-text {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--white);
    font-family: 'Oswald-Bold', sans-serif;
    font-size: 48px;
    font-weight: 700;
}

.cta-icon {
    width: 40px;
    height: 40px;
}

.cta-btn {
    display: inline-block;
    padding: 12px 35px;
    background: var(--white);
    color: #f39c12;
    font-size: 15px;
    font-weight: 600;
    border-radius: 3px;
    transition: var(--transition);
}

.cta-btn:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
}

/* ===== 关于我们 ===== */
.about-section .section-title {
    font-family: 'Oswald-Bold', sans-serif;
    font-size: 48px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.about-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
}

.about-desc p {
    font-size: 14px;
    line-height: 2;
    color: var(--text-gray);
    margin-bottom: 15px;
    text-indent: 2em;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 30px 15px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.stat-item:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.stat-item:hover .stat-number,
.stat-item:hover .stat-label {
    color: var(--white);
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    transition: var(--transition);
}

.stat-label {
    font-size: 14px;
    color: var(--text-gray);
    transition: var(--transition);
}

/* ===== 新闻资讯 ===== */
.news-section {
    background: var(--bg-light);
}

.news-section .section-title {
    font-family: 'Oswald-Bold', sans-serif;
    font-size: 48px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.news-item {
    display: flex;
    flex-direction: row;
    gap: 15px;
    background: var(--white);
    padding: 15px;
    border: 1px solid var(--border);
    transition: var(--transition);
    align-items: flex-start;
    min-width: 0;
    overflow: hidden;
}

.news-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.news-img {
    flex-shrink: 0;
    width: 220px;
    max-width: 50%;
    height: 160px;
    overflow: hidden;
    transition: var(--transition);
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-item:hover .news-img img {
    transform: scale(1.05);
}

.news-content {
    flex: 1;
    overflow: hidden;
    text-align: left;
}

.news-date {
    display: block;
    font-size: 12px;
    color: var(--primary);
    margin-bottom: 5px;
}

.news-content h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-content h3 a:hover {
    color: var(--primary);
}

.news-content p {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-content .view-more {
    font-size: 12px;
    padding: 4px 12px;
    border-width: 1px;
}

/* ===== 页脚 ===== */
.footer {
    background: var(--bg-darker);
    color: rgba(255, 255, 255, 0.7);
    padding: 50px 60px 20px;
}

.footer-top {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-email,
.footer-phone {
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
}

.footer-email:hover,
.footer-phone:hover {
    color: var(--primary-light);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo-col .footer-logo img {
    height: 50px;
    margin-bottom: 15px;
}

.footer-company {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-contact-list li {
    font-size: 13px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.6);
}

.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.footer-bottom a:hover {
    color: var(--primary);
}

.footer-keywords {
    line-height: 1.8;
}

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
    .best-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .application-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .container,
    .section,
    .top-bar,
    .header,
    .cta-banner,
    .footer {
        padding-left: 30px;
        padding-right: 30px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container,
    .top-bar,
    .header,
    .cta-banner,
    .footer {
        padding-left: 15px;
        padding-right: 15px;
    }

    .section {
        padding: 20px 10px;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.85);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        color: var(--white);
    }

    .nav-menu .has-dropdown > a::after {
        content: " ▾";
    }

    .nav-menu .dropdown-menu {
        position: static;
        display: none;
        background: rgba(0, 0, 0, 0.3);
        box-shadow: none;
        min-width: 0;
        padding: 0 0 0 15px;
    }

    .nav-menu .has-dropdown.open .dropdown-menu {
        display: block;
    }

    .nav-menu .dropdown-menu a {
        padding: 10px 0;
        font-size: 13px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .menu-toggle {
        display: flex;
    }

    .header-inner {
        height: 60px;
    }

    .logo-img {
        height: 36px;
    }

    .nav {
        width: auto;
        margin: 0;
    }

    .banner {
        height: 300px;
    }

    .product-grid,
    .best-grid,
    .application-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-img {
        display: none;
    }

    .news-section .section-title {
        font-size: 22px;
    }

    .product-category .section-title {
        font-size: 22px;
    }

    .best-selling .section-title {
        font-size: 22px;
    }

    .application-cases .section-title {
        font-size: 22px;
    }

    .about-section .section-title {
        font-size: 22px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-desc p {
        text-align: justify;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cta-inner {
        justify-content: center;
        text-align: center;
    }

    .cta-text {
        font-size: 18px;
    }

    .cta-icon {
        display: none;
    }

    .best-info .view-more {
        display: none;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 30px 20px;
    }

    .footer-logo,
    .footer-phone {
        display: none;
    }

    .footer-main .footer-col:nth-child(3) {
        display: none;
    }

    .footer-main .footer-col:nth-child(2) {
        grid-column: 1 / -1;
    }

    .footer-logo-col {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-logo-col .footer-contact-list li {
        line-height: 1.8;
        margin-bottom: 4px;
    }

    .footer-company {
        font-size: 13px;
    }

    .footer-col h4 {
        margin-bottom: 12px;
    }

    .footer-bottom p {
        font-size: 11px;
    }

    .footer {
        padding: 30px 15px 15px;
    }

    .top-bar {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .top-bar-right {
        display: none;
    }
}
