/* ==================== 全局样式文件 (style.css) ==================== */
/* 不使用任何跨站资源，字体使用系统默认，图标使用 Unicode/Emoji */

:root {
    --primary-dark: #000024;
    --primary-gold: #c7a252;
    --primary-gold-light: #e0bc7c;
    --gray-bg: #f7f8f4;
    --card-white: #ffffff;
    --border-light: #e9ece5;
    --shadow-sm: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 20px 35px -12px rgba(0, 0, 0, 0.08);
	--hellocolor:#391d00;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #fefef7;
    color: #1e2a2e;
    line-height: 1.5;
    scroll-behavior: smooth;
}

/* 容器 */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* 导航栏 */
.main-nav {
    background: var(--primary-dark);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(199, 162, 82, 0.25);
}

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

.logo h1 {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: white;
}

.logo p {
    font-size: 0.85rem;
    color: var(--primary-gold-light);
    margin-top: 4px;
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    color: #e4e7e6;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.nav-links a:hover, .nav-links a:focus {
    color: var(--primary-gold);
}

/* Hero区域 */
.hero {
    background: var(--hellocolor);
    color: white;
    padding: 80px 0 90px;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: "⚖️";
    font-size: 260px;
    opacity: 0.04;
    position: absolute;
    bottom: -40px;
    right: -20px;
    pointer-events: none;
}

.hero-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 48px;
    justify-content: space-between;
}

.hero-content {
    flex: 1.2;
}

.hero-badge {
    display: inline-block;
    background: rgba(199, 162, 82, 0.18);
    border-left: 4px solid var(--primary-gold);
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

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

.hero-tagline {
    font-size: 1.2rem;
    color: #cbd5d1;
    margin-bottom: 32px;
    max-width: 90%;
    border-left: 2px solid rgba(199,162,82,0.5);
    padding-left: 20px;
}

.hero-contact {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.btn-primary {
    background: var(--primary-gold);
    color: #0a1c1f;
    padding: 14px 34px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #dbb062;
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    padding: 14px 30px;
    border-radius: 40px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--primary-gold);
    color: var(--primary-gold-light);
}

.hero-stats {
    flex: 0.8;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(8px);
    border-radius: 28px;
    padding: 28px 24px;
    border: 1px solid rgba(199,162,82,0.25);
}

.stat-item {
    text-align: center;
    margin: 18px 0;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-gold);
}

/* 通用区域 */
.section {
    padding: 80px 0;
	padding-top:5px !important;
    padding-bottom: 5px !important;
}
/* 评价模块内部间距也收紧 */
.testimonials-section .section-subtitle {
    margin: 8px 0 12px !important;
}

.section-alt {
    background: var(--gray-bg);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #0a1c1f;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-gold);
    margin-top: 12px;
}

/* 关于区域 */
.about-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: stretch;
}

.about-text {
    flex: 1.2;
}

.about-text p {
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: #2d3e42;
    line-height: 1.6;
}

.lawyer-portrait {
    flex: 0.8;
    background: linear-gradient(145deg, #ffffff, #f6f4ed);
    border-radius: 32px;
    box-shadow: var(--shadow-md);
    padding: 28px 20px;
    text-align: center;
    border: 1px solid var(--border-light);
}

.portrait-icon {
    font-size: 5rem;
    color: var(--primary-gold);
    background: rgba(199,162,82,0.12);
    width: 140px;
    height: 140px;
    line-height: 140px;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.lawyer-portrait h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #0a1c1f;
}

.lawyer-portrait .title {
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: 12px;
}

.portrait-quote {
    font-size: 0.9rem;
    font-style: italic;
    color: #5a6e6b;
    border-top: 1px solid #e2dfd7;
    padding-top: 16px;
    margin-top: 12px;
}

.lawyer-card {
    flex: 0.9;
    background: var(--card-white);
    border-radius: 28px;
    padding: 32px 28px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.lawyer-card .badge {
    background: #f0ede6;
    padding: 5px 14px;
    border-radius: 40px;
    font-size: 0.8rem;
    display: inline-block;
    margin: 12px 0 8px;
    font-weight: 500;
}

/* 业务领域 */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.expert-card {
    background: var(--card-white);
    padding: 32px 24px;
    border-radius: 24px;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.expert-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-gold-light);
}

.expert-icon {
    font-size: 2.4rem;
    margin-bottom: 20px;
}

.expert-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 600;
}

/* 文章列表卡片 */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.article-card {
    background: white;
    border-radius: 24px;
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
    transition: 0.2s;
    border-left: 3px solid var(--primary-gold);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -12px rgba(0,0,0,0.1);
}

.article-date {
    font-size: 0.75rem;
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-card h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.article-card p {
    color: #4b5e5b;
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.read-more {
    color: var(--primary-gold);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* 联系区域 */
.contact-section {
    background: var(--hellocolor);
    color: #f0f2ef;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: space-between;
    padding: 70px 0;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 16px;
}

.contact-detail-list {
    margin: 32px 0;
    list-style: none;
}

.contact-detail-list li {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.05rem;
}

.contact-detail-list li i, .contact-detail-list li .icon-placeholder {
    width: 40px;
    font-size: 1.3rem;
    color: var(--primary-gold);
}

.contact-legal-note {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    border-left: 3px solid var(--primary-gold);
}

.map-card {
    flex: 1;
    background: #1e373d;
    padding: 28px;
    border-radius: 32px;
}

/* 文章详情页 */
.article-detail-container {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 24px;
}

.article-detail-card {
    background: white;
    border-radius: 32px;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.08);
    padding: 48px 56px;
}

/* ========== Hero区域手机端专属优化 ========== */
@media (max-width: 768px) {
    /* 调整Hero整体内边距，减少上下留白 */
    .hero {
        padding: 48px 0 56px;
    }

    /* Hero网格改为垂直排列，减小间距 */
    .hero-grid {
        flex-direction: column;
        gap: 32px;
    }

    /* 标题文字优化 */
    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.25;
        letter-spacing: -0.5px;
    }

    /* 副标题/标签行 */
    .hero-tagline {
        font-size: 1rem;
        max-width: 100%;
        padding-left: 16px;
        margin-bottom: 24px;
    }

    /* 勋章/挂牌字体微调 */
    .hero-badge {
        font-size: 0.75rem;
        padding: 4px 12px;
    }

    /* 按钮区域改为纵向排列，全宽易点 */
    .hero-contact {
        flex-direction: column;
        gap: 12px;
    }
    .hero-contact .btn-primary,
    .hero-contact .btn-outline-light {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 12px 20px;
    }

    /* 右侧统计卡片改为水平布局，三个数据一排 */
    .hero-stats {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        padding: 20px 12px;
        backdrop-filter: blur(4px);
        border-radius: 28px;
    }
    .hero-stats .stat-item {
        flex: 1;
        margin: 0;
        text-align: center;
    }
    .hero-stats .stat-number {
        font-size: 1.5rem;
        margin-bottom: 4px;
    }
    .hero-stats .stat-item div:last-child {
        font-size: 0.75rem;
        white-space: nowrap;
    }

    /* 装饰大图标缩小，避免遮挡文字 */
    .hero:before {
        font-size: 140px;
        opacity: 0.05;
        bottom: -20px;
        right: -10px;
    }

    /* 容器左右内边距稍微收窄，充分利用空间 */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* 针对更小的手机（如 iPhone SE，宽度≤375px）进一步微调 */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-stats .stat-number {
        font-size: 1.2rem;
    }
    .hero-stats .stat-item div:last-child {
        font-size: 0.7rem;
        white-space: normal; /* 允许换行，避免文字挤压 */
    }
    .hero-tagline {
        font-size: 0.9rem;
    }
}

.article-header {
    border-bottom: 2px solid #f0ede6;
    padding-bottom: 24px;
    margin-bottom: 32px;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0a1c1f;
    line-height: 1.3;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    color: #8a9b97;
    font-size: 0.9rem;
}

.article-featured-image {
    margin: 24px 0 32px;
    text-align: center;
}

.article-featured-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.article-content {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #2d3e42;
}

.article-content p {
    margin-bottom: 1.2em;
}

.article-content h2 {
    font-size: 1.6rem;
    border-left: 4px solid var(--primary-gold);
    padding-left: 16px;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 20px 0;
}

.article-content ul, .article-content ol {
    margin: 1em 0 1em 2em;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-gold);
    background: #f9f8f4;
    padding: 16px 24px;
    margin: 24px 0;
    font-style: italic;
    border-radius: 16px;
}

/* 附件区域 */
.attachments-section {
    background: #f8f7f2;
    border-radius: 24px;
    padding: 24px 28px;
    margin: 40px 0 32px;
}

.attachments-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.attachments-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.attachment-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 10px 20px;
    border-radius: 40px;
    text-decoration: none;
    color: #0a1c1f;
    font-size: 0.85rem;
    border: 1px solid #e0ddd5;
}

.attachment-link:hover {
    border-color: var(--primary-gold);
    background: var(--primary-gold-light);
}

.file-size {
    color: #8a9b97;
    font-size: 0.7rem;
}

/* 文章导航 */
.article-nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #ece8e1;
}

.nav-prev, .nav-next {
    flex: 1;
    min-width: 180px;
}

.nav-next {
    text-align: right;
}

.nav-label {
    font-size: 0.75rem;
    color: #8a9b97;
    margin-bottom: 6px;
    display: block;
}

.nav-link {
    font-weight: 600;
    color: #0a1c1f;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--primary-gold);
}

/* 律师名片 */
.lawyer-mini-card {
    background: linear-gradient(135deg, #0a1c1f 0%, #143035 100%);
    border-radius: 24px;
    padding: 28px 32px;
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.lawyer-info {
    color: white;
}

.lawyer-info h4 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.consult-btn {
    background: var(--primary-gold);
    color: #0a1c1f;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* 搜索栏 */
.search-bar {
    margin: 32px 0 20px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.search-bar input {
    flex: 2;
    min-width: 200px;
    padding: 12px 20px;
    border-radius: 60px;
    border: 1px solid #ddd;
    font-size: 1rem;
    font-family: inherit;
}

.search-bar button {
    background: #c7a252;
    border: none;
    padding: 12px 32px;
    border-radius: 60px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

/* 后台管理 */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
    background: white;
    padding: 20px 28px;
    border-radius: 28px;
}

.btn-add, .btn-logout {
    background: #c7a252;
    color: #0a1c1f;
    padding: 12px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-logout {
    background: #2c474b;
    color: white;
}

.article-table {
    background: white;
    border-radius: 28px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid #ece8e1;
}

th {
    background: #faf8f3;
    font-weight: 600;
}

.img-preview {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
}

.action-buttons a {
    display: inline-block;
    margin-right: 12px;
    color: #c7a252;
    text-decoration: none;
}

.del-link {
    color: #bc5a3c !important;
}

/* 表单样式 */
.form-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 32px;
    padding: 40px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f5f3ef;
    padding: 8px 20px;
    border-radius: 40px;
    color: #0a1c1f;
    text-decoration: none;
    margin-bottom: 24px;
}

input, textarea, select {
    font-family: inherit;
}

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd8ce;
    border-radius: 20px;
    font-size: 0.95rem;
}

textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd8ce;
    border-radius: 20px;
    font-family: inherit;
    min-height: 200px;
}

.btn-submit {
    background: #c7a252;
    border: none;
    padding: 14px 28px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 28px;
    cursor: pointer;
    width: 100%;
}

.error {
    color: #bc5a3c;
    background: #fff2ef;
    padding: 12px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.success {
    color: #2b6e4e;
    background: #e2f3e6;
    padding: 12px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.loading, .no-more {
    text-align: center;
    padding: 30px;
    color: #7c8f8b;
}

/* 响应式 */
@media (max-width: 980px) {
    .hero-content h1 { font-size: 2.5rem; }
    .container { padding: 0 24px; }
    .section { padding: 56px 0; }
}

@media (max-width: 750px) {
    .nav-links { gap: 20px; flex-wrap: wrap; }
    .expertise-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
    .about-grid { flex-direction: column; }
}

footer {
    background: var(--primary-dark);
    color: #8f9e9a;
    text-align: center;
    padding: 32px 0;
    border-top: 1px solid rgba(199,162,82,0.2);
}

/* 保证提交按钮可见，并修复可能的样式冲突 */
.btn-submit {
	display: block !important;
	background: #c7a252 !important;
	border: none !important;
	padding: 14px 28px !important;
	border-radius: 40px !important;
	font-weight: 700 !important;
	font-size: 1rem !important;
	margin-top: 28px !important;
	cursor: pointer !important;
	width: 100% !important;
	color: #0a1c1f !important;
	text-align: center !important;
}
.btn-submit:hover {
	background: #dbb062 !important;
}