/* ========================================
   扩展样式 - 视频页 / 业务页 / B站页
   ======================================== */

/* 非首页页面顶部留空（导航栏固定） */
.page-padding-top { padding-top: 80px; }

/* ========================================
   视频展览页 - 高级环形轮播
   ======================================== */
.videos-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #0a0a1a 0%, #12122a 30%, #0f172a 100%);
}

.videos-hero {
    text-align: center;
    padding: 50px 0 30px;
    color: #fff;
}
.videos-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.videos-hero p { color: rgba(255,255,255,0.55); font-size: 1rem; }

/* 环形轮播容器 */
.ring-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 550px;
    margin: 0 auto;
    perspective: 1200px;
    overflow: hidden;
}
.ring-stage {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}
.ring-item {
    position: absolute;
    width: 380px;
    height: 420px;
    left: 50%;
    top: 50%;
    margin-left: -190px;
    margin-top: -210px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.ring-item img,
.ring-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ring-item .ring-media-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff;
}
.ring-item .ring-media-overlay h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}
.ring-item .ring-media-overlay span {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
}

/* 当前中间卡片 - 正面无旋转 */
.ring-item.center {
    z-index: 10;
    transform: translateX(0) translateZ(0) rotateY(0deg) scale(1.05);
    box-shadow: 0 20px 60px rgba(100,150,255,0.3), 0 0 80px rgba(100,150,255,0.1);
    filter: brightness(1.05);
}
/* 左右卡片 - 弧形3D旋转 */
.ring-item.left-1 {
    z-index: 8;
    transform: translateX(-300px) translateZ(-180px) rotateY(20deg) scale(0.8);
    filter: brightness(0.65);
}
.ring-item.right-1 {
    z-index: 8;
    transform: translateX(300px) translateZ(-180px) rotateY(-20deg) scale(0.8);
    filter: brightness(0.65);
}
/* 最外侧卡片 - 更大弧形角度 */
.ring-item.left-2 {
    z-index: 6;
    transform: translateX(-460px) translateZ(-360px) rotateY(35deg) scale(0.6);
    filter: brightness(0.35) blur(1px);
    opacity: 0.55;
}
.ring-item.right-2 {
    z-index: 6;
    transform: translateX(460px) translateZ(-360px) rotateY(-35deg) scale(0.6);
    filter: brightness(0.35) blur(1px);
    opacity: 0.55;
}
/* 隐藏超出 */
.ring-item.hidden {
    opacity: 0;
    pointer-events: none;
}

/* 左右导航按钮 */
.ring-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ring-nav:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 20px rgba(100,150,255,0.3);
}
.ring-prev { left: 30px; }
.ring-next { right: 30px; }

/* 底部指示器 */
.ring-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 0 30px;
}
.ring-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.3s;
}
.ring-dot.active {
    background: #60a5fa;
    width: 24px;
    border-radius: 4px;
}

/* 空状态 */
.videos-empty {
    text-align: center;
    padding: 80px 0;
    color: rgba(255,255,255,0.3);
}
.videos-empty .empty-icon { font-size: 64px; margin-bottom: 16px; }
.videos-empty p { font-size: 1.1rem; }

/* 全屏查看模式 */
.videos-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.videos-modal.hidden { display: none; }
.videos-modal img,
.videos-modal video {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.videos-modal-close {
    position: absolute;
    top: 20px; right: 30px;
    font-size: 36px;
    color: #fff;
    cursor: pointer;
    z-index: 1;
    opacity: 0.7;
    transition: opacity 0.3s;
}
.videos-modal-close:hover { opacity: 1; }

/* ========================================
   业务导航页
   ======================================== */
.business-page {
    min-height: 100vh;
    background: var(--bg-alt);
}
.business-hero {
    text-align: center;
    padding: 50px 0 30px;
}
.business-hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 8px; }
.business-hero p { color: var(--text-light); font-size: 1rem; }

.business-categories { padding-bottom: 60px; }
.cat-section {
    margin-bottom: 40px;
}
.cat-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.link-card {
    display: block;
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}
.link-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.link-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.link-card .link-desc { color: var(--text-muted); font-size: 13px; }

/* ========================================
   B站视频页
   ======================================== */
.bilibili-page {
    min-height: 100vh;
    background: var(--bg-alt);
}
.bilibili-hero {
    text-align: center;
    padding: 50px 0 30px;
}
.bilibili-hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 8px; }
.bilibili-hero p { color: var(--text-light); font-size: 1rem; }

.bilibili-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding-bottom: 60px;
}
.bilibili-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}
.bilibili-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.bilibili-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: #1e1e2d;
}
.bilibili-card-body { padding: 16px; }
.bilibili-card-body h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bilibili-card-body .bilibili-desc {
    font-size: 13px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bilibili-player-wrapper {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.bilibili-player-wrapper.hidden { display: none; }
.bilibili-player-inner {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16/9;
}
.bilibili-player-inner iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}
.bilibili-player-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}
.bilibili-player-close:hover { opacity: 1; }

/* ========================================
   响应式
   ======================================== */
@media (max-width: 768px) {
    .ring-carousel-wrapper { height: 420px; }
    .ring-item { width: 280px; height: 320px; margin-left: -140px; margin-top: -160px; }
    .ring-item.left-1 { transform: translateX(-160px) translateZ(-140px) rotateY(18deg) scale(0.68); }
    .ring-item.right-1 { transform: translateX(160px) translateZ(-140px) rotateY(-18deg) scale(0.68); }
    .ring-item.left-2 { display: none; }
    .ring-item.right-2 { display: none; }
    .ring-nav { width: 36px; height: 36px; font-size: 16px; }
    .ring-prev { left: 10px; }
    .ring-next { right: 10px; }
    .videos-hero h1 { font-size: 1.6rem; }
}

/* ========================================
   加入我们页
   ======================================== */
.join-page {
    min-height: 100vh;
    background: var(--bg-alt);
}
.join-hero {
    text-align: center;
    padding: 50px 0 30px;
}
.join-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.join-hero p {
    color: var(--text-light);
    font-size: 1rem;
}

/* 左右布局 */
.join-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 60px;
    align-items: start;
}

/* 左侧说明 */
.join-intro-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.join-intro-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
}
.join-steps { margin-bottom: 24px; }
.join-step {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.join-step:last-child { border-bottom: none; }
.step-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-text h4 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.step-text p { font-size: 13px; color: var(--text-muted); }
.join-tip {
    background: #eff6ff;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
    color: #1d4ed8;
    line-height: 1.6;
}
.join-tip span { margin-right: 4px; }

/* 右侧表单 */
.join-form-wrapper {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: sticky;
    top: 90px;
}
.join-form h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.join-form .form-group { margin-bottom: 20px; }
.join-form .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}
.join-form .required { color: #ef4444; }
.join-form .form-group input,
.join-form .form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: var(--bg);
}
.join-form .form-group input:focus,
.join-form .form-group textarea:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}
.join-form .form-hint {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.join-submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    color: #fff;
    transition: all 0.3s;
    margin-top: 8px;
}
.join-submit-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(96,165,250,0.35); }
.join-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.hidden { display: none !important; }

.join-success {
    text-align: center;
    padding: 40px 20px;
}
.join-success .success-icon { font-size: 64px; margin-bottom: 16px; }
.join-success h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; color: #16a34a; }
.join-success p { color: var(--text-light); font-size: 15px; line-height: 1.6; }
.join-success .success-sub { font-size: 13px; color: var(--text-muted); margin-top: 8px; }

.join-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 16px;
}

/* 响应式 */
@media (max-width: 900px) {
    .join-layout { grid-template-columns: 1fr; }
    .join-form-wrapper { position: static; }
    .join-hero h1 { font-size: 1.8rem; }
}
@media (max-width: 480px) {
    .join-intro-card { padding: 20px; }
    .join-form-wrapper { padding: 20px; }
}
