/* ==================== Section Hero 组件样式 ==================== */
.section-hero {
    max-width: 1200px;
    margin: 60px auto 0 auto; /* 上边距60px，下边距0 */
    padding: 0;
    text-align: center;
    position: relative;
    box-sizing: border-box;
}

.section-hero--align-left {
    text-align: left;
}

.section-hero__container {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px 16px 0 0; 
    padding: 2rem 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 124, 186, 0.1);
    position: relative;
    overflow: hidden;
}

/* 只保留上边缘背景条 */
.section-hero__container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007cba, #00b4d8);
    border-radius: 16px 16px 0 0;
    z-index: 2;
}

.section-hero__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a365d;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-hero--align-left .section-hero__title {
    text-align: left;
}

.section-hero__subtitle {
    font-size: 1.2rem;
    color: #4a5568;
    margin: 0 0 2.5rem 0;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.section-hero--align-left .section-hero__subtitle {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

.section-hero__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2.5rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid #3498db;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    max-width: 100%;
    margin: 0 auto;
}

.section-hero--align-left .section-hero__action {
    margin-left: 0;
    margin-right: 0;
}

.section-hero__action::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: left 0.6s ease;
}

.section-hero__action:hover::before {
    left: 100%;
}

.section-hero__action:hover {
    background: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.section-hero__arrow {
    transition: transform 0.3s ease;
}

.section-hero__action:hover .section-hero__arrow {
    transform: translateX(4px);
}

/* 装饰元素 */
.section-hero__decoration {
    position: absolute;
    z-index: 1;
    opacity: 0.1;
    pointer-events: none;
}

.section-hero__decoration--1 {
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #007cba, #00b4d8);
    border-radius: 50%;
}

.section-hero__decoration--2 {
    bottom: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    border-radius: 50%;
}

/* 深色主题 */
.section-hero--dark .section-hero__container {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
}

.section-hero--dark .section-hero__title {
    color: white;
    background: linear-gradient(135deg, #ffffff, #bdc3c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-hero--dark .section-hero__subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* 紧凑模式 */
.section-hero--compact .section-hero__container {
    padding: 2rem 3rem;
}

.section-hero--compact .section-hero__title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.section-hero--compact .section-hero__subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* ========== 新增：桌面端按钮在一行 ========== */
@media (min-width: 769px) {
    .section-hero__container {
        display: flex;
        align-items: center; /* 改为center让所有元素垂直居中 */
        justify-content: space-between;
        gap: 2rem;
        text-align: left;
    }
    
    .section-hero__title {
        flex: 1;
        margin-right: 2rem;
        margin-bottom: 0.5rem;
        text-align: left;
    }
    
    .section-hero__subtitle {
        flex: 1;
        margin: 0;
        max-width: none;
        text-align: left;
        padding-right: 2rem;
    }
    
    .section-hero__title + .section-hero__subtitle {
        margin-top: 0;
    }
    
    .section-hero__action {
        flex-shrink: 0;
        margin: 0;
        white-space: nowrap;
        align-self: center;
    }
    
    /* 居中对齐模式的调整 */
    .section-hero--align-center .section-hero__container {
        justify-content: center;
        text-align: center;
    }
    
    .section-hero--align-center .section-hero__title,
    .section-hero--align-center .section-hero__subtitle {
        text-align: center;
        margin-right: 0;
        padding-right: 0;
    }
    
    .section-hero--align-center .section-hero__action {
        margin: 0 auto;
    }
}

/* ========== 响应式设计 ========== */
@media (max-width: 1200px) {
    .section-hero {
        max-width: calc(100% - 40px);
        margin: 35px auto 0 auto;
    }
}

@media (max-width: 992px) {
    .section-hero__container {
        padding: 2rem 2.5rem;
    }
    
    .section-hero__title {
        font-size: 2.2rem;
    }
    
    .section-hero__subtitle {
        font-size: 1.1rem;
    }
}

/* 平板端 */
@media (max-width: 768px) {
    .section-hero {
        max-width: 100%; /* 靠近屏幕边缘 */
        margin: 30px 0 0 0;
        padding: 0;
    }
    
    .section-hero__container {
        margin: 0;
        padding: 2rem;
        border-radius: 0;
        text-align: center;
        border-left: none;
        border-right: none;
    }
    
    /* 移动端：移除左右圆角，只保留上边缘背景条 */
    .section-hero__container::before {
        border-radius: 0;
    }
    
    .section-hero__title {
        font-size: 1.8rem;
        margin: 0 0 1rem 0;
        text-align: center;
    }
    
    .section-hero__subtitle {
        font-size: 1rem;
        margin: 0 0 2rem 0;
        max-width: 700px;
        text-align: center;
        padding-right: 0;
    }
    
    .section-hero__action {
        padding: 0.75rem 2rem;
        font-size: 1rem;
        margin: 0 auto;
    }
    
    .section-hero__decoration--1,
    .section-hero__decoration--2 {
        display: none;
    }
    
    .section-hero--align-left .section-hero__title,
    .section-hero--align-left .section-hero__subtitle {
        text-align: center;
    }
}

/* 手机端 */
@media (max-width: 480px) {
    .section-hero {
        max-width: 100%;
        margin: 20px 0 0 0;
        padding: 0;
    }
    
    .section-hero__container {
        padding: 1.5rem 1rem;
        border-radius: 0;
    }
    
    .section-hero__title {
        font-size: 1.6rem;
    }
    
    .section-hero__subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .section-hero__action {
        width: 100%;
        max-width: 100%;
        padding: 0.75rem 1.5rem;
    }
}