/* 远华包装 - 企业官网样式 */
/* 参考：纸箱包装模板风格 */

:root {
    --primary: #255DAC;
    --primary-dark: #1a487f;
    --primary-light: #eef5fc;
    --text-dark: #2b2b2b;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border: #e8e8e8;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部栏 */
.top-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 22px;
    font-weight: bold;
}

.logo-text h1 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.2;
}

.logo-text span {
    font-size: 13px;
    color: var(--text-gray);
    display: block;
}

.top-phone {
    text-align: right;
}

.top-phone .label {
    font-size: 12px;
    color: var(--text-light);
    display: block;
}

.top-phone .number {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary);
}

/* 导航 */
.navbar {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    padding: 16px 40px;
    color: var(--white);
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

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

.nav-menu li a.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 3px;
    background: var(--white);
}

.mobile-menu-toggle {
    display: none;
    color: var(--white);
    font-size: 24px;
    padding: 12px 0;
    cursor: pointer;
}

/* Banner */
.banner {
    position: relative;
    height: 600px;
    background: linear-gradient(135deg, rgba(37, 93, 172, 0.85) 0%, rgba(37, 93, 172, 0.65) 100%),
                url('../images/equipment_main.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

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

.banner-subtitle {
    font-size: 22px;
    font-weight: 300;
    margin-bottom: 12px;
    opacity: 0.95;
}

.banner-title {
    font-size: 56px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.banner-title span {
    display: block;
}

.banner-desc {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 36px;
    max-width: 560px;
}

.banner-btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--white);
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
    border: 2px solid var(--white);
}

.banner-btn:hover {
    background: transparent;
    color: var(--white);
}

/* 区块标题 */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header.left {
    text-align: left;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.section-header .divider {
    width: 50px;
    height: 3px;
    background: var(--primary);
    margin: 0 auto 12px;
}

.section-header.left .divider {
    margin: 0 0 12px 0;
}

.section-header p {
    font-size: 14px;
    color: var(--text-gray);
}

.section {
    padding: 80px 0;
}

.section-bg {
    background: var(--bg-light);
}

/* 服务卡片 */
.services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: 8px;
    padding: 40px 24px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 28px;
    font-weight: bold;
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.service-card p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* 关于我们 */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text {
    color: var(--text-gray);
    line-height: 2;
    font-size: 14px;
}

.about-text p {
    margin-bottom: 16px;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.highlight-item {
    text-align: center;
    padding: 20px 0;
    border-right: 1px solid var(--border);
}

.highlight-item:last-child {
    border-right: none;
}

.highlight-item .num {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 6px;
}

.highlight-item .label {
    font-size: 13px;
    color: var(--text-gray);
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 8px;
    box-shadow: var(--shadow);
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.about-image .experience {
    position: absolute;
    bottom: -20px;
    left: 30px;
    background: var(--primary);
    color: var(--white);
    padding: 20px 30px;
    border-radius: 8px;
    text-align: center;
}

.about-image .experience .year {
    font-size: 42px;
    font-weight: bold;
    line-height: 1;
}

.about-image .experience .text {
    font-size: 14px;
    margin-top: 4px;
}

/* 产品中心 / 详情 合并 - 标签页 */
.product-tabs {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border);
}

.product-tab-headers {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
    background: var(--bg-light);
}

.tab-btn {
    flex: 1;
    min-width: 140px;
    padding: 18px 20px;
    border: none;
    background: transparent;
    color: var(--text-gray);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    font-family: inherit;
}

.tab-btn:hover {
    color: var(--primary);
    background: rgba(37, 93, 172, 0.04);
}

.tab-btn.active {
    color: var(--primary);
    background: var(--white);
    font-weight: 600;
}

.tab-btn.active::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
}

.product-tab-contents {
    padding: 50px;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: start;
}

.tab-images {
    background: #f5f7fa;
    border-radius: 8px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}

.tab-images img {
    max-width: 100%;
    max-height: 600px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.tab-images-stack {
    flex-direction: column;
    gap: 24px;
}

.tab-images-stack img {
    max-height: 500px;
}

.tab-text h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.tab-text ul {
    list-style: none;
}

.tab-text ul li {
    padding: 12px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-gray);
    border-bottom: 1px dashed var(--border);
    line-height: 1.8;
}

.tab-text ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 12px;
    color: var(--primary);
    font-weight: bold;
}

/* 工厂设备 */
.equipment-gallery {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.equipment-item {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
}

.equipment-item h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 24px;
    font-weight: 600;
}

.equipment-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.equipment-item:first-child img {
    max-width: 100%;
}

.equipment-item:last-child img {
    max-width: 720px;
}

/* 服务行业 */
.industries {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.industry-item {
    background: var(--primary);
    color: var(--white);
    padding: 24px;
    text-align: center;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
}

.industry-item:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.industry-stats {
    text-align: center;
    margin-bottom: 40px;
}

.industry-stats .big-num {
    font-size: 64px;
    font-weight: bold;
    color: var(--primary);
    line-height: 1;
}

.industry-stats .plus {
    color: #d32f2f;
    font-size: 48px;
}

.industry-stats p {
    font-size: 16px;
    color: var(--text-gray);
    margin-top: 12px;
}

/* 联系 */
.contact-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--white);
    padding: 80px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h2 {
    font-size: 28px;
    margin-bottom: 24px;
}

.contact-info h2 span {
    color: var(--primary);
}

.contact-info p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.8;
}

.contact-info .phone-list {
    margin-top: 24px;
}

.contact-info .phone-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.contact-info .phone-item .role {
    width: 80px;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

.contact-info .phone-item .tel {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
}

.qr-card {
    background: var(--white);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    color: var(--text-dark);
}

.qr-card img {
    max-width: 200px;
    margin: 0 auto 16px;
}

.qr-card h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.qr-card p {
    font-size: 13px;
    color: var(--text-gray);
}

/* 页脚 */
.footer {
    background: #111;
    color: rgba(255,255,255,0.6);
    padding: 30px 0;
    text-align: center;
    font-size: 13px;
}

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

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

    .tab-content-grid {
        grid-template-columns: 1fr;
    }

    .tab-images {
        min-height: auto;
        padding: 20px;
    }

    .tab-images img {
        max-height: 500px;
    }

    .product-tab-contents {
        padding: 30px;
    }

    .equipment-item {
        padding: 20px;
    }

    .equipment-item h3 {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .equipment-item:last-child img {
        max-width: 100%;
    }

    .banner-title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary);
        flex-direction: column;
    }

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

    .nav-menu li a {
        padding: 14px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .navbar .container {
        justify-content: space-between;
        align-items: center;
    }

    .services,
    .industries,
    .about-highlights {
        grid-template-columns: 1fr;
    }

    .product-tab-headers {
        flex-direction: column;
    }

    .tab-btn {
        min-width: 100%;
        text-align: left;
        padding: 14px 20px;
        border-bottom: 1px solid var(--border);
    }

    .tab-btn.active::after {
        width: 3px;
        height: 100%;
        top: 0;
        left: 0;
    }

    .product-tab-contents {
        padding: 24px 20px;
    }

    .tab-images {
        padding: 16px;
    }

    .tab-images img,
    .tab-images-stack img {
        max-height: 420px;
    }

    .tab-text h3 {
        font-size: 20px;
    }

    .highlight-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .highlight-item:last-child {
        border-bottom: none;
    }

    .equipment-gallery {
        gap: 24px;
    }

    .equipment-item {
        padding: 16px;
    }

    .banner {
        height: 500px;
    }

    .banner-title {
        font-size: 32px;
    }

    .banner-subtitle {
        font-size: 18px;
    }

    .banner-desc {
        font-size: 15px;
    }

    .section {
        padding: 50px 0;
    }

    .about-image .experience {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 20px;
    }

    .industry-stats .big-num {
        font-size: 48px;
    }
}
