/* ========================================
   OAG-L Product Detail Page Styles
   ======================================== */

/* CSS Variables */
:root {
    --oag-primary: var(--thm-base);
    --oag-secondary: var(--thm-color);
    --oag-dark: var(--thm-black);
    --oag-light-bg: var(--thm-f6);
    --oag-text: var(--thm-p);
    --oag-gray: var(--thm-gray);
    --oag-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --oag-shadow-md: 0 5px 20px rgba(0, 0, 0, 0.08);
    --oag-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --oag-transition: all 0.3s ease;
    --oag-border-radius: 16px;
}

/* Base Container Styles */
.atf_portfolio__details-area {
    padding: 40px 0;
}

.atf_portfolio__details-area .container {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: var(--oag-shadow-lg);
    padding: 40px;
    margin: 20px auto;
}

.oag-product-details {
    font-family: var(--thm-font);
    color: var(--oag-text);
    line-height: 1.6;
    position: relative;
}

/* Floating Navigation */
.oag-floating-nav {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    transition: var(--oag-transition);
}

.oag-floating-nav .nav-toggle {
    position: absolute;
    left: 0;
    top: 0;
    padding: 12px 16px;
    background: var(--thm-line);
    border: none;
    border-radius: 0 8px 8px 0;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--oag-transition);
    font-size: 14px;
    font-weight: 500;
    animation: pulse 2s infinite;
}

.oag-floating-nav .nav-toggle:hover {
    background: var(--oag-primary);
    padding-right: 20px;
}

.oag-floating-nav.active .nav-toggle {
    animation: none;
}

.oag-floating-nav.active .nav-toggle .nav-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.oag-floating-nav .nav-content {
    position: relative;
    background: #fff;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 20px 40px 30px 20px;
    width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%);
    transition: var(--oag-transition);
}

.oag-floating-nav.active .nav-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.oag-floating-nav .nav-close {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 30px;
    height: 30px;
    background: var(--oag-light-bg);
    border: none;
    border-radius: 50%;
    color: var(--oag-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--oag-transition);
}

.oag-floating-nav .nav-close:hover {
    background: var(--oag-primary);
    color: #fff;
}

.oag-floating-nav h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--oag-dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--oag-light-bg);
}

.oag-floating-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.oag-floating-nav li {
    margin-bottom: 8px;
}

.oag-floating-nav .nav-link {
    display: block;
    padding: 8px 12px;
    color: var(--oag-text);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: var(--oag-transition);
    position: relative;
    overflow: hidden;
}

.oag-floating-nav .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--oag-primary);
    transition: height 0.3s ease;
}

.oag-floating-nav .nav-link:hover,
.oag-floating-nav .nav-link.active {
    background: var(--oag-light-bg);
    color: var(--oag-primary);
}

.oag-floating-nav .nav-link.active::before {
    height: 60%;
}

.oag-floating-nav .nav-divider {
    height: 1px;
    background: var(--thm-f3);
    margin: 20px 0;
}

.oag-floating-nav .manual-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--oag-primary), var(--oag-secondary));
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: var(--oag-transition);
    box-shadow: var(--oag-shadow-sm);
}

.oag-floating-nav .manual-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.oag-floating-nav .manual-link i:first-child {
    font-size: 18px;
    margin-right: 10px;
}

.oag-floating-nav .manual-link i:last-child {
    font-size: 12px;
    margin-left: 8px;
    opacity: 0.8;
}

/* Product Sections */
.product-section {
    background: #ffffff;
    padding: 60px;
    border-radius: var(--oag-border-radius);
    margin-bottom: 30px;
    scroll-margin-top: 100px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 60px;
}

.product-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--oag-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.product-subtitle {
    font-size: 20px;
    color: var(--oag-gray);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.main-product-image {
    text-align: center;
    margin-bottom: 40px;
}

/* 图片样式 - 兼容 picture 标签和 img 标签 */
.main-product-image img,
.main-product-image picture {
    max-width: 100%;
    height: auto;
    border-radius: var(--oag-border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    display: block;
}

@media (min-width: 769px) {
    body.product-detail-v2 .atf-page-heading.atf-align-left.filter-drawer-hero .banner-center-btn {
        left: 72% !important;
        bottom: 12% !important;
        transform: translate(-50%, -50%) !important;
    }

    body.product-detail-v2 .atf-page-heading.atf-align-left.oag-l-hero .banner-center-btn,
    body.product-detail-v2 .atf-page-heading.atf-align-left.oag-x-hero .banner-center-btn {
        left: 68% !important;
        bottom: 16% !important;
        transform: translate(-50%, -50%) !important;
    }
}

@media (max-width: 767px) {
    body.product-detail-v2 .atf-page-heading.atf-align-left.filter-drawer-hero .atf-page-heading-title {
        color: var(--v2-text-heading) !important;
        text-shadow: 0 2px 4px rgba(255, 255, 255, 0.35);
    }
}

/* picture 标签内的 img 继承样式 */
.main-product-image picture img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Section Titles */
.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--oag-dark);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

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

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.feature-card {
    background: var(--oag-light-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: var(--oag-transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--oag-primary), var(--oag-secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--oag-primary), var(--oag-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 24px;
    color: #fff;
}

.feature-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--oag-dark);
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 14px;
    color: var(--oag-gray);
    line-height: 1.5;
}

.feature-image-section {
    margin-top: 40px;
    text-align: center;
}

/* 图片样式 - 兼容 picture 标签和 img 标签 */
.feature-image-section img,
.feature-image-section picture {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--oag-shadow-md);
    display: block;
}

/* picture 标签内的 img 继承样式 */
.feature-image-section picture img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Showcase Gallery */
.showcase-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

/* 图片样式 - 兼容 picture 标签和 img 标签 */
.showcase-image img,
.showcase-image picture {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--oag-shadow-md);
    transition: var(--oag-transition);
    display: block;
}

/* picture 标签内的 img 继承样式 */
.showcase-image picture img {
    width: 100%;
    height: auto;
    display: block;
}

.showcase-image img:hover,
.showcase-image picture:hover {
    transform: scale(1.02);
    box-shadow: var(--oag-shadow-lg);
}

/* Specifications Section */
.specs-intro {
    text-align: center;
    margin-bottom: 40px;
}

.specs-intro p {
    font-size: 18px;
    color: var(--oag-gray);
}

.specs-gallery {
    margin-bottom: 50px;
}

/* 图片样式 - 兼容 picture 标签和 img 标签 */
.specs-image img,
.specs-image picture {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 40px;
    display: block;
}

/* picture 标签内的 img 继承样式 */
.specs-image picture img {
    width: 100%;
    height: auto;
    display: block;
}

.specs-subtitle {
    font-size: 24px;
    font-weight: 600;
    color: var(--oag-dark);
    margin-bottom: 30px;
    text-align: center;
}

.variant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.variant-image {
    text-align: center;
}

/* 图片样式 - 兼容 picture 标签和 img 标签 */
.variant-image img,
.variant-image picture {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--oag-shadow-sm);
    transition: var(--oag-transition);
    display: block;
}

/* picture 标签内的 img 继承样式 */
.variant-image picture img {
    width: 100%;
    height: auto;
    display: block;
}

.variant-image img:hover,
.variant-image picture:hover {
    transform: translateY(-5px);
    box-shadow: var(--oag-shadow-md);
}

.variant-label {
    margin-top: 15px;
    font-size: 16px;
    font-weight: 500;
    color: var(--oag-dark);
}

/* Specifications Table */
.specs-table-section {
    margin-top: 50px;
}

.specs-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: var(--oag-shadow-md);
}

.specs-table th,
.specs-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--thm-f3);
}

.specs-table th {
    background: var(--oag-light-bg);
    font-weight: 600;
    color: var(--oag-dark);
    width: 35%;
}

.specs-table td {
    color: var(--oag-gray);
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
    border-bottom: none;
}

/* Connection Section */
.connection-intro {
    text-align: center;
    margin-bottom: 40px;
}

.connection-intro p {
    font-size: 18px;
    color: var(--oag-gray);
}

.connection-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
}

.connection-config {
    background: var(--oag-light-bg);
    border-radius: 12px;
    padding: 20px;
}

.config-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--oag-dark);
    margin-bottom: 20px;
    text-align: center;
}

/* 图片样式 - 兼容 picture 标签和 img 标签 */
.connection-config img,
.connection-config picture {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* picture 标签内的 img 继承样式 */
.connection-config picture img {
    width: 100%;
    height: auto;
    display: block;
}

/* Package Section */
.package-image {
    text-align: center;
    margin-bottom: 40px;
}

/* 图片样式 - 兼容 picture 标签和 img 标签 */
.package-image img,
.package-image picture {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--oag-shadow-md);
    display: block;
}

/* picture 标签内的 img 继承样式 */
.package-image picture img {
    max-width: 100%;
    height: auto;
    display: block;
}

.package-list {
    background: var(--oag-light-bg);
    padding: 40px;
    border-radius: 16px;
}

.package-list h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--oag-dark);
    margin-bottom: 30px;
    text-align: center;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.package-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--oag-shadow-sm);
    transition: var(--oag-transition);
}

.package-item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.package-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--oag-primary);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}

.package-desc {
    flex: 1;
    font-size: 16px;
    color: var(--oag-text);
}

/* Installation Section */
.installation-content {
    max-width: 800px;
    margin: 0 auto;
}

.installation-intro {
    text-align: center;
    margin-bottom: 40px;
}

.installation-intro p {
    font-size: 18px;
    color: var(--oag-gray);
}

.installation-link-box {
    margin-bottom: 40px;
}

.installation-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 30px;
    background: linear-gradient(135deg, var(--oag-primary), var(--oag-secondary));
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    transition: var(--oag-transition);
    box-shadow: var(--oag-shadow-md);
}

.installation-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.installation-link i:first-child {
    font-size: 20px;
    margin-right: 15px;
}

.installation-link i:last-child {
    font-size: 14px;
    margin-left: 15px;
    opacity: 0.9;
}

.installation-tips {
    background: var(--oag-light-bg);
    padding: 30px;
    border-radius: 12px;
}

.installation-tips h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--oag-dark);
    margin-bottom: 20px;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--oag-text);
    line-height: 1.6;
}

.tips-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--oag-primary);
    font-weight: bold;
    font-size: 18px;
}

/* Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(85, 198, 239, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(85, 198, 239, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(85, 198, 239, 0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .oag-floating-nav {
        display: none;
    }

    .product-title {
        font-size: 36px;
    }

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

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

@media (max-width: 768px) {
    .atf_portfolio__details-area .container {
        padding: 20px;
        border-radius: 16px;
    }

    .product-section {
        padding: 40px 20px;
        margin-bottom: 20px;
    }

    .product-title {
        font-size: 28px;
    }

    .product-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

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

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

    .specs-table th,
    .specs-table td {
        padding: 15px;
        font-size: 14px;
    }

    .installation-link {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .installation-link i:first-child {
        margin-bottom: 10px;
    }

    .tips-list li {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .product-title {
        font-size: 24px;
    }

    .product-subtitle {
        font-size: 14px;
    }

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

    .feature-card {
        padding: 20px;
    }

    .feature-label {
        font-size: 16px;
    }

    .feature-desc {
        font-size: 13px;
    }

    .package-list {
        padding: 25px 15px;
    }

    .package-item {
        padding: 12px 15px;
    }

    .package-number {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .package-desc {
        font-size: 14px;
    }

    .installation-tips {
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    .oag-floating-nav {
        display: none;
    }

    .product-section {
        page-break-inside: avoid;
        padding: 30px;
    }

    .specs-table {
        font-size: 11px;
    }
}


/* ========================================
   Find Scope Specific Styles
   ======================================== */

/* Focuser Options Grid */
.focuser-options {
    margin-top: 50px;
}

.focuser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.focuser-card {
    background: linear-gradient(135deg, #f8fafb 0%, #ffffff 100%);
    border: 1px solid var(--thm-f3);
    border-radius: 12px;
    padding: 30px;
    transition: var(--oag-transition);
}

.focuser-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--oag-primary);
}

.focuser-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--thm-f3);
}

.focuser-header h4 {
    font-size: 24px;
    font-weight: 700;
    color: var(--oag-dark);
    margin-bottom: 5px;
}

.focuser-type {
    font-size: 14px;
    color: var(--oag-primary);
    font-weight: 500;
    /* 焦点器类型文案需要按正常标题大小写显示。 */
    text-transform: none;
    letter-spacing: 1px;
}

.focuser-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.focuser-features li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--oag-text);
}

.focuser-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--oag-primary);
    font-weight: bold;
}

/* Models Grid */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.model-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--oag-shadow-md);
    transition: var(--oag-transition);
}

.model-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.model-image {
    height: 200px;
    overflow: hidden;
    background: var(--oag-light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 图片样式 - 兼容 picture 标签和 img 标签 */
.model-image img,
.model-image picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

/* picture 标签内的 img 继承样式 */
.model-image picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.model-card:hover .model-image img,
.model-card:hover .model-image picture {
    transform: scale(1.1);
}

.model-info {
    padding: 25px;
}

.model-info h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--oag-dark);
    margin-bottom: 8px;
}

.model-specs {
    font-size: 14px;
    color: var(--oag-primary);
    margin-bottom: 15px;
    font-weight: 500;
}

.model-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.model-features li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--oag-gray);
}

.model-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--oag-primary);
    font-weight: bold;
}

/* Dimensions Tabs */
.dimensions-tabs {
    margin-top: 30px;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-button {
    padding: 12px 24px;
    background: var(--oag-light-bg);
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--oag-text);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--oag-transition);
}

.tab-button:hover {
    background: #fff;
    border-color: var(--oag-primary);
    color: var(--oag-primary);
}

.tab-button.active {
    background: var(--oag-primary);
    color: #fff;
    border-color: var(--oag-primary);
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

/* 图片样式 - 兼容 picture 标签和 img 标签 */
.tab-pane img,
.tab-pane picture {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--oag-shadow-md);
    display: block;
}

/* picture 标签内的 img 继承样式 */
.tab-pane picture img {
    width: 100%;
    height: auto;
    display: block;
}

.focuser-dimensions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.focuser-dim-image h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--oag-dark);
    margin-bottom: 15px;
    text-align: center;
}

/* Installation Steps */
.installation-steps {
    display: grid;
    gap: 25px;
    margin-bottom: 50px;
}

.step-card {
    /* 改为垂直布局：图文上下排列 */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
    background: var(--oag-light-bg);
    border-radius: 12px;
    transition: var(--oag-transition);
    text-align: center;
}

.step-card:hover {
    /* 悬停时上移效果 */
    transform: translateY(-5px);
    box-shadow: var(--oag-shadow-md);
}

.step-number {
    /* 步骤编号居中显示 */
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--oag-primary), var(--oag-secondary));
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px; /* 居中并添加底部间距 */
}

.step-content {
    /* 步骤内容居中，添加底部间距 */
    width: 100%;
    max-width: 600px;
    margin-bottom: 20px;
}

.step-content h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--oag-dark);
    margin-bottom: 10px;
}

.step-content p {
    font-size: 15px;
    color: var(--oag-text);
    line-height: 1.6;
}

/* Installation Images */
.installation-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.install-image {
    /* 安装图片居中显示，添加顶部间距 */
    text-align: center;
    margin-top: 15px;
    width: 100%;
    max-width: 700px;
}

.install-image.full-width {
    grid-column: 1 / -1;
}

/* 图片样式 - 兼容 picture 标签和 img 标签 */
.install-image img,
.install-image picture {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--oag-shadow-md);
    display: block;
}

/* picture 标签内的 img 继承样式 */
.install-image picture img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    margin-top: 15px;
    font-size: 14px;
    color: var(--oag-gray);
    font-style: italic;
}

/* Imaging examples showcase */
.samples-showcase {
    display: grid;
    gap: 40px;
}

.sample-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 30px;
    background: var(--oag-light-bg);
    border-radius: 16px;
}

.sample-item:nth-child(even) {
    grid-template-columns: 1fr 1fr;
}

.sample-item:nth-child(even) .sample-image {
    order: 2;
}

.sample-item:nth-child(even) .sample-info {
    order: 1;
}

/* 图片样式 - 兼容 picture 标签和 img 标签 */
.sample-image img,
.sample-image picture {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--oag-shadow-lg);
    display: block;
}

/* picture 标签内的 img 继承样式 */
.sample-image picture img {
    width: 100%;
    height: auto;
    display: block;
}

.sample-info h4 {
    font-size: 24px;
    font-weight: 600;
    color: var(--oag-dark);
    margin-bottom: 15px;
}

.sample-info p {
    font-size: 16px;
    color: var(--oag-text);
    line-height: 1.6;
}

/* Package Visual */
.package-visual {
    margin-bottom: 40px;
}

.package-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.package-img {
    text-align: center;
}

/* 图片样式 - 兼容 picture 标签和 img 标签 */
.package-img img,
.package-img picture {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--oag-shadow-md);
    display: block;
}

/* picture 标签内的 img 继承样式 */
.package-img picture img {
    width: 100%;
    height: auto;
    display: block;
}

.package-model {
    margin-top: 15px;
    font-size: 16px;
    font-weight: 500;
    color: var(--oag-dark);
}

/* Package Items with Letters */
.package-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--oag-primary);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    border-radius: 8px;
    margin-right: 15px;
    flex-shrink: 0;
}

/* Comparison Table */
.comparison-table thead {
    background: linear-gradient(135deg, var(--oag-primary), var(--oag-secondary));
}

.comparison-table thead th {
    color: #fff;
    font-weight: 600;
    padding: 18px 20px;
    border: none;
}

.comparison-table thead th:first-child {
    border-radius: 12px 0 0 0;
}

.comparison-table thead th:last-child {
    border-radius: 0 12px 0 0;
}

.comparison-table .spec-label {
    font-weight: 600;
    color: var(--oag-dark);
}

/* Responsive Design */
@media (max-width: 992px) {
    .focuser-grid {
        grid-template-columns: 1fr;
    }

    .models-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .sample-item {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sample-item:nth-child(even) .sample-image,
    .sample-item:nth-child(even) .sample-info {
        order: unset;
    }

    .focuser-dimensions {
        grid-template-columns: 1fr;
    }
}

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

    .installation-images {
        grid-template-columns: 1fr;
    }

    .package-images {
        grid-template-columns: 1fr;
    }

    .tab-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .tab-button {
        width: 100%;
    }

    .comparison-table {
        font-size: 13px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 10px;
    }
}

@media (max-width: 480px) {
    /* 移动端保持垂直布局，仅调整间距 */
    .step-card {
        padding: 20px 15px;
    }

    .step-number {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .step-content {
        margin-bottom: 15px;
    }

    .step-content h4 {
        font-size: 18px;
    }

    .step-content p {
        font-size: 14px;
    }

    .model-info h3 {
        font-size: 18px;
    }

    .sample-info h4 {
        font-size: 20px;
    }

    .focuser-header h4 {
        font-size: 20px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ========================================
   V2 Shared Alignment
   说明：附件详情页保留产品专属模块，仅覆盖公共详情骨架与交互状态。
   ======================================== */

body.product-detail-v2 .atf_portfolio__details-area .container {
    border: 1px solid rgba(var(--v2-primary-500-rgb), 0.06);
    box-shadow: var(--v2-shadow-card);
}

body.product-detail-v2 .oag-product-details {
    color: var(--v2-text-body);
}

body.product-detail-v2 .oag-floating-nav .nav-toggle {
    animation: none;
}

body.product-detail-v2 .product-section {
    border: 1px solid rgba(var(--v2-primary-500-rgb), 0.06);
    border-radius: var(--v2-radius-lg);
    box-shadow: var(--v2-shadow-card);
    scroll-margin-top: var(--detail-scroll-offset);
}

body.product-detail-v2 .product-title {
    color: var(--v2-text-heading);
}

body.product-detail-v2 .product-subtitle {
    color: var(--v2-text-secondary);
}

body.product-detail-v2 .main-product-image img,
body.product-detail-v2 .main-product-image picture,
body.product-detail-v2 .main-product-image .img-fluid {
    border-radius: var(--v2-radius-md);
    box-shadow: var(--v2-shadow-card);
}

body.product-detail-v2 .main-product-image img:hover,
body.product-detail-v2 .main-product-image picture:hover,
body.product-detail-v2 .main-product-image .img-fluid:hover {
    transform: translateY(-4px);
    box-shadow: var(--v2-shadow-card-hover);
}

/* ========================================
   V2 Accessory Final Alignment
   说明：
   - 附件详情页保留模块结构，但统一配件卡、步骤块和 CTA。
   ======================================== */

body.product-detail-v2 .atf_portfolio__details-area.bg-f6 {
    background: transparent !important;
    background-color: transparent !important;
}

body.product-detail-v2 .product-section,
body.product-detail-v2 .step-card,
body.product-detail-v2 .sample-card,
body.product-detail-v2 .model-card,
body.product-detail-v2 .focuser-card {
    background: var(--v2-bg-primary);
    border-color: var(--v2-bg-divider);
}

body.product-detail-v2 .step-number,
body.product-detail-v2 .model-tag,
body.product-detail-v2 .sample-tag {
    background: rgba(var(--v2-primary-500-rgb), 0.10);
    color: var(--v2-primary-600);
}

body.product-detail-v2 .buy-btn,
body.product-detail-v2 .manual-link,
body.product-detail-v2 .btn-primary {
    background: var(--v2-primary-500);
    border-color: var(--v2-primary-500);
    color: var(--v2-text-inverse);
}

body.product-detail-v2 .buy-btn:hover,
body.product-detail-v2 .manual-link:hover,
body.product-detail-v2 .btn-primary:hover {
    background: var(--v2-primary-400);
    border-color: var(--v2-primary-400);
}

body.product-detail-v2 .atf-page-heading.atf-align-left .atf-page-heading-title {
    font-size: var(--v2-h0-font-size);
    line-height: var(--v2-h0-line-height);
    font-weight: 500;
    letter-spacing: 0;
}

body.product-detail-v2 .product-title {
    font-size: var(--v2-h1-font-size);
    line-height: var(--v2-h1-line-height);
    font-weight: 500;
    letter-spacing: 0;
}

body.product-detail-v2 .product-subtitle {
    font-size: 16px;
    line-height: 24px;
}

body.product-detail-v2 .section-title {
    font-size: var(--v2-h1-font-size);
    line-height: var(--v2-h1-line-height);
    font-weight: 500;
    color: var(--v2-text-heading);
}

body.product-detail-v2 .subsection-title {
    font-size: var(--v2-h2-font-size) !important;
    line-height: var(--v2-h2-line-height) !important;
    font-weight: 500 !important;
    color: var(--v2-text-heading) !important;
}

body.product-detail-v2 .specs-subtitle {
    font-size: var(--v2-h2-font-size);
    line-height: var(--v2-h2-line-height);
    font-weight: 500;
    color: var(--v2-text-heading);
}

body.product-detail-v2 .model-info h3 {
    font-size: var(--v2-h3-font-size);
    line-height: var(--v2-h3-line-height);
    font-weight: 500;
    color: var(--v2-text-heading);
}

body.product-detail-v2 .step-card,
body.product-detail-v2 .feature-card,
body.product-detail-v2 .sample-card,
body.product-detail-v2 .sample-item,
body.product-detail-v2 .model-card,
body.product-detail-v2 .focuser-card,
body.product-detail-v2 .connection-config,
body.product-detail-v2 .installation-link,
body.product-detail-v2 .installation-tips,
body.product-detail-v2 .package-item,
body.product-detail-v2 .package-list,
body.product-detail-v2 .specs-table-wrapper,
body.product-detail-v2 .specs-table,
body.product-detail-v2 .continuous-image-container,
body.product-detail-v2 .continuous-image-wrapper,
body.product-detail-v2 .feature-image-section img,
body.product-detail-v2 .feature-image-section picture,
body.product-detail-v2 .showcase-image img,
body.product-detail-v2 .showcase-image picture,
body.product-detail-v2 .specs-image img,
body.product-detail-v2 .specs-image picture,
body.product-detail-v2 .variant-image img,
body.product-detail-v2 .variant-image picture,
body.product-detail-v2 .connection-config img,
body.product-detail-v2 .connection-config picture,
body.product-detail-v2 .package-image img,
body.product-detail-v2 .package-image picture,
body.product-detail-v2 .tab-pane img,
body.product-detail-v2 .tab-pane picture,
body.product-detail-v2 .install-image img,
body.product-detail-v2 .install-image picture,
body.product-detail-v2 .sample-image img,
body.product-detail-v2 .sample-image picture,
body.product-detail-v2 .package-img img,
body.product-detail-v2 .package-img picture,
body.product-detail-v2 .main-product-image img,
body.product-detail-v2 .main-product-image picture,
body.product-detail-v2 .main-product-image .img-fluid,
body.product-detail-v2 .atf-Subscribe-area .atf-subscribe-panel,
body.product-detail-v2 .atf-Subscribe-area .atf-subscribe-input,
body.product-detail-v2 .atf-Subscribe-area .atf-subscribe-btn {
    border-radius: var(--v2-radius-sm);
}

body.product-detail-v2 .continuous-image-container,
body.product-detail-v2 .continuous-image-wrapper {
    overflow: hidden;
}

body.product-detail-v2 .atf-page-heading.atf-align-left .btn-banner-center {
    border-radius: var(--v2-radius-button-pill, 22px);
}

@media (max-width: 767px) {
    body.product-detail-v2 .atf-page-heading.atf-align-left .btn-banner-center {
        border-radius: 21px;
    }
}
