body {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
}
.footer .footer-link {
    color: #40a9ff; /* 蓝色链接 */
    text-decoration: none;
    transition: color 0.3s;
}

.footer .footer-link:hover {
    color: #1890ff; /* 悬停时更亮的蓝色 */
    text-decoration: underline;
}
.container {
    text-align: center;
}

.search-box {
    margin: 30px 0;
}


.btn-primary, .btn-secondary {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 160px;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background-color: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.btn-secondary {
    background-color: #2196F3;
    color: white;
}

.btn-secondary:hover {
    background-color: #0b7dda;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

/* 输入框样式优化 */
input[type="text"] {
    padding: 12px 15px;
    margin: 20px 10px;
    width: 220px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

input[type="text"]:focus {
    border-color: #2196F3;
    outline: none;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    input[type="text"] {
        width: 200px;
        margin: 5px;
    }
    
    .btn-primary, .btn-secondary {
        min-width: 140px;
        padding: 10px 20px;
    }
}

input {
    padding: 10px;
    margin: 0 10px;
    width: 200px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.update-notice {
    font-style: italic;
    color: #888;
    font-size: 14px;
    text-align: left;  /* 改为左对齐 */
    margin: 10px 0 20px 0;
    padding: 0 10px;   /* 可选：添加一些内边距 */
}
.footer {
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer p {
    margin: 5px 0;
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

.footer a {
    color: #666;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}


.subtitle h2 {
    font-size: 16px;
    color: #666;
    margin: 5px 0;
    font-weight: normal;
}

.subtitle h3 {
    font-size: 14px;
    color: #888;
    margin: 5px 0 20px 0;
    font-weight: normal;
    font-style: italic;
}

button {
    padding: 10px 20px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background: #005a87;
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.result-container {
    margin-top: 30px;
    text-align: left;
}

.path-item {
    background: #f5f5f5;
    margin: 10px 0;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

.hidden {
    display: none;
}

.error {
    color: red;
    margin: 20px 0;
}

.loading {
    color: #666;
    margin: 20px 0;
}

/* 工具提示容器 - 手机优化 */
.tooltip-container {
    position: relative;
    display: inline-block;
}

/* 工具提示图标 - 增大触摸目标 */
.tooltip-icon {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background: #ff9800;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    cursor: help;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

/* 工具提示文本 - 手机优化 */
.tooltip-text {
    visibility: hidden;
    width: 260px;
    background-color: #333;
    color: white;
    text-align: center;
    border-radius: 8px;
    padding: 12px;
    position: absolute;
    z-index: 100;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    font-weight: normal;
}

/* 点击显示工具提示 - 手机友好 */
.tooltip-container.active .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* 点击背景关闭工具提示 */
.tooltip-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 5;
    display: none;
}

.tooltip-container.active .tooltip-overlay {
    display: block;
}

/* 手机端特定样式 */
@media (max-width: 768px) {
    .tooltip-icon {
        width: 28px;
        height: 28px;
        font-size: 16px;
        top: -12px;
        right: -12px;
    }
    
    .tooltip-text {
        width: 280px;
        max-width: 90vw;
        font-size: 14px;
        padding: 14px;
    }
    
    /* 手机端提示框位置调整 */
    .tooltip-text {
        bottom: 135%;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .tooltip-text.mobile-right {
        left: auto;
        right: 0;
        transform: none;
    }
}