/* CSS Document */

* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

:root {
--primary: #FF6B35;
--primary-dark: #E05A2B;
--primary-light: #FF9E6D;
--secondary: #4A6572;
--accent: #F9AA33;
--background: #FFF9F5;
--card-bg: #FFFFFF;
--text-dark: #333333;
--text-medium: #666666;
--text-light: #999999;
--divider: #EEEEEE;
--shadow: rgba(0, 0, 0, 0.08);
}

body {
background-color: var(--background);
color: var(--text-dark);
padding-bottom: 70px;
overflow-x: hidden;
}

/* 顶部导航 */
.top-bar {
background: linear-gradient(135deg, var(--primary), var(--primary-dark));
color: white;
padding: 15px;
display: flex;
justify-content: space-between;
align-items: center;
position: sticky;
top: 0;
z-index: 100;
box-shadow: 0 2px 10px var(--shadow);
}

.logo {
font-size: 1.4rem;
font-weight: 700;
display: flex;
align-items: center;
}

.logo-icon {
width: 30px;
height: 30px;
background: white;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
color: var(--primary);
margin-right: 10px;
font-weight: bold;
}

.nav-btn {
width: 36px;
height: 36px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.2);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s ease;
font-weight: bold;
}

.nav-btn:hover {
background: rgba(255, 255, 255, 0.3);
}

/* 幻灯片 */
.slider-container {
margin: 15px;
border-radius: 16px;
overflow: hidden;
box-shadow: 0 6px 16px var(--shadow);
height: 180px;
position: relative;
}

.slider {
width: 100%;
height: 100%;
background: linear-gradient(135deg, var(--primary), var(--accent));
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: white;
padding: 20px;
text-align: center;
}

.slider h2 {
font-size: 1.6rem;
margin-bottom: 10px;
text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.slider p {
font-size: 1rem;
max-width: 80%;
opacity: 0.9;
margin-bottom: 15px;
}

.slider-btn {
background: white;
color: var(--primary);
padding: 8px 20px;
border-radius: 20px;
font-weight: 600;
text-decoration: none;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.slider-indicators {
position: absolute;
bottom: 15px;
display: flex;
}

.indicator {
width: 8px;
height: 8px;
border-radius: 50%;
background: rgba(255,255,255,0.5);
margin: 0 4px;
}

.indicator.active {
background: white;
}

/* 热门服务 */
.section-title {
padding: 15px 15px 5px;
display: flex;
justify-content: space-between;
align-items: center;
}

.section-title h2 {
font-size: 1.3rem;
color: var(--primary-dark);
font-weight: 700;
}

.section-title a {
color: var(--primary);
font-size: 0.9rem;
font-weight: 500;
text-decoration: none;
}

.hot-services {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 12px;
padding: 0 15px 15px;
}

.service-item {
background: var(--card-bg);
border-radius: 12px;
padding: 15px 5px;
display: flex;
flex-direction: column;
align-items: center;
box-shadow: 0 3px 10px var(--shadow);
transition: all 0.3s ease;
}

.service-item:hover {
transform: translateY(-5px);
box-shadow: 0 6px 15px var(--shadow);
}

.service-icon {
width: 44px;
height: 44px;
background: linear-gradient(135deg, var(--primary), var(--accent));
border-radius: 14px;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 1.2rem;
margin-bottom: 10px;
font-weight: bold;
}

.service-name {
font-size: 0.75rem;
text-align: center;
color: var(--text-dark);
font-weight: 500;
}

/* 分类服务 */
.category {
background: var(--card-bg);
margin: 15px;
border-radius: 16px;
padding: 15px;
box-shadow: 0 3px 10px var(--shadow);
}

.category-header {
display: flex;
align-items: center;
margin-bottom: 15px;
padding-bottom: 12px;
border-bottom: 1px solid var(--divider);
}

.category-icon {
width: 36px;
height: 36px;
background: #FFF0E6;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
color: var(--primary-dark);
margin-right: 12px;
font-size: 1.1rem;
font-weight: bold;
}

.category-title {
font-size: 1.1rem;
font-weight: 700;
color: var(--text-dark);
}

.service-list {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}

.service-card {
background: #FFF9F2;
border-radius: 12px;
padding: 12px;
border: 1px solid #FFE5D4;
transition: all 0.2s ease;
}

.service-card:hover {
background: #FFF0E6;
transform: translateY(-2px);
}

.service-card h4 {
font-size: 0.9rem;
margin-bottom: 6px;
color: var(--text-dark);
font-weight: 600;
}

.service-card p {
font-size: 0.75rem;
color: var(--text-medium);
line-height: 1.4;
}

/* Tab切换 */
.tabs-container {
margin: 15px;
background: var(--card-bg);
border-radius: 16px;
overflow: hidden;
box-shadow: 0 3px 10px var(--shadow);
}

.tabs-header {
display: flex;
border-bottom: 1px solid var(--divider);
}

.tab {
flex: 1;
text-align: center;
padding: 16px;
font-size: 1rem;
color: var(--text-medium);
cursor: pointer;
transition: all 0.3s;
position: relative;
font-weight: 500;
}

.tab.active {
color: var(--primary-dark);
font-weight: 600;
}

.tab.active::after {
content: '';
position: absolute;
bottom: 0;
left: 20%;
right: 20%;
height: 3px;
background: var(--primary);
border-radius: 3px 3px 0 0;
}

.tab-content {
padding: 15px;
display: none;
}

.tab-content.active {
display: block;
}

.article-list {
list-style: none;
}

.article-item {
padding: 14px 0;
border-bottom: 1px solid var(--divider);
display: flex;
justify-content: space-between;
align-items: center;
transition: all 0.2s ease;
}

.article-item:hover {
background: #FFF9F2;
padding-left: 5px;
border-radius: 8px;
}

.article-item:last-child {
border-bottom: none;
}

.article-title {
font-size: 0.95rem;
color: var(--text-dark);
flex: 1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-weight: 500;
}

.article-date {
font-size: 0.8rem;
color: var(--text-light);
margin-left: 10px;
min-width: 70px;
text-align: right;
}

/* 联系方式 */
.contact-section {
margin: 15px;
background: linear-gradient(135deg, var(--primary), var(--primary-dark));
border-radius: 16px;
padding: 25px 20px;
text-align: center;
box-shadow: 0 6px 16px var(--shadow);
color: white;
}

.contact-title {
font-size: 1.3rem;
margin-bottom: 20px;
font-weight: 700;
}

.contact-info {
font-size: 1rem;
margin-bottom: 12px;
display: flex;
align-items: center;
justify-content: center;
}

.contact-phone {
font-size: 1.6rem;
font-weight: 800;
margin: 15px 0;
letter-spacing: 1px;
}

.contact-btn {
display: inline-block;
background: white;
color: var(--primary-dark);
padding: 12px 30px;
border-radius: 30px;
font-weight: 700;
text-decoration: none;
margin-top: 10px;
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 底部信息 */
.footer {
text-align: center;
padding: 25px 15px 15px;
color: var(--text-light);
font-size: 0.85rem;
line-height: 1.6;
}

.social-icons {
display: flex;
justify-content: center;
gap: 20px;
margin-bottom: 20px;
}

.social-icon {
width: 38px;
height: 38px;
border-radius: 50%;
background: #FFF0E6;
display: flex;
align-items: center;
justify-content: center;
color: var(--primary);
font-size: 1.1rem;
font-weight: bold;
}

/* 底部导航 */
.bottom-nav {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: var(--card-bg);
display: flex;
box-shadow: 0 -4px 12px var(--shadow);
z-index: 100;
padding: 8px 0;
border-top: 1px solid var(--divider);
}

.nav-item {
flex: 1;
text-align: center;
font-size: 0.75rem;
color: var(--text-medium);
text-decoration: none;
display: flex;
flex-direction: column;
align-items: center;
transition: all 0.3s ease;
}

.nav-icon {
width: 26px;
height: 26px;
margin-bottom: 4px;
background: #FFF0E6;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
color: var(--primary);
font-size: 1rem;
transition: all 0.3s ease;
font-weight: bold;
}

.nav-item.active {
color: var(--primary-dark);
font-weight: 600;
}

.nav-item.active .nav-icon {
background: linear-gradient(135deg, var(--primary), var(--accent));
color: white;
transform: translateY(-5px);
}

/* 导航菜单 */
.nav-menu {
position: fixed;
top: 0;
right: -300px;
width: 280px;
height: 100%;
background: var(--card-bg);
z-index: 1000;
box-shadow: -5px 0 15px rgba(0,0,0,0.1);
transition: right 0.4s ease;
padding: 70px 20px 20px;
}

.nav-menu.active {
right: 0;
}

.nav-menu h3 {
color: var(--primary-dark);
margin-bottom: 25px;
font-size: 1.4rem;
padding-bottom: 10px;
border-bottom: 2px solid var(--primary-light);
}

.menu-items {
list-style: none;
}

.menu-item {
padding: 16px 0;
border-bottom: 1px solid var(--divider);
}

.menu-item a {
text-decoration: none;
color: var(--text-dark);
font-weight: 500;
display: flex;
align-items: center;
transition: all 0.2s;
}

.menu-item a:hover {
color: var(--primary);
padding-left: 5px;
}

.menu-icon {
width: 28px;
height: 28px;
background: #FFF0E6;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
margin-right: 15px;
color: var(--primary);
font-weight: bold;
}

.overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0,0,0,0.5);
z-index: 999;
display: none;
}

.overlay.active {
display: block;
}

.close-btn {
position: absolute;
top: 20px;
right: 20px;
width: 36px;
height: 36px;
border-radius: 50%;
background: #FFF0E6;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
color: var(--primary);
font-weight: bold;
}

a {
  text-decoration: none;
}