:root {
    --bg-color: #f4f6f9;
    --card-bg-color: #ffffff;
    --primary-color: #007bff;
    --text-color: #333;
    --text-secondary-color: #6c757d;
    --border-color: #e9ecef;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

footer {
    text-align: center;
    padding: 2rem 0; 
    color: var(--text-secondary-color);
    font-size: 0.9em;
}

footer p {
    margin: 0.3rem 0;
}

footer a {
    text-decoration: none; 
    color: var(--text-secondary-color); 
    transition: color 0.2s ease; 
}

footer a:hover {
    color: var(--primary-color); 
}


/* --- 主页特定样式 --- */
.hero-section {
    text-align: center;
    margin: 2rem 0;
}
.hero-section h1 {
    font-size: 2.5em;
    font-weight: 600;
    color: var(--primary-color);
}

.search-section form {
    display: flex;
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    overflow: hidden;
    background-color: var(--card-bg-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.search-input {
    flex-grow: 1;
    border: none;
    padding: 0.8rem 1.2rem;
    font-size: 1em;
    background: transparent;
}
.search-input:focus {
    outline: none;
}
.search-button {
    border: none;
    background-color: var(--primary-color);
    color: white;
    padding: 0 1.5rem;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.2s;
}
.search-button:hover {
    background-color: #0056b3;
}

.shortcuts-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.shortcut-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    padding: 0rem;
    border-radius: 8px;
    transition: background-color 0.2s;
}
.shortcut-item:hover {
    background-color: #e9ecef;
}
.shortcut-item img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}
.shortcut-item span {
    font-size: 0.85em;
    text-align: center;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    width: 100%; 
}

.hot-search-section {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.hot-search-section h2 {
    margin-top: 0;
    font-size: 1.2em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}
.hot-search-section ol {
    padding-left: 1.2rem;
    margin: 0;
}
.hot-search-section li {
    padding: 0.4rem 0;
}
.hot-search-section a {
    text-decoration: none;
    color: var(--text-color);
}
.hot-search-section a:hover {
    color: var(--primary-color);
}


/* --- “更多软件”页面特定样式 --- */
.page-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}
.back-button {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    margin-right: 1rem;
}
.page-header h1 {
    margin: 0;
    font-size: 1.8em;
}

.app-card {
    display: flex;
    align-items: center;
    background-color: var(--card-bg-color);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.app-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    margin-right: 1rem;
}
.app-info {
    flex-grow: 1;
}
.app-title {
    margin: 0 0 0.25rem 0;
    font-size: 1.1em;
}
.app-description {
    margin: 0;
    font-size: 0.9em;
    color: var(--text-secondary-color);
}
.app-download-button {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-weight: 500;
    font-size: 0.9em;
}
.collapsible-header {
    cursor: pointer; 
    user-select: none; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}


.toggle-arrow {
    transition: transform 0.3s ease; /* 让箭头旋转有平滑的动画效果 */
    font-size: 1em; /* 调整箭头大小 */
    margin-left: 10px;
}

.collapsible-content {
    /* 使用 max-height 和 overflow 来实现平滑的展开/收起动画 */
    max-height: 0; /* 默认状态下，最大高度为0，内容被隐藏 */
    overflow: hidden; /* 超出高度部分隐藏 */
    transition: max-height 0.4s ease-out; /* 高度变化时有平滑的动画效果 */
    
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    display: none;
}

.collapsible-content.expanded {
    max-height: 1000px; 
    display: block;
   /* padding-top: 10px;
    padding-bottom: 10px;*/
}

.collapsible-content.expanded + .collapsible-header .toggle-arrow,
.collapsible-header.active .toggle-arrow {
    /*transform: rotate(90deg); */
}

.police-beian a {
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
}

.police-beian img {
    width: 18px;   
    height: 18px;   
    margin-right: 8px; 
}
