:root {
    --bg-mian: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: gray;
}

.min-h-screen {
    min-height: 100vh;
    overflow: hidden;
}

li {
    list-style: none;
}

span,
a {
    text-decoration: none;
}

.container {
    max-width: 80rem;
    margin: 0 auto;
}

/* NAV */

nav {
    position: fixed;
    width: 100%;
    z-index: 1000;
    margin: 0 auto;
    background-color: white;
}

.header {
    height: 4rem;
}


.header .logo a {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: orangered;
}

.header .logo img {
    width: 2.5rem;
    height: 2.5rem;
}

.header .logo span {
    /* display: block; */
    font-size: 1.5rem;
    font-weight: 700;
    /* line-height: 2.5rem; */
}

.header {
    margin: 0 auto;
    max-width: 80rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header .navigation ul {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header .navigation li a {
    color: black;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0.1rem 0.5rem;
}

.header .navigation ul li:last-child a {
    color: white;
}

.header .navigation ul li:last-child {
    background-color: gold;
    border-radius: 0.5rem;
}

.header .navigation li:hover a {
    color: gold;
    border-radius: 0.5rem;
}

.header .navigation ul li:last-child:hover {
    transform: scale(1.1);
    transition: all 0.3s ease-in-out;
}

.header .navigation ul li:last-child:hover a {
    color: white;
}

/* HOME */
.bg {
    background-image: url('../img/bg.jpg');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* 灰色蒙版，透明度50% */
    z-index: 1;
}

/* Home Section Styles */
.home-container {
    max-width: 1200px;
    margin: 5rem auto;
    transform: translateY(50%);
    position: relative;
    z-index: 2;
    height: 100%;
    display: grid;
    justify-content: space-between;
    grid-template-columns: 1fr 1fr;
}

.home-content {
    margin-bottom: 50px;
}

.home-content h1 {
    font-size: 3rem;
    color: white;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.home-content h2 {
    font-size: 2.5rem;
    color: #ffd700;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.home-content p {
    font-size: 1.1rem;
    color: white;
    line-height: 1.6;
    margin-bottom: 30px;
}

.buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: #ffd700;
    color: #333;
}

.btn-primary:hover {
    background-color: #ffed4e;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stat-item {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px 20px;
    border-radius: 10px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100px;
}

.stat-item:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease-in-out;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffd700;
    margin-bottom: 10px;
}

.stat-label {
    display: block;
    color: white;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Features */
.features {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.features span {
    color: white;
    font-size: 0.9rem;
    padding: 5px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
}

.features span::before {
    content: '✓';
    margin-right: 5px;
    color: #ffd700;
}


/* about */
#about {
    background-color: white;
    padding: 6rem 0;
}

#about .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 700;
}

.about-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
    align-items: center;
}

/* .about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
} */

.about-text h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.about-text p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* About Advantages */
.about-advantages {
    margin-bottom: 4rem;
}

.about-advantages h3 {
    font-size: 1.8rem;
    color: #333;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.advantage-item {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.advantage-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 3px solid #4A90E2;
}


.advantage-item h4 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.advantage-item p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* About Values */
.about-values h3 {
    font-size: 1.8rem;
    color: #333;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-item {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.value-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 3px solid #4A90E2;
}

.value-item h4 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.value-item p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Services Section */
#services {
    background-color: #f8f9fa;
    padding: 6rem 0;
}

#services .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Services Header */
.services-header {
    text-align: center;
    margin-bottom: 3rem;
}

.services-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 700;
}

.services-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Services Content - Grid Layout */
.services-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Service Item Styles */
.service-item {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-item:nth-child(3) {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Service Icon */
.service-icon {
    margin-bottom: 1.5rem;
    text-align: center;
}

.service-icon img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: contain;
}

/* Service Title */
.service-item h4 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
    min-height: 2.5rem;
}

/* Service Description */
.service-item p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    min-height: 6rem;
}

/* Service Features List */
.service-features {
    margin-bottom: 1.5rem;
}

.service-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.service-features li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.service-features svg {
    color: gold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Services Footer */
.services-footer {
    background-color: #1a237e;
    color: white;
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

.services-footer h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.services-footer p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.services-footer .btn {
    background-color: #f5c518;
    color: #333;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.services-footer .btn:hover {
    background-color: #e6b415;
    transform: translateY(-2px);
}

/* Cases Section */
#cases {
    background-color: white;
    padding: 6rem 0;
}

#cases .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cases Header */
.cases-header {
    text-align: center;
    margin-bottom: 4rem;
}

.cases-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.cases-title-highlight {
    font-size: 2.2rem;
    color: #f5c518;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cases-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Cases Stats */
.cases-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.cases-stat-item {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.cases-stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cases-stat-item svg {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
    color: #f5c518;
}

.cases-stat-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.cases-stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 0.5rem;
}

.cases-stat-label {
    display: block;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Cases Content */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Case Item */
.case-item {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.case-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.case-image {
    height: 180px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-item:hover .case-image img {
    transform: scale(1.05);
}

.case-amount {
    font-size: 1.4rem;
    font-weight: 800;
    color: #333;
    padding: 1rem 1.5rem 0;
}

.case-status {
    font-size: 0.9rem;
    color: #4CAF50;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
}

.case-details {
    padding: 0 1.5rem;
    margin-bottom: 1rem;
}

.case-detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.case-detail-label {
    color: #666;
}

.case-detail-value {
    color: #333;
    font-weight: 600;
}

.case-description {
    padding: 0 1.5rem 1.5rem;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Cases Footer */
.cases-footer {
    background-color: #1a237e;
    color: white;
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
}

.cases-footer h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.cases-footer p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cases-footer-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cases-footer-buttons .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.cases-footer-buttons .btn-primary {
    background-color: #f5c518;
    color: #333;
}

.cases-footer-buttons .btn-primary:hover {
    background-color: #e6b415;
    transform: translateY(-2px);
}

.cases-footer-buttons .btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.cases-footer-buttons .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Process Section */
#process {
    background-color: #f9f9f9;
    padding: 6rem 0;
}

.process-header {
    text-align: center;
    margin-bottom: 4rem;
}

.process-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 700;
}

.process-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
}

/* 连接线 */
.process-steps::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.process-step {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.step-number {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #333;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.step-icon {
    width: 70px;
    height: 70px;
    background: #FF9900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.process-step h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.step-subtitle {
    color: #FF9900;
    font-weight: 600;
    margin-bottom: 1rem;
}

.process-step p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.step-features {
    list-style: none;
    padding: 0;
}

.step-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.step-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #FF9900;
    font-weight: bold;
}

/* Service Guarantees */
.service-guarantees {
    text-align: center;
    margin-bottom: 4rem;
}

.service-guarantees h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
    font-weight: 700;
}

.guarantees-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.guarantee-item {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guarantee-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.guarantee-icon {
    margin-bottom: 1.5rem;
}

.guarantee-item h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.guarantee-item p {
    color: #666;
    line-height: 1.6;
}

/* Process CTA */
.process-cta {
    background: #1a2e5c;
    color: white;
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
}

.process-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.process-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-buttons .btn-primary {
    background: #FF9900;
    color: white;
    border: none;
}

.cta-buttons .btn-primary:hover {
    background: #e68a00;
    transform: translateY(-2px);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-buttons .btn-secondary:hover {
    background: white;
    color: #1a2e5c;
    transform: translateY(-2px);
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1a1a1a;
    color: white;
    padding: 1rem;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .cookie-text {
        flex: 1;
        margin-right: 2rem;
    }
}

.cookie-text h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-text a {
    color: #ff4500;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.cookie-accept {
    background-color: #ff4500;
    color: white;
}

.cookie-accept:hover {
    background-color: #cc3700;
}

.cookie-reject {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.cookie-reject:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 1rem 0.75rem;
    }

    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
    }
}


/* Process Section Responsive */

@media screen and (max-width: 1200px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps::before {
        display: none;
    }

    .guarantees-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 768px) {
    #process {
        padding: 4rem 0;
    }

    .process-header h2 {
        font-size: 2rem;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .step-number {
        top: -20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .service-guarantees h3 {
        font-size: 1.8rem;
    }

    .guarantees-grid {
        grid-template-columns: 1fr;
    }

    .process-cta {
        padding: 2rem 1rem;
    }

    .process-cta h3 {
        font-size: 1.8rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* News Section */
#news {
    background-color: white;
    padding: 6rem 0;
}

.news-header {
    text-align: center;
    margin-bottom: 4rem;
}

.news-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 700;
}

.news-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.news-item {
    background: #f9f9f9;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 1.5rem;
}

/* 设置不同的背景图片 */
.news-item:nth-child(1) .news-image {
    background-image: url('../img/news-1.jpg');
}

.news-item:nth-child(2) .news-image {
    background-image: url('../img/news-2.jpg');
}

.news-item:nth-child(3) .news-image {
    background-image: url('../img/news-3.jpg');
}

.news-item:nth-child(4) .news-image {
    background-image: url('../img/news-4.jpg');
}

.news-item:nth-child(5) .news-image {
    background-image: url('../img/news-5.jpg');
}

.news-item:nth-child(6) .news-image {
    background-image: url('../img/news-6.jpg');
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #FF9900;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.news-date {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: #666;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.news-item h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1rem;
    padding: 0 1.5rem;
    font-weight: 600;
    line-height: 1.4;
}

.news-item p {
    color: #666;
    margin-bottom: 1.5rem;
    padding: 0 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem 1.5rem;
}

.news-read-time {
    color: #999;
    font-size: 0.85rem;
}

.news-read-more {
    color: #FF9900;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-read-more:hover {
    color: #e68a00;
}

/* News Section Responsive */
@media screen and (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    #news {
        padding: 4rem 0;
    }

    .news-header h2 {
        font-size: 2rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-image {
        height: 180px;
    }

    .news-item h3 {
        font-size: 1.2rem;
    }
}

/* Footer Section */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0 1rem;
}

.footer-top {
    display: flex;
    justify-content: space-evenly;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 2rem;
}

/* Emergency Section Styles */
.emergency-section {
    background-color: #1a237e;
    border-radius: 8px;
    padding: 15px 20px;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
    max-width: 300px;
}

.emergency-text {
    color: #ffd54f;
    font-weight: bold;
    margin: 0;
    font-size: 1.1rem;
}

.emergency-btn {
    background-color: #ff9800;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.emergency-btn:hover {
    background-color: #f57c00;
}

.footer-info {
    text-align: center;
    max-width: 100%;
}

.footer-logo .logo-icon {
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-logo .logo-icon img {
    max-height: 40px;
    max-width: 40px;
    display: block;
}

.footer-logo .logo-icon span {
    color: orangered;
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-details p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.footer-details strong {
    color: white;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #FF9900;
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: #FF9900;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

/* Footer Responsive */
@media screen and (max-width: 768px) {
    .footer-bottom p {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    footer {
        padding: 1.5rem 0 0.5rem;
    }

    .footer-top {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: none;
    }
}

@media screen and (max-width: 480px) {
    footer {
        padding: 1.5rem 0 0.5rem;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.8rem;
    }

    .footer-logo .logo-icon {
        padding: 10px 15px;
    }

    .footer-logo .logo-icon span {
        font-size: 1.1rem;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* 律师展示样式 */
.lawyer-cards-container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    cursor: grab;
    user-select: none;
}

.lawyer-cards-container:active {
    cursor: grabbing;
}

.lawyer-cards-container .item {
    padding: 15px;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
    /* 防止拖动时卡片缩小 */
    width: 100%;
    /* 确保每个项目在容器中占满宽度 */
}

/* 隐藏tiny-slider默认的所有控制元素 */
.tns-controls,
.tns-nav,
.tns-autoplay-button {
    display: none !important;
}

/* 确保拖动操作不会导致文本选择 */
.lawyer-cards-container * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 律师卡片样式 */
.lawyer-card,
.bear-card,
.scholar-card {
    border: 1px solid #e0e0e0;
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.lawyer-card:hover,
.bear-card:hover,
.scholar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* 固定大小的圆形头像 */
.team-member-avatar {
    width: 140px;
    height: 140px;
    margin: 0 auto 25px;
    object-position: top;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.lawyer-card:hover .team-member-avatar {
    transform: scale(1.05);
    border-color: #ffd700;
}

/* 卡片内容样式 */
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.card-text.mb-0 {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
}

.lawyer-bio {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    text-align: left;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin-top: auto;
    /* 限制显示10行 */
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    position: relative;
}

.lawyer-bio:hover {
    background-color: #f0f0f0;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.modal-close:hover {
    color: #333;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.modal-position {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

.modal-bio {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    text-align: left;
}

/* 响应式弹窗调整 */
@media (max-width: 768px) {
    .modal-content {
        max-width: 90%;
        max-height: 90%;
        padding: 20px;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-position {
        font-size: 1rem;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .lawyer-cards-container .item {
        padding: 10px;
    }

    .team-member-avatar {
        width: 120px;
        height: 120px;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .lawyer-bio {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .team-member-avatar {
        width: 100px;
        height: 100px;
        margin-bottom: 20px;
    }

    .lawyer-card,
    .bear-card,
    .scholar-card {
        padding: 15px;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .lawyer-bio {
        padding: 10px;
        font-size: 0.8rem;
    }
}

/* 响应式样式 */
@media screen and (max-width: 1200px) {
    #services .container {
        max-width: 1000px;
    }

    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cases-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 992px) {
    #about {
        padding: 4rem 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .advantages-grid,
    .values-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    /* Services Section Responsive */
    #services {
        padding: 4rem 0;
    }

    .services-content {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .services-header h2 {
        font-size: 2.2rem;
    }

    .services-footer {
        padding: 2.5rem 1.5rem;
    }

    .services-footer h3 {
        font-size: 1.6rem;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .header .navigation li {
        display: none;
    }

    .header .navigation li:last-child {
        display: block;
    }


    .home-container {
        transform: translateY(30%);
        grid-template-columns: 1fr;
    }

    /* Cases Section Responsive */
    #cases {
        padding: 4rem 0;
    }

    .cases-header h2 {
        font-size: 2rem;
    }

    .cases-title-highlight {
        font-size: 1.8rem;
    }

    .cases-header p {
        font-size: 1rem;
    }

    .cases-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cases-stat-item {
        padding: 1.5rem;
    }

    .cases-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .case-image {
        height: 160px;
    }

    .cases-footer {
        padding: 2rem 1rem;
    }

    .cases-footer h3 {
        font-size: 1.5rem;
    }

    .cases-footer p {
        font-size: 1rem;
    }

    .cases-footer-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cases-footer-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    /* About Section Responsive */
    #about {
        padding: 3rem 0;
    }

    .about-header h2 {
        font-size: 2rem;
    }

    .about-header p {
        font-size: 1rem;
    }

    .advantages-grid,
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .advantage-item,
    .value-item {
        padding: 1.5rem;
    }

    .advantage-item h4,
    .value-item h4 {
        font-size: 1.2rem;
    }

    /* Home Section Responsive */
    .home-content {
        text-align: center;
    }

    .home-content h1 {
        font-size: 2rem;
    }

    .home-content h2 {
        font-size: 1.8rem;
    }

    .buttons {
        flex-direction: column;
    }

    .stats {
        flex-direction: column;
        gap: 15px;
    }

    .features {
        gap: 15px;
    }

    .features span {
        font-size: 0.8rem;
        padding: 4px 12px;
    }

    /* Services Section Responsive */
    #services {
        padding: 3rem 0;
    }

    .services-header h2 {
        font-size: 1.8rem;
    }

    .services-header p {
        font-size: 1rem;
    }

    .services-content {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .service-item {
        padding: 1.5rem;
    }

    .service-icon img {
        width: 70px;
        height: 70px;
    }

    .service-item h4 {
        font-size: 1.2rem;
        min-height: auto;
    }

    .service-item p {
        min-height: auto;
        text-align: center;
    }

    .services-footer {
        padding: 2rem 1rem;
    }

    .services-footer h3 {
        font-size: 1.4rem;
    }

    .services-footer p {
        font-size: 1rem;
    }

    .services-footer .btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}