/* ===== 广州家政企业模板 - 样式表 ===== */
/* 配色：深绿(#1B5E38) + 暖金(#F59E0B) + 清新白 */

* { margin:0; padding:0; box-sizing:border-box; }

:root {
    --primary: #1B5E38;
    --primary-light: #2E7D32;
    --primary-dark: #0D3B1F;
    --accent: #F59E0B;
    --accent-light: #FDE68A;
    --accent-dark: #D97706;
    --text: #1F2937;
    --text-light: #6B7280;
    --text-muted: #9CA3AF;
    --bg: #F9FAFB;
    --bg-green: #ECFDF5;
    --white: #FFFFFF;
    --border: #E5E7EB;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
    --shadow: 0 4px 12px rgba(0,0,0,.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all .3s cubic-bezier(.4,0,.2,1);
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.wrap {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ===== 顶部信息栏 ===== */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,.85);
    font-size: 13px;
    padding: 8px 0;
}
.top-bar .wrap { display:flex; justify-content:space-between; align-items:center; }
.top-phone { color: var(--accent); font-weight: 600; }

/* ===== 头部导航 ===== */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--white);
}
.logo-text h1 {
    font-size: 22px;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}
.logo-text small {
    font-size: 12px;
    color: var(--text-light);
    letter-spacing: 2px;
}
.nav { display: flex; gap: 6px; }
.nav a {
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
}
.nav a:hover,
.nav a.active {
    background: var(--bg-green);
    color: var(--primary);
}

/* ===== 主视觉 Hero ===== */
.hero {
    background: linear-gradient(135deg, #0D3B1F 0%, #1B5E38 40%, #2E7D32 70%, #43A047 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0 100px;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245,158,11,.15), transparent 70%);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,.05), transparent 70%);
    border-radius: 50%;
}
.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    text-align: center;
}
.hero-content h2 {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 18px;
    letter-spacing: 2px;
}
.hero-content h2 br { display: block; }
.hero-content p {
    font-size: 18px;
    opacity: .9;
    margin-bottom: 36px;
    letter-spacing: 1px;
}
.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 50px;
}
.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 14px 36px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(245,158,11,.4);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 6px 30px rgba(245,158,11,.5); }
.btn-outline {
    display: inline-block;
    border: 2px solid rgba(255,255,255,.5);
    color: var(--white);
    padding: 12px 34px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.btn-sm { padding: 8px 20px; font-size: 13px; border-radius: 20px; }

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,.2);
}
.stat-item { text-align: center; }
.stat-item strong {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
}
.stat-item span {
    font-size: 14px;
    opacity: .8;
    margin-top: 4px;
    display: block;
}

/* ===== 通用区块 ===== */
.section { padding: 80px 0; }
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-tag {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent-dark);
    padding: 5px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 14px;
}
.section-title {
    font-size: 34px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}
.section-desc {
    color: var(--text-light);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== 服务卡片 ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.service-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
    color: var(--primary);
    font-weight: 700;
}
.service-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.service-card h3 a { color: var(--text); transition: var(--transition); }
.service-card h3 a:hover { color: var(--primary); }
.service-card p { font-size: 13px; color: var(--text-light); line-height: 1.6; margin-bottom: 14px; }
.service-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
}
.service-link:hover { color: var(--accent); }

/* ===== 为什么选择我们 ===== */
.why-us { background: var(--bg-green); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.feature-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon {
    font-size: 36px;
    margin-bottom: 14px;
}
.feature-item h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}
.feature-item p { font-size: 13px; color: var(--text-light); }

/* ===== 家政人员推荐 ===== */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.staff-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}
.staff-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.staff-avatar {
    height: 200px;
    overflow: hidden;
    background: var(--bg-green);
}
.staff-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.staff-info { padding: 20px; }
.staff-info h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.staff-tag {
    display: inline-block;
    background: var(--bg-green);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    margin-bottom: 10px;
}
.staff-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 10px;
}
.staff-info p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== 服务流程 ===== */
.process { background: var(--white); }
.process-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
}
.step {
    text-align: center;
    flex: 0 0 200px;
}
.step-num {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    margin: 0 auto 16px;
    box-shadow: 0 4px 16px rgba(27,94,56,.3);
}
.step h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--primary); }
.step p { font-size: 13px; color: var(--text-light); }
.step-arrow {
    font-size: 28px;
    color: var(--primary-light);
    padding-top: 20px;
    font-weight: 300;
}

/* ===== 新闻资讯 ===== */
.news-layout {
    display: flex;
    gap: 30px;
}
.news-main { flex: 1; }
.news-card {
    display: flex;
    gap: 20px;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
}
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.news-card-img {
    width: 260px;
    min-height: 180px;
    flex-shrink: 0;
    background: var(--bg-green);
    overflow: hidden;
}
.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-card-body { padding: 20px 20px 20px 0; flex: 1; }
.news-date { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; display: block; }
.news-card-body h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.news-card-body h3 a { color: var(--text); transition: var(--transition); }
.news-card-body h3 a:hover { color: var(--primary); }
.news-card-body p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}
.read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
}
.read-more:hover { color: var(--accent); }

.news-sidebar { width: 320px; flex-shrink: 0; }

/* ===== 侧边栏 ===== */
.sidebar-block {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.sidebar-block h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-green);
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud span {
    background: var(--bg-green);
    color: var(--primary);
    padding: 4px 14px;
    border-radius: 14px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}
.tag-cloud span:hover { background: var(--primary); color: var(--white); }

.contact-info p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

/* ===== 友情链接 ===== */
.links-section { background: var(--white); }
.links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.link-item {
    display: inline-block;
    padding: 8px 22px;
    background: var(--bg-green);
    color: var(--primary);
    border-radius: 20px;
    font-size: 13px;
    transition: var(--transition);
}
.link-item:hover { background: var(--primary); color: var(--white); }

/* ===== 页脚 ===== */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,.75);
    padding: 50px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 14px;
}
.footer-col h4 {
    color: var(--white);
    font-size: 15px;
    margin-bottom: 14px;
}
.footer-col p { font-size: 13px; line-height: 1.8; margin-bottom: 8px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
    font-size: 13px;
    color: rgba(255,255,255,.6);
    transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--accent); padding-left: 4px; }
.footer-social { margin-top: 14px; }
.footer-social span { font-size: 12px; margin-right: 8px; }
.footer-social a {
    color: var(--accent);
    font-size: 12px;
    margin-right: 10px;
    transition: var(--transition);
}
.footer-social a:hover { color: var(--white); }
.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,.4);
}

/* ===== 面包屑 ===== */
.breadcrumb {
    padding: 18px 0;
    font-size: 13px;
    color: var(--text-muted);
}
.breadcrumb a {
    color: var(--primary);
    transition: var(--transition);
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text); font-weight: 500; }

/* ===== 页面内容 ===== */
.page-content { padding: 20px 30px 50px; }

/* ===== 列表页布局 ===== */
.list-layout,
.detail-layout {
    display: flex;
    gap: 30px;
}
.sidebar { width: 280px; flex-shrink: 0; }
.main-area { flex: 1; min-width: 0; }

.cat-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.cat-list li:last-child { border: none; }
.cat-list li a {
    font-size: 14px;
    color: var(--text);
    transition: var(--transition);
    display: block;
}
.cat-list li a:hover { color: var(--primary); padding-left: 6px; }

.hot-list li { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.hot-list li:last-child { border: none; }
.hot-list li a {
    font-size: 13px;
    color: var(--text-light);
    transition: var(--transition);
}
.hot-list li a:hover { color: var(--primary); }

.page-header {
    margin-bottom: 24px;
}
.page-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
}
.page-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

/* 列表文章卡片 */
.article-card {
    display: flex;
    gap: 20px;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.article-card:hover { box-shadow: var(--shadow); }
.article-card-img {
    width: 240px;
    min-height: 160px;
    flex-shrink: 0;
    background: var(--bg-green);
    overflow: hidden;
}
.article-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-card-body { padding: 20px 20px 20px 0; flex: 1; }
.article-card-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.article-card-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.article-card-body h3 a { color: var(--text); transition: var(--transition); }
.article-card-body h3 a:hover { color: var(--primary); }
.article-card-body p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 30px 0;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    background: var(--white);
    color: var(--text);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.pagination a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.pagination .current {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    font-weight: 700;
}

/* ===== 内页文章详情 ===== */
.article-detail {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-bottom: 30px;
}
.article-header { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.article-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.4;
    margin-bottom: 16px;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: var(--text-muted);
}
.article-content {
    font-size: 16px;
    line-height: 2;
    color: var(--text);
}
.article-content p { margin-bottom: 18px; }
.article-content h2,.article-content h3 { color: var(--primary); margin: 28px 0 14px; }
.article-content img { border-radius: var(--radius-sm); margin: 20px 0; }
.article-content ul,.article-content ol { padding-left: 24px; margin-bottom: 18px; }
.article-content li { margin-bottom: 6px; }

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.article-tags span { color: var(--text-light); font-size: 13px; }
.article-tags a {
    background: var(--bg-green);
    color: var(--primary);
    padding: 4px 14px;
    border-radius: 14px;
    font-size: 12px;
    transition: var(--transition);
}
.article-tags a:hover { background: var(--primary); color: var(--white); }

.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.prev-article,
.next-article {
    flex: 1;
    padding: 14px 18px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.prev-article:hover,
.next-article:hover { background: var(--bg-green); }
.prev-article span,
.next-article span {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.prev-article a,
.next-article a {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}
.next-article { text-align: right; }

/* 相关推荐 */
.related-articles { margin-bottom: 30px; }
.related-articles h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 18px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.related-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.related-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.related-card img {
    height: 140px;
    width: 100%;
    object-fit: cover;
    background: var(--bg-green);
}
.related-card h4 { padding: 12px 14px 4px; font-size: 14px; font-weight: 600; }
.related-card h4 a { color: var(--text); transition: var(--transition); }
.related-card h4 a:hover { color: var(--primary); }
.related-card .article-date {
    display: block;
    padding: 0 14px 12px;
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== 响应式适配 ===== */
@media (max-width: 1400px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .staff-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1200px) {
    .wrap { padding: 0 20px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .staff-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .news-layout { flex-direction: column; }
    .news-sidebar { width: 100%; }
    .list-layout,
    .detail-layout { flex-direction: column; }
    .sidebar { width: 100%; }
    .hero-content h2 { font-size: 34px; }
    .hero-stats { gap: 30px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .wrap { padding: 0 16px; }
    .header-inner { flex-direction: column; gap: 12px; padding: 12px 16px; }
    .nav { flex-wrap: wrap; justify-content: center; }
    .nav a { padding: 6px 12px; font-size: 12px; }
    .hero { padding: 50px 0 60px; }
    .hero-content h2 { font-size: 26px; }
    .hero-content p { font-size: 14px; }
    .hero-stats { flex-wrap: wrap; gap: 20px; }
    .stat-item strong { font-size: 22px; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .staff-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .process-steps { flex-direction: column; align-items: center; }
    .step-arrow { transform: rotate(90deg); }
    .news-card { flex-direction: column; }
    .news-card-img { width: 100%; height: 180px; }
    .news-card-body { padding: 16px; }
    .section-title { font-size: 24px; }
    .section { padding: 50px 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .article-card { flex-direction: column; }
    .article-card-img { width: 100%; height: 180px; }
    .article-card-body { padding: 16px; }
    .article-detail { padding: 20px; }
    .article-title { font-size: 22px; }
    .article-nav { flex-direction: column; }
    .related-grid { grid-template-columns: 1fr; }
}
