:root {
    --primary: #FF865A;
    --secondary: #2D82B7;
    --success: #4CAF50;
    --warning: #FFC107;
    --info: #17A2B8;
    --dark: #343A40;
    --light: #F8F9FA;
    --gradient-primary: linear-gradient(135deg, #FF865A 0%, #FF9B7A 100%);
    --gradient-hero: linear-gradient(135deg, rgba(255, 134, 90, 0.95) 0%, rgba(45, 130, 183, 0.9) 100%);
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

li,
ul {
    padding: 0;
    margin: 0;
    list-style: none
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 动画关键帧 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 滚动触发动画 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 导航栏定制样式 */
.navbar {
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

.navbar-brand img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
}

.nav-link {
    font-weight: 500;
    color: #333 !important;
    position: relative;
    padding: 0.5rem 1rem !important;
    transition: all 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
    left: 15%;
}

.nav-link.active {
    color: var(--primary) !important;
}

.navbar-toggler:focus {
    box-shadow: none;
}

@media (max-width: 991px) {
    .navbar-collapse {
        padding: 1rem 0;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .nav-item {
        margin: 0.5rem 0;
    }

    .nav-link {
        padding: 0.8rem 1.5rem !important;
    }

    .navbar-brand img {
        width: 40px !important;
        height: 40px !important;
    }

    .btn-primary {
        width: 100%;
        margin-top: 1rem;
    }
}

.hero-banner {
    background: #FF865A;
    padding: 100px 0 80px;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle fill="rgba(255,255,255,0.03)" cx="50" cy="50" r="40"/></svg>') repeat;
    animation: float 6s ease-in-out infinite;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    animation: fadeInUp 1s ease 0.2s both;
    line-height: 1.2;
}

.hero-title .highlight {
    color: #FFD700;
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background: #FFD700;
    transform: scaleX(0);
    animation: scaleIn 0.6s ease 1.2s both;
}

@keyframes scaleIn {
    to {
        transform: scaleX(1);
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 1rem;
    animation: fadeInUp 1s ease 0.6s both;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-item strong {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFD700;
}

.stat-divider {
    margin: 0 0.5rem;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .stat-divider {
        display: none;
    }

    .hero-stats {
        flex-direction: column;
        gap: 0.8rem;
    }
}

.hero-btn {
    padding: 15px 40px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.8s both;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 1s both;
}

.trust-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.value-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
    background-color: white;
}

.value-card:hover {
    transform: translateY(-5px);
}


/* 定制步骤样式 */
#process .d-flex {
    padding: 1.2rem;
    border-radius: 12px;
    transition: background 0.3s;
}

#process .d-flex:hover {
    background: rgba(245, 245, 245, 0.8);
}

/*  */
.section-1 {
    text-align: center;
}

.section-1 img {
    display: block;
    height: 504px;
    margin-bottom: 48px
}

/* 有赞社区团购能做什么 */
.section-3 {
    text-align: center;
}

.section-3 .system-list {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-bottom: 48px;
    margin-top: 40px;
}

.section-3 .system-list .system-item {
    width: calc(100% / 4 - 20px);
    -webkit-box-shadow: 0 8px 30px rgba(61, 67, 77, .08);
    box-shadow: 0 8px 30px rgba(61, 67, 77, .08);
    background-position: center 35px;
    background-repeat: no-repeat;
    padding: 120px 0 24px;
    background-color: white;
    border-radius: .25rem;
}
.section-3 .system-list .system-item.agent {
    background-image: url("./state/agent.png");
    background-size: 55px 49px
}
.section-3 .system-list .system-item.merchant {
    background-image: url("./state/merchant.png");
    background-size: 55px 49px
}

.section-3 .system-list .system-item.mission {
    background-image: url("./state/mission.png");
    background-size: 60px 49px
}

.section-3 .system-list .system-item.consumer {
    background-image: url("./state/consumer.png");
    background-size: 58px 54px
}

.section-3 .system-list .system-item dt {
    font-size: 24px;
    line-height: 28px;
    color: #39393a;
    margin-bottom: 12px
}

.section-3 .system-list .system-item .detail-list {
    display: inline-block
}

.section-3 .system-list .system-item .detail-list li {
    text-align: left;
    font-size: 15px;
    line-height: 30px;
    color: #7a7c7d
}

/* 客服浮动右下角浮动 */
.float-btn:hover {
    transform: translateY(-5px);
}
.float-btn {
    position: fixed;
    right: 50px;
    bottom: 50px;
    z-index: 999;
    transition: all 0.3s ease;
}

/* 新增样式：关于我们 */
.bg-gradient-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.about-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.about-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.vision-card {
    background: #FF865A;
    border-radius: 20px;
    color: white;
    box-shadow: 0 10px 40px rgba(255, 134, 90, 0.3);
}

.vision-card h3,
.vision-card .lead,
.vision-card p {
    color: white !important;
}

.vision-card .text-muted {
    color: rgba(255, 255, 255, 0.9) !important;
}

.vision-item {
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.vision-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.vision-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 0.5rem;
}

.vision-label {
    font-size: 0.95rem;
    opacity: 0.95;
}

/* 常见问题FAQ */
.faq-item {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    border-color: var(--primary);
}

.faq-question {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.faq-answer {
    line-height: 1.8;
    margin-bottom: 0;
}

.faq-answer strong {
    color: var(--primary);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .hero-banner {
        padding: 60px 0 50px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .vision-number {
        font-size: 2rem;
    }

    .faq-item {
        padding: 20px;
    }

    .float-btn {
        right: 20px;
        bottom: 20px;
        width: 11rem !important;
    }

    .float-btn img {
        height: 100px !important;
    }
}

/* 平台特色卡片动画增强 */
.value-card {
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transition: left 0.5s ease;
}

.value-card:hover::before {
    left: 0;
}

/* 合作案例卡片增强 */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15) !important;
}

/* 导航栏增强 */
.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* 按钮动效 */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* 统计数据动画 */
@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stat-item strong {
    animation: countUp 0.8s ease 0.8s both;
}

/* 平台介绍版块 */
#platform-intro {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.model-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.model-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.model-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-core {
    border: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.platform-core::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 134, 90, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.consumer-card {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 12px;
}

.value-card-2 {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.value-card-2:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.value-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.scenario-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.scenario-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

@media (max-width: 768px) {
    .model-card {
        margin-bottom: 1rem;
    }

    .value-card-2 {
        margin-bottom: 1rem;
    }

    .scenario-card {
        margin-bottom: 0.8rem;
    }

    .model-icon {
        width: 60px;
        height: 60px;
    }

    .model-icon i {
        font-size: 1.5rem;
    }
}

/* 团购系统展示版块 */
.system-showcase {
    position: relative;
}

.phone-mockup {
    position: relative;
    display: inline-block;
    max-width: 400px;
}

.phone-frame {
    background: linear-gradient(145deg, #2c3e50 0%, #34495e 100%);
    border-radius: 30px;
    padding: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.phone-screen {
    background: white;
    border-radius: 20px;
    overflow: hidden;
}

.phone-screen img {
    width: 100%;
    height: auto;
    display: block;
}

.floating-tag {
    position: absolute;
    background: white;
    padding: 10px 16px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    animation: float 3s ease-in-out infinite;
    z-index: 10;
}

.floating-tag.tag-1 {
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.floating-tag.tag-2 {
    top: 50%;
    left: -30px;
    animation-delay: 1s;
}

.floating-tag.tag-3 {
    bottom: 15%;
    right: -10px;
    animation-delay: 2s;
}

.function-list {
    position: relative;
}

.function-item {
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.function-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary);
}

.function-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

@media (max-width: 991px) {
    .phone-mockup {
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .floating-tag {
        font-size: 12px;
        padding: 8px 12px;
    }

    .floating-tag.tag-1 {
        right: -10px;
    }

    .floating-tag.tag-2 {
        left: -15px;
    }
}

/* 用户评价卡片样式 */
.testimonial-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.testimonial-result {
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 14px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 200px;
    right: 50px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
    box-shadow: 0 4px 15px rgba(255, 134, 90, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .back-to-top {
        right: 20px;
        bottom: 180px;
    }
}
