/* 潘增耀律师个人网站 - 全局样式 */
:root {
    --primary: #1a3a5c;
    --secondary: #2c5f8a;
    --accent: #c9a961;
    --text: #333;
    --light-bg: #f8f9fa;
    --white: #fff;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

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

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    color: var(--text);
    line-height: 1.8;
    background: var(--white);
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 0 5%;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary);
}

/* 导航栏电话 */
.nav-phone {
    color: var(--accent);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.nav-phone:hover {
    opacity: 0.8;
}

/* 悬浮咨询按钮 */
.float-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--accent);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 16px rgba(201, 169, 97, 0.4);
    z-index: 999;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: float-pulse 2s ease-in-out infinite;
}

.float-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(201, 169, 97, 0.6);
}

@keyframes float-pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(201, 169, 97, 0.4); }
    50% { box-shadow: 0 4px 24px rgba(201, 169, 97, 0.7); }
}

/* 移动端菜单 */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* 英雄区 */
.hero {
    margin-top: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%), repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,0.03) 35px, rgba(255,255,255,0.03) 36px), repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(255,255,255,0.03) 35px, rgba(255,255,255,0.03) 36px);
    color: var(--white);
    padding: 80px 5% 100px;
    text-align: center;
}

.hero-firm {
    font-size: 1rem;
    letter-spacing: 0.15em;
    opacity: 0.85;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1.2rem;
    letter-spacing: 0.08em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.5;
}

.hero-highlight {
    display: inline-block;
    background: rgba(201, 169, 97, 0.25);
    border: 1px solid var(--accent);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.hero-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-tag {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
}

/* 内容区 */
.section {
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 0.8rem auto 0;
}

/* 卡片 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card h3 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 1.15rem;
}

.card p {
    color: #666;
    font-size: 0.95rem;
}

/* 法律知识卡片 */
.knowledge-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
}

.knowledge-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.knowledge-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.knowledge-more {
    display: inline-block;
    margin-top: 0.8rem;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* 关于区 */
.about-section {
    background: var(--light-bg);
    padding: 60px 5%;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.about-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    font-weight: bold;
    margin: 0 auto;
}

.about-text h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: #555;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

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

.stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.85rem;
    color: #888;
}

/* FAQ区 */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary);
}

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
    color: #555;
}

.faq-item.open .faq-answer {
    padding: 0 1.5rem 1.2rem;
    max-height: 500px;
}

/* 联系区 */
.contact-section {
    background: var(--light-bg);
    padding: 60px 5%;
}

.contact-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
}

.contact-card-primary {
    border: 2px solid var(--accent);
}

.contact-action-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: var(--accent);
    color: var(--white);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.contact-action-btn:hover {
    background: #b8943f;
}

.contact-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: #666;
}

/* 案例卡片 */
.case-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent);
}

.case-card h3 {
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.case-card .case-result {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-top: 0.8rem;
}

/* 页脚 */
.footer {
    background: var(--primary);
    color: rgba(255,255,255,0.8);
    padding: 2rem 5%;
    text-align: center;
}

.footer p {
    font-size: 0.9rem;
}

/* CTA按钮 */
.cta-btn {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
    margin-top: 1.5rem;
}

.cta-btn:hover {
    background: #b8943f;
}

/* 响应式 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }

    .float-cta {
        bottom: 1rem;
        right: 1rem;
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}
