/* 佛山企小策信息咨询有限公司 - 前端样式 */

:root {
    --primary: #1a56db;
    --primary-dark: #1344b0;
    --primary-light: #e8effc;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-gray: #f9fafb;
    --border: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

/* Header */
.site-header {
    background: var(--bg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 600;
}

.logo:hover {
    color: var(--primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.logo-text {
    font-size: 16px;
    max-width: 280px;
    line-height: 1.3;
}

.main-nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    color: var(--text-light);
    border-radius: var(--radius);
    font-size: 15px;
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: 0.3s;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #2563eb 50%, #3b82f6 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.8);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.btn-light {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

.btn-light:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--text);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-light);
    margin-bottom: 16px;
}

.card-link {
    font-weight: 500;
}

/* About Preview */
.about-preview {
    background: var(--bg-gray);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-item {
    background: var(--bg);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-light);
    font-size: 14px;
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
    color: #fff;
    text-align: center;
    padding: 64px 0;
}

.cta-section h2 {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.cta-section p {
    opacity: 0.9;
    margin-bottom: 24px;
}

/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-banner h1 {
    font-size: 2.25rem;
    margin-bottom: 8px;
}

.page-banner p {
    opacity: 0.9;
}

/* Content Page */
.content-page {
    max-width: 900px;
}

.content-block {
    margin-bottom: 48px;
}

.content-block h2 {
    font-size: 1.75rem;
    margin-bottom: 24px;
    color: var(--primary);
}

.rich-text p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: var(--text-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.value-card {
    background: var(--bg-gray);
    border-radius: 12px;
    padding: 28px;
    text-align: center;
}

.value-card h3 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.value-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* Services */
.service-block {
    margin-bottom: 64px;
    padding-bottom: 64px;
    border-bottom: 1px solid var(--border);
}

.service-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.service-icon {
    font-size: 2.5rem;
}

.service-header h2 {
    font-size: 1.75rem;
    color: var(--primary);
}

.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.feature-list li {
    padding: 12px 16px;
    background: var(--primary-light);
    border-radius: var(--radius);
    color: var(--primary-dark);
    font-size: 14px;
}

.feature-list li::before {
    content: "✓ ";
    font-weight: 700;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info h2 {
    font-size: 1.75rem;
    margin-bottom: 32px;
    color: var(--primary);
}

.contact-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.contact-label {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 1.05rem;
    color: var(--text);
}

.contact-value a {
    color: var(--text);
}

.contact-value a:hover {
    color: var(--primary);
}

.map-placeholder {
    background: var(--bg-gray);
    border-radius: 12px;
    height: 100%;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.map-placeholder p {
    font-size: 1.1rem;
    color: var(--text);
}

.map-hint {
    color: var(--text-light) !important;
    font-size: 14px !important;
    margin-top: 8px;
}

/* Footer */
.site-footer {
    background: #111827;
    color: #d1d5db;
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-col h3,
.footer-col h4 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 1rem;
}

.footer-slogan {
    color: #9ca3af;
    font-size: 14px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
    font-size: 14px;
    color: #9ca3af;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
}

.footer-bottom p {
    margin-bottom: 4px;
}

.icp a {
    color: #9ca3af;
}

.icp a:hover {
    color: #d1d5db;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow);
    }

    .main-nav.open {
        display: flex;
    }

    .logo-text {
        font-size: 14px;
        max-width: 180px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .about-grid,
    .contact-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 48px 0;
    }
}
