/* 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;
}
.ip-row { 
    display: flex; 
    gap: 20px; 
    margin: 10px 0; 
    align-items: flex-start;
    flex-wrap: nowrap;
}
.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;
}
.system-row { 
    display: none; 
    gap: 20px; 
    margin: 10px 0;
    flex-wrap: wrap;
}
.system-row > div {
    margin-right: 20px;
}
.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;
}

/* 天气弹窗样式 */
.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: 100%;
    max-width: 400px;
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    position: relative;
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
}
.modal-close:hover {
    color: #333;
}
.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}
.today-main {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}
.today-icon {
    font-size: 48px;
}
.today-temp {
    font-size: 36px;
    font-weight: 700;
    color: #333;
}
.today-weather {
    font-size: 16px;
    color: #666;
    margin-top: 5px;
}
.forecast-title {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}
.forecast-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.forecast-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
.forecast-item:last-child {
    border-bottom: none;
}
.forecast-date {
    font-size: 14px;
    color: #666;
    width: 60px;
}
.forecast-icon {
    font-size: 20px;
    width: 40px;
    text-align: center;
}
.forecast-temp {
    font-size: 14px;
    color: #333;
    width: 80px;
    text-align: center;
}
.forecast-type {
    font-size: 14px;
    color: #666;
    flex: 1;
    text-align: right;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .ip-row {
        flex-wrap: wrap;
        gap: 15px;
        margin: 5px 0;
    }
    .ip-item {
        flex: 100%;
        margin-bottom: 10px;
    }
    .priority {
        flex: 100%;
        margin-left: 0;
        text-align: center;
        padding: 6px 0;
        margin-top: 5px;
    }
    .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 8px 0;
    }
    .system-row {
        gap: 10px;
    }
    .system-row > div {
        flex: 100%;
        margin-right: 0;
        margin-bottom: 5px;
    }
    /* 天气移动端适配 */
    .weather-item {
        flex: 100%;
        margin-left: 0;
        margin-top: 10px;
        justify-content: center;
    }
}