/* 全局禁用点击高亮（也可单独给指定元素设置） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
    /* 关键：禁用iOS/Android点击高亮背景 */
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
    /* 可选：禁用选中文字的背景（防止点击时文字选中） */
    -webkit-user-select: none;
    user-select: none;
}

/* 自动适配浅色/暗黑模式 - 核心变量 */
:root {
    color-scheme: light dark;
    --bg-page: #121212;
    --bg-card: #191919;
    --bg-option: #2c2c2c;
    --text-normal: #bfbfbf;
    --text-desc: #747474;
    --text-link: #69798d;
    --text-white: #ffffff;
    --text-blue: #007aff;
    --border-light: #1c1c1c;
    --border-dark: #212020;
    --btn-green: #07c160;
    --btn-green-hover: #06ad56;
    --btn-gray: #888888;
    --back-btn: #595959;
    --success-icon-bg: #121212;
    --loading-container-bg: #333333;
}

/* 浅色模式配色 */
@media (prefers-color-scheme: light) {
    :root {
        --bg-page: #ededed;
        --bg-card: #ffffff;
        --bg-option: #f0f0f0;
        --text-normal: #333333;
        --text-desc: #666666;
        --text-link: #5f7199;
        --text-white: #000000;
        --text-blue: #007aff;
        --border-light: #e5e5e5;
        --border-dark: #f0f0f0;
        --btn-gray: #c8c8c8;
        --back-btn: #999999;
        --success-icon-bg: #ffffff;
        --loading-container-bg: #ffffff;
    }
}

/* 页面通用样式 */
body {
    background-color: var(--bg-page);
    color: var(--text-normal);
    height: 100vh;
    overflow-x: hidden;
}

/* 页面容器 - 支持多页面切换 */
.page {
    display: none;
    min-height: 100vh;
    padding-bottom: 60px;
}
.page.active {
    display: block;
}

/* 返回按钮 */
.back-btn {
    position: fixed;
    top: 15px;
    left: 15px;
    color: var(--back-btn);
    font-size: 24px;
    text-decoration: none;
    z-index: 99;
}

/* 首页样式 */
.complaint-container {
    padding: 20px 20px 20px 20px;
}
.title {
    font-size: 15px;
    color: var(--text-desc);
    margin-bottom: 10px;
}
.complaint-list {
    list-style: none;
    background: var(--bg-card);
    padding: 0 20px;
    /*border-bottom: 1px solid var(--border-light);
    border-top: 1px solid var(--border-light);*/
	border-radius: 8px;
}
.notice-link {
    display: block;
    text-align: center;
    margin-top: 25px;
    color: var(--text-link);
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    /* 禁用点击高亮 */
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
    background: transparent;
}

/* 移除 notice-link 点击态背景 */
.notice-link:active {
    background: transparent !important;
}
.complaint-item {
    padding: 19px 0;
    border-bottom: 1px solid var(--border-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 17px;
    position: relative;
    padding-right: 20px;
    color: var(--text-normal);
    cursor: pointer;
    /* 再次强调禁用点击高亮 */
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
    /* 可选：移除点击时的默认行为（如:active背景） */
    background: transparent;
}
/* 移除 complaint-item 点击态背景 */
.complaint-item:active {
    background: transparent !important;
}
.complaint-item::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--text-desc);
    border-right: 2px solid var(--text-desc);
    box-sizing: border-box;
    transform: rotate(45deg);
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
.complaint-item:last-child {
    border-bottom: none;
}

/* 二级页面通用样式 */
.subpage-container {
    padding: 20px 20px 20px 20px;
}
.subpage-title {
    font-size: 15px;
    color: var(--text-desc);
    margin-bottom: 10px;
}
.subpage-list {
    list-style: none;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
}
.subpage-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-dark);
    font-size: 17px;
    color: var(--text-normal);
    position: relative;
    cursor: pointer;
    margin: 0 20px;
}
.subpage-item::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--text-desc);
    border-right: 2px solid var(--text-desc);
    box-sizing: border-box;
    transform: rotate(45deg);
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
.subpage-item:last-child {
    border-bottom: none;
}
.subpage-desc {
    margin-top: 20px;
    color: var(--text-link);
    font-size: 14px;
}
.subpage-notice {
    display: block;
    text-align: center;
    margin-top: 25px;
    color: var(--text-link);
    font-size: 14px;
    text-decoration: none;
}

/* 仿冒品专用页面（圆形单选框） */
.fake-page {
    padding: 20px 20px 20px 20px;
}
.fake-title {
    font-size: 15px;
    color: var(--text-desc);
    margin-bottom: 10px;
}
.fake-list {
    list-style: none;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
}
.fake-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-dark);
    font-size: 17px;
    color: var(--text-normal);
    position: relative;
    cursor: pointer;
    margin: 0 20px;
}
.fake-item:last-child {
    border-bottom: none;
}

/* 圆形单选框样式 10x10px */
.fake-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid #999;
    background-color: transparent;
}
/* 选中后颜色统一 #07c160 */
.fake-item.active {
    color: #07c160;
}
.fake-item.active::after {
    border-color: #07c160;
    background-color: #07c160;
    box-shadow: inset 0 0 0 2px var(--bg-card);
}

/* 开始投诉按钮 */
.start-btn {
    width: 100%;
    margin-top: 30px;
    padding: 16px;
    background-color: var(--btn-gray);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: bold;
    text-align: center;
    cursor: not-allowed;
    opacity: 0.8;
}
.start-btn.enabled {
    background-color: var(--btn-green);
    cursor: pointer;
    opacity: 1;
}
.start-btn.enabled:hover {
    background-color: var(--btn-green-hover);
}

/* 你可以页面样式（与违法内容页面完全统一） */
.youcan-container {
    padding: 20px 20px 20px 20px;
}
.youcan-title {
    font-size: 15px;
    color: var(--text-desc);
    margin-bottom: 10px;
}
.youcan-list {
    list-style: none;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
}
.youcan-option {
    padding: 16px 40px 20px 0;
    border-bottom: 1px solid var(--border-dark);
    font-size: 17px;
    color: var(--text-normal);
    position: relative;
    cursor: pointer;
    margin: 0 20px;
}
.youcan-option::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--text-desc);
    border-right: 2px solid var(--text-desc);
    box-sizing: border-box;
    transform: rotate(45deg);
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
.youcan-option:last-child {
    border-bottom: none;
}
.youcan-notice {
    display: block;
    text-align: center;
    margin-top: 25px;
    color: var(--text-link);
    font-size: 14px;
    text-decoration: none;
}

/* 弹窗遮罩 */
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
}
@media (prefers-color-scheme: light) {
    .modal-mask {
        background-color: rgba(0, 0, 0, 0.6);
    }
}

/* 投诉须知弹窗 */
.notice-modal {
    width: 90%;
    max-width: 500px;
    background-color: var(--bg-card);
    border-radius: 8px;
    height: 80vh;
    position: relative;
    padding: 15px 19px 60px 20px;
}

/* 弹窗标题 */
.modal-title {
    font-size: 20px;
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 10;
    color: var(--text-white);
    border-bottom: 1px solid var(--border-dark);
    padding-bottom: 15px;
}

/* 可滚动内容区域 - 关键加固样式 */
.modal-content-wrap {
    height: calc(100% - 88px);
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    position: relative;
    overflow-anchor: none; /* 禁用滚动锚定 */
    will-change: scroll-position; /* 告诉浏览器要修改滚动位置 */
}
.modal-content-wrap::-webkit-scrollbar {
    display: none;
}

.modal-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-white);
    font-weight: normal;
}

.modal-content p {
    margin-bottom: 20px;
    font-weight: normal;
}
.modal-content p:last-child {
    margin-bottom: 0;
}

/* 下滑提示箭头 */

/* 双层向下三角箭头 + 滑动隐藏 */
.scroll-tip {
    position: absolute;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 1.5s infinite;
    pointer-events: none;
    width: 24px;
    height: 20px;
    transition: opacity 0.3s ease; /* 消失动画更柔和 */
}

/* 默认显示 */
.scroll-tip {
    opacity: 1;
    visibility: visible;
}

/* 滚动后隐藏的样式 */
.scroll-tip.hidden {
    opacity: 0;
    visibility: hidden;
}

/* 上层三角 */
.scroll-tip::before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-white);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* 下层三角 */
.scroll-tip::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--text-white);
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

/* 弹跳动画 */
@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.9;
    }
    50% {
        transform: translateX(-50%) translateY(6px);
        opacity: 0.5;
    }
}

/* 我知道了按钮 */
.know-btn {
    width: calc(100% - 50px);
    padding: 12px;
    background-color: var(--btn-green);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    position: absolute;
    bottom: 25px;
    left: 25px;
}
.know-btn:hover {
    background-color: var(--btn-green-hover);
}

.modal-mask.show {
    display: flex;
}

/* ====================== 加载动画（完美居中 截图同款） ====================== */
.loading-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}
.loading-mask.show {
  display: flex;
}

.loading-container {
  width: 140px;
  height: 135px;
  background-color: var(--loading-container-bg);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

/* 核心：完全居中 截图同款点状加载圈 */
.loading-spinner {
  width: 34px;
  height: 34px;
  position: relative;
  animation: rotate 1.0s linear infinite;
}
.loading-spinner div {
  position: absolute;
  left: 50%;
  top: 0;
  transform-origin: center 17px;
  width: 3px;
  height: 8px;
  background: var(--text-normal);
  border-radius: 2px;
  transform: translateX(-50%);
}
.loading-spinner div:nth-child(1) { transform: translateX(-50%) rotate(30deg); opacity: 0.28;}
.loading-spinner div:nth-child(2) { transform: translateX(-50%) rotate(60deg); opacity: 0.28;}
.loading-spinner div:nth-child(3) { transform: translateX(-50%) rotate(90deg); opacity: 0.28;}
.loading-spinner div:nth-child(4) { transform: translateX(-50%) rotate(120deg); opacity: 0.28;}
.loading-spinner div:nth-child(5) { transform: translateX(-50%) rotate(150deg); opacity: 0.36;}
.loading-spinner div:nth-child(6) { transform: translateX(-50%) rotate(180deg); opacity: 0.44;}
.loading-spinner div:nth-child(7) { transform: translateX(-50%) rotate(210deg); opacity: 0.52;}
.loading-spinner div:nth-child(8) { transform: translateX(-50%) rotate(240deg); opacity: 0.60;}
.loading-spinner div:nth-child(9) { transform: translateX(-50%) rotate(270deg); opacity: 0.68;}
.loading-spinner div:nth-child(10) { transform: translateX(-50%) rotate(300deg); opacity: 0.76;}
.loading-spinner div:nth-child(11) { transform: translateX(-50%) rotate(330deg); opacity: 0.84;}
.loading-spinner div:nth-child(12) { transform: translateX(-50%) rotate(0deg); opacity: 0.92;}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  color: var(--text-normal);
  font-size: 18px;
}

/* ====================== 拉黑成功弹窗 ====================== */
.blacklist-success-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-page);
    display: none;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
    padding: 80px 20px;
    padding-bottom: 80px;
    box-sizing: border-box;
}
@media (prefers-color-scheme: light) {
  .blacklist-success-mask {
    background-color: var(--bg-page);
  }
}
.blacklist-success-mask.show {
  display: flex;
}

.success-icon {
    width: 60px;
    height: 60px;
    background-color: #00c800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}
.success-icon::after {
    content: '';
    width: 17px;
    height: 25px;
    border: 4px solid var(--success-icon-bg);
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-5px);
    box-sizing: border-box;
    margin-left: -5px;
}

.success-title {
  color: var(--text-normal);
  font-size: 22px;
  margin-bottom: 15px;
  text-align: center;
}

.success-desc {
  color: var(--text-normal);
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 60px;
  max-width: 100%;
}

.success-bottom-btn {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 200px;
    background-color: #07c060;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    z-index: 1001;
    font-weight: bold;
    padding: 10px;
}

.success-bottom-btn:active {
  background-color: #00b000;
}

/* 全局隐藏滚动条 - 兼容所有浏览器 */
html, body {
  overflow-y: auto; /* 保留滚动能力 */
  -ms-overflow-style: none;  /* IE 和 Edge */
  scrollbar-width: none;     /* Firefox */
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none; /* Chrome / Safari / 移动端浏览器 */
}

/* 同时隐藏所有自定义滚动区域的滚动条（弹窗/列表等） */
*::-webkit-scrollbar {
  display: none !important;
}
* {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}