/* IP检测模块核心样式 */
.ip-main-container {
    font-family: "Microsoft Yahei", sans-serif;
    line-height: 1.6;
    color: #333;
    width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
    min-height: 30px; /* 电脑端最低高度70px */
    overflow: visible !important;
}
.ip-row { 
    display: flex; 
    gap: 20px; 
    margin: 10px 0; 
    align-items: flex-start;
    flex-wrap: wrap;
}
.ip-item { 
    flex: 1; 
    min-width: 0;
}
.label { 
    font-size: 16px; 
    font-weight: bold;
    color: #000;
    margin-right: 8px; 
}
.value { 
    font-size: 16px; 
    color: #333;
}
.ipv6-value {
    white-space: nowrap;
    display: inline-block;
}
.location-isp { 
    font-size: 14px; 
    color: #0066cc; 
    margin: 4px 0 10px 0; 
    display: block;
}
.priority { 
    background: #f0f9eb; 
    color: #67c23a; 
    padding: 4px 12px; 
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    margin-left: 10px;
    margin-top: 0;
    flex-shrink: 0;
}

/* 系统信息表格样式（核心：匹配截图1） */
.system-row { 
    display: none; 
    margin: 10px 0;
}
.system-info-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e5e7eb; /* 表格边框 */
}
.system-info-table tr {
    border-bottom: 1px solid #e5e7eb;
}
.system-info-table tr:last-child {
    border-bottom: none;
}
.table-label {
    width: 100px;
    padding: 8px 12px;
    background-color: #f9fafb; /* 标签列浅灰背景 */
    font-size: 16px;
    font-weight: bold;
    color: #333;
    text-align: left;
    border-right: 1px solid #e5e7eb;
}
.table-value {
    padding: 8px 12px;
    font-size: 16px;
    color: #333;
    word-break: break-all; /* 浏览器UA超长时自动换行 */
}

.toggle-btn {
    color: #0066cc;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    margin: 10px 0;
    display: block;
}
.toggle-btn:hover {
    text-decoration: underline;
}

/* 天气相关样式 */
.weather-item {
    flex-shrink: 0;
    margin-left: 10px;
    display: flex;
    align-items: center;
}
.weather-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #e8f4fc;
    border: none;
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 14px;
    color: #1d72b8;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}
.weather-icon-btn:hover {
    background-color: #d1e7fd;
    transform: translateY(-1px);
}
.weather-icon-btn .icon {
    font-size: 16px;
}
.weather-icon-btn .temp {
    font-size: 14px;
}

/* ==========【缩小版天气弹窗 + 修复遮罩全屏bug】========== */
.weather-modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}
.weather-modal {
    width: 90%;
    max-width: 260px;   /* 弹窗最大宽度缩小 原来320→260 */
    background-color: white;
    border-radius: 10px;
    padding: 12px;      /* 内边距减小 */
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    position: relative;
}
.modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 16px;
    color: #999;
    cursor: pointer;
}
.modal-close:hover {
    color: #333;
}
.modal-title {
    font-size: 15px;    /*标题缩小*/
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}
.today-main {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.today-icon {
    font-size: 30px;    /*天气图标缩小*/
}
.today-temp {
    font-size: 24px;    /*温度文字缩小*/
    font-weight: 700;
    color: #333;
}
.today-weather {
    font-size: 14px;
    color: #666;
    margin-top: 3px;
}
.forecast-title {
    font-size: 13px;
    color: #999;
    margin-bottom: 6px;
}
.forecast-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.forecast-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
}
.forecast-item:last-child {
    border-bottom: none;
}
.forecast-date {
    font-size: 12px;
    color: #666;
    width: 45px;
}
.forecast-icon {
    font-size: 16px;
    width: 30px;
    text-align: center;
}
.forecast-temp {
    font-size: 12px;
    color: #333;
    width: 55px;
    text-align: center;
}
.forecast-type {
    font-size: 12px;
    color: #666;
    flex: 1;
    text-align: right;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .ip-main-container{
        min-height: 230px; /*手机最低高度230px*/
    }
    .ip-row {
        flex-wrap: wrap;
        gap: 8px;          /*缩小上下间距，减少高度占用*/
        margin: 2px 0;
    }
    .ip-item {
        flex: 100%;
        margin-bottom:6px;
    }
    .priority {
        flex: 100%;
        margin-left: 0;
        text-align: center;
        padding: 4px 0;
        margin-top: 3px;
    }
    .ipv6-value {
        white-space: normal;
        word-break: break-all;
        max-width: 100%;
    }
    .label {
        font-size: 14px;
    }
    .value {
        font-size: 14px;
    }
    .location-isp {
        font-size: 13px;
        margin: 2px 0 6px 0; /*缩小地理位置下边距*/
    }
    /* 表格移动端适配 */
    .table-label {
        width: 80px;
        font-size: 14px;
        padding: 6px 8px;
    }
    .table-value {
        font-size: 14px;
        padding: 6px 8px;
    }
    /* 天气移动端适配 */
    .weather-item {
        flex: 100%;
        margin-left: 0;
        margin-top: 6px;
        justify-content: center;
    }
}
.embed-watermark {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
html,body{
    height:auto !important;
    overflow: visible !important;
}