/* 全局样式重置，消除浏览器默认样式差异 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* 标题样式 */
h1 {
    color: #333;
    margin: 30px 0;
    font-size: 28px;
}

/* 搜索框和按钮容器样式 */
.search-container {
    width: 90%;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    box-sizing: border-box;
}

/* 搜索输入框样式 */
#search-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 16px;
}

/* 搜索按钮样式 */
button {
    padding: 12px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

/* 搜索结果显示区域样式 */
#result {
    width: 90%;
    max-width: 500px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
    text-align: center; /* 内容居中 */
    font-size: 12px; /* 初始字号，用于提示信息 */
    box-sizing: border-box;
}

#result p {
    margin: 10px 0;
    font-size: 14px; /* 搜索结果字号 */
}

#result a {
    color: #007BFF;
    text-decoration: none;
}

#result a:hover {
    text-decoration: underline;
}

/* 推荐常用电话区域样式 */
#recommended {
    width: 90%;
    max-width: 500px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
    box-sizing: border-box;
}

#recommended h2 {
    font-size: 20px;
    margin-bottom: 15px;
}

#recommended p {
    margin: 10px 0;
    font-size: 14px;
}

#recommended a {
    color: #007BFF;
    text-decoration: none;
}

#recommended a:hover {
    text-decoration: underline;
}

/* 底部开发信息样式 */
.footer {
    font-size: 10px;
    color: #888;
    margin-top: auto;
    padding-bottom: 20px;
}
/* 当 body 有 app-open 类时，设置搜索框的上边距为 50px */
body.app-open .search-container {
    margin-top: 50px;
}

/* 确保在 APP 内打开时隐藏 <h1> 标签 */
body.app-open h1 {
    display: none;
}