/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', sans-serif;
    color: #333;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 45px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* 导航栏选中状态样式 */
.navbar-nav .nav-link.active {
    color: #ffc107 !important;
    border-bottom: 2px solid #ffc107 !important;
    padding-bottom: 4px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

/* 轮播图样式 */
.carousel {
    margin-top: 45px; /* 为固定导航栏留出空间 */
}

/* 页面内容区域样式 - 适应新的导航栏高度 */
.bg-primary[style*="margin-top: 56px"],
.bg-dark[style*="margin-top: 56px"] {
    margin-top: 45px !important;
}

.carousel-item img {
    object-fit: cover;
    height: 600px;
}

/* 轮播视频与图片统一高度 */
.carousel-item video {
    object-fit: cover;
    height: 600px;
    width: 100%;
    display: block;
}

/* 视频左上角提示文案样式 */
.carousel-video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: #fff;
    background: transparent;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: clamp(22px, 4.8vw, 36px);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    pointer-events: none;
    white-space: normal;
}

/* 强化视频叠层标题字体：更大、更粗，并去掉默认外边距 */
.carousel-video-overlay h1 {
    font-size: clamp(18px, 4vw, 48px);
    font-weight: 800;
    margin: 0;
    white-space: nowrap;
}

.carousel-caption {
    /* background-color: rgba(0, 0, 0, 0.5); */
    border-radius: 10px;
    padding: 20px;
    max-width: 80%;
    margin: 0 auto;
}

.carousel-caption h2 {
    font-weight: bold;
}

/* 卡片样式 */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
}

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

/* 按钮样式 */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    padding: 8px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* 按钮悬停效果 */
.btn-hover-effect {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-hover-effect:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn-hover-effect:hover:before {
    left: 100%;
}

/* 产品链接样式 */
.text-decoration-none h4 {
    color: #333;
    transition: color 0.3s ease;
}

.text-decoration-none:hover h4 {
    color: #0d6efd;
}

/* 联系表单样式 */
form {
    border-radius: 10px;
}

.form-control {
    border-radius: 5px;
    padding: 10px 15px;
    margin-bottom: 15px;
}

/* 页脚样式 */
footer {
    margin-top: 30px;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #0d6efd !important;
}

/* 合作伙伴网格布局 */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 40px 0;
    max-width: 1400px;
    margin: 0 auto;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 150px;
}

.partner-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.18);
}

.partner-item img {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .carousel-item img {
        height: 400px;
    }
    .carousel-item video {
        height: 400px;
    }
    .carousel-video-overlay {
        bottom: 8%;
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    
    .carousel-caption {
        padding: 10px;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .carousel-caption .btn {
        padding: 5px 15px;
        font-size: 0.9rem;
    }
    
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 22px;
        padding: 25px 0;
    }
    
    .partner-item {
        padding: 18px;
        min-height: 110px;
    }
    
    .partner-item img {
        max-height: 85px;
    }
}

/* 团队容器样式 */
.team-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 0;
}

/* 自定义列宽：5个卡片平均分布 */
@media (min-width: 1200px) {
    .col-xl-2-4 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

.team-container .row {
    margin: 0 -10px;
}

.team-container .row > [class*="col-"] {
    padding: 0 10px;
}

/* 团队成员卡片样式 */
.team-card {
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.team-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
}

.team-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.team-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #333;
}

.team-card .card-text {
    font-size: 0.9rem;
    line-height: 1.2;
}

.team-card .card-text.text-muted {
    font-weight: 500;
    color: #666 !important;
    margin-bottom: 0;
}

.team-card .card-text:last-child {
    margin-top: 0;
}

/* 视频展示区域样式 */
.video-section {
    background-color: #f8f9fa;
}

.video-container {
    max-height: 500px;
    overflow: hidden;
}

.video-container video {
    height: 500px;
    object-fit: cover;
}

.video-overlay {
    background: transparent;
    padding: 0;
    border-radius: 0;
    backdrop-filter: none;
}

.video-title {
    font-size: 3rem;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin: 0;
    white-space: nowrap;
}

.video-title .text-warning {
    color: #ffc107 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 700;
}

/* Investment Section Styles */
.investment-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    color: #333333;
}

.investment-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
}

.investment-title .text-warning {
    background: linear-gradient(45deg, #ffc107, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.investment-content {
    max-width: 1200px;
    margin: 0 auto;
}

.investment-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #555555;
    text-align: justify;
}

/* Section Items */
.investment-section-item {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.investment-section-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Subtitles */
.investment-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffc107;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.investment-subtitle i {
    font-size: 1.3rem;
}

/* Competitive Advantages Styles */
.competitive-advantages-grid {
    margin-top: 0.5rem;
}

.advantage-item {
    background: transparent;
    border-radius: 10px;
    padding: 0;
    border-left: none;
    height: 100%;
    transition: all 0.3s ease;
}

.advantage-item:hover {
    background: transparent;
    transform: translateY(-2px);
    box-shadow: none;
}

.advantage-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffc107;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.advantage-title i {
    font-size: 1rem;
}

.advantage-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555555;
    margin: 0;
    text-align: justify;
}

/* About page competitive advantages: set small titles to black */
.investment-section-item .investment-subtitle,
.investment-section-item .advantage-title {
    color: #000;
}

.competitive-summary {
    background: transparent;
    border-radius: 10px;
    padding: 0;
    border: none;
}

.summary-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #555555;
    margin: 0;
    text-align: justify;
    font-style: italic;
}

.future-outlook {
    background: transparent;
    border-radius: 10px;
    padding: 0;
    border: none;
}

.outlook-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #555555;
    margin: 0;
    text-align: center;
    font-weight: 500;
}

/* Statistics Section */
.investment-stats {
    background: rgba(255, 193, 7, 0.08);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 193, 7, 0.25);
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #ffc107, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: #666666;
    margin: 0;
}

/* Policy Section */
.policy-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.policy-item {
    background: rgba(255, 193, 7, 0.06);
    border-radius: 10px;
    padding: 1.5rem;
    border-left: none;
}

.policy-region {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e67e22;
    margin-bottom: 1rem;
}

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

.policy-list li {
    padding: 0.5rem 0;
    color: #555555;
    position: relative;
    padding-left: 1.5rem;
}

.policy-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ffc107;
    font-weight: bold;
}

.policy-list strong {
    color: #ffc107;
}

/* Technology Features */
.tech-features {
    margin-top: 1rem;
}

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

.feature-item {
    background: rgba(255, 193, 7, 0.06);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 193, 7, 0.25);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 193, 7, 0.12);
    border-color: inherit;
    transform: translateY(-3px);
    box-shadow: none;
}

/* 更紧凑的卡片间距：减少列底部间距 */
.competitive-advantages-grid .col-md-6.mb-3,
.competitive-advantages-grid .col-md-12.mb-3 {
    margin-bottom: 0.5rem !important;
}

/* 缩小区块内部上间距：降低 mt-4 在该区块内的效果 */
.investment-section-item .mt-4 {
    margin-top: 0.5rem !important;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-item h6 {
    color: #e67e22;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: #666666;
    font-size: 0.9rem;
    margin: 0;
}

/* Highlight Section */
.investment-highlight {
    background: transparent;
    padding: 0;
    border-radius: 0;
    color: #1a1a1a;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
    box-shadow: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.investment-highlight i {
    font-size: 1.3rem;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .team-img {
        height: 220px;
    }
    
    .team-card .card-body {
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    .team-container .row {
        margin: 0;
    }
    
    .team-img {
        height: 200px;
    }
    
    .team-card .card-body {
        min-height: 160px;
        padding: 1rem;
    }
    
    .team-card .card-title {
        font-size: 1rem;
    }
    
    .team-card .card-text {
        font-size: 0.85rem;
    }
    
    /* 视频section响应式 */
    .video-container {
        max-height: 350px;
    }
    
    .video-container video {
        height: 350px;
    }
    
    .video-title {
        font-size: 2.2rem;
        font-weight: 900;
    }
    
    .video-overlay {
        padding: 0;
    }
    
    /* 投资section响应式 */
    .investment-section {
        padding: 60px 0;
    }
    
    .investment-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .investment-section-item {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .investment-subtitle {
        font-size: 1.3rem;
    }
    
    .investment-text {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .investment-stats {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .policy-highlights {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .policy-item {
        padding: 1rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-item {
        padding: 1rem;
    }
    
    .investment-highlight {
        font-size: 1.1rem;
        padding: 0;
        margin-top: 0;
    }
}

@media (max-width: 576px) {
    .team-container .row {
        margin: 0;
    }
    
    .team-img {
        height: 180px;
    }
    
    .team-card .card-body {
        min-height: 140px;
        padding: 0.875rem;
    }
    
    /* 小屏幕视频section */
    .video-container {
        max-height: 250px;
    }
    
    .video-container video {
        height: 250px;
    }
    
    .video-title {
        font-size: 1.8rem;
        font-weight: 900;
    }
    
    .video-overlay {
        padding: 0;
    }
    
    /* 投资section小屏幕响应式 */
    .investment-section {
        padding: 40px 0;
    }
    
    .investment-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .investment-section-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .investment-subtitle {
        font-size: 1.1rem;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .investment-subtitle i {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
    
    .investment-text {
        font-size: 0.95rem;
        line-height: 1.6;
        text-align: left;
    }
    
    .investment-stats {
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .policy-item {
        padding: 0.75rem;
    }
    
    .policy-region {
        font-size: 1rem;
    }
    
    .feature-item {
        padding: 0.75rem;
    }
    
    .feature-icon {
        font-size: 1.5rem;
    }
    
    .investment-highlight {
        font-size: 1rem;
        padding: 0;
        margin-top: 0;
        flex-direction: column;
        text-align: center;
    }

/* Remove inner/outer spacing specifically for the highlighted block */
.investment-highlight.mb-4 {
    margin-bottom: 0 !important;
}
.investment-highlight .highlight-content {
    padding: 0 !important;
    margin: 0 !important;
}
    
    .investment-highlight i {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
}

/* 投资价值重新设计样式 */
.investment-value-section {
    background: #ffffff;
    border-radius: 15px;
    padding: 40px 30px;
    margin-top: 30px;
    border: 1px solid rgba(255, 193, 7, 0.1);
}

.investment-value-header {
    position: relative;
    margin-bottom: 40px;
}

.value-title-wrapper {
    display: inline-block;
    position: relative;
}

.investment-value-main-title {
    color: #ffc107;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.investment-value-main-title .title-text {
    color: #ffc107;
    background: linear-gradient(135deg, #ffc107, #ffeb3b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

/* 为不支持background-clip的浏览器提供备用方案 */
@supports not (-webkit-background-clip: text) {
    .investment-value-main-title .title-text {
        color: #ffc107 !important;
        -webkit-text-fill-color: initial !important;
    }
}

.title-underline {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #ffc107, #ffeb3b);
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
}

.title-underline::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 7px;
    background: linear-gradient(90deg, #ffc107, #ffeb3b);
    border-radius: 4px;
    opacity: 0.6;
}

.investment-value-cards {
    margin-bottom: 40px;
}

/* 去掉该区块内小卡片之间的网格间距（覆盖 g-4 默认 gutter） */
.investment-value-cards .row.g-4 {
    --bs-gutter-x: 0 !important;
    --bs-gutter-y: 0 !important;
}

.value-card {
    background: transparent;
    border: none;
    border-radius: 15px;
    padding: 8px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: none;
}

.value-card:hover {
    transform: none;
    background: inherit;
    border-color: inherit;
    box-shadow: none;
}

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

.card-content {
    flex: 1;
    padding-top: 0;
}

.card-title {
    color: #333333;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
}

.card-description {
    color: #333333;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
}

/* 不同卡片的特色样式 */
.team-card:hover {
    border-color: inherit;
}

.track-card:hover {
    border-color: inherit;
}

.model-card:hover {
    border-color: inherit;
}

.trend-card:hover {
    border-color: inherit;
}

/* 行动号召区域 */
.investment-cta-section {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.investment-cta-section::before {
    content: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.cta-content {
    position: relative;
    z-index: 2;
    padding: 0;
}

.cta-text {
    color: #333333;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.8;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .investment-value-section {
        padding: 30px 20px;
    }
    
    .investment-value-main-title {
        font-size: 1.6rem;
    }
    
    .value-card {
        padding: 6px;
        margin-bottom: 0;
    }
    
    .investment-cta-section {
        padding: 0;
    }
    
    .cta-text {
        font-size: 1.1rem;
    }
}

/* 隐藏语言切换按钮 */
.navbar-nav .nav-item.dropdown:has(#languageDropdown) {
    display: none !important;
}

/* 兼容性样式 - 如果浏览器不支持:has选择器 */
.navbar-nav .nav-item.dropdown .nav-link[id="languageDropdown"] {
    display: none !important;
}

.navbar-nav .nav-item.dropdown:last-child {
    display: none !important;
}

/* 全站页脚：移除 Contact 跳转链接 */
footer .list-unstyled li:has(a[data-i18n="nav_contact"]) {
    display: none !important;
}

/* 兼容性：不支持 :has 的浏览器，直接隐藏链接本身 */
footer a[data-i18n="nav_contact"] {
    display: none !important;
}

/* 两栏布局高度一致性样式 */
.row.d-flex.align-items-stretch {
    min-height: 500px;
}

.row.d-flex.align-items-stretch .col-md-6 {
    display: flex;
    flex-direction: column;
}

/* 视频容器响应式样式 */
.video-container {
    position: relative;
    width: 100%;
}

.video-container video {
    width: 100%;
    height: auto;
    border-radius: 0.375rem;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .row.d-flex.align-items-stretch {
        min-height: auto;
    }
    
    .row.d-flex.align-items-stretch .col-md-6 {
        margin-bottom: 2rem;
    }
    
    .video-container video {
        max-height: 300px;
        object-fit: cover;
    }
    
    .col-md-6 .mb-3 img {
        max-height: 200px !important;
        min-height: 150px !important;
    }
}

/* 大屏幕段落间距优化 */
@media (min-width: 1200px) {
    .row.d-flex.align-items-stretch .col-md-6 .mb-3 {
        margin-bottom: 1rem !important;
    }
    
    .row.d-flex.align-items-stretch .col-md-6 .mb-3.flex-grow-1 {
        flex-grow: 0.8 !important;
    }
    
    .row.d-flex.align-items-stretch .col-md-6 .h-100 {
        gap: 1rem;
    }
}

@media (min-width: 1400px) {
    .row.d-flex.align-items-stretch .col-md-6 .mb-3 {
        margin-bottom: 0.75rem !important;
    }
    
    .row.d-flex.align-items-stretch .col-md-6 .mb-3.flex-grow-1 {
        flex-grow: 0.6 !important;
    }
    
    .row.d-flex.align-items-stretch .col-md-6 .h-100 {
        gap: 0.75rem;
    }
}
/* Responsive: eTag & AGW section */
.etag-agw-row h4 {
  font-size: clamp(18px, 5vw, 20px);
}
.etag-agw-row p {
  font-size: clamp(12px, 3.6vw, 14px);
  line-height: 1.5;
}
.etag-agw-row li {
  font-size: clamp(12px, 3.4vw, 13px);
}

/* inner responsive: lists and descriptions */
.etag-agw-row .features-flex {
  display: flex;
  gap: 15px;
}
.etag-agw-row .feature-list li { margin-bottom: 6px; }
.etag-agw-row .agw-text p { font-size: clamp(12px, 3.6vw, 14px) !important; }

@media (max-width: 768px) {
  .etag-agw-row .p-3 { padding: 10px !important; }
  .etag-agw-row .etag-img-large { height: 160px !important; }
  .etag-agw-row .etag-img-small { height: 90px !important; }
  .etag-agw-row .etag-img-small-wide { height: 100px !important; }
  .etag-agw-row .features-flex { flex-direction: column; gap: 8px !important; }
  .etag-agw-row .feature-list { padding-left: 0 !important; }
}

@media (min-width: 992px) {
  .etag-agw-row .etag-img-large { height: 250px !important; }
  .etag-agw-row .etag-img-small { height: 120px !important; }
  .etag-agw-row .etag-img-small-wide { height: 120px !important; }
  .etag-agw-row .features-flex { flex-direction: row; }
}

@media (max-width: 768px) {
  .etag-agw-row .p-3 { padding: 10px !important; }
  .etag-agw-row .etag-img-large { height: 160px !important; }
  .etag-agw-row .etag-img-small { height: 90px !important; }
  .etag-agw-row .etag-img-small-wide { height: 100px !important; }
}

@media (min-width: 992px) {
  .etag-agw-row .etag-img-large { height: 250px !important; }
  .etag-agw-row .etag-img-small { height: 120px !important; }
  .etag-agw-row .etag-img-small-wide { height: 120px !important; }
}
/* Timeline icon white background enlargement */
.timeline-icon {
  background: #fff;
  border-radius: 50%;
  padding: 16px; /* enlarge white background around circular images */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .timeline-icon { padding: 12px; }
}

/* Ensure the image itself also has an inner white ring */
.timeline-icon img {
  background: #fff;
  border-radius: 50%;
  padding: 10px; /* inner ring size */
  box-sizing: content-box;
}

@media (max-width: 768px) {
  .timeline-icon img { padding: 8px; }
}
/* Timeline years layout: avoid overlap on small screens */
.timeline-years { position: relative; }
.timeline-year { /* base styles use inline for look; here we control position on mobile */ }

@media (max-width: 992px) {
  .timeline-years { padding-bottom: 28px; }
  .timeline-year { top: calc(100% + 8px); }
}

@media (max-width: 576px) {
  .timeline-years { padding-bottom: 36px; }
  .timeline-year { top: calc(100% + 12px); }
}
/* Timeline grid layout */
.timeline-grid-item {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* 左对齐，避免居中时两侧被裁剪 */
  gap: 6px; /* 缩小图片与时间标签的间距 */
}

.timeline-year-badge {
  color: #f39c12;
  font-weight: bold;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.9);
  padding: 3px 6px; /* 更紧凑的内部留白 */
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 0;
  white-space: nowrap;
  position: relative; /* 创建层叠上下文提高显示优先级 */
  z-index: 2;
  text-align: left; /* 标签文本靠左 */
}

/* 防止列裁剪标签或阴影 */
.timeline-grid .col-lg-2,
.timeline-grid .col-md-4,
.timeline-grid .col-sm-6 {
  overflow: visible;
}

@media (min-width: 992px) {
  /* 大屏下取消图片上移，避免与标签重叠 */
  .timeline-grid-item .timeline-icon img { transform: none !important; }
}

@media (max-width: 576px) {
  .timeline-grid-item { gap: 6px; }
  .timeline-year-badge { font-size: 13px; }
}
/* Square background for product thumbnails */
.product-thumb-square {
  width: 100%;
  aspect-ratio: 1 / 1; /* make the box square */
  background-color: #f8f9fa;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  max-width: 320px; /* prevent overly wide squares */
  margin: 0 auto; /* center inside column */
}

.product-thumb-square img {
  width: var(--thumb-size, 65%);
  height: var(--thumb-size, 65%);
  object-fit: contain;
}

/* Mobile tweaks: tighten padding and reduce inner image ratio */
@media (max-width: 768px) {
  .product-thumb-square { padding: 8px; max-width: 280px; }
  .product-thumb-square img { width: var(--thumb-size, 80%); height: var(--thumb-size, 80%); }
}

/* Unified card container improvements */
.content-box { overflow: hidden; }

/* Unified content card for consistent visual alignment across pages */
.content-box {
  background: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 12px;
  height: 100%;
}

@media (max-width: 768px) {
  .content-box { padding: 10px; }
}

/* Fixed small image box to keep two photos equal size */
.img-fixed-sm {
  width: 280px;
  height: 200px;
  object-fit: contain;
}
@media (max-width: 576px) {
  .img-fixed-sm {
    width: 220px;
    height: 160px;
  }
}
/* About page: unify Chinese row height across columns */
@media (min-width: 768px) {
  .about-cn {
    min-height: 64px; /* ensure EN first line aligns across columns */
    margin-bottom: 0.375rem; /* slightly larger gap to English */
  }
  .about-en {
    margin-top: 0; /* keep consistent start position */
  }
}
