/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

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

/* 导航栏 */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-brand h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.nav-brand span {
    font-size: 10px;
    color: var(--text-light);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* 英雄区域 */
.hero {
    height: 100vh;
    background: var(--gradient);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 60px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,300 C300,400 600,200 1200,300 L1200,600 L0,600 Z" fill="rgba(255,255,255,0.1)"/></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 20px;
}

.hero-title {
    font-size: 64px;
    font-weight: bold;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 28px;
    margin-bottom: 15px;
    letter-spacing: 10px;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.btn {
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    animation: fadeInUp 1s ease 0.8s backwards;
}

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

.stat-number {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-text {
    font-size: 16px;
    opacity: 0.9;
}

.stat-description {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 5px;
}

/* 通用区块样式 */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 50px;
}

/* 关于律师 */
.about {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

.about-image {
    position: sticky;
    top: 100px;
}

.image-placeholder {
    width: 100%;
    padding-bottom: 120%;
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.image-placeholder svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
}

.lawyer-photo {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: var(--white);
}

.lawyer-photo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}


.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

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

.qualifications {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.qualification-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
    transition: var(--transition);
}

.qualification-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.qualification-icon {
    font-size: 24px;
}

/* 专业领域 */
.practice {
    background: var(--bg-light);
}

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

.practice-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.practice-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.practice-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.practice-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.practice-card p {
    color: var(--text-light);
    margin-bottom: 15px;
}

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

.practice-card ul li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-light);
}

.practice-card ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* 案例观点分析 */
.analysis {
    background: var(--bg-light);
    padding: 80px 0;
}

.analysis-item {
    background: var(--white);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.analysis-item:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.analysis-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-color);
}

.analysis-number {
    font-size: 48px;
    font-weight: bold;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 80px;
}

.analysis-header h3 {
    font-size: 24px;
    color: var(--text-dark);
    font-weight: 600;
}

.analysis-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.analysis-case,
.analysis-points,
.analysis-insight {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.analysis-case h4,
.analysis-points h4,
.analysis-insight h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

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

.analysis-points ul {
    list-style: none;
}

.analysis-points ul li {
    padding: 12px 0;
    line-height: 1.8;
    color: var(--text-light);
    border-bottom: 1px dashed #ddd;
}

.analysis-points ul li:last-child {
    border-bottom: none;
}

.analysis-points strong {
    color: var(--primary-color);
    font-weight: 600;
}

.analysis-insight p {
    color: var(--text-light);
    line-height: 1.8;
    font-style: italic;
}

/* 成功案例 */
.cases {
    background: var(--white);
}

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

.case-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-color);
    transition: var(--transition);
    position: relative;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.case-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 48px;
    font-weight: bold;
    color: var(--bg-light);
    opacity: 0.5;
}

.case-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.case-category {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
    display: inline-block;
}

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

.case-result {
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.result-label {
    font-weight: 600;
    color: var(--text-dark);
}

.result-success {
    color: #28a745;
    font-weight: bold;
    margin-left: 10px;
}

/* 服务流程 */
.process {
    background: var(--bg-light);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.step-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.step-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--bg-light);
    margin-bottom: 10px;
}

.step-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.step-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.step-item p {
    color: var(--text-light);
    font-size: 14px;
}

.step-arrow {
    font-size: 36px;
    color: var(--primary-color);
}

/* 联系我们 */
.contact {
    background: var(--white);
}

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

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

.contact-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: var(--transition);
}

.contact-item:hover {
    box-shadow: var(--shadow);
    transform: translateX(5px);
}

.contact-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.contact-item p {
    color: var(--text-light);
}

.contact-wechat {
    text-align: center;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 10px;
}

.wechat-qr {
    width: 180px;
    height: 180px;
    margin: 0 auto 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.wechat-qr img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.wechat-hint {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 5px;
}

.contact-form {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.footer-brand p {
    opacity: 0.8;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
    opacity: 0.8;
}

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

.footer-bottom p {
    opacity: 0.6;
    font-size: 14px;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 968px) {
    .hero-title {
        font-size: 48px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        position: relative;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .process-steps {
        flex-direction: column;
    }

    .analysis-item {
        padding: 30px 20px;
    }

    .analysis-header {
        flex-direction: column;
        text-align: center;
    }

    .analysis-number {
        font-size: 36px;
    }

    .analysis-header h3 {
        font-size: 20px;
    }


    .step-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

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

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 20px;
        letter-spacing: 5px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }

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

    .qualifications {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 28px;
    }

    .contact-form {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .stat-number {
        font-size: 36px;
    }

    .btn {
        padding: 12px 30px;
        font-size: 14px;
    }

    section {
        padding: 50px 0;
    }
}
