/* 弘毅养正 - 通用页面样式 */

.section { padding: 72px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag { display: inline-block; background: var(--primary-light); color: var(--primary); font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 50px; margin-bottom: 12px; letter-spacing: 1px; }
.section-title { font-size: 36px; font-weight: 800; color: #1a1a2e; margin-bottom: 11px; }
.section-title em { color: var(--primary); font-style: normal; }
.section-desc { font-size: 16px; color: #666; max-width: 540px; margin: 0 auto; line-height: 1.8; }
.cta-banner { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); padding: 72px 0; text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.06) 0%, transparent 50%); }
.cta-banner h2 { font-size: 36px; font-weight: 800; color: white; margin-bottom: 12px; position: relative; }
.cta-banner > p { font-size: 17px; color: rgba(255,255,255,0.8); margin-bottom: 30px; position: relative; }
.cta-phone { font-size: 48px; font-weight: 900; color: var(--accent); margin-bottom: 24px; position: relative; display: block; letter-spacing: 2px; }
.cta-btn { background: linear-gradient(135deg, var(--accent), #f5a623); color: #1a1a2e; padding: 15px 44px; border-radius: 50px; font-size: 16px; font-weight: 700; display: inline-block; transition: all 0.3s; position: relative; }
.cta-btn:hover { transform: translateY(-4px); box-shadow: 0 12px 35px rgba(247,183,49,0.4); }

@media (max-width: 768px) {
  .section { padding: 52px 0; }
  .section-title { font-size: 28px; }
}

/* 页面通用布局 */
.page-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; max-width: 1200px; margin: 0 auto; padding: 40px 20px; align-items: start; }
.sidebar { position: sticky; top: 90px; align-self: start; }
.sidebar-widget { background: white; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid #eee; margin-bottom: 20px; }
.sidebar-title { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; padding: 14px 18px; font-size: 15px; font-weight: 700; }
.sidebar-menu { padding: 10px 0; }
.sidebar-menu a { display: block; padding: 10px 18px; font-size: 14px; color: #555; transition: all 0.3s; border-left: 3px solid transparent; }
.sidebar-menu a:hover, .sidebar-menu a.active { background: rgba(27,139,90,0.05); color: var(--primary); border-left-color: var(--primary); }
.sidebar-contact { text-align: center; padding: 20px; }
.sidebar-contact p { font-size: 14px; color: #666; margin-bottom: 12px; }
.sidebar-contact .phone { font-size: 22px; color: var(--primary); font-weight: 800; margin-bottom: 12px; }
.sidebar-contact .btn { display: inline-block; background: var(--primary); color: white; padding: 10px 24px; border-radius: 50px; font-size: 13px; font-weight: 600; transition: all 0.3s; }
.sidebar-contact .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(27,139,90,0.3); }

.related-card { display: block; padding: 12px 18px; border-bottom: 1px solid #f0f0f0; transition: all 0.3s; }
.related-card:last-child { border-bottom: none; }
.related-card:hover { background: rgba(27,139,90,0.04); }
.related-card .tag { font-size: 11px; color: var(--primary); font-weight: 600; margin-bottom: 3px; }
.related-card h4 { font-size: 13px; color: #333; font-weight: 600; line-height: 1.4; }

.main-content { min-width: 0; }

.content-section { background: white; border-radius: 16px; padding: 32px; margin-bottom: 24px; box-shadow: var(--shadow); border: 1px solid #eee; }
.content-section h2 { font-size: 24px; font-weight: 800; color: #1a1a2e; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); }
.content-section h3 { font-size: 18px; font-weight: 700; color: #1a1a2e; margin: 20px 0 12px; }
.content-section p { font-size: 15px; color: #555; line-height: 1.9; margin-bottom: 16px; }

.program-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.program-tag { display: inline-block; background: rgba(27,139,90,0.08); color: var(--primary); font-size: 13px; padding: 6px 14px; border-radius: 50px; font-weight: 600; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; margin: 24px 0; }

.process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 24px; }
.process-card { background: #f8faf9; border-radius: 12px; padding: 20px; text-align: center; transition: all 0.3s; }
.process-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.process-num { width: 36px; height: 36px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 14px; margin: 0 auto 12px; }
.process-card h3 { font-size: 14px; font-weight: 700; color: #1a1a2e; margin-bottom: 6px; }
.process-card p { font-size: 12px; color: #666; margin: 0; line-height: 1.6; }

.advantage-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-top: 24px; }
.advantage-item { display: flex; gap: 14px; background: #f8faf9; border-radius: 12px; padding: 18px; transition: all 0.3s; }
.advantage-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.advantage-item .icon { width: 40px; height: 40px; background: rgba(27,139,90,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.advantage-item h3 { font-size: 14px; font-weight: 700; color: #1a1a2e; margin-bottom: 4px; }
.advantage-item p { font-size: 13px; color: #666; margin: 0; line-height: 1.6; }

.breadcrumb { background: #f5f5f5; padding: 12px 0; margin-top: 10px; font-size: 13px; color: #666; }
.breadcrumb a { color: #666; transition: color 0.3s; font-weight: 500; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 7px; color: #999; }

.page-hero { background: linear-gradient(135deg, rgba(27,139,90,0.9), rgba(15,75,50,0.85)); padding: 80px 0 60px; text-align: center; position: relative; overflow: hidden; margin-top: 10px; }
.page-hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.05) 0%, transparent 50%); }
.page-hero h1 { font-size: 36px; font-weight: 800; color: white; margin-bottom: 12px; position: relative; }
.page-hero p { font-size: 16px; color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto; position: relative; }
.page-breadcrumb { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 16px; }
.page-breadcrumb a { color: rgba(255,255,255,0.9); transition: color 0.3s; }
.page-breadcrumb a:hover { color: #fff; }

.article-wrap { display: grid; grid-template-columns: 1fr 280px; gap: 32px; max-width: 1200px; margin: 40px auto; padding: 0 20px; align-items: start; }
.article-main { background: white; border-radius: 16px; padding: 40px; box-shadow: var(--shadow); border: 1px solid #eee; }
.article-main h1 { font-size: 28px; font-weight: 800; color: #1a1a2e; margin-bottom: 16px; line-height: 1.4; }
.article-meta { display: flex; gap: 20px; padding-bottom: 20px; border-bottom: 2px solid var(--primary); margin-bottom: 32px; font-size: 13px; color: #999; }
.article-meta span { display: flex; align-items: center; gap: 6px; }
.article-content { font-size: 15px; color: #555; line-height: 2; }
.article-content p { margin-bottom: 20px; }
.article-content h2 { font-size: 20px; font-weight: 700; color: #1a1a2e; margin: 32px 0 16px; }
.article-content blockquote { background: #f8faf9; border-left: 4px solid var(--primary); padding: 20px; margin: 24px 0; font-style: italic; color: #666; border-radius: 0 8px 8px 0; }
.article-sidebar { display: flex; flex-direction: column; gap: 20px; }
.cta-card, .sidebar-card { background: white; border-radius: 16px; padding: 24px; box-shadow: var(--shadow); border: 1px solid #eee; }
.cta-card h3, .sidebar-card h3 { font-size: 18px; font-weight: 700; color: #1a1a2e; margin-bottom: 8px; }
.cta-card p, .sidebar-card p { font-size: 14px; color: #666; margin-bottom: 16px; }
.cta-card .cta-phone { font-size: 24px; font-weight: 800; color: var(--primary); display: block; margin-bottom: 16px; }
.cta-card .cta-btn { background: linear-gradient(135deg, var(--accent), #f5a623); color: #1a1a2e; padding: 12px 28px; border-radius: 50px; font-size: 14px; font-weight: 700; display: inline-block; transition: all 0.3s; text-decoration: none; }
.cta-card .cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(247,183,49,0.3); }
.sidebar-card ul { list-style: none; }
.sidebar-card li { margin-bottom: 10px; }
.sidebar-card a { font-size: 14px; color: #555; transition: color 0.3s; display: block; padding: 6px 0; }
.sidebar-card a:hover { color: var(--primary); }

/* 案例页面样式 */
.case-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; justify-content: center; }
.case-filter .filter-btn { background: white; border: 2px solid #e0e0e0; padding: 10px 24px; border-radius: 50px; font-size: 14px; font-weight: 600; color: #666; cursor: pointer; transition: all 0.3s; }
.case-filter .filter-btn:hover, .case-filter .filter-btn.active { background: var(--primary); border-color: var(--primary); color: white; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card { background: white; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); transition: all 0.4s; border: 1px solid #eee; }
.case-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.case-img { height: 200px; overflow: hidden; position: relative; }
.case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.case-card:hover .case-img img { transform: scale(1.08); }
.case-body { padding: 20px; }
.case-tag { display: inline-block; background: var(--primary-light); color: var(--primary); font-size: 11px; padding: 4px 12px; border-radius: 50px; font-weight: 600; margin-bottom: 10px; }
.case-body h3 { font-size: 16px; font-weight: 700; color: #1a1a2e; margin-bottom: 8px; line-height: 1.4; }
.case-body p { font-size: 14px; color: #666; line-height: 1.7; margin-bottom: 12px; }
.case-meta { font-size: 13px; color: #999; font-weight: 500; }

.scroll-top { position: fixed; bottom: 24px; right: 24px; width: 42px; height: 42px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 999; opacity: 0; transition: all 0.3s; font-size: 16px; box-shadow: 0 4px 15px rgba(27,139,90,0.3); }
.scroll-top.visible { opacity: 1; }
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-4px); }

@media (max-width: 1024px) { .page-layout { grid-template-columns: 240px 1fr; } .article-wrap { grid-template-columns: 1fr 240px; } .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 992px) { .page-layout { grid-template-columns: 1fr; } .sidebar { position: static; } .two-col { grid-template-columns: 1fr; } .process-grid { grid-template-columns: repeat(2,1fr); } .advantage-list { grid-template-columns: 1fr; } .article-wrap { grid-template-columns: 1fr; } .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .page-layout { grid-template-columns: 1fr; } .process-grid { grid-template-columns: 1fr; } .article-main { padding: 24px; } .article-main h1 { font-size: 22px; } .article-meta { flex-direction: column; gap: 8px; } .case-grid { grid-template-columns: 1fr; } .case-filter { justify-content: flex-start; } }
