/* === 全局样式重置 === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(to bottom, #f9fafb, #f3f4f6, #f9fafb);
    color: #111827;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* === 导航栏样式 === */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(6, 182, 212, 0.2);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo img {
    height: 90px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.nav-links > a {
    padding: 0.5rem 1rem;
    color: #4b5563;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.nav-links > a:hover {
    color: #22d3ee;
    background: rgba(6, 182, 212, 0.1);
}

.nav-links > a.active {
    color: #22d3ee;
    background: rgba(6, 182, 212, 0.1);
}

/* Mobile Menu */
.mobile-menu-button {
    display: none;
    margin-left: auto;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}
.mobile-menu-button:hover { background: #f3f4f6; }
.mobile-menu-button svg { width: 24px; height: 24px; color: #111827; }
#navbar .mobile-menu {
    display: none !important;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid rgba(6, 182, 212, 0.2);
    padding: 1rem;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    z-index: 999;
}
#navbar .mobile-menu.open { display: block !important; }
#navbar .mobile-menu-content { display: flex; flex-direction: column; gap: 0.25rem; }
#navbar .mobile-menu-content > a,
#navbar .mobile-nav-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.mobile-nav-item:hover { background: rgba(243, 244, 246, 0.8); }
.mobile-nav-item.active { background: rgba(6, 182, 212, 0.1); color: #06b6d4; }
.mobile-nav-sub-item { padding-left: 2rem; font-size: 0.8125rem; color: #6b7280; }
.btn-primary-mobile { margin-top: 0.5rem; background: #06b6d4; color: white !important; text-align: center; font-weight: 600; }
.btn-primary-mobile:hover { background: #0891b2; }

.btn-primary {
    padding: 0.625rem 1.5rem;
    margin-left: 1rem;
    background: linear-gradient(to right, #06b6d4, #3b82f6);
    color: white;
    border-radius: 0.5rem;
    font-weight: bold;
    box-shadow: 0 4px 6px -1px rgba(6, 182, 212, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(to right, #22d3ee, #60a5fa);
    transform: translateY(-1px);
}

/* 导航栏下拉菜单 */
.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    color: #4b5563;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.dropdown-trigger.active {
    color: #22d3ee;
    background: rgba(6, 182, 212, 0.1);
}

.icon-chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.nav-dropdown.open .icon-chevron {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 50;
}

.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu {
    width: 14rem;
    background: white;
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(6, 182, 212, 0.1);
    padding: 0.5rem;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    color: #22d3ee;
    background: rgba(6, 182, 212, 0.1);
}

/* === Header Section === */
.header-section {
    padding: 8rem 1.5rem 4rem;
    border-bottom: 1px solid rgba(6, 182, 212, 0.2);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #22d3ee;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.back-button:hover {
    color: #0891b2;
}

.product-header {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    align-items: start;
}

.product-image-section {
    position: relative;
    animation: fadeInLeft 0.6s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.product-main-image {
    position: relative;
    aspect-ratio: 1;
    background: rgba(243, 244, 246, 0.8);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

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

.product-model-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #06b6d4;
    color: #111827;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
    font-size: 0.875rem;
}

.product-info-section {
    animation: fadeInRight 0.6s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.product-category-badge {
    display: inline-block;
    background: rgba(6, 182, 212, 0.1);
    color: #22d3ee;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.product-name {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #111827, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-description {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.quick-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.spec-box {
    background: rgba(243, 244, 246, 0.8);
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.spec-label {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.spec-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2E54A1;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(to right, #06b6d4, #3b82f6);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(6, 182, 212, 0.3);
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: linear-gradient(to right, #22d3ee, #60a5fa);
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(6, 182, 212, 0.4);
}

.btn-request {
    padding: 1rem 2rem;
    border: 2px solid #06b6d4;
    color: #22d3ee;
    background: transparent;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-request:hover {
    background: rgba(6, 182, 212, 0.1);
}

/* === Tabs Section === */
.tabs-section {
    padding: 1rem 1.5rem;
}

.tabs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid #e5e7eb;
}

.tabs-nav {
    display: flex;
    gap: 1rem;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    font-weight: 500;
    font-size: 1rem;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: #111827;
}

.tab-button.active {
    color: #22d3ee;
    border-bottom-color: #06b6d4;
}

.btn-edit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: #06b6d4;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 0.75rem;
    transition: background 0.3s ease;
}

.btn-edit:hover {
    background: #0891b2;
}

.tabs-content {
    min-height: 24rem;
}

.tab-pane {
    display: none;
}

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

.tab-content-box {
    background: rgba(249, 250, 251, 0.8);
    padding: 2rem;
    border-radius: 0.75rem;
}

.content-title {
    font-size: 1.125rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1rem;
}

.specs-list,
.features-list,
.applications-list {
    list-style: none;
    padding: 0;
}

.specs-list li,
.features-list li,
.applications-list li {
    display: flex;
    align-items: start;
    gap: 0.5rem;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.specs-list li::before {
    content: "•";
    color: #22d3ee;
    font-weight: bold;
    margin-top: 0.25rem;
}

.features-list,
.applications-list {
    list-style-type: disc;
    padding-left: 1.5rem;
    color: #4b5563;
}

.features-list li,
.applications-list li {
    margin-bottom: 0.75rem;
}

/* === 编辑模式 === */
.edit-section {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.btn-add {
    padding: 0.5rem 1rem;
    background: #06b6d4;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-add:hover {
    background: #0891b2;
}

.edit-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.edit-item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.edit-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: rgba(249, 250, 251, 0.5);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.edit-input:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.btn-delete {
    padding: 0.5rem;
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: background 0.3s ease;
}

.btn-delete:hover {
    background: #fee2e2;
}

.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 10rem;
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
    margin-bottom: 1rem;
}

.upload-area:hover {
    border-color: #22d3ee;
}

.upload-area svg {
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.upload-area span {
    color: #6b7280;
    font-size: 0.875rem;
}

.uploaded-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.uploaded-image-item {
    position: relative;
}

.uploaded-image-item img {
    width: 100%;
    height: 8rem;
    object-fit: cover;
    border-radius: 0.5rem;
}

.btn-delete-image {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.uploaded-image-item:hover .btn-delete-image {
    opacity: 1;
}

.cta-center {
    text-align: center;
    margin-top: 0rem;
}

.btn-request-tech {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(to right, #06b6d4, #3b82f6);
    color: white;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: bold;
    box-shadow: 0 10px 15px -3px rgba(6, 182, 212, 0.3);
    transition: all 0.3s ease;
}

.btn-request-tech:hover {
    background: linear-gradient(to right, #22d3ee, #60a5fa);
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(6, 182, 212, 0.4);
}

/* === Related Products === */
.related-section {
    padding: 2rem 1.5rem;
    background: rgba(249, 250, 251, 0.5);
}

.section-title {
    font-size: 1.875rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(to right, #111827, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.related-card {
    background: rgba(249, 250, 251, 0.8);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-card:hover {
    border-color: #06b6d4;
    transform: translateY(-4px);
}

.related-model {
    color: #22d3ee;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.related-name {
    color: #111827;
    transition: color 0.3s ease;
}

.related-card:hover .related-name {
    color: #0891b2;
}

/* === CTA Footer === */
.cta-footer {
    padding: 6rem 1.5rem;
    background: linear-gradient(to right, #0891b2, #3b82f6);
}

.cta-footer-content {
    text-align: center;
}

.cta-footer-title {
    font-size: 2.25rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1.5rem;
}

.cta-footer-desc {
    font-size: 1.25rem;
    color: #ecfeff;
    margin-bottom: 2rem;
}

.cta-footer-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.btn-contact-engineers {
    padding: 1rem 2rem;
    background: white;
    color: #0891b2;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-contact-engineers:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

.btn-download-catalog {
    padding: 1rem 2rem;
    border: 2px solid white;
    color: #111827;
    background: transparent;
    border-radius: 0.75rem;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-download-catalog:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* === Footer === */
footer {
    background: #f3f4f6;
    color: #6b7280;
    border-top: 1px solid rgba(6, 182, 212, 0.1);
    padding: 4rem 1.5rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: 10rem;
    margin-bottom: 3rem;
}

.footer-col-large {
    grid-column: span 2;
}

.footer-logo {
    height: 48px;
    margin-bottom: 1.5rem;
}

.footer-company-name {
    font-size: 1.25rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 28rem;
    margin-bottom: 1.5rem;
}

.social-section {
    margin-top: 1.5rem;
}

.social-title {
    font-weight: bold;
    color: #111827;
    margin-bottom: 1rem;
}

.qr-codes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 24rem;
}

.qr-code {
    text-align: center;
}

.qr-code-img {
    width: 5rem;
    height: 5rem;
    background: #d1d5db;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-code-label {
    font-size: 0.75rem;
}

.footer-title {
    font-weight: bold;
    color: #111827;
    margin-bottom: 1rem;
}

.footer-links a {
    display: block;
    color: #6b7280;
    text-decoration: none;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #22d3ee;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.contact-phone {
    margin-top: 0.75rem;
}

.iso-cert {
    padding-top: 0.75rem;
    color: #22d3ee;
    font-weight: 500;
}

.footer-bottom {
    border-top: 1px solid #d1d5db;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #22d3ee;
}

/* === 响应式设计 === */
@media (max-width: 1024px) {
    .footer-col-large {
        grid-column: span 1;
    }

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

@media (max-width: 768px) {
    .product-name {
        font-size: 2rem;
    }

    .product-description {
        font-size: 1rem;
    }

    .quick-specs {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

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

    .tabs-nav {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tab-button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .tabs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cta-footer-title {
        font-size: 1.75rem;
    }

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

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

    .qr-codes {
        max-width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-download,
    .btn-request {
        width: 100%;
        justify-content: center;
    }
}
