/* ==========================================================================
   珠海长歌行科技有限公司 - 企业官网共享样式
   ========================================================================== */

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

:root {
    --primary: #1e3a5f;
    --primary-light: #2c5282;
    --primary-dark: #15293f;
    --accent: #c8a45c;
    --accent-light: #d4b87a;
    --bg-white: #ffffff;
    --bg-light: #f7f8fa;
    --bg-gray: #eef1f5;
    --text-dark: #1a1a2e;
    --text-body: #4a5568;
    --text-light: #8898aa;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 8px;
    --radius-lg: 16px;
    --max-width: 1200px;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.4;
}

.section-title {
    text-align: center;
    margin-bottom: 12px;
    font-size: 2rem;
    letter-spacing: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 48px;
    letter-spacing: 1px;
}

.section-divider {
    width: 50px;
    height: 3px;
    background: var(--accent);
    margin: 16px auto 24px;
    border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 36px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 164, 92, 0.4);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-dark {
    background: var(--primary);
    color: #fff;
}

.btn-dark:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.4);
}

/* ---------- Navigation Bar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

.nav-logo .logo-img {
    height: 42px;
    width: auto;
}

.nav-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 900;
}

.nav-logo .logo-text span {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-menu a {
    padding: 8px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-body);
    border-radius: var(--radius);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
    border-radius: 1px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 24px;
}

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

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero Section ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(200, 164, 92, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(44, 82, 130, 0.4) 0%, transparent 50%);
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image:
        linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 680px;
    color: #fff;
    padding: 80px 0;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(200, 164, 92, 0.2);
    border: 1px solid rgba(200, 164, 92, 0.4);
    color: var(--accent-light);
    border-radius: 20px;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 3px;
    line-height: 1.3;
}

.hero h1 .highlight {
    color: var(--accent);
}

.hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    letter-spacing: 1px;
    line-height: 2;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-align: center;
    animation: bounce 2s infinite;
}

.hero-scroll .arrow {
    display: block;
    margin-top: 4px;
    font-size: 1.2rem;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- Page Banner (for subpages) ---------- */
.page-banner {
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 72px;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 70%, rgba(200, 164, 92, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(44, 82, 130, 0.3) 0%, transparent 50%);
}

.page-banner .container {
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    font-size: 2.5rem;
    color: #fff;
    letter-spacing: 4px;
    margin-bottom: 12px;
}

.page-banner p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    letter-spacing: 2px;
}

.page-banner .banner-divider {
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin: 16px auto;
    border-radius: 1px;
}

/* ---------- Section Spacing ---------- */
.section {
    padding: 80px 0;
}

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

/* ---------- Cards ---------- */
.card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-brand .footer-logo .logo-img {
    height: 42px;
    width: auto;
}

.footer-brand .footer-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1.3rem;
    font-weight: 900;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.5);
}

.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-col ul li a:hover {
    color: var(--accent-light);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
}

.footer-contact li .icon {
    color: var(--accent);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
    color: var(--accent-light);
}

/* ---------- Scroll Animation ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 16px 0;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-menu a {
        display: block;
        text-align: center;
        padding: 12px;
    }

    .nav-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .page-banner h1 {
        font-size: 1.8rem;
    }

    .section {
        padding: 50px 0;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
