  * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
  html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
    user-select: none;
    -webkit-user-select: none;
  }
  #app {
    position: relative;
    width: 100%;
    height: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }
  .feed {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: y mandatory;
    scroll-behavior: auto;
    touch-action: pan-y;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .feed::-webkit-scrollbar { display: none; }
  .slide {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    height: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #000;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .video-container {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 100%;
    height: 100%;
  }
  .dplayer {
    width: 100%;
    height: 100%;
    background: #000;
  }
  .dplayer-video-wrap {
    background: #000;
  }
  .dplayer-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
    pointer-events: none;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  /* 隐藏 DPlayer 所有控制栏和 UI */
  .dplayer-controller, 
  .dplayer-mask, 
  .dplayer-info-panel,
  .dplayer-menu,
  .dplayer-notice,
  .dplayer-bezel,
  .dplayer-mobile-play,
  .dplayer-loading-icon {
    display: none !important;
  }
  .cover {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 2;
    background-color: #000;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
  }
  .cover.hide {
    opacity: 0;
    pointer-events: none;
  }
  .video-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    background: transparent;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .video-loading.show {
    opacity: 1;
  }
  .video-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }

  @keyframes spin {
    to { transform: rotate(360deg); }
  }

  .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 82px;
    height: 82px;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
  }
  .play-icon.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  .play-icon svg { width: 100%; height: 100%; }

  /* 双击点赞爱心动画 */
  .tap-heart {
    position: absolute;
    width: 80px;
    height: 80px;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    filter: drop-shadow(0 0 10px rgba(255,0,0,0.6));
  }
  .tap-heart.animate {
    animation: tapHeartAnim 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  }
  .tap-heart svg path {
    fill: #ff0000 !important;
  }
  @keyframes tapHeartAnim {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    15% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.9; }
    30% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -150%) scale(1.5); opacity: 0; }
  }
  .gradient-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 160px;
    background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 100%);
    z-index: 3;
    pointer-events: none;
  }
  .gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 260px;
    background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0) 100%);
    z-index: 3;
    pointer-events: none;
  }
  .top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: calc(env(safe-area-inset-top, 0px) + 14px) 20px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
  }
  .top-bar .tab {
    position: relative;
    font-size: 17px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    padding: 6px 2px;
    cursor: pointer;
    white-space: nowrap;
  }
  .top-bar .tab.active {
    color: #fff;
    font-weight: 700;
  }
  .top-bar .tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 3px;
    border-radius: 2px;
    background: #fff;
  }
  .top-bar .search {
    position: absolute;
    right: 16px;
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .top-bar .live {
    position: absolute;
    left: 16px;
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .side-actions {
    position: absolute;
    right: 10px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 100px);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
  }
  .action .icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
  }
  .action .icon svg { width: 32px; height: 32px; }
  .action .avatar {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #333;
    margin-bottom: 12px;
    z-index: 1;
  }
  .action .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #fff;
    display: block;
  }
  .action .avatar .plus {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ff2d55;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    border: 2px solid #fff;
    z-index: 2;
  }
  .action .avatar .plus.followed {
    background: #25f4ee;
    color: #000;
  }
  .action .count {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  }
  .action.like svg path {
    fill: none;
    stroke: #fff;
    stroke-width: 2px;
  }
  .action.like.liked svg path {
    fill: #ff0000;
    stroke: #ff0000;
  }
  .action.favorited svg { fill: #facd09; stroke: #facd09; }
  .bottom-info {
    position: absolute;
    left: 14px;
    right: 84px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 100px);
    z-index: 10;
  }
  .username {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  }
  .desc {
    font-size: 14px;
    line-height: 1.45;
    color: #fff;
    margin-bottom: 10px;
    max-height: 72px;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  }
  .desc .tag {
    color: #4ea3ff;
    margin-right: 4px;
  }
  .music {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  }
  .music .note {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .marquee {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    max-width: 200px;
  }
  .marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 8s linear infinite;
  }
  @keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
  }

  /* 评论面板样式 */
  .comment-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: #121212;
    z-index: 1000;
    border-radius: 12px 12px 0 0;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  }
  .comment-panel.active {
    transform: translateY(0);
  }
  .comment-header {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 0.5px solid rgba(255,255,255,0.05);
  }
  .comment-count {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
  }
  .comment-header .close-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    color: #aaa;
  }
  .comment-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
  }
  .comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
  }
  .comment-item .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
  }
  .comment-item .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .comment-content {
    flex: 1;
  }
  .comment-item .username {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 4px;
    font-weight: 500;
  }
  .comment-item .text {
    font-size: 14px;
    line-height: 1.4;
    color: #eee;
  }
  .comment-item .info {
    margin-top: 6px;
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    display: flex;
    gap: 15px;
  }
  .comment-input-area {
    padding: 10px 15px calc(env(safe-area-inset-bottom, 0px) + 10px);
    border-top: 0.5px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    background: #121212;
  }
  .comment-input-area input {
    flex: 1;
    height: 36px;
    background: #262626;
    border: none;
    border-radius: 18px;
    padding: 0 15px;
    color: #fff;
    font-size: 14px;
  }
  .comment-input-area .send-btn {
    color: #ff2d55;
    font-weight: 600;
    font-size: 14px;
    padding: 5px;
  }

  .page-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 56px);
    background: #0f0f0f;
    z-index: 40;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }
  .page-panel.active {
    transform: translateX(0);
  }
  .page-header {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 0.5px solid rgba(255,255,255,0.06);
  }
  .page-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
  }
  .page-header .close-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    color: #aaa;
  }
  .page-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    color: #fff;
  }
  .friends-search input {
    width: 100%;
    height: 36px;
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.06);
    color: #fff;
    padding: 0 14px;
    font-size: 13px;
    outline: none;
  }
  .friends-tabs,
  .inbox-tabs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    margin-bottom: 6px;
  }
  .friends-tabs .tab,
  .inbox-tabs .tab {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    color: rgba(255,255,255,0.55);
    padding: 10px 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
  }
  .friends-tabs .tab.active,
  .inbox-tabs .tab.active {
    color: #fff;
    background: rgba(255,255,255,0.12);
  }
  .friends-list,
  .inbox-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .friends-video-strip {
    margin-top: 12px;
    padding-bottom: 4px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .friends-video-strip::-webkit-scrollbar {
    display: none;
  }
  .video-thumb {
    width: 112px;
    height: 152px;
    flex: 0 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
    position: relative;
  }
  .video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .video-thumb .views {
    position: absolute;
    left: 8px;
    bottom: 8px;
    font-size: 11px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
  }
  .video-thumb.has-meta .views {
    bottom: 54px;
  }
  .video-thumb .meta-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 8px 8px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0));
  }
  .video-thumb .meta-overlay .author {
    font-size: 11px;
    font-weight: 800;
    color: rgba(255,255,255,0.95);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .video-thumb .meta-overlay .title {
    margin-top: 2px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .inbox-video-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .inbox-video-item {
    display: flex;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
  }
  .inbox-video-item .thumb {
    width: 88px;
    height: 118px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
    flex-shrink: 0;
    position: relative;
  }
  .inbox-video-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .inbox-video-item .thumb .views {
    position: absolute;
    left: 6px;
    bottom: 6px;
    font-size: 11px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
  }
  .inbox-video-item .meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .inbox-video-item .meta .author {
    font-size: 12px;
    font-weight: 800;
    color: rgba(255,255,255,0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .inbox-video-item .meta .title {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .friend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
  }
  .friend-item.active {
    background: rgba(255,255,255,0.1);
    outline: 1px solid rgba(255,255,255,0.18);
  }
  .friend-item .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255,255,255,0.08);
  }
  .friend-item .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .friend-item .meta {
    flex: 1;
    overflow: hidden;
  }
  .friend-item .name {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .friend-item .sub {
    margin-top: 3px;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .friend-item .btn-follow {
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: none;
    background: #ff2d55;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
  }
  .friend-item .btn-follow.following {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.9);
  }

  .profile-body {
    padding: 0;
  }
  .profile-header {
    padding: 18px 16px 14px;
    text-align: center;
  }
  .profile-avatar {
    width: 88px;
    height: 88px;
    margin: 4px auto 10px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.1);
  }
  .profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .profile-name {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
  }
  .profile-uid {
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
  }
  .profile-stats {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
  }
  .profile-stats .stat {
    flex: 1;
    text-align: center;
    padding: 8px 6px;
  }
  .profile-stats .stat .num {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
  }
  .profile-stats .stat .label {
    margin-top: 3px;
    font-size: 11px;
    color: rgba(255,255,255,0.55);
  }
  .profile-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    justify-content: center;
  }
  .profile-actions .btn {
    height: 36px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: #fff;
    min-width: 118px;
  }
  .profile-actions .btn.solid {
    border: none;
    background: #ff2d55;
  }
  .profile-bio {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.35;
    color: rgba(255,255,255,0.75);
  }
  .profile-tabs {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 10px;
    height: 44px;
    border-top: 0.5px solid rgba(255,255,255,0.06);
    border-bottom: 0.5px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.4);
  }
  .profile-tabs .tab {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.55);
    padding: 12px 0;
    position: relative;
    cursor: pointer;
  }
  .profile-tabs .tab.active {
    color: #fff;
  }
  .profile-tabs .tab.active::after {
    content: '';
    position: absolute;
    left: 24%;
    right: 24%;
    bottom: 0;
    height: 2px;
    background: #fff;
    border-radius: 2px;
  }
  .profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    padding-bottom: 10px;
  }
  .profile-grid .grid-item {
    position: relative;
    width: 100%;
    padding-top: 133%;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
  }
  .profile-grid .grid-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .profile-grid .grid-item .views {
    position: absolute;
    left: 6px;
    bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
  }

  .spinning-disc {
    width: 44px;
    height: 44px;
    margin-top: 10px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 2px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: spin 6s linear infinite;
    animation-play-state: paused;
  }
  .spinning-disc.playing { animation-play-state: running; }
  .spinning-disc img {
    width: 70%;
    height: 70%;
    border-radius: 50%;
    object-fit: cover;
  }
  @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  .tab-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    height: calc(env(safe-area-inset-bottom, 0px) + 56px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(0,0,0,0.92);
    border-top: 0.5px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: space-around;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .tab-bar .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    height: 100%;
    color: rgba(255,255,255,0.6);
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
  }
  .tab-bar .item.active { color: #fff; }
  .tab-bar .item svg { width: 22px; height: 22px; }
  .tab-bar .item.plus {
    position: relative;
  }
  .tab-bar .item.plus .plus-box {
    width: 44px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(90deg, #25f4ee 0%, #ff2d55 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .tab-bar .item.plus .plus-box::before,
  .tab-bar .item.plus .plus-box::after {
    content: '';
    position: absolute;
    width: 44px;
    height: 28px;
    border-radius: 8px;
    z-index: -1;
  }
  .tab-bar .item.plus .plus-box::before {
    background: #25f4ee;
    left: -5px;
  }
  .tab-bar .item.plus .plus-box::after {
    background: #ff2d55;
    right: -5px;
  }
  .tab-bar .item.plus .plus-box svg {
    width: 16px;
    height: 16px;
    color: #000;
    z-index: 2;
    position: relative;
  }
  .progress-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 56px);
    height: 12px; /* 增大触控区域 */
    z-index: 30;
    display: flex;
    align-items: center;
    cursor: pointer;
    touch-action: none;
  }
  .progress-bar .track {
    position: relative;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.2);
    transition: height 0.2s;
  }
  .progress-bar:active .track {
    height: 4px;
  }
  .progress-bar .filled {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: #fff;
  }
  .progress-bar .handler {
    position: absolute;
    left: 0;
    top: 50%;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s;
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
  }
  .progress-bar:active .handler {
    transform: translate(-50%, -50%) scale(1);
  }
  .speed-indicator {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.5);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .speed-indicator::before {
    content: '▶▶';
    font-size: 10px;
    letter-spacing: -2px;
  }
  .slide.speed-up .speed-indicator {
    opacity: 1;
  }

  /* 引导遮罩层样式 */
  .guide-overlay {
    position: absolute;
    inset: 0;
    z-index: 999;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s;
    pointer-events: auto; /* 必须为 auto 以确保首屏手势是针对它的 */
    touch-action: none;
  }
  .guide-overlay.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .guide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: #fff;
    text-align: center;
  }
  .guide-content p {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  }
  .swipe-animation {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
  }
  .swipe-animation svg .arrow-up,
  .swipe-animation svg .arrow-down {
    animation: swipeUpHint 2s infinite;
  }
  .swipe-animation svg .arrow-down {
    animation-delay: 0.2s;
  }
  @keyframes swipeUpHint {
    0% { transform: translateY(10px); opacity: 0; }
    50% { opacity: 0.8; }
    100% { transform: translateY(-20px); opacity: 0; }
  } 

  .safari-guide[hidden] { display: none; }
  .safari-guide {
    position: absolute;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
    background:
      radial-gradient(120% 70% at 50% 0%, rgba(255, 77, 151, 0.22), rgba(255, 77, 151, 0) 60%),
      linear-gradient(180deg, #43102f 0%, #2c0a2c 52%, #1c051d 100%);
    overflow-y: auto;
    touch-action: pan-y;
  }
  .safari-guide-card {
    width: min(100%, 400px);
    max-height: 100%;
    overflow-y: auto;
    padding: 18px 16px 16px;
    border: 1px solid rgba(255, 143, 206, 0.16);
    border-radius: 18px;
    background: rgba(24, 5, 24, 0.35);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
    text-align: center;
    -webkit-overflow-scrolling: touch;
  }
  .safari-guide-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .safari-guide-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    text-align: left;
  }
  .safari-guide-heart {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(140deg, #ff6cb3, #d92b8b);
    box-shadow: 0 3px 14px rgba(233, 59, 143, 0.45);
    color: #fff;
    font-size: 17px;
  }
  .safari-guide-brand-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .safari-guide-brand-title {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.1;
  }
  .safari-guide-brand-live {
    color: #ffb0d8;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.42em;
  }
  .safari-guide-lang {
    flex: 0 0 auto;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffd9ee;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
  }
  .safari-guide-notice {
    margin-top: 12px;
    color: #e2a9cb;
    font-size: 11px;
    line-height: 1.4;
  }
  .safari-guide-notice::before {
    content: "• ";
    color: #ff5fa8;
  }
  .safari-guide-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 18px auto 14px;
    color: #f4a9d3;
  }
  .safari-guide-dots,
  .safari-guide-compass {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: rgba(20, 4, 20, 0.6);
    font-size: 21px;
    line-height: 1;
  }
  .safari-guide-compass {
    border: 1px solid rgba(255, 155, 213, 0.45);
    background: linear-gradient(145deg, #93275b, #551846);
    border-radius: 50%;
  }
  .safari-guide-line {
    width: 62px;
    border-top: 1px dashed rgba(255, 173, 218, 0.45);
  }
  .safari-guide-eyebrow {
    color: #dd9cc4;
    font-size: 11px;
    letter-spacing: 0.12em;
  }
  .safari-guide h2 {
    margin-top: 7px;
    font-size: 24px;
    line-height: 1.3;
  }
  .safari-guide-intro {
    margin: 10px auto 16px;
    max-width: 320px;
    color: #e3c9da;
    font-size: 13px;
    line-height: 1.55;
  }
  .safari-guide-steps {
    display: grid;
    gap: 8px;
    list-style: none;
    text-align: left;
  }
  .safari-guide-steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px;
    border: 1px solid rgba(255, 176, 224, 0.1);
    border-radius: 10px;
    background: rgba(28, 9, 29, 0.5);
    color: #f5e5ef;
    font-size: 12px;
    line-height: 1.45;
  }
  .safari-guide-number {
    display: grid;
    flex: 0 0 25px;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 7px;
    background: rgba(226, 70, 149, 0.22);
    color: #ffacd7;
    font-size: 11px;
    font-weight: 700;
  }
  .safari-guide button {
    display: block;
    width: 100%;
    min-height: 44px;
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
  }
  .safari-guide-open {
    margin-top: 16px;
    border: 0;
    background: linear-gradient(100deg, #ff5fa8, #e02f8d);
    color: #fff;
    box-shadow: 0 6px 20px rgba(226, 47, 141, 0.35);
  }
  .safari-guide-copy {
    margin-top: 8px;
    border: 1px solid rgba(255, 175, 221, 0.22);
    background: rgba(255, 255, 255, 0.07);
    color: #f7dcea;
  }
  .safari-guide-url-label {
    margin-top: 14px;
    color: #d9a8c6;
    font-size: 11px;
    text-align: left;
  }
  .safari-guide-url {
    margin-top: 5px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.28);
    color: #ffffff;
    font-size: 12px;
    line-height: 1.4;
    text-align: left;
    word-break: break-all;
  }
  .safari-guide-status {
    min-height: 18px;
    margin-top: 8px;
    color: #f7badb;
    font-size: 11px;
    line-height: 1.4;
  }
  @media (max-height: 640px) {
    .safari-guide { align-items: flex-start; }
    .safari-guide-card { max-height: none; }
    .safari-guide-visual { margin: 12px auto 9px; }
    .safari-guide-intro { margin: 8px auto 10px; }
    .safari-guide-steps { gap: 5px; }
    .safari-guide-steps li { min-height: 40px; padding: 7px; }
    .safari-guide-open { margin-top: 10px; }
  }
