/* ===== 组件样式：可复用的UI组件 ===== */

/* 英雄区块顶部边框：装饰性顶部边框元素 */
.hero-section .hero-border {
    position: absolute;    /* 绝对定位 */
    top: 0;               /* 顶部对齐 */
    left: 0;             /* 左侧对齐 */
    right: 0;            /* 右侧对齐 */
    height: 60px;        /* 固定高度60px */
    border: none;        /* 无边框 */
    background: transparent; /* 透明背景 */
    border-radius: 0;    /* 无圆角 */
    pointer-events: none; /* 禁止鼠标事件，避免干扰交互 */
    z-index: 10;         /* 较高层级，确保显示在背景之上 */
    box-shadow: none;    /* 无阴影 */
}

/* 顶部边框的伪元素：实际显示效果的边框 */
.hero-section .hero-border::before {
    content: '';          /* 必须内容属性 */
    position: absolute;    /* 绝对定位 */
    top: 0;               /* 顶部对齐 */
    left: 0;             /* 左侧对齐 */
    right: 0;            /* 右侧对齐 */
    height: 60px;        /* 高度60px */
    background: rgba(0, 0, 0, 0.95); /* 深色半透明背景：95%不透明度黑色 */
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%); /* 多边形裁剪：右上角斜切效果 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); /* 底部阴影：增强立体感 */
}

.hero-section .hero-border-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    border: none;
    background: transparent;
    border-radius: 0;
    pointer-events: none;
    z-index: 10;
    box-shadow: none;
}

.hero-section .hero-border-bottom::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(0, 0, 0, 0.95);
    clip-path: polygon(0 100%, 100% 100%, 95% 0, 0 0);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.8);
}

.hero-section .hero-border .logo {
    position: absolute;
    top: 15px;
    left: 30px;
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.hero-section .hero-border .logo-subtitle {
    position: absolute;
    top: 45px;
    left: 30px;
    font-size: 12px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-section .hero-border .border-controls {
    position: absolute;
    top: 15px;
    right: 30px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.hero-section .hero-border .control-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.hero-section .hero-border .control-circle {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.hero-text {
    animation: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: white;
    line-height: 1.2;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #333333 0%, #555555 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.btn:hover,
.btn:focus,
.btn:active,
.btn:visited {
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
    display: none;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: none;
    transform: none;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide-bg {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide:nth-child(1) .slide-bg {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.carousel-slide:nth-child(1) .slide-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(99, 102, 241, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(139, 92, 246, 0.3) 0%, transparent 50%);
}

.carousel-slide:nth-child(2) .slide-bg {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 50%, #4a1c6e 100%);
}

.carousel-slide:nth-child(2) .slide-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 40% 40%, rgba(245, 158, 11, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 70%, rgba(239, 68, 68, 0.3) 0%, transparent 50%);
}

.carousel-slide:nth-child(3) .slide-bg {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #2d2d44 100%);
}

.carousel-slide:nth-child(3) .slide-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(99, 102, 241, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse at 30% 70%, rgba(139, 92, 246, 0.25) 0%, transparent 45%);
}

.carousel-slide:nth-child(4) .slide-bg {
    background: linear-gradient(135deg, #1a1a2e 0%, #2e1a3d 50%, #3d1a4e 100%);
}

.carousel-slide:nth-child(4) .slide-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 60% 50%, rgba(236, 72, 153, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(139, 92, 246, 0.3) 0%, transparent 50%);
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    display: none;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: none;
}

.carousel-btn:hover {
    background: var(--primary-color);
}

.carousel-btn.prev {
    left: 30px;
}

.carousel-btn.next {
    right: 30px;
}

.intro-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: white;
}

.intro-text {
    font-size: 1rem;
    color: white;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 100%;
}

