/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    touch-action: manipulation;
    list-style: none;
}

body {
    background-color: #f5f5f5;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 通用块样式 */
.block {
    width: 80%;
    margin: 0 auto;
}

/* 导航栏 */
.nav {
    background-color: #333;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    z-index: 9999;
    top: 0;
    width: 80%;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    gap: 1rem;
    align-items: center;
    text-align: center;
}
.nav-logo>span:nth-of-type(2){
  font-size: 12px;
  margin-left: 15px;
}
.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.nav-links img {
    width: 1rem;
    height: 16px;
}

.nav-links>:first-child {
    border-bottom: 2px solid rgb(233, 119, 19);
}


/* 轮播区核心样式（适配两套图片） */
.carousel-popup {
    margin-top: 100px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    background-color: orange;
    position: relative;
}

.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
}

.carousel-track {
    display: flex;
    height: 100%;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
}

/* 图片显示优化（关键：按设备加载对应图片后自适应） */
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 按比例铺满容器，裁剪多余部分（保留核心内容） */
    object-position: center; /* 裁剪时优先保留中间区域 */
    display: block;
}

/* 吃瓜区 */
.video-section {
    background-color: #ccc;
    margin-top: 20px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}
.video-title{
    display: flex;
    justify-content: center;
    padding: 20px;
    width: 100%;
    background-color: #333;
    color: white;
}
.video-chigua01{
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap:10px;
    width: 100%;
   
}
.video-chigua01 img{

    width: 100%;
    
}
     
/* 信息区 */
.info-section {
    padding: 2rem;
    background-color: #333;
    margin-top: 20px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.info-selec {
    width: 100%;
    display: flex;
    justify-content: center;
}

.info-select-op {
    width: 50%;
    height: 50px;
    font-size: 16px;
    border-radius: 3px;
    border: 1px solid orange;
    color: rgb(59, 40, 4);
    text-align: center;
}

.info-section-cow {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #ddd;
    border-radius: 8px;
    padding: 20px;
    gap: 15px;
}

.info-section-id {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.info-section-id .login{
  background-color: #333;
}

.info-input {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}
.info-share{
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.info-share span{
    font-size: 15px;
}
.info-wring{
  display: flex;
  flex-direction: column;
}
.info-share>span:nth-of-type(3){
    color:#f12711;
}
.info-span span {
    background-color: orange;
    padding: 5px 3px;
    color: white;
    border-radius: 3px;
    text-align: center;
}

.info-section-cow button {
    background-color: #4199eb;
    color: white;
    border-radius: 3px;
    border: 1px solid white;
    font-size: 16px;
    padding: 8px;
    cursor: pointer;
}

.info-section-cow input {
    width: 65%;
    height: 38px;
    border-radius: 3px;
    border: 1px solid white;
    padding: 0 8px;
}

.info-input-miyao, .info-input-uspd {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

/* 广告区 */
.ad-section {
    padding: 1rem;
    background-color: #333;
    color: white;
    margin-top: 20px;
    text-align: center;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.ad-banner {
    height: 100px;
    background: linear-gradient(135deg, #f5af19, #f12711);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    margin: 0 auto;
    max-width: 800px;
}

/* 底部 */
.footer {
    background-color: #222;
    color: #aaa;
    padding: 2rem;
    margin: 20px auto;
    text-align: center;
    width: 80%;
}

.footer-kf {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.kf img {
    width: 150px;
    height: 150px;
}

.wz p {
    color: white;
    font-size: 0.8rem;
    line-height: 1.5;
}

/* 提示框 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    padding: 10px 15px;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.toast.success { background-color: rgb(5, 111, 31); }
.toast.error { background-color: #f5222d; }
.toast.warning { background-color: #faad14; }
.toast.info { background-color: #1890ff; }

.toast.show {
    opacity: 1;
    visibility: visible;
    top: 100px;
}

/* 复制代理元素 */
.copy-proxy {
    position: fixed;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* 弹窗 */
#popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#popup-overlay.show {
    display: flex;
    opacity: 1;
}

#popup {
    background-color: white;
    border-radius: 8px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

#popup-overlay.show #popup {
    transform: scale(1);
    opacity: 1;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.popup-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

#close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s;
    padding: 4px;
    outline: none;
    box-shadow: none;
}

#close-btn:hover {
    color: #1f2937;
}

.popup-content {
    margin-bottom: 20px;
}

.popup-content p {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 16px;
}

#countdown {
    font-weight: 600;
    color: #3b82f6;
}

#confirm-btn {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 9px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 120px;
    transition: background-color 0.2s;
    outline: none;
    box-shadow: none;
}

#confirm-btn:hover {
    background-color: #2563eb;
}

.popup-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

/* 极小屏幕适配 */
@media (max-width: 370px) {
    .block, .carousel-popup, .video-section, .info-section, .ad-section, .footer {
        width: 100%;
       
    }
   .info-section-cow button{
    font-size: 10px;
   }
}

/* 电脑端细节调整 */
@media (min-width: 769px) {
    .info-section-cow input {
        width: 300px;
    }
    .info-select-op {
        width: 200px;
    }
    .info-section-id {
        width: 420px;
    }
    .carousel-popup {
        /* 假设PC版图片尺寸为 1920×600px（宽×高），比例=600/1920=31.25% */
        padding-top: 31.25%; /* 与PC图比例严格匹配，避免拉伸 */
        height: 0; /* 高度由padding-top撑开 */
    } 
}

/* 移动端细节调整 */
@media (max-width: 768px) {
    .block, .carousel-popup, .video-section, .info-section, .ad-section, .footer {
        width: 100%;
    }
    .nav {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    .carousel-popup{
    	     margin-top: 130px;
    	}
    .video-container {
        width: 100%;
        max-width: none;
        height: 250px;
      }
     .video-chigua01 img{
        height: 35px;
     } 
    .info-section-cow input {
        width: 65%;
    }
    .info-select-op {
        width: 50%;
    }
    .carousel-popup {
        /* 假设移动版图片尺寸为 750×300px，直接设置固定高度匹配 */
        height: 300px;
        padding-top: 0; /* 取消比例适配，用固定高度 */
    }

}