/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: '微軟正黑體', Arial, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

/* Header & Menu */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 50px;
}

.menu {
    display: flex;
}

.menu li {
    margin-left: 30px;
    position: relative;
}

.menu li a {
    font-weight: bold;
    color: #333;
    transition: color 0.3s;
    font-size: 18px;
}

.menu li a:hover {
color: #e96a3d;
}

.menu-icons img{height: 30px;}
.menu-icons a:hover{opacity: 0.5;}
/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2), .hamburger span:nth-child(3) {
    top: 8px;
}

.hamburger span:nth-child(4) {
    top: 16px;
}

.hamburger.open span:nth-child(1) {
    top: 8px;
    width: 0%;
    left: 50%;
}

.hamburger.open span:nth-child(2) {
    transform: rotate(45deg);
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg);
}

.hamburger.open span:nth-child(4) {
    top: 8px;
    width: 0%;
    left: 50%;
}

.menu.active {
    display: flex !important;
}

/* 手機版隱藏 menu，漢堡顯示 */
@media (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
        background: #f8f8f8;
        position: absolute;
        top: 60px;
        right: 20px;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .menu.show {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .header-container {
        position: relative;
    }
}
.right_layer {
    position: fixed;
    bottom: 200px;
    right: 0;
    z-index: 999;
}
/* Hero Section */
.hero {
    padding-top: 80px;
    background-position: center;
    background-size: cover;
    height: 800px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(123 123 123 / 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
text-align: left;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}
.hero-content h1{font-size: 34px;}
.hero span {
    font-size: 18px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 18px;
}

/* Logo Carousel */
.logo-carousel {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    animation: scroll 20s linear infinite;
}

.carousel-item {
    flex: 0 0 200px;
    margin: 0 20px;
}

.carousel-item img {
    width: 100%;
    height: auto;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-1000px); }
}

/* Section Styles */
section {
    padding: 80px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    color: #333;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #e96a3d;
}

/* Services Features */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.feature-item {
    flex: 0 0 calc(25% - 30px);
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 30px;
    border-radius: 5px;
    text-align: center;
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    color: #e96a3d;
    margin-bottom: 20px;
}

.feature-item h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 22px;
    text-align: center;
}

/* LINE Button */
.line-btn {
    text-align: center;
    padding: 0px 0px 60px 0;
}

.line-btn a {
    display: inline-block;
    background-color: #e56e46;
    color: white;
    padding: 25px 75px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 1.2rem;
    transition: background-color 0.3s;
}

.line-btn a:hover {
    background-color: #e56e46;
}
/* articles-btn */
.articles-btn {
  text-align: center;
  padding: 40px 0;
}
.articles-btn a {
  display: inline-block;
  background-color: #bf714c;
  color: white;
  padding: 10px 30px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.2rem;
  transition: background-color 0.3s;
}
.articles-btn a:hover {
  background-color: #d49a7e;
}
/* Media Reports */
.media-reports {
    background-color: #f9f9f9;
}

.report-carousel {
    display: flex;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.report-item {
    flex: 0 0 33.333%;
    scroll-snap-align: start;
    padding: 20px;
}

.report-card {
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 5px;
    overflow: hidden;
}

.report-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.report-content {
    padding: 20px;
}

.report-content h3 {
    margin-bottom: 10px;
    color: #774545;
    font-size: 20px;
}
.report-content p{color: #ad8879;font-weight: bold;}
/* 服務項目 */
.services-section {
    padding: 60px 20px;
    background: #f4f4f4;
    text-align: center;
  }
  .services-section .section-title h2 {
    font-size: 28px;
    margin-bottom: 10px;
  }
  .services-section {
    font-size: 16px;
    color: #666;
  }
  .services-section .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  .service-item {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: transform 0.3s;
  }
  .service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  }
  .service-item h3 {
    font-size: 20px;
    color: #d16947;
    margin-bottom: 10px;
  }
  .service-item p {
    font-size: 14px;
    color: #a77575;
    line-height: 1.6;
    font-weight: bold;
  }
/* Service Process */
.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 50px;
}


.step {
    flex: 1;
    text-align: center;
    padding: 0 15px;
    position: relative;
}

.step:not(:last-child)::after {
    content: '→';
    position: absolute;
    top: 10px;
    right: -15px;
    font-size: 40px;
    color: #e96a3d;
    font-weight: bold;
    z-index: 1;
}

.step h3 {
    color: #d16947;
    padding: 12px;
    font-size: 20px;
}

.step p {
    color: #a77575;
    font-weight: bold;
    font-size: 15px;
    text-align: left;
}

.step-number {
    width: 80px;
    height: 80px;
    background-color: #e96a3d;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.step-number svg {
    width: 40px;
    height: 40px;
}
/* Lawyer Recommendations */
.lawyers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.lawyer-card {
    flex: 0 0 calc(33.333% - 30px);
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 5px;
    overflow: hidden;
}

.lawyer-img {
    height: 250px;
    overflow: hidden;
}

.lawyer-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lawyer-info {
    padding: 20px;
    text-align: center;
}

.lawyer-info h3 {
    margin-bottom: 10px;
}

.lawyer-info p {
    color: #666;
    margin-bottom: 15px;
}

/* About Section */
.about {
    background-color: #f9f9f9;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-img {
    flex: 0 0 40%;
}

.about-img img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.about-text {
    flex: 0 0 55%;
}

.about-text h3 {
    color: #774545;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.about-text p{color: #ad8879;font-weight: bold;}

/* Map Section */
.map {
    height: 400px;
    width: 100%;
}

/* Article Recommendations */
.article-carousel {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
}

.article-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 5px;
    overflow: hidden;
}

.article-img {
    height: 180px;
    overflow: hidden;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 20px;
}

.article-content h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.article-date {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Client Testimonials 客戶評論 */
.testimonials {
    background-color: #f9f9f9;
    padding: 40px 0;
  }
  
  .testimonial-swiper {
    position: relative;
  }
  
  .swiper-wrapper {
    display: flex;
  }
  
  .swiper-slide {
    flex: 0 0 100%;
    box-sizing: border-box;
    padding: 20px;
  }
  
  .testimonial-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    position: relative;
    text-align: center;
  }
  
  .testimonial-content p{font-weight: bold;}

  .testimonial-content::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid white;
  }
  
  .client-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }
  
  .client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
  }
  
  .client-avatar img,
  .client-info img {
    width: auto;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    color: #333; 
    font-size: 28px; 
    font-weight: bold;
    width: 40px;
    height: 115px;
    opacity: 0.5;
  }
  
  

/* Footer */
footer {
    background-color: #453b38;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #e96a3d;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a:hover {
    color: #e96a3d;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-banner span {
    font-size: 48px;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
  }

/* 服務項目分頁 */
  .intro-section {
    background: linear-gradient(90deg, #fdfdfd, #f8f8f8);
    padding: 60px 20px;
    color: #333;
  }
  .intro-section h1,h2 {
    font-size: 30px;
    color: #d34727;
    text-align: center;
    margin-bottom: 30px;
  }
  .intro-section p {
    font-size: 17px;
    line-height: 1.8;
    max-width: 860px;
    margin: 0 auto 1.2rem;
  }

  .services-section .grid {
    flex-direction: column;
    gap: 30px;
  }
  .service-item {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
  }
  .service-item h3 {
    color: #d34727;
  }

  .consult-banner {
    background: #fff2e5;
    background-size: 80px;
    padding: 120px 20px 60px 20px;
  }
  .consult-banner h2 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 30px;
    color: #b0381e;
  }
  .consult-banner ul {
    list-style: none;
    padding-left: 0;
    font-size: 16px;
    line-height: 1.8;
  }
  .consult-banner li::before {
    content: '⚖️';
    display: inline-block;
    margin-right: 0.5em;
  }
  .consult-banner p {
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    margin-top: 30px;
  }
  /* 關於我們 */
  /* 四大服務特色元件樣式 */
.key-features-section {
    padding: 90px 0;
    background: linear-gradient(to right, #fff8f2, #ffffff);
    position: relative;
    overflow: hidden;
  }
  
  .key-features-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(211, 71, 39, 0.08) 0%, rgba(211, 71, 39, 0) 70%);
    border-radius: 50%;
    z-index: 0;
  }
  
  .key-features-section::after {
    content: "";
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(248, 180, 0, 0.08) 0%, rgba(248, 180, 0, 0) 70%);
    border-radius: 50%;
    z-index: 0;
  }
  
  .key-features-section .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .key-features-section .section-title {
    text-align: center;
    margin-bottom: 60px;
  }
  
  .key-features-section .section-title h2 {
    font-size: 2.5rem;
    color: #d34727;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
  }
  
  .key-features-section .section-title h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #f8b400, #ff7e00);
  }
  
  .features-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  
  .feature-card {
    position: relative;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(211, 71, 39, 0.08);
    padding: 40px 30px 40px 100px;
    transition: all 0.3s ease;
    overflow: hidden;
  }
  
  .feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(211, 71, 39, 0.15);
  }
  
  .feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, #f8b400, #d34727);
    transition: width 0.3s ease;
  }
  
  .feature-card:hover::before {
    width: 10px;
  }
  
  .ab-feature-icon {
    position: absolute;
    left: 25px;
    top: 40px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff8f2;
    border-radius: 50%;
    font-size: 28px;
  }
  
  .feature-content {
    position: relative;
    z-index: 1;
  }
  
  .feature-content h3 {
    color: #d34727;
    font-size: 1.4rem;
    margin-bottom: 15px;
    position: relative;
  }
  
  .feature-content p {
    color: #666;
    line-height: 1.8;
    font-size: 1rem;
  }
  
  .feature-number {
    position: absolute;
    right: 20px;
    bottom: 15px;
    font-size: 5rem;
    font-weight: 800;
    color: rgba(211, 71, 39, 0.05);
    line-height: 1;
    pointer-events: none;
  }
/* 關於我們分頁 */
/* 服務流程區塊樣式 */
#process h3{text-align: center;}
.process-section {
    padding: 90px 0;
    background: linear-gradient(135deg, #fff8f2 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
  }
  
  .process-section::before {
    content: "⚖️";
    position: absolute;
    top: 50px;
    right: 5%;
    font-size: 120px;
    opacity: 0.05;
    transform: rotate(15deg);
  }
  
  .process-section::after {
    content: "📑";
    position: absolute;
    bottom: 50px;
    left: 5%;
    font-size: 120px;
    opacity: 0.05;
    transform: rotate(-10deg);
  }
  
  .process-section .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .process-section .section-title {
    text-align: center;
    margin-bottom: 70px;
  }
  
  .process-section .section-title h2 {
    font-size: 2.5rem;
    color: #d34727;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
  }
  
  .process-section .section-title h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #f8b400, #ff7e00);
  }
  
  .process-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 55px;
    width: 4px;
    background: linear-gradient(to bottom, #f8b400, #d34727);
    z-index: 1;
  }
  
  .process-step {
    position: relative;
    padding-left: 120px;
    margin-bottom: 60px;
    min-height: 110px;
  }
  
  .process-step:last-child {
    margin-bottom: 0;
  }
  
  .ct-step-number {
    position: absolute;
    left: 25px;
    top: 0;
    width: 60px;
    height: 60px;
    background: white;
    border: 4px solid #f8b400;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(248, 180, 0, 0.2);
    transition: all 0.3s ease;
  }
  
  .process-step:nth-child(2) .ct-step-number {
    border-color: #f39c12;
  }
  
  .process-step:nth-child(3) .ct-step-number {
    border-color: #e67e22;
  }
  
  .process-step:nth-child(4) .ct-step-number {
    border-color: #d34727;
  }
  
  .ct-step-number span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d34727;
  }
  
  .step-content {
    background: white;
    padding: 30px 35px 30px 70px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 10px 30px rgba(211, 71, 39, 0.08);
    transition: all 0.3s ease;
  }
  
  .step-content::before {
    content: "";
    position: absolute;
    top: 30px;
    left: -15px;
    width: 30px;
    height: 30px;
    background: white;
    transform: rotate(45deg);
    z-index: -1;
    box-shadow: -5px 5px 15px rgba(211, 71, 39, 0.05);
  }
  
  .step-icon {
    position: absolute;
    left: 35px;
    top: 110px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 2;
  }
  
  .step-content h3 {
    color: #d34727;
    font-size: 1.5rem;
    margin-bottom: 5px;
  }
  
  .step-content h4 {
    color: #f8b400;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 500;
  }
  
  .step-content p {
    color: #666;
    line-height: 1.8;
  }
  
  .process-step:hover .ct-step-number {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(248, 180, 0, 0.3);
  }
  
  .process-step:hover .step-content {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(211, 71, 39, 0.12);
  }
/* 法律專欄 */
/* 文章 */
.article-cover img{padding: 95px 0 11px 0;
  width: 100%;
  /* height: 500px; */
  object-fit: cover;
  object-position: center;
  display: block;}
.article-body {padding-bottom: 50px;}
.article-body h1,h2,h3{text-align: left;color: #c3662b;font-size: 28px;margin: 12px 0;}
.article-body h3{color: #a15b2f;font-size: 24px;}
.article-body p{line-height: 34px;font-size: 18px;color: #673d26;padding-bottom: 20px;}
.article-body a{color: #cf6a6a;text-decoration: underline;}
.article-body ul{ padding-left: 1.5em;}
.article-body ul li{padding: 12px 0 12px 10px;margin-bottom: 10px;border-bottom: 1px dashed #ffddc7;line-height: 1.6;color: #7b5b5b;font-size: 18px;list-style: disc outside;}
.article-body ul strong{color: #d75f06;}
.article-body img{width: 100%;}
.article-body ol{padding-left: 1.5em;}
.article-body ol li{padding: 12px 0 12px 10px;
    margin-bottom: 10px;
    border-bottom: 1px dashed #ffddc7;
    line-height: 1.6;
    color: #7b5b5b;
    font-size: 18px;}
/* table樣式 */
.article-body table a{color: #391b1b;}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-family: '微軟正黑體', Arial, sans-serif;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(211, 71, 39, 0.1);
  text-align: center;
}
.article-body thead {
  background: linear-gradient(to right, #d34727, #ff7e00);
}
.article-body th {
  color: white;
  font-weight: 600;
  text-align: left;
  padding: 16px 20px;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  text-align: center;
  border: 1px solid #e5b3a5;
}
.article-body tbody tr {
  background-color: white;
  transition: all 0.3s ease;
}
.article-body tbody tr:nth-child(even) {
  background-color: #fff8f2;
}
.article-body tbody tr:hover {
  background-color: #fff2e5;
  transform: translateY(-2px);
}

.article-body td {
  padding: 14px 20px;
  color: #975441;
  vertical-align: middle;
  font-weight: bold;
  border: 1px solid #e5b3a5;
}

.article-body td:first-child {
  font-weight: bold;
  color: #d34727;
  width: 20%;
  font-size: 1.05rem;
  border: 1px solid #e5b3a5;
}

.diagonal-line {
background-image: linear-gradient(to top right, white 49%, #a38383, white 51%);
}

.yb{background-color: #fff8dc;padding: 12px 20px;font-weight: bold;border-radius: 12px;}

/* 快速導覽 */
.article-toc {
  background: #f9f9f9;
  padding: 20px;
  margin: 20px 0;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 30px;
}
.article-toc span{color: #c3662b;
  font-size: 22px;
  font-weight: bold;padding: 7px;}
.article-toc .toc-title {
  font-weight: bold;
  margin-bottom: 10px;
}
.article-toc ul li{list-style: none;font-size: 17px;padding: 6px;}
.article-toc ul {
  list-style: none;
  padding: 12px;
}
.article-toc li {
  margin-bottom: 5px;
}
.article-toc li a {
  color: #957777;
  font-weight: bold;
  display: block;
  line-height: 20px;
}
.article-toc li a:hover {
  text-decoration: underline;
}
.inlink{background-color: #fff0ce;padding: 13px 20px 0 20px;border-radius: 25px;font-weight: bold;}
.inlink a{display: block;}
.breadcrumb{color: #9f7a6d;font-weight: bold;}
/* 內部連結 */
.inlink-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.inlink-item {
  width: 48%;
  display: flex;
  align-items: center; /* 讓文字垂直置中 */
  border: 1px solid #ccc;
  padding: 0.75rem;
  border-radius: 6px;
  background-color: #fff;
  box-sizing: border-box;
  min-height: 80px;
}

.inlink-item a {
  display: flex;
  align-items: center; /* 垂直置中 */
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.inlink-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  margin-right: 1rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.inlink-item span {
  font-weight: 600;
  color: #7b4f4f;
  line-height: 1.4;
  display: inline-block;
}

.inlink-item:hover {
  background-color: #f7f7f7;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.inlink-wrapper {
  margin-top: 2rem;
}

.inlink-title {
  display: inline-block;
  font-weight: bold;
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 0.8rem;
}
/* 專欄分頁頁碼 */
.article-pagination-wrapper {
  margin-top: 40px;
}

.article-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  box-sizing: border-box;
}

.page-button {
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: #c76621;
  background-color: #ffe3cf;
  transition: background-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.page-button:hover {
  background-color: #ffeaea;
}

.page-active {
  background-color: #f18334;
  border-color: #f18334;
  color: white;
  font-weight: bold;
}
.page-button:first-of-type,
.page-button:last-of-type {
  font-weight: bold;
}

.articles-title{    padding: 8px 20px;
    text-align: center;
    color: #ffffff;
    font-size: 21px;
    margin-bottom: 18px;
    background-color: #d99f76;
    border-radius: 12px;
}
.category-crime { background-color: #b76c6b; }
.category-civil { background-color: #fb8c00; }
.category-labor { background-color: #d79149; }
.category-fraud { background-color: #7e889f; }
.category-debt { background-color: #8d6e63; }
.category-ip { background-color: #ab47bc; }
.category-traffic { background-color: #cf775b; }
.category-inheritance { background-color: #e1a347; }
.category-corporate { background-color: #a1887f; }
.category-marriage { background-color: #d191a3; }
.category-parenting { background-color: #af8985; }
.category-general { background-color: #879990; }

/* 網站地圖主要內容 */
.sitemap-page {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.sitemap-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.sitemap-section {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 30px;
  margin-bottom: 40px;
}

.section-title {
  font-size: 1.8rem;
  color: #7b4d4d;
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 15px;
}

/* 網站地圖 */
.sitemap-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.map-main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.map-main-nav li {
  flex: 1 1 200px;
}

.map-main-nav a {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background-color: #fbf0e5;
  border-radius: 6px;
  color: #bd4e0b;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.map-main-nav a:hover {
  background-color: #bd4e0b;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 119, 204, 0.2);
}

.map-main-nav i {
  margin-right: 10px;
}

.map-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

.map-category-box {
  background-color: white;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.map-category-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.map-category-title {
  margin: 0;
  padding: 15px;
  background-color: #fbf0e5;
  color: #bd4e0b;
  font-size: 1.2rem;
  border-bottom: 1px solid #e9ecef;
}

.map-article-list {
  list-style: none;
  padding: 15px;
  margin: 0;
  max-height: 250px;
  overflow-y: auto;
}

.map-article-list li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #e9ecef;
}

.map-article-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.map-article-list a {
  color: #977070;
  font-weight: bold;
  text-decoration: none;
  display: block;
  padding: 5px 0;
  transition: all 0.2s ease;
}

.map-article-list a:hover {
  color: #bd4e0b;
  padding-left: 5px;
}

/* 表格響應式 */
@media (max-width: 768px) {
  .article-body table {
    border-radius: 0;
  }
  
  .article-body th, 
  .article-body td {
    padding: 12px 15px;
  }
  
  .article-body td:first-child {
    width: 90px;
  }
}

  @media screen and (max-width: 992px) {
    .process-section::before,
    .process-section::after {
      font-size: 100px;
    }
    
    .process-section .section-title h2 {
      font-size: 2.2rem;
    }
  }
  
  @media screen and (max-width: 768px) {
    .process-section {
      padding: 60px 0;
    }
    
    .process-section .section-title h2 {
      font-size: 1.8rem;
    }
    
    .process-step {
      padding-left: 90px;
    }
    
    .timeline-line {
      left: 45px;
    }
    
    .ct-step-number {
      left: 15px;
      width: 50px;
      height: 50px;
    }
    
    .step-icon {
      left: 20px;
    }
    
    .step-content {
      padding: 25px 20px 25px 50px;
    }
    
    .step-content h3 {
      font-size: 1.3rem;
    }
    
    .step-content h4 {
      font-size: 1rem;
    }
  }
  
  @media screen and (max-width: 576px) {
    .process-section::before,
    .process-section::after {
      display: none;
    }
    
    .process-step {
      padding-left: 70px;
    }
    
    .timeline-line {
      left: 35px;
    }
    
    .ct-step-number {
      left: 5px;
      width: 45px;
      height: 45px;
    }
    
    .ct-step-number span {
      font-size: 1.2rem;
    }
    
    .step-icon {
      left: 7px;
      top: 100px;
      font-size: 20px;
    }
    
    .step-content {
      padding: 20px 15px 20px 35px;
    }
    
    .step-content h3 {
      font-size: 1.2rem;
    }
    
    .step-content h4 {
      font-size: 0.9rem;
    }
    
    .step-content p {
      font-size: 0.9rem;
    }
  }

  @media screen and (max-width: 1024px) {
    .features-container {
      gap: 30px;
    }
    
    .feature-card {
      padding: 35px 25px 35px 90px;
    }
    
    .ab-feature-icon {
      left: 20px;
      width: 50px;
      height: 50px;
      font-size: 22px;
    }
  }
  
  @media screen and (max-width: 768px) {
    .key-features-section {
      padding: 60px 0;
    }
    
    .key-features-section .section-title h2 {
      font-size: 2rem;
    }
    
    .features-container {
      grid-template-columns: 1fr;
      gap: 25px;
    }
    
    .feature-number {
      font-size: 4rem;
    }
  }
  
  @media screen and (max-width: 480px) {
    .feature-card {
      padding: 85px 20px 30px 20px;
    }
    
    .spouse-card {
      padding: 30px 20px 30px 20px;
    }
    .ab-feature-icon {
      left: 20px;
      top: 20px;
    }
    
    .feature-content h3 {
      font-size: 1.2rem;
    }
    
    .feature-number {
      right: 15px;
      bottom: 10px;
      font-size: 3.5rem;
    }
  }

/* Responsive Design */
@media screen and (max-width: 992px) {
    .feature-item {
flex: 0 0 calc(50% - 30px);
    }
    
    .lawyer-card {
flex: 0 0 calc(50% - 30px);
    }
    
    .about-content {
flex-direction: column;
    }
    
    .about-img, .about-text {
flex: 0 0 100%;
    }
    
    .report-item {
flex: 0 0 50%;
    }
}

@media screen and (max-width: 768px) {
  .inlink-item {width: 100%;}
    .hamburger {
display: block;
    }
    
    .menu {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100vh;
background-color: #ffffffe6;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 1000;
padding: 50px 0;
transition: 0.3s;
    }
    
    .menu.active {
display: flex !important;
    }
    
    .menu li {
margin: 15px 0;
    }
    
    .feature-item, .lawyer-card {
flex: 0 0 100%;
    }
    
    .process-steps {
flex-direction: column;
    }
    
    .process-steps::before {
display: none;
    }
    
    .step {
margin-bottom: 30px;
    }
    
    .report-item {
flex: 0 0 100%;
    }
    
    .footer-content {
flex-direction: column;
    }
    
    .footer-column {
margin-bottom: 30px;
    }
    
    .hero h1 {
font-size: 2rem;
    }
    
    .hero p {
font-size: 1rem;
    }
    .step:not(:last-child)::after {display: none;}
}

@media screen and (max-width: 480px) {
    .section-title h2 {
font-size: 1.5rem;
    }
    
    .feature-icon {
font-size: 2rem;
    }
}