/**
 * Page Header Styles
 * 页面头部样式
 * 
 * @package Milestrong
 * @since 2.0.0
 */

/* 页面头部容器 */
.milestrong-page-header {
    position: relative;
    width: 100vw;         /* 宽度铺满浏览器 */
    max-width: 100%;
    margin: 0;            /* 去掉左右黑边 */
    padding: 0;
    background-size: 100% auto;  /* 宽度铺满，高度等比 */
    background-position: top center;
    overflow: visible; /* 让图片完整显示，不隐藏 */
    aspect-ratio: 16 / 9;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    height: 800px;
}

/* 内容容器 */
.milestrong-page-header-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  width: 100%;
}

/* 页面标题 */
.milestrong-page-title {
    font-size: 120px;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 0 8px #017fff3d, 0 0 16px #017fff00, 0 0 24px #017fff59;
}

/* 页面副标题 */
.milestrong-page-subtitle {
    font-size: 35px;
    font-weight: 400;
    /* margin: 20px auto 0; */
    line-height: 1.6;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    display: inline-block;
    padding: 0px 90px;
    border: 10px solid rgb(0 0 0 / 30%);
    border-radius: 75px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 无背景图时的样式 */
.milestrong-page-header:not([style*="background-image"]) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 响应式设计 - 平板 */
@media screen and (max-width: 1024px) {
    .milestrong-page-header {
        aspect-ratio: auto;
        height: 500px;
        max-height: 500px;
    }

    .milestrong-page-title {
        font-size: 40px;
    }

    .milestrong-page-subtitle {
        font-size: 18px;
    }
}

/* 响应式设计 - 手机 */
@media screen and (max-width: 768px) {
    .milestrong-page-header {
        aspect-ratio: auto;
        height: 350px;
        max-height: 350px;
    }

    .milestrong-page-header-content {
        padding: 30px 20px;
    }

    .milestrong-page-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .milestrong-page-subtitle {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .milestrong-page-header {
        aspect-ratio: auto;
        height: 280px;
        max-height: 280px;
    }

    .milestrong-page-title {
        font-size: 28px;
    }

    .milestrong-page-subtitle {
        font-size: 14px;
    }
}

/* 动画效果 */
.milestrong-page-header-content {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 30px));
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* 面包屑导航（可选） */
.milestrong-page-breadcrumb {
    position: relative;
    z-index: 2;
    margin-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.milestrong-page-breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.milestrong-page-breadcrumb a:hover {
    opacity: 0.8;
}

.milestrong-page-breadcrumb .separator {
    margin: 0 10px;
    opacity: 0.6;
}
