/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1d4ed8;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: #f8fafc;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #f1f5f9;
    border-color: #d1d5db;
}

.btn-outline {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-outline:hover {
    background: #2563eb;
    color: white;
}

/* Header & Navigation */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 0;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #2563eb;
}

.nav-text h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-text a {
    color: #1f2937;
    text-decoration: none;
}

.nav-text .tagline {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #374151;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    min-width: 200px;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #374151;
    transition: background-color 0.2s ease;
}

.dropdown-menu a:hover {
    background: #f8fafc;
    color: #2563eb;
}

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

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #374151;
    transition: 0.3s;
}

/* Main Content */
.main-content {
    margin-top: 80px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    text-align: left;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 0 0 260px;
    text-align: center;
}

.hero-image .avatar {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-image .avatar:hover {
    transform: scale(1.05);
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.highlight {
    color: #fbbf24;
    position: relative;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.4;
}

.hero-stats {
    display: flex;
    justify-content: flex-start;
    gap: 3rem;
    margin-bottom: 3rem;
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fbbf24;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

.hero-cta {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Sections */
.services,
.latest-articles

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1f2937;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.service-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.service-link {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
}

.service-link:hover {
    color: #1d4ed8;
}

/* Articles Section */
.latest-articles {
    background: #f8fafc;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.article-card h3 {
    margin-bottom: 1rem;
}

.article-card h3 a {
    color: #1f2937;
    text-decoration: none;
}

.article-card h3 a:hover {
    color: #2563eb;
}

.article-excerpt {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

.more-articles {
    text-align: center;
}

/* Case Studies */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.case-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
}

.case-card h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.case-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
}

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

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #fbbf24;
}

.stat-desc {
    font-size: 0.875rem;
    opacity: 0.8;
}

.case-card p {
    opacity: 0.9;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .footer-contact-section {
        grid-column: 1 / -1;
    }
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: #d1d5db;
    margin-bottom: 1.5rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #d1d5db;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.contact-info p {
    margin-bottom: 0.5rem;
}

/* Footer Contact Section */
.footer-contact-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact-info p {
    margin: 0;
    color: #d1d5db;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact-info i {
    color: #2563eb;
    width: 16px;
    text-align: center;
}

/* Company Location Map */
.company-location {
    margin-top: 1rem;
}

.company-location h5 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.location-address {
    color: #d1d5db;
    font-size: 0.875rem;
    line-height: 1.5;
}

.location-address i {
    color: #2563eb;
    margin-right: 0.5rem;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 2px solid #374151;
    transition: transform 0.3s ease;
}

.map-container:hover {
    transform: scale(1.02);
}

.map-container iframe {
    width: 100%;
    height: 200px;
    border: 0;
    display: block;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #9ca3af;
    font-size: 0.875rem;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 0.875rem;
    margin: 0;
}


/* Codex AI 建站演示横幅 */
.footer-codex-banner {
    text-align: center;
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.footer-codex-banner marquee {
    color: #f97316;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}
/* 站长简介 */
.about-owner {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 30%, #f8fafc 60%, #f0f9ff 100%);
    position: relative;
    overflow: hidden;
}
.about-owner::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
    border-radius: 50%;
}
.about-owner::after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(37,99,235,0.04) 0%, transparent 70%);
    border-radius: 50%;
}

.about-owner-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.04), 0 12px 40px rgba(0,0,0,0.06);
    border: 1px solid #e8ecf1;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.about-owner-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.06), 0 20px 48px rgba(37,99,235,0.08);
}

.about-owner-header {
    padding: 2.8rem 3rem 2rem;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
    position: relative;
    overflow: hidden;
}
.about-owner-header::after {
    content: "";
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}

.about-owner-header h3 {
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.about-owner-intro {
    font-size: 1.05rem;
    line-height: 1.9;
    color: rgba(255,255,255,0.95);
    margin: 0;
    position: relative;
    z-index: 1;
    letter-spacing: 0.01em;
}

.about-owner-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    padding: 1.6rem 3rem;
    border-bottom: 1px solid #f0f2f5;
    background: #fafbfd;
}

.owner-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1d4ed8;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1.5px solid #bfdbfe;
    transition: all 0.25s ease;
    letter-spacing: 0.01em;
}

.owner-tag:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}

.owner-tag i {
    font-size: 0.7rem;
    opacity: 0.8;
}

.about-owner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 0.5rem 0;
}

.about-owner-item {
    display: flex;
    gap: 1.3rem;
    padding: 1.8rem 3rem;
    transition: all 0.25s ease;
    position: relative;
}

.about-owner-item:nth-child(odd) {
    border-right: 1px solid #f3f4f6;
}

.about-owner-item:nth-child(-n+2) {
    border-bottom: 1px solid #f3f4f6;
}

.about-owner-item:hover {
    background: #fafbfd;
    transform: translateX(3px);
}

.owner-item-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.3rem;
    transition: all 0.25s ease;
}
.about-owner-item:nth-child(1) .owner-item-icon { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #2563eb; }
.about-owner-item:nth-child(2) .owner-item-icon { background: linear-gradient(135deg, #fce7f3, #fbcfe8); color: #db2777; }
.about-owner-item:nth-child(3) .owner-item-icon { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #059669; }
.about-owner-item:nth-child(4) .owner-item-icon { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #d97706; }
.about-owner-item:hover .owner-item-icon {
    transform: scale(1.1) rotate(-3deg);
}

.owner-item-text h4 {
    font-size: 1.05rem;
    color: #111827;
    margin: 0 0 0.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.owner-item-text p {
    font-size: 0.93rem;
    line-height: 1.75;
    color: #6b7280;
    margin: 0;
}

@media (max-width: 768px) {
    .about-owner-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    .about-owner-header h3 {
        font-size: 1.35rem;
    }
    .about-owner-tags {
        padding: 1.25rem 1.5rem;
    }
    .about-owner-grid {
        grid-template-columns: 1fr;
    }
    .about-owner-item {
        padding: 1.3rem 1.5rem;
    }
    .about-owner-item:nth-child(odd) {
        border-right: none;
    }
    .about-owner-item {
        border-bottom: 1px solid #f3f4f6;
    }
    .about-owner-item:last-child {
        border-bottom: none;
    }
}

/* ========== 隐私政策 & 服务条款 页面共享样式 ========== */
.legal-page {
    padding: 60px 0;
    background: #f8fafc;
    min-height: 60vh;
}

.legal-page .container {
    max-width: 880px;
}

.legal-hero {
    text-align: center;
    padding: 3rem 0 2.5rem;
}

.legal-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    color: #fff;
    font-size: 1.75rem;
    box-shadow: 0 8px 24px rgba(37,99,235,0.2);
}

.legal-hero h1 {
    font-size: 2rem;
    color: #111827;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.legal-hero .legal-date {
    color: #9ca3af;
    font-size: 0.9rem;
}

.legal-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 2rem 2.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s ease;
}

.legal-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.legal-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.legal-card-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
}

.legal-card-header h2 {
    font-size: 1.2rem;
    color: #111827;
    margin: 0;
    padding-top: 0.45rem;
    font-weight: 600;
}

.legal-card-body {
    color: #4b5563;
    line-height: 1.8;
    font-size: 0.975rem;
}

.legal-card-body p {
    margin-bottom: 0.85rem;
}

.legal-card-body ul,
.legal-card-body ol {
    margin: 0.75rem 0 1rem 1.25rem;
}

.legal-card-body li {
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}

.legal-card-body li strong {
    color: #374151;
}

.legal-notice {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.legal-notice-icon {
    flex-shrink: 0;
    color: #f59e0b;
    font-size: 1.25rem;
    margin-top: 0.1rem;
}

.legal-notice p {
    color: #92400e;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
}

.legal-table-wrap {
    overflow-x: auto;
    margin: 1rem 0;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.legal-table thead th {
    background: #f8fafc;
    color: #374151;
    font-weight: 600;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 2px solid #e5e7eb;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.legal-table tbody td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
}

.legal-table tbody tr:hover {
    background: #fafbfc;
}

.legal-rights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    margin: 1rem 0;
}

.legal-right-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 1.15rem;
    border: 1px solid #e5e7eb;
    text-align: center;
    transition: all 0.2s ease;
}

.legal-right-card:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.legal-right-card .right-icon {
    font-size: 1.3rem;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.legal-right-card h4 {
    font-size: 0.9rem;
    color: #374151;
    margin: 0 0 0.25rem;
    font-weight: 600;
}

.legal-right-card p {
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 0;
    line-height: 1.5;
}

.legal-contact-bar {
    background: linear-gradient(135deg, #eff6ff, #f0f9ff);
    border-radius: 14px;
    padding: 1.5rem 2rem;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    border: 1px solid #bfdbfe;
}

.legal-contact-bar .contact-items {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.legal-contact-bar .contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
    font-size: 0.9rem;
}

.legal-contact-bar .contact-item i {
    color: #2563eb;
}

.legal-contact-bar h3 {
    margin: 0;
    font-size: 1rem;
    color: #111827;
}

.legal-section-icon {
    color: #2563eb;
    margin-right: 0.4rem;
}

@media (max-width: 768px) {
    .legal-card {
        padding: 1.25rem 1rem;
    }
    
    .legal-rights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .legal-contact-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .legal-contact-bar .contact-items {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .legal-rights-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== 联系页面表单样式 ========== */
.contact-form-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 32px rgba(0,0,0,0.05);
}

.contact-form-section h2 {
    font-size: 1.4rem;
    color: #111827;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.contact-form-section .form-intro {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field.full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
}

.form-field label .required-star {
    color: #ef4444;
    margin-left: 2px;
}

.form-field input,
.form-field textarea,
.form-field select {
    padding: 0.75rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #374151;
    background: #fafbfc;
    transition: all 0.2s ease;
    font-family: inherit;
    outline: none;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #cbd5e1;
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit-row {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-submit-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,99,235,0.35);
}

.form-submit-btn:active {
    transform: translateY(0);
}

.form-submit-btn i {
    font-size: 0.9rem;
}

.form-note {
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 0;
}

/* 表单提交成功/失败提示 */
.form-message {
    display: none;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-message.success {
    display: block;
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.form-message.error {
    display: block;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-section {
        padding: 1.5rem;
    }
    
    .form-submit-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* WeChat QR Code Styles */
.footer-wechat-qr {
    margin-top: 0.5rem;
    text-align: center;
}

.wechat-qr-img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.qr-label {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.3rem;
    text-align: center;
}

.wechat-qr-inline {
    margin-top: 0.75rem;
    text-align: center;
}

.wechat-qr-inline .wechat-qr-img {
    width: 120px;
    height: 120px;
}

@media (max-width: 768px) {
    .wechat-qr-img {
        width: 80px;
        height: 80px;
    }
    .wechat-qr-inline .wechat-qr-img {
        width: 100px;
        height: 100px;
    }
}
/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        gap: 2.5rem;
    }
    
    .hero-image {
        flex: 0 0 220px;
    }
    
    .hero-image .avatar {
        width: 200px;
        height: 200px;
    }
    
    .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 2rem;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-logo-img {
        width: 32px;
        height: 32px;
    }
    
    .nav-text h1 {
        font-size: 1.5rem;
    }
    
    .nav-text .tagline {
        font-size: 0.75rem;
    }
    
    .nav-right {
        order: 2;
        gap: 0.5rem;
    }
    
    .nav-toggle {
        order: 2;
    }
    
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-image {
        flex: none;
        margin-bottom: 1rem;
    }
    
    .hero-image .avatar {
        width: 200px;
        height: 200px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 1.9rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-contact-section {
        grid-column: auto;
    }
    
    .map-container iframe {
        height: 180px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        order: 1;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-image .avatar {
        width: 140px;
        height: 140px;
    }
    
    .hero-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services,
    .latest-articles,
    
    .map-container iframe {
        height: 150px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles for keyboard navigation */
.nav-link:focus,
.btn:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .footer, .footer-river,
    .nav-toggle {
        display: none;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    body {
        font-size: 12pt;
    }
}

/* ============================================================
   河流捕鱼场景页脚 - 交互式撒网捕鱼 | SEO小平捕鱼模式
   ============================================================ */
.footer-river {
    position: relative;
    background: linear-gradient(180deg, #0b3d5c 0%, #0c4a6e 10%, #0369a1 25%, #0284c7 45%, #0ea5e9 65%, #38bdf8 80%, #7dd3fc 100%);
    min-height: 680px;
    overflow: hidden;
    margin-top: 0;
    font-family: 'Noto Sans SC', sans-serif;
    cursor: crosshair;
}

/* ---- Canvas交互层 ---- */
.net-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 8;
    pointer-events: auto;
}

/* ---- 水波图层 ---- */
.river-waves-layer {
    position: absolute;
    left: 0;
    width: 100%;
    pointer-events: none;
}
.wave-svg {
    width: 200%;
    height: 100%;
    display: block;
}
.wave-1-wrap { bottom: 0; height: 80px; z-index: 5; opacity: 0.7; }
.wave-1-wrap .wave-svg { animation: waveDrift1 3s linear infinite; }
.wave-1-wrap path { fill: rgba(255,255,255,0.35); }
.wave-2-wrap { bottom: 10px; height: 70px; z-index: 4; opacity: 0.6; }
.wave-2-wrap .wave-svg { animation: waveDrift2 5s linear infinite; }
.wave-2-wrap path { fill: rgba(255,255,255,0.25); }
.wave-3-wrap { bottom: 20px; height: 60px; z-index: 3; opacity: 0.5; }
.wave-3-wrap .wave-svg { animation: waveDrift1 7s linear infinite reverse; }
.wave-3-wrap path { fill: rgba(186,230,253,0.4); }
.wave-4-wrap { bottom: 30px; height: 50px; z-index: 2; opacity: 0.4; }
.wave-4-wrap .wave-svg { animation: waveDrift2 9s linear infinite reverse; }
.wave-4-wrap path { fill: rgba(224,242,254,0.35); }

@keyframes waveDrift1 {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes waveDrift2 {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* ---- 河面闪烁光点 ---- */
.river-sparkles {
    position: absolute;
    top: 15%;
    left: 0;
    width: 100%;
    height: 60%;
    pointer-events: none;
    z-index: 6;
    background:
        radial-gradient(2px 2px at 15% 30%, rgba(255,255,255,0.6) 50%, transparent 50%),
        radial-gradient(2px 2px at 35% 55%, rgba(255,255,255,0.5) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 55% 25%, rgba(255,255,255,0.7) 50%, transparent 50%),
        radial-gradient(2px 2px at 72% 48%, rgba(255,255,255,0.5) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 88% 35%, rgba(255,255,255,0.6) 50%, transparent 50%),
        radial-gradient(2px 2px at 25% 65%, rgba(255,255,255,0.4) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 62% 70%, rgba(255,255,255,0.5) 50%, transparent 50%),
        radial-gradient(2px 2px at 80% 58%, rgba(255,255,255,0.45) 50%, transparent 50%);
    animation: sparkleTwinkle 3s ease-in-out infinite alternate;
}
@keyframes sparkleTwinkle {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ---- 静态游鱼层 (CSS动画) ---- */
.fish-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 6;
}
.ambient-fish {
    position: absolute;
    width: 36px;
    height: 16px;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}
.af-1 { top: 32%; animation: ambientSwim1 9s linear infinite; width: 44px; }
.af-2 { top: 50%; animation: ambientSwim2 11s linear infinite; animation-delay: -3s; }
.af-3 { top: 42%; animation: ambientSwim3 8s linear infinite; animation-delay: -6s; width: 30px; }
.af-4 { top: 55%; animation: ambientSwim1 10s linear infinite; animation-delay: -1s; width: 40px; }
.af-5 { top: 28%; animation: ambientSwim2 12s linear infinite; animation-delay: -8s; width: 32px; }
.af-6 { top: 48%; animation: ambientSwim3 9.5s linear infinite; animation-delay: -4s; width: 34px; }
.af-7 { top: 38%; animation: ambientSwim2 13s linear infinite; animation-delay: -9s; width: 28px; }
.af-8 { top: 60%; animation: ambientSwim1 10.5s linear infinite; animation-delay: -6.5s; width: 36px; }

@keyframes ambientSwim1 {
    0%   { left: -5%; transform: translateY(0) scaleX(1); }
    20%  { transform: translateY(-15px) scaleX(1); }
    50%  { transform: translateY(8px) scaleX(1); }
    80%  { transform: translateY(-10px) scaleX(1); }
    100% { left: 105%; transform: translateY(0) scaleX(1); }
}
@keyframes ambientSwim2 {
    0%   { left: 105%; transform: translateY(0) scaleX(-1); }
    30%  { transform: translateY(12px) scaleX(-1); }
    60%  { transform: translateY(-14px) scaleX(-1); }
    100% { left: -5%; transform: translateY(0) scaleX(-1); }
}
@keyframes ambientSwim3 {
    0%   { left: -5%; transform: translateY(0) scaleX(1); }
    35%  { transform: translateY(-8px) scaleX(1); }
    70%  { transform: translateY(12px) scaleX(1); }
    100% { left: 105%; transform: translateY(0) scaleX(1); }
}

/* ---- 渔夫人物层 ---- */
.fishermen-layer {
    position: absolute;
    bottom: 55px;
    left: 0;
    width: 100%;
    height: 140px;
    pointer-events: none;
    z-index: 7;
}
.fisherman-wrp {
    position: absolute;
    bottom: 0;
    width: 80px;
    height: 100px;
    animation: fishermanBob 2.5s ease-in-out infinite;
}
.fisherman-wrp:nth-child(2) { animation-delay: -0.8s; }
.fisherman-wrp:nth-child(3) { animation-delay: -1.6s; }
.fisherman-svg {
    width: 100%;
    height: 100%;
}
@keyframes fishermanBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ---- 点击提示 ---- */
.river-hint {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    padding: 0.6rem 1.8rem;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    pointer-events: none;
    transition: opacity 0.6s;
    animation: hintPulse 2s ease-in-out infinite;
}
.river-hint .hint-icon {
    display: inline-block;
    animation: hintBounce 0.8s ease-in-out infinite;
}
@keyframes hintPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255,255,255,0.15); }
    50% { box-shadow: 0 0 35px rgba(255,255,255,0.3); }
}
@keyframes hintBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* ---- 捕鱼模式文字横幅 ---- */
.river-banner { pointer-events: none; position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    padding: 0.55rem 2rem;
    white-space: nowrap;
}
.river-banner-text {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.river-banner-text .icon {
    font-size: 1.2rem;
    animation: bobIcon 1.5s ease-in-out infinite;
}
@keyframes bobIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ---- 河流页脚内容区 ---- */
.river-footer-content { pointer-events: none;
    position: relative;
    z-index: 10;
    padding: 5rem 1.5rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
.river-footer-grid { pointer-events: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.2);
    
}

/* 响应式：页脚4列变2列 */
@media (max-width: 768px) {
    .river-footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 480px) {
    .river-footer-grid {
        grid-template-columns: 1fr !important;
    }
}
.river-footer-col h4 {.river-footer-col h4 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255,255,255,0.3);
}
.river-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.river-footer-col li {
    margin-bottom: 0.5rem;
}
.river-footer-col a { pointer-events: auto;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.river-footer-col a:hover {
    color: #fff;
    padding-left: 4px;
}
.river-contact p {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.river-contact i {
    width: 1.2rem;
    color: rgba(255,255,255,0.7);
}
.river-qr {
    text-align: center;
    margin-top: 0.75rem;
}
.river-qr-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.4);
}
.river-qr-label {
    display: block;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
    margin-top: 0.3rem;
}

/* 底部栏 */
.river-footer-bottom { pointer-events: none;
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    
}
.river-footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}
.river-footer-links a { pointer-events: auto;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.river-footer-links a:hover {
    color: #fff;
}
.river-copyright {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    margin: 0;
}
.river-codex-banner {
    margin-top: 0.75rem;
    padding: 0.4rem 0;
    background: rgba(249,115,22,0.25);
    border-radius: 20px;
    overflow: hidden;
}
.river-codex-banner marquee {
    color: #ffedd5;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ====== 响应式 ====== */
@media (max-width: 768px) {
    .footer-river {
        min-height: 560px;
    }
    .river-footer-grid { pointer-events: none;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    .wave-1-wrap { height: 50px; }
    .wave-2-wrap { height: 45px; bottom: 8px; }
    .wave-3-wrap { height: 40px; bottom: 15px; }
    .wave-4-wrap { height: 35px; bottom: 22px; }
    .fisherman-wrp {
        width: 60px;
        height: 80px;
    }
    .fisherman-wrp[data-fisherman="1"] { left: 5% !important; }
    .fisherman-wrp[data-fisherman="2"] { left: 35% !important; }
    .fisherman-wrp[data-fisherman="3"] { left: 65% !important; }
    .river-banner-text { font-size: 0.72rem; }
    .river-hint { font-size: 0.8rem; padding: 0.5rem 1.2rem; }
    .ambient-fish { width: 24px !important; height: 12px !important; }
}

@media (max-width: 480px) {
    .footer-river {
        min-height: 500px;
    }
    .fisherman-wrp[data-fisherman="2"] { display: none; }
    .fisherman-wrp[data-fisherman="1"] { left: 8% !important; }
    .fisherman-wrp[data-fisherman="3"] { left: 55% !important; }
    .river-footer-grid { pointer-events: none;
        padding: 1rem;
    }
    .river-banner-text {
        font-size: 0.65rem;
    }
}
/* ============================================================
   右侧悬浮咨询表单
   ============================================================ */
.floating-widget { position: fixed; top: 0; right: 0; z-index: 9999; pointer-events: none; }
.floating-widget * { pointer-events: auto; }

.floating-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); opacity: 0; visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s; z-index: 9998;
}
.floating-overlay.active { opacity: 1; visibility: visible; }

/* 悬浮触发标签 */
.floating-tab {
    position: fixed; right: 0; top: 50%; transform: translateY(-50%);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff; padding: 16px 10px; border-radius: 8px 0 0 8px;
    cursor: pointer; font-size: 0.9rem; font-weight: 600;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    box-shadow: -4px 0 20px rgba(37,99,235,0.3); z-index: 9997;
    transition: transform 0.3s, opacity 0.3s; writing-mode: vertical-rl;
    letter-spacing: 2px;
}
.floating-tab:hover { background: linear-gradient(135deg, #1d4ed8, #1e40af); transform: translateY(-50%) scale(1.05); }
.floating-tab.hidden { transform: translateY(-50%) translateX(100px); opacity: 0; pointer-events: none; }
.floating-tab i { font-size: 1.3rem; writing-mode: horizontal-tb; }
.floating-tab-text { writing-mode: vertical-rl; }

/* 滑出面板 */
.floating-panel {
    position: fixed; top: 0; right: -420px; width: 400px; max-width: 90vw;
    height: 100vh; background: #fff; z-index: 9999;
    box-shadow: -5px 0 30px rgba(0,0,0,0.15);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column; overflow: hidden;
}
.floating-panel.active { right: 0; }

.floating-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px; background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff; flex-shrink: 0;
}
.floating-panel-header h3 { margin: 0; font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.floating-close {
    background: rgba(255,255,255,0.2); border: none; color: #fff;
    width: 32px; height: 32px; border-radius: 50%; font-size: 1.4rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s; line-height: 1;
}
.floating-close:hover { background: rgba(255,255,255,0.35); }

.floating-panel-body { flex: 1; overflow-y: auto; padding: 20px; }
.floating-intro { font-size: 0.9rem; color: #6b7280; margin-bottom: 16px; line-height: 1.5; }

.floating-form-group { margin-bottom: 14px; }
.floating-form-group label { display: block; font-size: 0.85rem; font-weight: 500; color: #374151; margin-bottom: 4px; }
.floating-form-group .required-star { color: #ef4444; }
.floating-form-group input,
.floating-form-group select,
.floating-form-group textarea {
    width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 6px;
    font-size: 0.9rem; font-family: inherit; transition: border-color 0.2s; box-sizing: border-box;
}
.floating-form-group input:focus,
.floating-form-group select:focus,
.floating-form-group textarea:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.floating-form-group textarea { resize: vertical; min-height: 80px; }

.floating-submit-btn {
    width: 100%; padding: 12px; background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff; border: none; border-radius: 6px; font-size: 1rem; font-weight: 600;
    cursor: pointer; transition: background 0.2s, transform 0.15s; margin-top: 8px;
}
.floating-submit-btn:hover { background: linear-gradient(135deg, #1d4ed8, #1e40af); transform: translateY(-1px); }

.floating-form-note { font-size: 0.75rem; color: #9ca3af; text-align: center; margin-top: 10px; }
.floating-form-note a { color: #2563eb; }

/* 响应式 */
@media (max-width: 480px) {
    .floating-panel { width: 100vw; max-width: 100vw; right: -100vw; }
    .floating-tab { padding: 12px 8px; font-size: 0.78rem; }
}

/* ============================================================
   博客文章布局：内容区 + 右侧边栏 + 上一篇/下一篇
   ============================================================ */
.article-layout {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}
.article-content-main {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.article-sidebar {
    width: 320px;
    flex-shrink: 0;
}
.article-header {
    margin-bottom: 2rem;
}
.article-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}
.article-meta {
    font-size: 0.9rem;
    color: #9ca3af;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}
.article-meta .cat-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 4px;
    font-size: 0.8rem;
    text-decoration: none;
}
.article-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #374151;
}
.article-body h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1f2937;
    margin: 2rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}
.article-body h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #374151;
    margin: 1.5rem 0 0.5rem;
}
.article-body p {
    margin-bottom: 1rem;
}
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}
.article-body ul, .article-body ol {
    margin: 0.75rem 0 1rem 1.5rem;
}
.article-body li {
    margin-bottom: 0.4rem;
}
.article-body blockquote {
    border-left: 4px solid #2563eb;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
    color: #4b5563;
}
.article-body strong {
    font-weight: 600;
    color: #1f2937;
}

/* 上一篇/下一篇导航 */
.prev-next-nav {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}
.pn-link {
    flex: 1;
    padding: 1rem;
    border-radius: 10px;
    text-decoration: none;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.pn-link:hover {
    background: #eff6ff;
    border-color: #2563eb;
}
.pn-label {
    font-size: 0.8rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pn-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pn-next { text-align: right; }
.pn-disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .article-layout {
        flex-direction: column;
        padding: 0 1rem;
    }
    .article-sidebar {
        width: 100%;
    }
    .article-content-main {
        padding: 1.25rem;
    }
    .article-header h1 {
        font-size: 1.4rem;
    }
    .prev-next-nav {
        flex-direction: column;
    }
    .pn-next { text-align: left; }
}

/* ============================================================
   侧边栏增强样式 — 彩色分类 + 编号推荐 + 精美排版
   ============================================================ */

/* 侧边栏卡片 */
.sidebar-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  margin-bottom: 1.5rem;
  border: 1px solid #f1f5f9;
  transition: box-shadow 0.3s;
}
.sidebar-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
}
.sidebar-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sidebar-card h4 i {
  font-size: 0.9rem;
  width: 20px;
  text-align: center;
}

/* 分类链接 — 彩色左框 + 图标底色 */
.cat-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  margin: 2px 0;
  color: #475569;
  text-decoration: none;
  font-size: 0.93rem;
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
  position: relative;
}
.cat-link:last-child { border-bottom: none; }
.cat-link:hover {
  background: #f1f5f9;
  color: #1e40af;
  border-left-color: #3b82f6;
  transform: translateX(3px);
}
.cat-link i {
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  transition: color 0.2s, transform 0.2s;
}
.cat-link:hover i {
  transform: scale(1.15);
}

/* 每个分类用不同的色系（nth-of-type 按顺序） */
.sidebar-card:first-of-type .cat-link:nth-of-type(1)  { --accent: #2563eb; }
.sidebar-card:first-of-type .cat-link:nth-of-type(1):hover { border-left-color: #2563eb; color: #1d4ed8; }
.sidebar-card:first-of-type .cat-link:nth-of-type(2)  { --accent: #0891b2; }
.sidebar-card:first-of-type .cat-link:nth-of-type(2):hover { border-left-color: #0891b2; color: #0e7490; }
.sidebar-card:first-of-type .cat-link:nth-of-type(3)  { --accent: #7c3aed; }
.sidebar-card:first-of-type .cat-link:nth-of-type(3):hover { border-left-color: #7c3aed; color: #6d28d9; }
.sidebar-card:first-of-type .cat-link:nth-of-type(4)  { --accent: #059669; }
.sidebar-card:first-of-type .cat-link:nth-of-type(4):hover { border-left-color: #059669; color: #047857; }
.sidebar-card:first-of-type .cat-link:nth-of-type(5)  { --accent: #ea580c; }
.sidebar-card:first-of-type .cat-link:nth-of-type(5):hover { border-left-color: #ea580c; color: #c2410c; }
.sidebar-card:first-of-type .cat-link:nth-of-type(6)  { --accent: #db2777; }
.sidebar-card:first-of-type .cat-link:nth-of-type(6):hover { border-left-color: #db2777; color: #be185d; }
.sidebar-card:first-of-type .cat-link:nth-of-type(7)  { --accent: #0284c7; }
.sidebar-card:first-of-type .cat-link:nth-of-type(7):hover { border-left-color: #0284c7; color: #0369a1; }
.sidebar-card:first-of-type .cat-link:nth-of-type(8)  { --accent: #9333ea; }
.sidebar-card:first-of-type .cat-link:nth-of-type(8):hover { border-left-color: #9333ea; color: #7e22ce; }
.sidebar-card:first-of-type .cat-link:nth-of-type(9)  { --accent: #65a30d; }
.sidebar-card:first-of-type .cat-link:nth-of-type(9):hover { border-left-color: #65a30d; color: #4d7c0f; }
.sidebar-card:first-of-type .cat-link:nth-of-type(10) { --accent: #b45309; }
.sidebar-card:first-of-type .cat-link:nth-of-type(10):hover { border-left-color: #b45309; color: #92400e; }

/* 分类图标底色微标 */
.sidebar-card:first-of-type .cat-link i {
  background: #f1f5f9;
  border-radius: 6px;
  padding: 4px;
  font-size: 0.8rem;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar-card:first-of-type .cat-link:hover i {
  background: #e0e7ff;
  color: #2563eb;
}

/* 推荐阅读 — 带序号圆形数字 */
.rec-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  margin: 2px 0;
  color: #475569;
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.rec-link:hover {
  background: #fef3c7;
  color: #92400e;
  transform: translateX(3px);
}
.rec-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}
.rec-link:hover .rec-num {
  background: linear-gradient(135deg, #f97316, #ef4444);
  transform: scale(1.1);
}
.rec-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}

/* 图片间距 */
.article-img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1.2rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 移动端：侧边栏放到底部时保持可读性 */
@media (max-width: 768px) {
  .sidebar-card {
    padding: 1.25rem;
  }
  .cat-link {
    padding: 0.55rem 0.6rem;
    font-size: 0.9rem;
  }
  .rec-link {
    padding: 0.5rem 0.6rem;
    font-size: 0.87rem;
  }
}

/* ============================================================
   文章正文高级排版 — 美观视觉设计
   ============================================================ */
.article-body {
  font-family: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.08rem;
  line-height: 1.9;
  color: #334155;
  letter-spacing: 0.01em;
}
.article-body p {
  margin-bottom: 1.3rem;
  text-align: justify;
}
.article-body h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: #0f172a;
  margin: 2.5rem 0 1rem;
  padding: 0.5rem 0;
  border-bottom: 3px solid #3b82f6;
  letter-spacing: 0.02em;
}
.article-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin: 1.8rem 0 0.75rem;
  padding-left: 0.75rem;
  border-left: 4px solid #3b82f6;
}
.article-body h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #475569;
  margin: 1.5rem 0 0.5rem;
}
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem auto;
  display: block;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s;
}
.article-body img:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.article-body ul, .article-body ol {
  margin: 0.75rem 0 1.5rem 1.5rem;
  padding: 0;
}
.article-body li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
  line-height: 1.8;
}
.article-body li::marker {
  color: #3b82f6;
  font-weight: 600;
}
.article-body blockquote {
  border-left: 4px solid #3b82f6;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border-radius: 0 10px 10px 0;
  color: #1e40af;
  font-style: italic;
  box-shadow: 0 2px 8px rgba(59,130,246,0.08);
}
.article-body blockquote p {
  margin-bottom: 0;
}
.article-body strong {
  font-weight: 700;
  color: #0f172a;
}
.article-body a {
  color: #2563eb;
  text-decoration: none;
  border-bottom: 1px solid rgba(37,99,235,0.3);
  transition: border-color 0.2s, color 0.2s;
}
.article-body a:hover {
  color: #1d4ed8;
  border-bottom-color: #1d4ed8;
}
.article-body code {
  background: #f1f5f9;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  color: #e11d48;
}
.article-body pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 1.5rem 0;
}
.article-body pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* 高亮提示框 */
.article-body .highlight-box {
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 10px;
  border-left: 5px solid;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.article-body .highlight-box.tip {
  background: #f0fdf4;
  border-color: #22c55e;
  color: #166534;
}
.article-body .highlight-box.warning {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #92400e;
}
.article-body .highlight-box.info {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1e40af;
}
.article-body .highlight-box.danger {
  background: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
}
.article-body .highlight-box strong {
  color: inherit;
}

/* 首段大字 */
.article-body p.lead {
  font-size: 1.2rem;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* 分隔线 */
.article-body hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
  margin: 2rem 0;
}

/* 表格 */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.article-body th {
  background: #3b82f6;
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
}
.article-body td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #f1f5f9;
}
.article-body tr:nth-child(even) td {
  background: #f8fafc;
}