/* ========================================
   易为数据 EWAYDATA - 企业网站样式
   主色调：橙色系（参考Logo）
   ======================================== */

/* ========== CSS 变量 ========== */
:root {
    --primary: #E8611A;
    --primary-dark: #C85015;
    --primary-light: #F0783A;
    --primary-lighter: #FDE8D8;
    --primary-lightest: #FFF5EE;
    --secondary: #1A3A5C;
    --text-dark: #1A1A2E;
    --text-body: #4A4A5A;
    --text-light: #8A8A9A;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FB;
    --bg-gray: #EEF0F4;
    --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 8px 40px rgba(0,0,0,0.12);
    --shadow-orange: 0 4px 20px rgba(232,97,26,0.2);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

/* ========== 基础重置 ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    color: var(--text-body);
    line-height: 1.7;
    background: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ========== 导航栏 ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.company-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.company-subtitle {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--primary);
    letter-spacing: 2px;
    line-height: 1.2;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: block;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--primary-lightest);
}

/* 移动端汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--secondary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== Hero Banner ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #FFF5EE 0%, #FDE8D8 30%, #FCD5B5 60%, #FFF5EE 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 140%;
    background: radial-gradient(ellipse at center, rgba(232,97,26,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(26,58,92,0.04) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 24px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-body);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(232,97,26,0.35);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* 滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator span::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* ========== 通用区块样式 ========== */
.section {
    padding: 100px 0;
}

.section:nth-child(even) {
    background: var(--bg-light);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.section-divider {
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    margin: 0 auto 16px;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 3px;
}

/* ========== 关于我们 ========== */
.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
    font-weight: 600;
}

.about-text p {
    margin-bottom: 14px;
    font-size: 0.98rem;
    color: var(--text-body);
    line-height: 1.9;
}

.about-text strong {
    color: var(--primary);
}

.about-text em {
    font-style: normal;
    color: var(--primary);
    font-weight: 600;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.stat-item {
    background: var(--bg-white);
    padding: 32px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-lighter);
}

.stat-number {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-plus {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    vertical-align: super;
}

.stat-label {
    display: block;
    margin-top: 8px;
    font-size: 0.88rem;
    color: var(--text-light);
}

/* ========== 服务项目 ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-white);
    padding: 36px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 56px;
    height: 56px;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.88rem;
    color: var(--text-body);
    margin-bottom: 16px;
    line-height: 1.7;
}

.service-card ul {
    border-top: 1px solid var(--bg-gray);
    padding-top: 14px;
}

.service-card ul li {
    font-size: 0.84rem;
    color: var(--text-light);
    padding: 4px 0;
    position: relative;
    padding-left: 18px;
}

.service-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-light);
}

/* ========== 核心优势 ========== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.advantage-item {
    background: var(--bg-white);
    padding: 36px 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
}

.advantage-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.advantage-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-lighter);
    line-height: 1;
    margin-bottom: 12px;
}

.advantage-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.advantage-item p {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.7;
}

/* ========== 联系我们 ========== */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
}

.contact-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
    border-color: var(--primary-lighter);
}

.contact-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    color: var(--primary);
    background: var(--primary-lightest);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.contact-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.88rem;
    color: var(--text-light);
}



/* ========== 页脚 ========== */
.footer {
    background: var(--secondary);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand h3 {
    color: #fff;
    font-size: 1.05rem;
    margin: 16px 0 8px;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--primary-light);
    letter-spacing: 2px;
}

.footer-links h4,
.footer-services h4 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-light);
}

.footer-services ul li {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.footer-qr {
    text-align: center;
}

.qr-placeholder {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-qr p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

.footer-bottom a {
    color: rgba(255,255,255,0.4);
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--primary-light);
}

.footer-bottom p {
    margin-bottom: 4px;
}

/* ========== 动画效果 ========== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Toast 提示 ========== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--secondary);
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background: linear-gradient(135deg, #22C55E, #16A34A);
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-desc {
        font-size: 0.9rem;
    }

    .section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .advantages-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 40px;
        gap: 4px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: 12px 16px;
        font-size: 1rem;
    }

    .hero-logo {
        width: 72px;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 260px;
    }

    .hero-title {
        font-size: 1.35rem;
    }

    .contact-form {
        padding: 24px;
    }
}
