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

:root {
    --primary-color: #1A1A1A;
    --gold-color: #D4AF37;
    --gold-light: #F0E68C;
    --cream-color: #F8F5F2;
    --brown-color: #8B4513;
    --text-dark: #1A1A1A;
    --text-light: #666666;
    --text-cream: #F8F5F2;
    --border-color: #3a3a3a;
    --shadow: 0 2px 10px rgba(0,0,0,0.3);
}

body {
    font-family: "Microsoft YaHei", "思源黑体", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--cream-color);
}

.page-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--primary-color);
    color: var(--text-cream);
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-header {
    padding: 40px 30px;
    border-bottom: 1px solid var(--border-color);
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--gold-color);
    font-weight: 700;
    margin-bottom: 5px;
}

.logo-en {
    font-size: 0.85rem;
    color: var(--gold-light);
    letter-spacing: 2px;
}

.sidebar-nav {
    flex: 1;
    padding: 40px 0;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav a {
    display: block;
    padding: 15px 30px;
    color: var(--text-cream);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(212, 175, 55, 0.1);
    border-left-color: var(--gold-color);
    color: var(--gold-color);
}

.sidebar-footer {
    padding: 30px;
    border-top: 1px solid var(--border-color);
}

.consult-btn {
    display: block;
    text-align: center;
    padding: 15px 30px;
    background: var(--gold-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s;
}

.consult-btn:hover {
    background: var(--gold-light);
}

.main-content {
    flex: 1;
    margin-left: 280px;
}

.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--primary-color);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a2a2a 100%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border: 1px solid var(--gold-color);
    opacity: 0.2;
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--text-cream);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 20px;
    letter-spacing: 5px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-cream);
    margin-bottom: 40px;
    letter-spacing: 3px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--gold-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-cream);
    border: 2px solid var(--gold-color);
}

.btn-secondary:hover {
    background: var(--gold-color);
    color: var(--primary-color);
}

.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--gold-color);
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--gold-color);
    border-bottom: 2px solid var(--gold-color);
    transform: rotate(45deg);
    margin: 10px auto 0;
    animation: scrollHint 1.5s infinite;
}

@keyframes scrollHint {
    0%, 100% { opacity: 1; transform: rotate(45deg) translateY(0); }
    50% { opacity: 0.5; transform: rotate(45deg) translateY(10px); }
}

.section {
    padding: 100px 80px;
}

.section-dark {
    background: var(--primary-color);
    color: var(--text-cream);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--gold-color);
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.section-line {
    width: 80px;
    height: 3px;
    background: var(--gold-color);
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--cream-color);
    padding: 40px 30px;
    border-radius: 4px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.section-dark .service-card {
    background: #2a2a2a;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2rem;
    color: var(--gold-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-dark .service-card h3 {
    color: var(--gold-color);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-link {
    color: var(--gold-color);
    text-decoration: none;
    font-weight: 500;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.case-item {
    background: #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s;
}

.case-item:hover {
    transform: translateY(-5px);
}

.case-image {
    height: 200px;
    background: linear-gradient(135deg, #3a3a3a 0%, #4a4a4a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-placeholder {
    color: var(--gold-color);
    font-size: 1.2rem;
}

.case-info {
    padding: 25px;
}

.case-category {
    display: inline-block;
    padding: 5px 15px;
    background: var(--gold-color);
    color: var(--primary-color);
    font-size: 0.85rem;
    border-radius: 3px;
    margin-bottom: 15px;
}

.case-info h3 {
    font-size: 1.2rem;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.case-info p {
    color: var(--text-cream);
    font-size: 0.95rem;
    line-height: 1.6;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.about-text h3 {
    font-size: 1.5rem;
    color: var(--gold-color);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold-color);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-card {
    text-align: center;
    padding: 40px 30px;
    background: #2a2a2a;
    border-radius: 4px;
}

.team-avatar {
    width: 80px;
    height: 80px;
    background: var(--gold-color);
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.team-card h4 {
    font-size: 1.2rem;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.team-card p {
    color: var(--text-cream);
    font-size: 0.95rem;
}

.compliance-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.compliance-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.compliance-intro h3 {
    font-size: 1.5rem;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.compliance-intro p {
    color: var(--text-cream);
    line-height: 1.7;
}

.compliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.compliance-card {
    background: #2a2a2a;
    padding: 30px;
    border-radius: 4px;
    border-top: 3px solid var(--gold-color);
}

.compliance-card h4 {
    font-size: 1.2rem;
    color: var(--gold-color);
    margin-bottom: 20px;
}

.compliance-card ul {
    list-style: none;
}

.compliance-card li {
    color: var(--text-cream);
    padding: 10px 0;
    border-bottom: 1px solid #3a3a3a;
    font-size: 0.95rem;
}

.compliance-card li:last-child {
    border-bottom: none;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-label {
    font-size: 0.9rem;
    color: var(--gold-color);
}

.contact-value {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.contact-form {
    background: var(--cream-color);
    padding: 40px;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    font-size: 1.5rem;
    color: var(--gold-color);
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--cream-color);
    color: var(--text-dark);
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold-color);
}

.contact-form textarea {
    resize: vertical;
}

.btn-block {
    width: 100%;
    display: block;
    text-align: center;
    margin-top: 20px;
}

.footer {
    background: var(--primary-color);
    color: var(--text-cream);
    padding: 60px 80px 30px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-brand h3 {
    font-size: 1.5rem;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.footer-brand p {
    color: var(--text-cream);
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-cream);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-divider {
    height: 1px;
    background: var(--border-color);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
}

.footer-info p {
    color: var(--text-cream);
    font-size: 0.95rem;
}

.footer-icp {
    margin: 10px 0;
}

.footer-icp a {
    color: var(--gold-color);
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-icp a:hover {
    text-decoration: underline;
}

.footer-copyright p {
    color: var(--text-cream);
    opacity: 0.7;
    font-size: 0.9rem;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--cream-color);
    padding: 40px;
    border-radius: 4px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-close:hover {
    color: var(--gold-color);
}

@media (max-width: 1200px) {
    .sidebar {
        width: 240px;
    }
    .main-content {
        margin-left: 240px;
    }
    .section {
        padding: 80px 60px;
    }
    .footer {
        padding: 60px 60px 30px;
    }
}

@media (max-width: 992px) {
    .page-wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    .sidebar-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .sidebar-nav a {
        padding: 10px 20px;
        border-left: none;
        border-bottom: 2px solid transparent;
    }
    .sidebar-nav a:hover,
    .sidebar-nav a.active {
        border-left: none;
        border-bottom-color: var(--gold-color);
    }
    .sidebar-footer {
        display: none;
    }
    .main-content {
        margin-left: 0;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    .footer-top {
        flex-direction: column;
        gap: 30px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 30px;
    }
    .footer {
        padding: 60px 30px 30px;
    }
    .hero-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    .btn {
        padding: 12px 30px;
    }
}