/* ========================================
   凡谱科技 Finpu - 暖红色调企业官网
   ======================================== */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #c0392b;
    --primary-dark: #96281b;
    --primary-light: #e74c3c;
    --primary-soft: #fde8e6;
    --warm-bg: #fff9f5;
    --warm-card: #ffffff;
    --text-primary: #2c1810;
    --text-secondary: #5d4037;
    --text-muted: #8d6e63;
    --border-light: rgba(192, 57, 43, 0.12);
    --shadow-sm: 0 2px 12px rgba(139, 69, 19, 0.08);
    --shadow-md: 0 8px 30px rgba(139, 69, 19, 0.12);
    --shadow-lg: 0 16px 48px rgba(139, 69, 19, 0.16);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--warm-bg);
    color: var(--text-primary);
    line-height: 1.7;
    animation: fadeIn 0.8s ease-out;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ---------- Header / Navigation ---------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #d35400 100%);
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.logo h1 {
    font-size: 1.6em;
    font-weight: 700;
    color: #fff;
    letter-spacing: 3px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.logo-sub {
    font-size: 0.85em;
    color: rgba(255,255,255,0.75);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 8px;
}

nav ul li a {
    display: block;
    color: rgba(255,255,255,0.88);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 18px;
    border-radius: 25px;
    transition: var(--transition);
    letter-spacing: 1px;
}

nav ul li a:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
    transform: translateY(-1px);
}

/* ---------- Banner Hero Section ---------- */
#home {
    margin-top: 60px; /* header height */
}

.banner {
    position: relative;
    background: url('images/A_stunning_wide_website_banner_2026-10-11T04-31-45.png') no-repeat center center;
    background-size: cover;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(139, 0, 0, 0.55) 0%,
        rgba(180, 60, 20, 0.4) 40%,
        rgba(200, 100, 30, 0.25) 70%,
        rgba(220, 140, 50, 0.15) 100%
    );
    z-index: 1;
}

/* Sun decoration element */
.sun-decoration {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,200,80,0.25) 0%, rgba(255,150,50,0.1) 40%, transparent 70%);
    z-index: 1;
    animation: sunPulse 6s ease-in-out infinite;
}

@keyframes sunPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 0.9; }
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 40px 20px;
    max-width: 900px;
}

.banner h2 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: 4px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3), 0 0 60px rgba(255,150,50,0.2);
    line-height: 1.3;
    margin-bottom: 20px;
}

.banner-subtitle {
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 300;
    letter-spacing: 6px;
    opacity: 0.92;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* ---------- Section Common Styles ---------- */
.section-block {
    padding: 90px 20px;
    position: relative;
}

.section-alt {
    background: linear-gradient(180deg, #fff5f0 0%, var(--warm-bg) 100%);
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-light);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding: 6px 20px;
    border: 1.5px solid var(--primary-light);
    border-radius: 25px;
    background: rgba(231, 76, 60, 0.04);
}

.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.header-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #e67e22);
    border-radius: 2px;
    margin: 0 auto;
}

/* ---------- About Section ---------- */
.about-content {
    max-width: 860px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 22px;
    text-align: justify;
    line-height: 2;
}

.about-content .lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.9;
    padding: 0 20px;
}

.about-content .vision {
    text-align: center;
    font-weight: 500;
    color: var(--primary);
    font-size: 1.08rem;
    margin-top: 32px;
    padding: 20px 30px;
    background: linear-gradient(135deg, var(--primary-soft), #fef0ed);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

/* ---------- Services Grid ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    padding: 0 10px;
}

.service-card {
    background: var(--warm-card);
    border-radius: var(--radius-lg);
    padding: 42px 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #e67e22);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    color: var(--primary-light);
    transform: scale(1.08);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    letter-spacing: 1px;
}

.service-card p {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ---------- Contact Section ---------- */
.contact-box {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(145deg, #fff, #fffaf7);
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.contact-box::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(231,76,60,0.06) 0%, transparent 70%);
}

.contact-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 28px;
    color: var(--primary);
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-box p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 12px;
}

.contact-box strong {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
}

.contact-note {
    margin-top: 20px !important;
    font-size: 0.92rem !important;
    color: var(--text-muted) !important;
    font-style: italic;
}

/* ---------- Footer ---------- */
footer {
    background: linear-gradient(135deg, #2c1810 0%, #4a2c1e 50%, #5d3a28 100%);
    color: rgba(255,255,255,0.75);
    padding: 48px 20px;
    text-align: center;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 3px;
}

.footer-logo-en {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
}

footer p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.45);
    letter-spacing: 1px;
}

.icp-beian {
    margin-top: 12px !important;
    font-size: 0.82rem !important;
}

.icp-beian a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px dashed rgba(255,255,255,0.2);
    padding-bottom: 2px;
}

.icp-beian a:hover {
    color: rgba(255,255,255,0.75);
    border-bottom-color: rgba(255,255,255,0.5);
}

/* ---------- Animations ---------- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger service card animations */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.25s; }
.service-card:nth-child(3) { animation-delay: 0.4s; }

/* ---------- Responsive Design ---------- */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .header-inner {
        flex-direction: column;
        gap: 12px;
        padding: 12px 20px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    #home {
        margin-top: 100px;
    }

    .banner {
        min-height: 65vh;
    }

    .section-block {
        padding: 60px 16px;
    }

    .contact-box {
        padding: 36px 24px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.3em;
        letter-spacing: 2px;
    }

    nav ul li a {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .banner h2 {
        letter-spacing: 2px;
    }

    .banner-subtitle {
        letter-spacing: 3px;
    }
}
