/* ========== 全局基础 ========== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: #fbfbfd;
    color: #1d1d1f;
    line-height: 1.5;
    letter-spacing: -0.01em;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

/* 统一使用 layui-container 作为内容容器 */
.apple-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 顶部 Banner ========== */
.hero-swiper-wrap {
    width: 100%;
    height: 480px;
    position: relative;
}

/* 强制 layui 轮播容器的内部元素撑满 */
.hero-swiper-wrap .layui-carousel,
.hero-swiper-wrap .layui-carousel > [carousel-item],
.hero-swiper-wrap .layui-carousel > [carousel-item] > div {
    height: 100% !important;
    width: 100% !important;
}

/* 幻灯片内部容器 */
.slide-item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #1a1a1a;
}

/* 图片标签 */
.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    user-select: none;
    -webkit-user-drag: none;
}

/* 遮罩层：左侧加深，保证文字清晰 */
.slide-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
}

/* 文字内容外层：占满全屏，垂直居中，水平靠左 */
.slide-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center; /* 垂直居中 */
    justify-content: flex-start; /* 水平靠左 */
    z-index: 3;
}

/* 关键：使用 layui-container 限制文字的最大宽度并居中，与下方列表对齐 */
.slide-content-wrapper .layui-container {
    /*width: 100%;*/
    /*padding: 0 20px;*/
}

/* 文字内容区：内部元素左对齐 */
.slide-content {
    text-align: left;
    color: #ffffff;
    max-width: 700px; /* 限制文字块最大宽度 */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.slide-content h1 {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.slide-content .hero-subhead {
    font-size: 20px;
    font-weight: 400;
    opacity: 0.9;
    letter-spacing: -0.01em;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 0 32px 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* 极简标签 */
.hero-badge-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 40px;
    letter-spacing: -0.01em;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pill-badge i {
    margin-right: 6px;
    font-size: 16px;
}

/* 修复 Layui 指示器和箭头层级 */
.hero-swiper-wrap .layui-carousel-ind {
    z-index: 10;
    bottom: 24px !important;
}

.hero-swiper-wrap .layui-carousel-ind ul {
    background-color: rgba(0, 0, 0, 0.3);
}

.hero-swiper-wrap .layui-carousel-ind li.layui-this {
    background-color: #fff;
}

.hero-swiper-wrap .layui-carousel-arrow {
    z-index: 10;
}

.hero-swiper-wrap .layui-carousel-arrow:hover {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

/* ========== 固定导航栏 ========== */
.fixed-nav {
    position: fixed;
    top: -130px;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: top 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    will-change: top;
}

.fixed-nav.show {
    top: 0;
}

.fixed-nav .nav-inner {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 16px;
}

.nav-tool {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-width: 0;
}

.nav-tool .icon-circle {
    width: 32px;
    height: 32px;
    background: #f5f5f7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0066cc;
    font-size: 17px;
}

.nav-tool .tool-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.nav-tool .tool-meta .name {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.01em;
}

.nav-tool .tool-meta .ver {
    font-size: 11px;
    color: #86868b;
    font-weight: 400;
}

.nav-announce-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.announce-pill {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 40px;
    padding: 5px 16px 5px 6px;
    max-width: 480px;
    width: 100%;
    transition: background 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.announce-pill .tag {
    background: #0066cc;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 40px;
    letter-spacing: 0.02em;
    margin-right: 10px;
    flex-shrink: 0;
}

.announce-pill .msg {
    font-size: 12px;
    color: #1d1d1f;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.announce-pill .msg i {
    color: #0066cc;
    margin-right: 4px;
    font-size: 12px;
}

.nav-download {
    flex-shrink: 0;
}

.nav-download .btn-apple {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0071e3;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 0 18px;
    height: 34px;
    line-height: 34px;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.15);
}

.nav-download .btn-apple:hover {
    background: #0077ed;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25);
}

/* ========== 主体列表区域 ========== */
.main-wrapper {
    background: #fbfbfd;
    padding: 48px 0 80px;
}

.top-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #e8f2ff;
    color: #0066cc;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 16px;
    margin-bottom: 40px;
}

.top-notice i {
    font-size: 18px;
}

.job-group {
    margin-bottom: 56px;
}

.job-group:last-child {
    margin-bottom: 0;
}

.group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-left: 4px;
}

.group-header h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #1d1d1f;
}

.group-header .count {
    font-size: 14px;
    font-weight: 500;
    color: #86868b;
    background: #f0f0f2;
    padding: 2px 10px;
    border-radius: 20px;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.job-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    cursor: pointer;
    position: relative;
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07);
    border-color: rgba(0, 113, 227, 0.15);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.job-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.01em;
    line-height: 1.35;
    transition: color 0.2s;
}

.job-card:hover .job-title {
    color: #0066cc;
}

.hot-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff0f0;
    color: #ff3b30;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    margin-left: 8px;
    vertical-align: middle;
    transform: translateY(-2px);
    border: 1px solid rgba(255, 59, 48, 0.2);
}

.hot-tag i {
    font-size: 12px;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    font-size: 13px;
    color: #86868b;
    margin-bottom: 20px;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.job-meta i {
    font-size: 14px;
    color: #b0b0b5;
    transition: color 0.2s;
}

.job-card:hover .job-meta i {
    color: #0066cc;
}

.job-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f2;
}

.job-tag {
    font-size: 12px;
    font-weight: 500;
    color: #0066cc;
    background: #e8f2ff;
    padding: 4px 12px;
    border-radius: 20px;
}

.job-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #1d1d1f;
    transition: color 0.2s;
}

.job-action i {
    font-size: 14px;
    transition: transform 0.2s;
}

.job-card:hover .job-action {
    color: #0066cc;
}

.job-card:hover .job-action i {
    transform: translateX(4px);
}

/* 页脚 */
.apple-footer {
    text-align: center;
    padding: 32px 20px 48px;
    font-size: 12px;
    color: #86868b;
    letter-spacing: -0.01em;
    border-top: 1px solid #e8e8ed;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .hero-swiper-wrap {
        height: 400px;
    }

    .slide-content h1 {
        font-size: 46px;
    }

    .slide-content .hero-subhead {
        font-size: 18px;
    }

    .jobs-grid {
        gap: 16px;
    }

    .job-card {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .apple-container {
        padding: 0 16px;
    }

    .hero-swiper-wrap {
        height: 320px;
    }

    .slide-content h1 {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .slide-content .hero-subhead {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .slide-content-wrapper .layui-container {
        padding: 0 16px;
    }

    .pill-badge {
        font-size: 12px;
        padding: 6px 14px;
    }

    .pill-badge i {
        font-size: 14px;
    }

    /* 移动端隐藏左右按钮，指示器位置微调 */
    .hero-swiper-wrap .layui-carousel-arrow {
        display: none !important;
    }

    .hero-swiper-wrap .layui-carousel-ind {
        bottom: 16px !important;
    }

    /* 固定导航移动端 */
    .fixed-nav .nav-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 16px;
        gap: 10px;
    }

    .nav-tool {
        order: 1;
    }

    .nav-tool .icon-circle {
        width: 28px;
        height: 28px;
        font-size: 15px;
    }

    .nav-tool .tool-meta .name {
        font-size: 13px;
    }

    .nav-tool .tool-meta .ver {
        font-size: 10px;
    }

    .nav-download {
        order: 2;
        margin-left: auto;
    }

    .nav-download .btn-apple {
        height: 32px;
        line-height: 32px;
        padding: 0 16px;
        font-size: 12px;
    }

    .nav-announce-wrap {
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }

    .announce-pill {
        max-width: 100%;
        padding: 5px 14px 5px 6px;
    }

    .announce-pill .tag {
        font-size: 10px;
        padding: 2px 8px;
        margin-right: 8px;
    }

    .announce-pill .msg {
        font-size: 12px;
    }

    .main-wrapper {
        padding: 32px 0 48px;
    }

    .top-notice {
        font-size: 13px;
        padding: 10px 16px;
        margin-bottom: 32px;
    }

    .job-group {
        margin-bottom: 40px;
    }

    .group-header h2 {
        font-size: 22px;
    }

    .group-header .count {
        font-size: 12px;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .job-card {
        padding: 20px;
        border-radius: 16px;
    }

    .job-title {
        font-size: 16px;
    }

    .hot-tag {
        font-size: 10px;
        padding: 2px 6px;
    }

    .job-meta {
        font-size: 12px;
        gap: 8px 16px;
        margin-bottom: 16px;
    }

    .job-card-footer {
        padding-top: 16px;
    }

    .job-action {
        font-size: 12px;
    }

    .apple-footer {
        padding: 24px 16px 32px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .hero-swiper-wrap {
        height: 280px;
    }

    .slide-content h1 {
        font-size: 28px;
    }

    .slide-content .hero-subhead {
        font-size: 14px;
    }

    .fixed-nav .nav-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 14px;
    }

    .nav-tool, .nav-download {
        width: 100%;
    }

    .nav-download .btn-apple {
        width: 100%;
        justify-content: center;
    }

    .announce-pill {
        padding: 5px 12px 5px 5px;
    }

    .announce-pill .msg {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
