/* ========================================
   RGV设备专题网站 - 主样式表
   基于Bootstrap 5 定制
   ======================================== */

/* CSS变量定义 */
:root {
    --primary-color: #ff4d24;
    --black: #191919;
    --white: #ffffff;
    --gray-1: #666666;
    --gray-2: #f8f8f8;
    --gray-3: #e0e0e0;
    --dark-bg: #0d0d0d;
    --section-padding: 100px;
    --transition-base: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-1);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 600;
    color: var(--black);
    line-height: 1.3;
}

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

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

img {
    max-width: 100%;
    height: auto;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-2);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e04420;
}

/* ========================================
   导航栏样式
   ======================================== */
.navbar {
    padding: 15px 0;
    transition: var(--transition-slow);
    z-index: 999;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.navbar-transparent {
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.navbar.navbar-transparent.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--black) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar.navbar-transparent .navbar-brand {
    color: var(--white) !important;
}

.navbar.navbar-transparent.scrolled .navbar-brand {
    color: var(--black) !important;
}

.navbar-brand i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.navbar-nav {
    gap: 5px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--black) !important;
    padding: 8px 16px !important;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.navbar.navbar-transparent .nav-link {
    color: var(--white) !important;
}

.navbar.navbar-transparent .nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(255, 77, 36, 0.1);
}

.navbar.navbar-transparent.scrolled .nav-link {
    color: var(--black) !important;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-base);
    transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(255, 77, 36, 0.05);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 10px;
    min-width: 220px;
    margin-top: 10px !important;
}

.dropdown-item {
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-1);
    transition: var(--transition-base);
}

.dropdown-item:hover {
    background: rgba(255, 77, 36, 0.1);
    color: var(--primary-color);
}

.dropdown-item i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

/* ========================================
   按钮样式
   ======================================== */
.btn {
    padding: 12px 30px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    border: none;
}

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

.btn-primary:hover {
    background: #e04420;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 77, 36, 0.3);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-dark {
    background: transparent;
    color: var(--black);
    border: 2px solid var(--black);
}

.btn-outline-dark:hover {
    background: var(--black);
    color: var(--white);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1rem;
}

/* ========================================
   区块通用样式
   ======================================== */
.section {
    padding: var(--section-padding) 0;
    position: relative;
    /* margin-top: calc(0px - var(--section-padding) - 86px);
    margin-bottom: calc(var(--section-padding) + 86px); */
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-1);
    max-width: 600px;
    margin-bottom: 50px;
}

/* ========================================
   卡片样式
   ======================================== */
.card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-slow);
    background: var(--white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-img-wrapper {
    overflow: hidden;
    position: relative;
}

.card-img-top {
    transition: var(--transition-slow);
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: top;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

.card-body {
    padding: 25px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--black);
}

.card-text {
    color: var(--gray-1);
    font-size: 0.95rem;
    line-height: 1.7;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 77, 36, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

/* ========================================
   特性列表样式
   ======================================== */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-3);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list i {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.feature-list h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.feature-list p {
    font-size: 0.9rem;
    color: var(--gray-1);
    margin: 0;
}


/* ========================================
   选型建议样式
   ======================================== */
.feature-icon-lg {
    width: 60px;
    height: 60px;
    background: rgba(255, 77, 36, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon-lg i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

/* ========================================
   统计数据样式
   ======================================== */
.stat-card {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition-slow);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: var(--gray-1);
    font-weight: 500;
}

/* ========================================
   标签页样式
   ======================================== */
.nav-tabs {
    border: none;
    gap: 10px;
    margin-bottom: 30px;
}

.nav-tabs .nav-link {
    border: 2px solid var(--gray-3);
    border-radius: 10px;
    padding: 15px 25px !important;
    font-weight: 600;
    color: var(--gray-1) !important;
    background: var(--white);
}

.nav-tabs .nav-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color) !important;
}

.nav-tabs .nav-link.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white) !important;
}

.tab-content {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* ========================================
   时间线样式
   ======================================== */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-3);
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-content {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* ========================================
   FAQ样式
   ======================================== */
.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
}

.accordion-button {
    padding: 20px 25px;
    font-weight: 600;
    color: var(--black);
    background: var(--white);
    border: none;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background: rgba(255, 77, 36, 0.05);
    color: var(--primary-color);
}

.accordion-button::after {
    background-size: 1.2rem;
}

.accordion-body {
    padding: 20px 25px;
    color: var(--gray-1);
    line-height: 1.8;
}

/* ========================================
   页脚样式
   ======================================== */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-title {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transition-base);
    display: inline-block;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ========================================
   面包屑样式
   ======================================== */
.breadcrumb-section {
    background: linear-gradient(135deg, var(--black) 0%, #2a2a2a 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.breadcrumb-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,77,36,0.1)" stroke-width="0.5"/></svg>');
    background-size: 100px 100px;
    opacity: 0.5;
}

.breadcrumb-title {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--primary-color);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   详情页样式
   ======================================== */
.detail-header {
    background: linear-gradient(135deg, var(--black) 0%, #2a2a2a 100%);
    padding: 100px 0 80px;
    position: relative;
}

.detail-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--white), transparent);
}

.detail-title {
    color: var(--white);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.detail-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    max-width: 700px;
}

.detail-content {
    padding: 60px 0;
}

.detail-section {
    margin-bottom: 50px;
}

.detail-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-2);
}

.detail-section h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
    color: var(--black);
}

.detail-section p {
    line-height: 1.9;
    margin-bottom: 20px;
    color: var(--gray-1);
}

.detail-section ul {
    padding-left: 25px;
    margin-bottom: 20px;
}

.detail-section li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.detail-section strong {
    color: var(--black);
}

/* 技术参数表格 */
.tech-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.tech-table th,
.tech-table td {
    padding: 14px 20px;
    text-align: center;
    border: 1px solid var(--gray-3);
}

.tech-table th {
    background: var(--black);
    color: var(--white);
    font-weight: 600;
}

.tech-table th:first-child {
    background: var(--primary-color);
}

.tech-table tr:nth-child(even) {
    background: var(--gray-2);
}

.tech-table td:first-child {
    font-weight: 600;
    color: var(--black);
    text-align: left;
    background: rgba(255, 77, 36, 0.05);
}
/* ========================================
   对比表格样式
   ======================================== */
.compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.compare-table th,
.compare-table td {
    padding: 14px 20px;
    text-align: center;
    border: 1px solid var(--gray-3);
}

.compare-table th {
    background: var(--black);
    color: var(--white);
    font-weight: 600;
}

.compare-table th:first-child {
    background: var(--primary-color);
}

.compare-table tr:nth-child(even) {
    background: var(--gray-2);
}

.compare-table td:first-child {
    font-weight: 600;
    color: var(--black);
    text-align: left;
    background: rgba(255, 77, 36, 0.05);
}

/* ========================================
   动画类
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* 交错动画延迟 */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ========================================
   工具类
   ======================================== */
.bg-dark {
    background: var(--black) !important;
}

.bg-light {
    background: var(--gray-2) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.gap-20 {
    gap: 20px;
}

.gap-30 {
    gap: 30px;
}

/* 图片悬停效果 */
.img-hover-zoom {
    overflow: hidden;
    border-radius: 12px;
}

.img-hover-zoom img {
    transition: var(--transition-slow);
}

.img-hover-zoom:hover img {
    transform: scale(1.1);
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255, 77, 36, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* 引用块 */
.blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 25px;
    margin: 30px 0;
    font-style: italic;
    color: var(--gray-1);
}

/* ========================================
   响应式调整
   ======================================== */
@media (max-width: 991px) {
    :root {
        --section-padding: 60px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-collapse {
        background: var(--white);
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        margin-top: 15px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .detail-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 10px 25px;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    .tab-content {
        padding: 25px;
    }
    
    .compare-table {
        font-size: 0.85rem;
    }
    
    .compare-table th,
    .compare-table td {
        padding: 12px 10px;
    }
}

/* ========================================
   打印样式
   ======================================== */
@media print {
    .navbar,
    .footer,
    .btn {
        display: none !important;
    }
    
    .section {
        padding: 30px 0;
    }
    
    .card {
        break-inside: avoid;
    }
}
