/* ===== 转盘区域整体布局 ===== */
.xz-wrapper {
    width: 1200px;
    margin: 60px auto 0;
    display: flex;
    align-items: center;
    gap: 30px;
}

/* ===== 左侧标题 + 按钮面板 ===== */
.xz-left {
    width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    margin-top: -60px;
}

.xz-left-title {
    font-size: 22px;
    font-weight: 700;
    color: #326663;
    border-left: 5px solid #326663;
    padding-left: 12px;
    margin-bottom: 30px;
    line-height: 1.4;
}

.xz-tab-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 16px;
    border: none;
    border-radius: 10px;
    background: #e8f4f3;
    color: #326663;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, box-shadow 0.25s, transform 0.15s;
    text-align: left;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

/* ===== 按钮花朵装饰 ===== */
.xz-tab-btn::after {
    content: '';
    position: absolute;
    right: -14px;
    bottom: -18px;
    width: 90px;
    height: 90px;
    background: url('../images/flower.jpg') no-repeat center / contain;
    opacity: 0.98;
    mix-blend-mode: multiply;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 0;
}

.xz-tab-btn:hover::after {
    opacity: 0.98;
    transform: scale(1.12) rotate(8deg);
}

.xz-tab-btn.active::after {
    opacity: 0.98;
    transform: scale(1.08) rotate(-5deg);
}

.xz-tab-btn .btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #326663;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.25s;
}

.xz-tab-btn .btn-icon svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.xz-tab-btn:hover {
    background: #326663;
    color: #fff;
    box-shadow: 0 6px 20px rgba(50,102,99,0.35);
    transform: translateX(4px);
}

.xz-tab-btn:hover .btn-icon {
    background: rgba(255,255,255,0.25);
}

.xz-tab-btn.active {
    background: #326663;
    color: #fff;
    box-shadow: 0 6px 20px rgba(50,102,99,0.40);
}

.xz-tab-btn.active .btn-icon {
    background: rgba(255,255,255,0.22);
}

.xz-tab-subtitle {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 2px;
    display: block;
}

/* ===== 右侧全圆转盘 ===== */
.xz-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.void {
    width: 100%;
    max-width: 720px;
    position: relative;
    aspect-ratio: 1 / 1;
}

/* ===== 转盘花朵装饰背景 ===== */
.void::before {
    content: '';
    position: absolute;
    width: 115%;
    aspect-ratio: 1 / 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: url('../images/flower.jpg') no-repeat center / contain;
    opacity: 0.9;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 1;
    animation: flowerSpin 60s linear infinite;
}

@keyframes flowerSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 轨道装饰圆环 */
.orbit-ring {
    position: absolute;
    /* 圆环直径 = 卡片中心轨道半径 × 2，用 JS 统一管理 */
    width: 78%;
    aspect-ratio: 1 / 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1.5px dashed rgba(50,102,99,0.28);
    pointer-events: none;
    z-index: 0;
}

.inner-ring {
    position: absolute;
    width: 38%;
    aspect-ratio: 1 / 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(50,102,99,0.08) 0%, rgba(50,102,99,0.03) 100%);
    pointer-events: none;
    z-index: 0;
}

/* 转盘内容组 */
.orbit-group {
    display: none;
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
}
.orbit-group.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ===== 单张卡片外壳（JS 定位用） ===== */
.orbit-item {
    position: absolute;
    left: 0;
    top: 0;
    width: 218px;
    z-index: 2;
    will-change: transform;
    /* 注意：transform 完全由 JS 接管，不在此声明 transition */
}

/* ===== 卡片样式 ===== */
.void .card {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 4px 16px rgba(50,102,99,0.18), 0 8px 28px rgba(50,102,99,0.10);
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.22s;
}

.void .card:hover {
    box-shadow: 0 8px 28px rgba(50,102,99,0.30), 0 16px 40px rgba(50,102,99,0.14);
    transform: scale(1.06);
}

.void .card-img {
    width: 100%;
    height: 116px;
    object-fit: cover;
    display: block;
}

.void .card-img-placeholder {
    width: 100%;
    height: 116px;
    background: linear-gradient(135deg, #c8e6e4 0%, #9ecfcc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(50,102,99,0.55);
    font-size: 12px;
    flex-shrink: 0;
}

.void .card-body {
    padding: 10px 12px 13px;
}

.void .card-title {
    font-weight: 700;
    font-size: 14px;
    color: #326663;
    display: block;
    margin-bottom: 5px;
    line-height: 1.35;
}

.void .card-desc {
    font-size: 12.5px;
    color: #666;
    line-height: 1.6;
    display: block;
}

/* 中心圆 */
.void .center-circle {
    position: absolute;
    width: 120px;
    aspect-ratio: 1 / 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #326663;
    box-shadow: 0 10px 32px rgba(50,102,99,0.45);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    line-height: 1.5;
    z-index: 20;
}

/* 转盘右下角第二朵花（点缀） */
/*
.void::after {
    content: '';
    position: absolute;
    width: 28%;
    aspect-ratio: 1 / 1;
    right: 2%;
    bottom: 4%;
    background: url('../images/flower.jpg') no-repeat center / contain;
    opacity: 0.98;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 1;
    animation: flowerSpin 45s linear infinite reverse;
}
*/

/* 通车状态标签 */
.card-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}
.card-status.open {
    background: #e6f4f1;
    color: #1f7a5e;
    border: 1px solid #a8d9ce;
}
.card-status.open::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #27ae7a;
    flex-shrink: 0;
}
.card-status.building {
    background: #fff8e6;
    color: #b07d00;
    border: 1px solid #f0d080;
}
.card-status.building::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #f0a800;
    flex-shrink: 0;
}

/* ===== 布局修正 ===== */
/* wrapper固定最小高度=转盘，左侧按钮垂直居中+下压，位置不随右侧内容高度变化 */
.xz-wrapper { align-items: flex-start !important; min-height: 740px; }
.xz-left    { margin-top: 0 !important; min-height: 740px; justify-content: center !important; padding-top: 60px; box-sizing: border-box; }
#xz-right-panel { margin-top: 20px; }

/* 确保按钮内部文字/图标层叠在花朵上方 */
.xz-tab-btn .btn-icon,
.xz-tab-btn > div { position: relative; z-index: 1; }

/* ===== 筑路先锋面板 ===== */
.pioneer-panel {
    flex: 1;
    padding: 10px 20px 20px;
    animation: fadeIn 0.4s ease;
    /* 整体向右上方移动，使"工程决策与总体设计"与"工程建设全览"基本齐平 */
    margin-top: -632px;
    margin-left: 40px;
}

.pioneer-section {
    margin-bottom: 36px;
}

.pioneer-section-title {
    font-size: 20px;
    font-weight: bold;
    color: #326663;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 2px;
    position: relative;
}

.pioneer-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #326663;
    margin: 8px auto 0;
    border-radius: 2px;
}

.pioneer-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

/* ===== 翻转人物卡片 ===== */
.person-card {
    width: 100%;
    height: 290px;
    perspective: 1000px;
    cursor: pointer;
    margin: 0;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.person-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(50,102,99,0.18);
}

.card-front {
    background-color: #fff;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-front:hover {
    box-shadow: 0 8px 24px rgba(50,102,99,0.30);
}

.person-image {
    width: 100%;
    height: 58%;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
    margin: 0;
    display: block;
}

/* 图片加载失败时的占位 */
.person-img-placeholder {
    width: 100%;
    height: 58%;
    border-radius: 15px 15px 0 0;
    background: linear-gradient(135deg, #c8e6e4 0%, #9ecfcc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: rgba(50,102,99,0.55);
    flex-shrink: 0;
}

.card-content-p {
    padding: 10px 12px 8px;
    width: 100%;
    height: 42%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
}

.person-name {
    font-size: 17px;
    font-weight: bold;
    margin: 4px 0 3px;
    color: #326663;
    text-align: left;
}

.person-title {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
    text-align: left;
}

.person-description {
    font-size: 12px;
    line-height: 1.5;
    color: #555;
    text-align: left;
}

.card-back {
    background-color: #326663;
    color: white;
    transform: rotateY(180deg);
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.card-back .person-name {
    color: #fff;
    font-size: 16px;
    margin-bottom: 8px;
}

.card-back .person-description {
    font-size: 12.5px;
    line-height: 1.65;
    color: rgba(255,255,255,0.92);
    text-align: left;
}

.read-more {
    display: inline-block;
    margin-top: 14px;
    padding: 6px 14px;
    background-color: #fff;
    color: #326663;
    text-decoration: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.3s;
}

.read-more:hover {
    background-color: #e8f4f3;
}

/* ===== 世界之最板块 ===== */

.szz-section {
    margin: 120px auto 100px;
    width: 1200px;
}

/* 左右并排 */
.szz-inner {
    display: flex;
    align-items: flex-start;
    gap: 44px;
}

/* ── 左列 ── */
.szz-left-col {
    flex-shrink: 0;
    width: 230px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0px;
}
.szz-left-col .tb {
    margin: 0 auto 26px !important;
}
.szz-desc-text {
    font-size: 14px;
    color: #333;
    line-height: 26px;
    text-indent: 2em;
    margin-bottom: 32px;
    width: 100%;
}
.szz-desc-text strong {
    color: #326663;
    font-weight: 700;
}
.szz-arrows {
    display: flex;
    gap: 14px;
}
.szz-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #326663;
    background: #fff;
    color: #326663;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
    user-select: none;
}
.szz-arrow:hover { background: #326663; color: #fff; }

/* ── 右列：轮播视口 ── */
.szz-carousel-viewport {
    flex: 1;
    overflow: hidden;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 4px 16px;
}
.szz-carousel-viewport::-webkit-scrollbar { display: none; }

.szz-carousel-track {
    display: flex;
    gap: 8px;
    width: max-content;
}

/* ── 单张卡片（精选非遗项目风格）── */
.szz-card {
    position: relative;
    width: 230px;
    height: 420px;
    border-radius: 0;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(50,102,99,0.18);
    /* 初始无额外变换 */
}

/* 图片铺满，hover 时放大 */
.szz-card > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}
.szz-card:hover > img {
    transform: scale(1.10);
}

/* 图片占位 */
.szz-card-placeholder {
    display: none;
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #c8e6e4, #9ecfcc);
    align-items: center;
    justify-content: center;
    font-size: 56px;
    z-index: 1;
}

/* 底部渐变遮罩（常态） */
.szz-card-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 2;
    padding: 56px 14px 16px;
    background: linear-gradient(to top,
        rgba(14, 42, 40, 0.95) 0%,
        rgba(14, 42, 40, 0.70) 50%,
        transparent 100%);
    /* 副标题 p 初始隐藏，hover 时滑入 */
    transition: padding 0.35s ease;
}
.szz-card:hover .szz-card-content {
    padding-bottom: 20px;
    background: linear-gradient(to top,
        rgba(14, 42, 40, 0.97) 0%,
        rgba(14, 42, 40, 0.82) 60%,
        transparent 100%);
}

/* 分类标签 */
.szz-cat-tag {
    display: inline-block;
    background: rgba(50,102,99,0.80);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

/* 大数字 */
.szz-big-num {
    font-size: 30px;
    font-weight: 900;
    color: #5ecfc9;
    line-height: 1;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}
.szz-big-num small {
    font-size: 12px;
    font-weight: 600;
    color: rgba(200,235,232,0.75);
    margin-left: 3px;
    letter-spacing: 0;
    vertical-align: middle;
}

/* 标题 */
.szz-card-content h3 {
    font-size: 13.5px;
    font-weight: 800;
    color: #fff;
    line-height: 1.45;
    margin-bottom: 0;
    transition: margin-bottom 0.35s ease;
}
.szz-card:hover .szz-card-content h3 {
    margin-bottom: 8px;
}

/* 副标题：平时 max-height:0 隐藏，hover 展开 */
.szz-card-content p {
    font-size: 11.5px;
    color: rgba(200,235,232,0.80);
    line-height: 1.65;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.35s ease 0.05s;
    margin: 0;
}
.szz-card:hover .szz-card-content p {
    max-height: 80px;
    opacity: 1;
}
