/* ============================================
   组件样式 - 按钮、卡片、搜索框、统计卡片
   ============================================ */

/* 服务卡片 */
.service-card {
    background-color: var(--light-color);
    padding: 35px 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-dark);
    position: relative;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: #d1e7ff;
}

.service-card:hover::before {
    width: 8px;
}

.service-icon {
    font-size: 44px;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.service-card:hover .service-icon {
    color: var(--secondary-color);
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary-color);
    font-weight: 600;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 15px;
    flex: 1;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    margin-top: auto;
    display: inline-block;
}

.service-link:hover {
    text-decoration: underline;
}

/* 资讯卡片 */
.news-card {
    background: var(--light-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-dark);
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.news-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--gray-color);
}

.news-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
}

.news-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.news-title a {
    color: var(--dark-color);
    transition: color 0.2s;
}

.news-title a:hover {
    color: var(--primary-color);
}

.news-meta {
    color: #999;
    font-size: 12px;
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
}

/* 百度搜索框 */
.search-bar {
    background-color: var(--primary-light);
    padding: 30px 0;
    margin: 40px 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid #d1e7ff;
}

.search-wrap {
    display: flex;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.search-label {
    font-size: 22px;
    font-weight: 600;
    color: #2d78f4;
    margin-right: 20px;
    white-space: nowrap;
}

.search-container {
    flex: 1;
    position: relative;
}

.baidu-search {
    display: flex;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--primary-color);
}

.baidu-search input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    outline: none;
    font-size: 16px;
    background-color: var(--light-color);
}

.baidu-search input::placeholder {
    color: #999;
}

.baidu-search button {
    padding: 0 30px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.baidu-search button:hover {
    background-color: #0055bb;
}

.search-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: var(--light-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 20px;
    z-index: 999;
    display: none;
    border: 1px solid #e8f3ff;
}

.search-panel.show {
    display: block;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.search-tag {
    padding: 6px 16px;
    background: var(--gray-color);
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-tag:hover {
    background: var(--primary-color);
    color: var(--light-color);
}

.search-tag.hot {
    background: #fff0e8;
    color: var(--secondary-color);
    border: 1px solid #ffd8c8;
}

.search-tag.hot:hover {
    background: var(--secondary-color);
    color: var(--light-color);
}

/* 统计卡片 */
.stat-card {
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* 联系卡片 */
.contact-item {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.contact-item-icon {
    font-size: 48px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.contact-item:hover .contact-item-icon {
    transform: scale(1.1);
}

.contact-item h4 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-item p {
    font-size: 16px;
    margin: 8px 0;
    opacity: 0.9;
}

.contact-item a {
    color: white;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}