/* Common Styles for All Pages */
:root {
    --primary-color: #c8102e;
    --secondary-color: #003366;
    --accent-gold: #d4af37;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-top {
    background: linear-gradient(135deg, var(--secondary-color), #004080);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.header-top-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-top-left span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-top-right {
    display: flex;
    gap: 20px;
}

.header-top a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap;
}

.header-top a:hover {
    color: var(--accent-gold);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-color);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    transition: all 0.3s;
}

.mobile-menu-btn span {
    width: 28px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 999;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    padding: 25px 20px;
    background: linear-gradient(135deg, var(--secondary-color), #004080);
    color: white;
}

.mobile-menu-header h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.mobile-menu-links {
    list-style: none;
    padding: 20px 0;
}

.mobile-menu-links li {
    border-bottom: 1px solid #eee;
}

.mobile-menu-links a {
    display: block;
    padding: 18px 25px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s;
}

.mobile-menu-links a:hover,
.mobile-menu-links a.active {
    background: #f8f9fa;
    color: var(--primary-color);
    padding-left: 35px;
}

.mobile-menu-contact {
    padding: 25px;
    background: #f8f9fa;
    margin-top: 20px;
}

.mobile-menu-contact h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.mobile-menu-contact p {
    font-size: 14px;
    line-height: 2;
    color: var(--text-light);
}

/* Page Header */
.page-header {
    margin-top: 130px;
    padding: 100px 40px;
    background: linear-gradient(135deg, #33194f, #991b47);
    color: white;
    text-align: center;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.page-header p {
    font-size: 20px;
    opacity: 0.9;
}

/* Content Section */
.content-section {
    padding: 100px 40px;
    background: white;
}

/* Features Grid */
.features-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    padding: 50px 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover::before {
    opacity: 0.05;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 25px;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Services Grid */
.services-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: linear-gradient(135deg, var(--secondary-color), #004080);
    color: white;
    padding: 50px 40px;
    border-radius: 20px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 70px rgba(0, 51, 102, 0.3);
}

.service-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.service-card p {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.service-card ul {
    list-style-position: inside;
    padding-left: 0;
}

/* Cases Grid */
.cases-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.case-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.case-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: linear-gradient(135deg, #e0e0e0, #f0f0f0);
}

.case-content {
    padding: 30px;
}

.case-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.case-content p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

.case-tag {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 15px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    color: white;
    padding: 80px 40px 30px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-bottom: 50px;
}

.footer-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--accent-gold);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 2;
    display: block;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--accent-gold);
}

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

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent-gold);
    transform: translateY(-3px);
}

/* Floating Contact Button */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.contact-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #a00d24);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(200, 16, 46, 0.4);
    transition: all 0.3s;
    border: none;
    font-size: 28px;
}

.contact-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(200, 16, 46, 0.6);
}

.contact-popup {
    position: absolute;
    bottom: 75px;
    right: 0;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
}

.contact-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-popup::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.popup-header {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.wechat-id {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.wechat-id:hover {
    background: #e9ecef;
}

.wechat-id span {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.copy-icon {
    font-size: 20px;
}

.copy-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 20px 40px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 9999;
}

.copy-notification.show {
    opacity: 1;
    visibility: visible;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .header-top-content {
        padding: 0 20px;
        font-size: 12px;
    }

    .header-top-left {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }

    .header-top-right {
        flex-direction: column;
        gap: 5px;
        align-items: flex-end;
    }

    nav {
        padding: 15px 20px;
    }

    .logo {
        font-size: 28px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu,
    .mobile-menu-overlay {
        display: block;
    }

    .page-header {
        margin-top: 110px;
        padding: 60px 20px;
    }

    .page-header h1 {
        font-size: 36px;
    }

    .content-section {
        padding: 60px 20px;
    }

    .services-grid,
    .features-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .floating-contact {
        bottom: 20px;
        right: 20px;
    }

    .contact-btn {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }

    .page-header h1 {
        font-size: 28px;
    }
}
