/* ============ Reset & Base ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif; color: #333; background: #fff; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; vertical-align: middle; }

/* ============ Layout ============ */
.container { width: 1200px; max-width: 100%; margin: 0 auto; padding: 0 15px; }

/* ============ Top Bar ============ */
.top-bar { background: #f5f5f5; border-bottom: 1px solid #e8e8e8; font-size: 13px; color: #888; height: 36px; line-height: 36px; }
.top-bar .container { display: flex; justify-content: space-between; }
.top-bar a { color: #888; margin: 0 8px; }
.top-bar a:hover { color: #f5862a; }

/* ============ Header ============ */
.header { background: #fff; padding: 20px 0; }
.header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 15px; }
.logo img { height: 50px; }
.logo-text h1 { font-size: 24px; color: #c55a11; font-weight: bold; }
.logo-text p { font-size: 12px; color: #999; letter-spacing: 2px; }
.header-phone { display: flex; align-items: center; gap: 10px; }
.header-phone .phone-icon { width: 40px; height: 40px; background: #f5862a; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.header-phone .phone-icon svg { width: 20px; height: 20px; fill: #fff; }
.header-phone .phone-info { text-align: right; }
.header-phone .phone-num { font-size: 26px; color: #f5862a; font-weight: bold; font-family: Arial; }
.header-phone .phone-label { font-size: 12px; color: #999; }

/* ============ Navigation ============ */
.nav { background: #c55a11; }
.nav .container { display: flex; }
.nav-links { display: flex; }
.nav a { display: block; color: #fff; padding: 0 30px; line-height: 50px; font-size: 16px; transition: background 0.3s; }
.nav a:hover, .nav a.active { background: #f5862a; }
.nav-toggle { display: none; cursor: pointer; padding: 14px 15px; }
.nav-toggle span { display: block; width: 25px; height: 3px; background: #fff; margin: 4px 0; transition: 0.3s; }

/* ============ Banner ============ */
.banner { position: relative; height: 800px; overflow: hidden; background: #8b3a00; }
.banner-slides { position: relative; width: 100%; height: 100%; }
.banner-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease; }
.banner-slide.active { opacity: 1; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.banner-text { text-align: center; color: #fff; }
.banner-text h2 { font-size: 48px; margin-bottom: 15px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.banner-text p { font-size: 20px; opacity: 0.9; letter-spacing: 3px; }
.banner-dots { position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.banner-dots span { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: background 0.3s; }
.banner-dots span.active { background: #fff; }

/* ============ Sub Banner ============ */
.sub-banner { position: relative; height: 250px; overflow: hidden; background: linear-gradient(135deg, #c55a11 0%, #8b3a00 100%); display: flex; align-items: center; justify-content: center; text-align: center; }
.sub-banner h2 { color: #fff; font-size: 36px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.sub-banner p { color: rgba(255,255,255,0.7); font-size: 16px; margin-top: 10px; letter-spacing: 2px; }

/* ============ Breadcrumb ============ */
.breadcrumb { background: #f5f5f5; padding: 12px 0; font-size: 13px; color: #999; }
.breadcrumb a { color: #666; }
.breadcrumb a:hover { color: #f5862a; }

/* ============ Section Common ============ */
.section { padding: 70px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 30px; color: #333; margin-bottom: 10px; }
.section-title .en { font-size: 16px; color: #999; letter-spacing: 2px; }
.section-title .line { width: 60px; height: 3px; background: #f5862a; margin: 15px auto 0; }

/* ============ Business Scope ============ */
.scope { background: #f8f9fa; }
.scope-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 25px; }
.scope-item { background: #fff; border-radius: 8px; padding: 30px 15px; text-align: center; transition: all 0.3s; cursor: pointer; border: 1px solid #eee; }
.scope-item:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(245,134,42,0.15); border-color: #f5862a; }
.scope-item .icon { width: 70px; height: 70px; margin: 0 auto 15px; background: linear-gradient(135deg, #f5862a, #d46500); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.scope-item .icon svg { width: 32px; height: 32px; fill: #fff; }
.scope-item h3 { font-size: 16px; color: #333; }
.scope-item p { font-size: 13px; color: #999; margin-top: 8px; line-height: 1.6; }

/* ============ Scope Detail ============ */
.scope-detail { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.scope-sidebar { background: #fff; border-radius: 8px; box-shadow: 0 2px 15px rgba(0,0,0,0.08); overflow: hidden; }
.scope-sidebar h3 { background: #c55a11; color: #fff; padding: 15px 20px; font-size: 16px; }
.scope-sidebar ul li a { display: block; padding: 12px 20px; font-size: 14px; color: #555; border-bottom: 1px solid #f0f0f0; transition: all 0.3s; }
.scope-sidebar ul li a:hover, .scope-sidebar ul li a.active { color: #f5862a; background: #fff5eb; border-left: 3px solid #f5862a; }
.scope-main { background: #fff; border-radius: 8px; box-shadow: 0 2px 15px rgba(0,0,0,0.08); padding: 30px; }
.scope-main h2 { font-size: 22px; color: #c55a11; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 2px solid #f5862a; }
.scope-main .content p { font-size: 14px; color: #666; line-height: 2; margin-bottom: 15px; text-indent: 2em; }
.scope-main .content h3 { font-size: 18px; color: #c55a11; margin: 25px 0 15px; }
.scope-main .content ul { padding-left: 20px; margin-bottom: 15px; }
.scope-main .content ul li { font-size: 14px; color: #666; line-height: 2; list-style: disc; }

/* ============ Lawyer Team ============ */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.team-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 15px rgba(0,0,0,0.08); transition: all 0.3s; }
.team-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.team-card .photo { height: 260px; background: #e8e8e8; overflow: hidden; position: relative; }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.team-card:hover .photo img { transform: scale(1.05); }
.team-card .photo .placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #c55a11, #f5862a); color: #fff; font-size: 60px; }
.team-card .info { padding: 20px; text-align: center; }
.team-card .info h3 { font-size: 18px; color: #333; margin-bottom: 8px; }
.team-card .info p { font-size: 13px; color: #999; line-height: 1.8; }
.team-card .info .btn { display: inline-block; margin-top: 12px; padding: 6px 25px; background: #f5862a; color: #fff; border-radius: 20px; font-size: 13px; transition: background 0.3s; }
.team-card .info .btn:hover { background: #d46500; }

/* ============ Lawyer Detail ============ */
.lawyer-detail { display: grid; grid-template-columns: 300px 1fr; gap: 40px; }
.lawyer-detail .photo { height: 380px; border-radius: 8px; overflow: hidden; box-shadow: 0 5px 25px rgba(0,0,0,0.1); }
.lawyer-detail .photo .placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #c55a11, #f5862a); color: #fff; font-size: 80px; }
.lawyer-detail .info h2 { font-size: 24px; color: #c55a11; margin-bottom: 5px; }
.lawyer-detail .info .title { font-size: 14px; color: #f5862a; margin-bottom: 20px; }
.lawyer-detail .info .meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.lawyer-detail .info .meta span { font-size: 13px; color: #888; }
.lawyer-detail .info .meta span b { color: #555; }
.lawyer-detail .info .desc h3 { font-size: 16px; color: #c55a11; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid #f5862a; display: inline-block; }
.lawyer-detail .info .desc p { font-size: 14px; color: #666; line-height: 2; margin-bottom: 10px; }

/* ============ Advantages ============ */
.advantage { background: linear-gradient(135deg, #c55a11 0%, #8b3a00 100%); color: #fff; }
.advantage .section-title h2 { color: #fff; }
.advantage .section-title .en { color: rgba(255,255,255,0.6); }
.advantage .section-title .line { background: #f5862a; }
.advantage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.advantage-card { background: rgba(255,255,255,0.08); border-radius: 8px; padding: 40px 30px; text-align: center; border: 1px solid rgba(255,255,255,0.1); transition: all 0.3s; }
.advantage-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-5px); }
.advantage-card .icon { width: 80px; height: 80px; margin: 0 auto 20px; background: rgba(245,134,42,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.advantage-card .icon svg { width: 36px; height: 36px; fill: #f5862a; }
.advantage-card h3 { font-size: 20px; margin-bottom: 12px; }
.advantage-card p { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.8; }

/* ============ News & Cases ============ */
.news-cases { background: #f8f9fa; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.col-box { background: #fff; border-radius: 8px; overflow: hidden; }
.col-header { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border-bottom: 2px solid #f5862a; }
.col-header h3 { font-size: 18px; color: #c55a11; display: flex; align-items: center; gap: 8px; }
.col-header h3 svg { width: 20px; height: 20px; fill: #f5862a; }
.col-header a { font-size: 13px; color: #999; }
.col-header a:hover { color: #f5862a; }
.col-body { padding: 15px 20px; }
.news-list li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed #eee; }
.news-list li:last-child { border-bottom: none; }
.news-list li a { font-size: 14px; color: #555; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-list li a:hover { color: #f5862a; }
.news-list li .date { font-size: 12px; color: #bbb; margin-left: 15px; white-space: nowrap; }

/* ============ Article List ============ */
.article-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; }
.article-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 15px rgba(0,0,0,0.08); transition: all 0.3s; }
.article-card:hover { transform: translateY(-3px); box-shadow: 0 5px 20px rgba(0,0,0,0.12); }
.article-card .thumb { height: 180px; background: #e8edf3; overflow: hidden; }
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.article-card:hover .thumb img { transform: scale(1.05); }
.article-card .info { padding: 15px 20px; }
.article-card .info h3 { font-size: 16px; color: #333; margin-bottom: 8px; }
.article-card .info h3 a:hover { color: #f5862a; }
.article-card .info p { font-size: 13px; color: #999; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card .info .meta { font-size: 12px; color: #bbb; margin-top: 10px; }

/* ============ Article Detail ============ */
.article-detail { background: #fff; border-radius: 8px; box-shadow: 0 2px 15px rgba(0,0,0,0.08); padding: 40px; }
.article-detail h1 { font-size: 24px; color: #c55a11; margin-bottom: 15px; }
.article-detail .meta { font-size: 13px; color: #999; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px dashed #eee; }
.article-detail .content p { font-size: 15px; color: #555; line-height: 2; margin-bottom: 15px; text-indent: 2em; }

/* ============ Pagination ============ */
.pagination { text-align: center; padding: 30px 0; }
.pagination a, .pagination span { display: inline-block; padding: 8px 15px; margin: 0 3px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; color: #555; transition: all 0.3s; }
.pagination a:hover, .pagination span.active { background: #f5862a; color: #fff; border-color: #f5862a; }

/* ============ Q&A + Guide ============ */
.qa-guide .two-col { align-items: flex-start; }
.qa-item { padding: 15px 0; border-bottom: 1px dashed #eee; }
.qa-item:last-child { border-bottom: none; }
.qa-item h4 { font-size: 15px; color: #f5862a; margin-bottom: 8px; cursor: pointer; }
.qa-item h4:hover { color: #d46500; }
.qa-item p { font-size: 13px; color: #888; line-height: 1.8; }

/* ============ About Us ============ */
.about { background: #fff; }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-img { border-radius: 8px; overflow: hidden; box-shadow: 0 5px 25px rgba(0,0,0,0.1); }
.about-img img { width: 100%; display: block; }
.about-text h3 { font-size: 24px; color: #c55a11; margin-bottom: 20px; }
.about-text p { font-size: 14px; color: #666; line-height: 2; margin-bottom: 15px; }
.about-text .btn { display: inline-block; padding: 10px 30px; background: #f5862a; color: #fff; border-radius: 4px; font-size: 14px; transition: background 0.3s; margin-top: 10px; }
.about-text .btn:hover { background: #d46500; }

/* ============ Clients ============ */
.clients { background: #f8f9fa; }
.clients-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.client-item { background: #fff; border-radius: 8px; padding: 25px; text-align: center; border: 1px solid #eee; transition: all 0.3s; }
.client-item:hover { box-shadow: 0 3px 15px rgba(0,0,0,0.08); border-color: #f5862a; }
.client-item .logo-placeholder { height: 60px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.client-item .logo-placeholder svg { width: 50px; height: 50px; fill: #ccc; }
.client-item span { font-size: 14px; color: #666; }

/* ============ Contact ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info { background: #fff; border-radius: 8px; box-shadow: 0 2px 15px rgba(0,0,0,0.08); padding: 30px; }
.contact-info h3 { font-size: 20px; color: #c55a11; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 2px solid #f5862a; display: inline-block; }
.contact-info .item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; }
.contact-info .item .icon { width: 40px; height: 40px; background: #fff5eb; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info .item .icon svg { width: 18px; height: 18px; fill: #f5862a; }
.contact-info .item .text h4 { font-size: 14px; color: #333; margin-bottom: 3px; }
.contact-info .item .text p { font-size: 13px; color: #888; }
.contact-form { background: #fff; border-radius: 8px; box-shadow: 0 2px 15px rgba(0,0,0,0.08); padding: 30px; }
.contact-form h3 { font-size: 20px; color: #c55a11; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 2px solid #f5862a; display: inline-block; }
.contact-form .form-group { margin-bottom: 18px; }
.contact-form label { display: block; font-size: 14px; color: #555; margin-bottom: 6px; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 10px 15px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; font-family: inherit; transition: border-color 0.3s; margin-bottom: 15px; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.contact-form .form-row input { margin-bottom: 0; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: #f5862a; outline: none; }
.contact-form textarea { height: 120px; resize: vertical; }
.contact-form .btn { display: inline-block; padding: 12px 40px; background: #f5862a; color: #fff; border: none; border-radius: 4px; font-size: 15px; cursor: pointer; transition: background 0.3s; }
.contact-form .btn:hover { background: #d46500; }
.contact-map { margin-top: 40px; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 15px rgba(0,0,0,0.08); height: 350px; background: #e8edf3; display: flex; align-items: center; justify-content: center; }
.contact-map span { color: #999; font-size: 16px; }

/* ============ Footer ============ */
.footer { background: #c55a11; color: rgba(255,255,255,0.7); padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 30px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #f5862a; display: inline-block; }
.footer p { font-size: 13px; line-height: 2; }
.footer ul li { margin-bottom: 8px; }
.footer ul li a { font-size: 13px; color: rgba(255,255,255,0.7); transition: color 0.3s; }
.footer ul li a:hover { color: #f5862a; }
.footer-qr { display: flex; gap: 20px; margin-top: 10px; }
.footer-qr .qr-item { text-align: center; }
.footer-qr .qr-box { width: 100px; height: 100px; background: #fff; border-radius: 4px; display: flex; align-items: center; justify-content: center; margin-bottom: 5px; overflow: hidden; }
.footer-qr .qr-box svg { width: 60px; height: 60px; fill: #c55a11; }
.footer-qr .qr-box img { max-width: 90px; max-height: 90px; object-fit: contain; }
.footer-qr span { font-size: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 15px 0; text-align: center; font-size: 12px; }

/* ============ Back to Top ============ */
.back-top { position: fixed; right: 30px; bottom: 50px; width: 48px; height: 48px; background: #f5862a; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 15px rgba(245,134,42,0.4); transition: all 0.3s; z-index: 999; opacity: 0; visibility: hidden; transform: translateY(10px); }
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: #d46500; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(245,134,42,0.5); }
.back-top svg { width: 22px; height: 22px; fill: #fff; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
    .container { width: 100%; }
    .scope-grid { grid-template-columns: repeat(3, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .clients-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .scope-detail { grid-template-columns: 1fr; }
    .lawyer-detail { grid-template-columns: 1fr; }
    .article-list { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav .container { flex-wrap: wrap; position: relative; }
    .nav-toggle { display: block; margin-left: auto; }
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }
    .nav-links { display: none; flex-direction: column; width: 100%; position: absolute; top: 100%; left: 0; background: #c55a11; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
    .nav-links.active { display: flex; }
    .nav a { padding: 0 20px; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .banner { height: 56.25vw; }
    .banner-text h2 { font-size: 28px; }
    .banner-text p { font-size: 14px; }
    .sub-banner { height: 180px; }
    .sub-banner h2 { font-size: 24px; }
    .scope-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .team-grid { grid-template-columns: 1fr; }
    .advantage-grid { grid-template-columns: 1fr; }
    .two-col { grid-template-columns: 1fr; }
    .about-content { grid-template-columns: 1fr; }
    .clients-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 25px; }
    .header-phone { display: none; }
    .contact-grid { grid-template-columns: 1fr; }
    /* Footer mobile optimization */
    .footer-grid > div:nth-child(2),
    .footer-grid > div:nth-child(3) { display: none; }
    .footer { padding: 30px 0 0; }
    .footer h4 { font-size: 15px; margin-bottom: 12px; padding-bottom: 8px; }
    .footer p { font-size: 12px; line-height: 1.8; word-break: break-all; }
    .footer ul li { margin-bottom: 6px; }
    .footer ul li a { font-size: 12px; }
    .footer-qr { justify-content: center; gap: 15px; margin-top: 12px; }
    .footer-qr .qr-box { width: 80px; height: 80px; }
    .footer-qr .qr-box img { max-width: 72px; max-height: 72px; }
    .footer-qr span { font-size: 11px; }
    .footer-bottom { padding: 12px 15px; font-size: 11px; line-height: 1.6; }
    .back-top { right: 15px; bottom: 30px; width: 42px; height: 42px; }
}
@media (max-width: 480px) {
    .footer-grid { gap: 20px; }
    .footer-qr { gap: 12px; }
    .footer-qr .qr-box { width: 70px; height: 70px; }
    .footer-qr .qr-box img { max-width: 62px; max-height: 62px; }
    .footer-qr span { font-size: 10px; }
}

/* ============ Animations ============ */
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
