/* Reset & Global */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: #f7f7f7;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
    max-width: 750px; /* Limit width for desktop viewing to mimic mobile */
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
header {
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e5e5e5;
}

.logo-area {
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Centered logo as requested/common */
    background: #fff;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    color: #000;
}

.logo-desc{
    font-size: 12px;
    color: #c3c3c3;
}

.tel-search{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
}
.logo-tel{
    font-size: larger;
    font-weight: bold;
    color: #07c160;
}
.search-form{
    display: flex;
}
.search{
    /* background-color: #576b95; */
    display: flex;
    justify-content: end; 
}
.search-inp{
    padding: 2px 7px;
    height: 28px;
    width: 200px;
    border: 1px solid #07c160;
    border-radius: 5px 0 0 5px;
}
.search-sub{
    background-color: #07c160;
    border: none;
    height: 28px;
    width: 50px;
    color: #f7f7f7;
    margin-left: -5px;
    border-radius: 0px 5px 5px 0;
    cursor: pointer;
}
.search-sub:hover{
    background-color: #008e45;
}

/* Nav Menu (Tabs) */
.nav-menu {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0 10px;
    background: #fff;
    scrollbar-width: none; /* Firefox */
}

.nav-menu::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.nav-item {
    padding: 12px 15px;
    font-size: 15px;
    color: #666;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-item.active {
    color: #07c160; /* WeChat Green */
    font-weight: 500;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 2px;
    background-color: #07c160;
}

/* Common Container */
.container {
    padding: 0;
    background-color: #fff;
}

/* Index Page specific */
.banner {
    width: 100%;
    height: 180px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    margin-bottom: 20px;
}

.section-title {
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    border-left: 4px solid #07c160;
    margin: 10px 15px;
    background: #f9f9f9;
}

/* List Style (WeChat style) */
.article-list {
    padding: 0 15px;
}

.article-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 15px;
}

.article-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-title {
    font-size: 17px;
    color: #333;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    font-weight: 400;
}
.article-title:hover {
  color: #07c160;
}

.article-meta {
    font-size: 13px;
    color: #999;
}

.article-thumb {
    width: 100px; 
    height: 75px;
    background-color: #eee;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}
.article-thumb-text {
    width: 100px; 
    height: 75px;
    background-color: #eee;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #c2c2c2;
    font-weight: bold;
}

/* Big Card Style (for featured/index) */
.big-card {
    margin: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
}

.big-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: #eee;
}

.big-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
    padding: 20px 15px 10px;
    font-size: 16px;
    line-height: 1.4;
}

/* Content Page */
.article-container {
    padding: 20px 15px;
    background: #fff;
}

.article-headline {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-header-meta {
    margin-bottom: 25px;
    font-size: 14px;
    color: #576b95; /* WeChat Link Blue */
}

.meta-date {
    color: #b2b2b2;
    margin-right: 10px;
}

.article-content {
    font-size: 17px;
    color: #333;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.article-content img {
    margin: 10px 0;
    border-radius: 4px;
}

/* Footer */
footer {
    padding: 30px 0;
    text-align: center;
    color: #999;
    font-size: 12px;
    background-color: #f7f7f7;
    margin-top: 20px;
}

/* Responsive tweaks */
@media (max-width: 480px) {
    body {
        box-shadow: none;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: background-color 0.3s;
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    background-color: rgba(0,0,0,0.7);
}

.page{
    margin: 20px 0px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}