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

:root {
    --primary-color: #1e88e5;
    --primary-dark: #1565c0;
    --primary-light: #bbdefb;
    --primary-bg: #e3f2fd;
    --accent-color: #e53935;
    --accent-dark: #c62828;
    --accent-light: #ffcdd2;
    --text-dark: #2c3e50;
    --text-secondary: #555555;
    --text-light: #607d8b;
    --bg-light: #f5f7fa;
    --white: #ffffff;
    --border-color: #e8ecf1;
    --shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    padding-top: 72px;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 1px 0 var(--border-color);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

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

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 18px;
    border-radius: 6px;
    transition: all 0.25s ease;
    position: relative;
}

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

.nav-menu a.active {
    color: var(--primary-color);
    background: var(--primary-bg);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

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

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 40%, #0d47a1 100%);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    overflow-y: auto;
}

.sidebar.active {
    right: 0;
}

.sidebar-logo {
    padding: 28px 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
}

.sidebar-logo img {
    max-height: 40px;
    filter: brightness(0) invert(1);
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 16px;
}

.sidebar-menu a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    font-weight: 500;
    padding: 14px 20px;
    border-radius: 10px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
}

.sidebar-menu a.active {
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sidebar-menu a .menu-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-menu a .menu-icon svg {
    width: 20px;
    height: 20px;
}

.sidebar-contact {
    margin: auto 16px 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-contact-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.sidebar-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
}

.sidebar-contact-item:last-child {
    margin-bottom: 0;
}

.sidebar-contact-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.7;
}

.sidebar-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 1;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
    backdrop-filter: blur(2px);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.banner {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.banner-slides {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--white);
    text-align: center;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.banner-slide h1 {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 2px;
    animation: fadeInUp 0.6s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.banner-slide p {
    font-size: 18px;
    max-width: 560px;
    opacity: 0.9;
    line-height: 1.8;
    animation: fadeInUp 0.6s ease 0.15s both;
}

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

.banner-controls {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active {
    background: var(--white);
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.banner-arrow.prev {
    left: 24px;
}

.banner-arrow.next {
    right: 24px;
}

/* Banner image constraints */
.banner-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.banner-slide {
    position: relative;
}

.banner-slide h1,
.banner-slide p {
    position: relative;
    z-index: 1;
}

.section {
    padding: 90px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-title span {
    color: var(--accent-color);
}

.section-subtitle {
    color: var(--text-light);
    font-size: 15px;
    margin-top: 18px;
}

.company-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-slider {
    position: relative;
    height: 360px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--bg-light);
    box-shadow: var(--shadow);
}

.intro-slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-bg), #f0f7ff);
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.intro-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.intro-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.intro-content p {
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.9;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(30, 136, 229, 0.35);
}

.btn-accent {
    background: var(--accent-color);
}

.btn-accent:hover {
    background: var(--accent-dark);
    box-shadow: 0 4px 16px rgba(229, 57, 53, 0.35);
}

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

.devices-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.device-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    display: flex;
    border: 1px solid var(--border-color);
}

.device-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.device-image {
    width: 160px;
    min-height: 140px;
    background: linear-gradient(135deg, var(--primary-bg), #f0f7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 13px;
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.device-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.device-image span {
    position: relative;
    z-index: 1;
    color: var(--text-light);
    font-size: 12px;
}

.device-info {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.device-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.device-category {
    color: var(--text-light);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.device-category::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 2px;
    margin-right: 6px;
    vertical-align: middle;
}

.device-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
}

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

.pharma-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.pharma-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.pharma-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-bg), #f0f7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 13px;
}

.pharma-info {
    padding: 18px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.pharma-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

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

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 20px;
    background: var(--white);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.contact-text h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.contact-text p {
    color: var(--text-light);
    font-size: 14px;
}

.contact-map {
    height: 100%;
    min-height: 300px;
    background: linear-gradient(135deg, #e8ecf1, #f5f7fa);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 16px;
    border: 1px solid var(--border-color);
}

.footer {
    background: #1a2332;
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer-info {
    margin-bottom: 12px;
    font-size: 14px;
    opacity: 0.85;
}

.footer-info span {
    margin: 0 12px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

@media (max-width: 992px) {
    .company-intro,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .company-intro {
        gap: 40px;
    }

    .device-card {
        flex-direction: column;
    }

    .device-image {
        width: 100%;
        min-height: 160px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

.device-card-link {
    display: contents;
    text-decoration: none;
    color: inherit;
}

.device-card-link:hover .device-name {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .banner {
        height: 260px;
    }

    .banner-slide h1 {
        font-size: 26px;
        letter-spacing: 1px;
    }

    .banner-slide p {
        font-size: 14px;
    }

    .banner-arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

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

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

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 26px;
    }

    .intro-slider {
        height: 260px;
    }
}

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

    .container {
        padding: 0 16px;
    }

    .banner {
        height: 220px;
    }

    .banner-slide h1 {
        font-size: 22px;
    }

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

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

    .gallery-item.gallery-large {
        grid-column: span 1;
    }
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-block {
    margin-bottom: 50px;
}

.about-block:last-child {
    margin-bottom: 0;
}

.about-heading {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-left: 16px;
    border-left: 4px solid var(--primary-color);
    line-height: 1.4;
}

.about-block p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 2;
    margin-bottom: 16px;
}

.about-block p:last-child {
    margin-bottom: 0;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 8px;
}

.about-value-item {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 28px 24px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.about-value-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.about-value-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-bottom: 18px;
}

.about-value-text h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.about-value-text p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0;
}

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

.about-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.gallery-item.gallery-large {
    grid-column: span 2;
}

.gallery-placeholder {
    height: 220px;
    background: linear-gradient(135deg, var(--primary-bg), #f0f7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 500;
}

.gallery-large .gallery-placeholder {
    height: 260px;
}

@media (max-width: 992px) {
    .about-values {
        grid-template-columns: 1fr;
    }

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

    .gallery-item.gallery-large {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .about-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-item.gallery-large {
        grid-column: span 1;
    }

    .gallery-placeholder {
        height: 180px;
    }

    .gallery-large .gallery-placeholder {
        height: 200px;
    }
}

.devices-page {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 30px;
    align-items: start;
}

.devices-sidebar {
    position: sticky;
    top: 92px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.devices-sidebar-inner {
    padding: 8px;
}

.dept-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    color: var(--text-light);
    font-size: 15px;
    font-weight: 500;
}

.dept-item:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.dept-item.active {
    background: var(--primary-bg);
    color: var(--primary-color);
}

.dept-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dept-icon svg {
    width: 100%;
    height: 100%;
}

.dept-item.active .dept-icon svg {
    color: var(--primary-color);
}

.devices-main {
    min-height: 400px;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.category-tag {
    padding: 8px 20px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 500;
}

.category-tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-bg);
}

.category-tag.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.devices-product-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.product-card {
    display: flex;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card-link {
    display: contents;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.product-card-link:hover .product-card-name {
    color: var(--primary-color);
}

.product-card-image {
    width: 140px;
    min-height: 140px;
    background: linear-gradient(135deg, var(--primary-bg), #f0f7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 13px;
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
}

.product-card-info {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.product-card-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.4;
}

.product-card-category {
    font-size: 12px;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 8px;
}

.product-card-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.product-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.6;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: default;
    white-space: nowrap;
}

/* 默认标签样式（蓝色） */
.product-tag:not([class*="tag-"]) {
    background: var(--primary-bg);
    color: var(--primary-color);
    border-color: rgba(30, 136, 229, 0.2);
}

.product-tag:not([class*="tag-"]):hover {
    background: rgba(30, 136, 229, 0.15);
}

/* 热门标签（橙色） */
.tag-hot {
    background: #fff3e0;
    color: #e65100;
    border-color: rgba(230, 81, 0, 0.2);
}

.tag-hot:hover {
    background: rgba(255, 243, 224, 0.8);
}

/* 新品标签（红色） */
.tag-new {
    background: var(--accent-light);
    color: var(--accent-color);
    border-color: rgba(229, 57, 53, 0.2);
}

.tag-new:hover {
    background: rgba(255, 205, 210, 0.6);
}

/* 视频标签（青色） */
.tag-video {
    background: #e0f7fa;
    color: #00838f;
    border-color: rgba(0, 131, 143, 0.2);
}

.tag-video:hover {
    background: rgba(224, 247, 250, 0.7);
}

/* 合作标签（绿色） */
.tag-cooperation {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: rgba(46, 125, 50, 0.2);
}

.tag-cooperation:hover {
    background: rgba(232, 245, 233, 0.7);
}

.devices-mobile-select {
    display: none;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--white);
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 16px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23607d8b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

@media (max-width: 992px) {
    .devices-page {
        grid-template-columns: 1fr;
    }

    .devices-sidebar {
        display: none;
    }

    .devices-mobile-select {
        display: block;
    }

    .devices-product-list {
        grid-template-columns: 1fr;
    }
}

/* Dynamic image constraints */
.device-image img,
.device-img,
.pharma-image img,
.pharma-img,
.pharma-list-image img,
.pharma-list-img,
.gallery-item img,
.gallery-img,
.contact-item img,
.rubber-image img,
.rubber-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.device-image img {
    width: 160px;
    min-height: 140px;
}

.pharma-image img {
    height: 200px;
}

.pharma-list-image img {
    height: 220px;
}

.rubber-image img {
    height: 220px;
    object-fit: contain;
    background: #f5f5f5;
}

@media (max-width: 992px) {
    .device-image img {
        width: 100%;
        min-height: 160px;
    }
}

@media (max-width: 768px) {
    .pharma-image img,
    .pharma-list-image img,
    .rubber-image img {
        height: 180px;
    }
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card-image img {
    width: 140px;
    min-height: 140px;
}

@media (max-width: 768px) {
    .product-card-image img {
        width: 100%;
        min-height: 160px;
    }
}

@media (max-width: 768px) {
    .product-card {
        flex-direction: column;
    }

    .product-card-image {
        width: 100%;
        min-height: 160px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

.pharma-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pharma-list-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.pharma-list-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.pharma-list-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pharma-list-card:hover::after {
    opacity: 1;
}

.pharma-list-image {
    height: 220px;
    background: linear-gradient(135deg, var(--primary-bg), #f0f7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 13px;
    position: relative;
    overflow: hidden;
}

.pharma-list-image::before {
    content: '';
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(30, 136, 229, 0.08);
    border-radius: 50%;
}

.pharma-list-info {
    padding: 20px 22px 22px;
    border-top: 1px solid var(--border-color);
}

.pharma-list-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.pharma-list-category {
    display: inline-block;
    font-size: 12px;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 10px;
    padding: 3px 10px;
    background: var(--accent-light);
    border-radius: 12px;
}

.pharma-list-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .pharma-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.contact-form-section {
    margin-top: 60px;
    padding-top: 50px;
    border-top: 1px solid var(--border-color);
}

.contact-form-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    padding-left: 16px;
    border-left: 4px solid var(--primary-color);
}

.contact-form {
    max-width: 700px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-dark);
    background: var(--white);
    transition: all 0.25s ease;
    outline: none;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

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

.rubber-home-videos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.rubber-home-video-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.rubber-home-video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.rubber-home-video-placeholder {
    height: 280px;
    background: linear-gradient(135deg, var(--primary-bg), #f0f7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.rubber-home-video-placeholder::before {
    content: '';
    position: absolute;
    width: 72px;
    height: 72px;
    background: rgba(30, 136, 229, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.rubber-home-video-card:hover .rubber-home-video-placeholder {
    color: var(--primary-dark);
}

.rubber-home-video-card:hover .rubber-home-video-placeholder::before {
    transform: scale(1.15);
    background: rgba(30, 136, 229, 0.15);
}

.rubber-home-video-title {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .rubber-home-videos {
        grid-template-columns: 1fr;
    }
}

.rubber-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.rubber-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.rubber-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.rubber-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rubber-card:hover::after {
    opacity: 1;
}

.rubber-image {
    height: 220px;
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e65100;
    font-size: 13px;
    position: relative;
    overflow: hidden;
}

.rubber-image::before {
    content: '';
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(230, 81, 0, 0.08);
    border-radius: 50%;
}

.rubber-info {
    padding: 20px 22px 22px;
    border-top: 1px solid var(--border-color);
}

.rubber-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.rubber-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
}

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

.rubber-videos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.rubber-video-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.rubber-video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.rubber-video-placeholder {
    height: 260px;
    background: linear-gradient(135deg, var(--primary-bg), #f0f7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.rubber-video-placeholder svg {
    width: 48px;
    height: 48px;
    position: relative;
    z-index: 1;
}

.rubber-video-placeholder::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(30, 136, 229, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.rubber-video-card:hover .rubber-video-placeholder {
    color: var(--primary-dark);
}

.rubber-video-card:hover .rubber-video-placeholder::before {
    transform: scale(1.2);
    background: rgba(30, 136, 229, 0.15);
}

.rubber-video-title {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .rubber-products {
        grid-template-columns: repeat(2, 1fr);
    }

    .rubber-videos {
        grid-template-columns: 1fr;
    }
}

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

.meiy-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}