/* 全局样式 */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
    --transition: all 0.3s ease;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--dark-color);
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

/* 首页横幅样式 */
.hero-section {
    position: relative;
    height: 600px;
    margin-top: 76px;
    overflow: hidden;
}

.carousel-item {
    position: relative;
    height: 600px;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 6s ease;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-item.active img {
    transform: scale(1);
}

.carousel-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 120px 0;
    background: linear-gradient(to right, 
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.7) 30%,
        rgba(0, 0, 0, 0.4) 60%,
        rgba(0, 0, 0, 0) 100%
    );
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease;
}

.carousel-item.active .carousel-caption {
    transform: translateY(0);
    opacity: 1;
}

.carousel-caption h1 {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease 0.2s;
}

.carousel-caption .lead {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease 0.4s;
}

.carousel-caption .btn {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease 0.6s;
}

.carousel-item.active .carousel-caption h1,
.carousel-item.active .carousel-caption .lead,
.carousel-item.active .carousel-caption .btn {
    transform: translateY(0);
    opacity: 1;
}

.carousel-indicators {
    margin-bottom: 3rem;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0;
    transition: all 0.3s ease;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    background-size: 50%;
}

.hero-section:hover .carousel-control-prev,
.hero-section:hover .carousel-control-next {
    opacity: 1;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .hero-section,
    .carousel-item {
        height: 500px;
    }

    .carousel-caption {
        padding: 60px 0;
    }

    .carousel-caption h1 {
        font-size: 2.5rem;
    }

    .carousel-caption .lead {
        font-size: 1.1rem;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 30px;
        height: 30px;
    }
}

/* 核心优势样式 */
.feature-card {
    padding: 2rem;
    text-align: center;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--light-color);
    color: var(--primary-color);
}

.icon-box i {
    font-size: 2rem;
}

/* 产品与服务样式 */
.service-card {
    height: 100%;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card .card {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 1rem;
}

.service-card .icon-box {
    width: 60px;
    height: 60px;
}

.service-card h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.service-card ul li {
    margin-bottom: 0.5rem;
    color: #666;
}

/* 接单平台和AI创作平台样式 */
.platform-features .icon-box,
.ai-features .icon-box {
    width: 50px;
    height: 50px;
    margin: 0;
    background: rgba(37, 99, 235, 0.1);
}

/* 联系我们样式 */
.contact-info {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.contact-info .info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-info .info-item:last-child {
    margin-bottom: 0;
}

.contact-info .icon-box {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-info .info-content h5 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.contact-info .info-content p {
    margin-bottom: 0.25rem;
    color: #666;
}

.contact-form-wrapper {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-label {
    color: var(--dark-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.map-wrapper {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-map {
    width: 100%;
    height: 400px;
    border: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .contact-info {
        margin-bottom: 2rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .contact-map {
        height: 300px;
    }
}

/* 页脚样式 */
.footer {
    background: var(--dark-color);
}

.footer h5 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.footer ul li {
    margin-bottom: 1rem;
}

.footer ul li i {
    margin-right: 0.5rem;
}

.social-links a {
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    opacity: 0.8;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .feature-card {
        margin-bottom: 1rem;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
}

/* 动画效果 */
[data-aos] {
    opacity: 0;
    transition: all 0.5s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* 按钮样式 */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 标题样式 */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* 关于我们样式 */
.about-content {
    color: #666;
}

.mission-vision h5 {
    color: var(--dark-color);
    display: flex;
    align-items: center;
}

.mission-vision h5 i {
    color: var(--primary-color);
}

.value-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.value-item h6 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.value-item p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.about-image-wrapper {
    position: relative;
    padding: 1rem;
}

.experience-badge {
    position: absolute;
    bottom: 2rem;
    right: 0;
    background: var(--primary-color);
    color: #fff;
    padding: 1rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.experience-badge .number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
}

/* 合作伙伴样式 */
.partner-logo {
    padding: 1.5rem;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    transition: var(--transition);
}

.partner-logo:hover {
    transform: translateY(-5px);
}

.partner-logo img {
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* 核心产品样式 */
.product-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(37, 99, 235, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-content {
    padding: 2rem;
}

.product-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.product-content p {
    color: #666;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #666;
}

.feature-list li i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .product-card {
        margin-bottom: 2rem;
    }
    
    .product-image img {
        height: 200px;
    }
}

/* 客户案例样式 */
.case-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-10px);
}

.case-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.case-card:hover .case-image img {
    transform: scale(1.1);
}

.case-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
}

.case-content {
    padding: 2rem;
}

.case-content h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.case-content p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.case-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
}

.info-item i {
   
    margin-right: 0.5rem;
    margin: 20px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .case-card {
        margin-bottom: 2rem;
    }
    
    .case-image {
        height: 200px;
    }
    
    .case-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* 数据统计样式 */
.stat-item {
    padding: 2rem 1rem;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-number .plus {
    font-size: 2rem;
    margin-left: 0.25rem;
}

.stat-item h4 {
    font-size: 1.25rem;
    margin: 0;
    opacity: 0.9;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .stat-item {
        padding: 1.5rem 1rem;
    }
    
    .stat-icon {
        font-size: 2.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-number .plus {
        font-size: 1.75rem;
    }
    
    .stat-item h4 {
        font-size: 1.1rem;
    }
}

/* 新闻动态样式 */
.news-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-10px);
}

.news-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: #fff;
    padding: 0.5rem;
    border-radius: 0.5rem;
    text-align: center;
    min-width: 60px;
}

.news-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.news-date .month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.news-content {
    padding: 2rem;
}

.news-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.news-meta span {
    display: flex;
    align-items: center;
}

.news-meta i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.news-content h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    line-height: 1.4;
}

.news-content p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.news-content .btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.news-content .btn-link i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.news-content .btn-link:hover i {
    transform: translateX(5px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .news-card {
        margin-bottom: 2rem;
    }
    
    .news-image {
        height: 200px;
    }
    
    .news-content h4 {
        font-size: 1.1rem;
    }
}

/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .back-to-top {
        right: 1rem;
        bottom: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* 复制提示样式 */
.copy-tooltip {
    position: absolute;
    background: var(--dark-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeInOut 2s ease;
    pointer-events: none;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* 表单提交按钮加载状态 */
.btn .spinner-border {
    width: 1rem;
    height: 1rem;
}

/* 深色主题样式 */
[data-theme="dark"] {
    --primary-color: #60a5fa;
    --secondary-color: #3b82f6;
    --dark-color: #f3f4f6;
    --light-color: #1f2937;
    --bg-color: #111827;
    --card-bg: #1f2937;
    --text-color: #f3f4f6;
    --border-color: #374151;
}

[data-theme="dark"] body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

[data-theme="dark"] .navbar {
    background-color: var(--card-bg) !important;
}

[data-theme="dark"] .navbar-light .navbar-nav .nav-link {
    color: var(--text-color);
}

[data-theme="dark"] .feature-card,
[data-theme="dark"] .product-card,
[data-theme="dark"] .service-card .card,
[data-theme="dark"] .case-card,
[data-theme="dark"] .news-card,
[data-theme="dark"] .contact-form-wrapper,
[data-theme="dark"] .contact-info {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .bg-light {
    background-color: var(--bg-color) !important;
}

[data-theme="dark"] .text-dark {
    color: var(--text-color) !important;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background-color: var(--card-bg);
    border-color: var(--primary-color);
    color: var(--text-color);
}

[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
}

[data-theme="dark"] .section-subtitle {
    color: #9ca3af;
}

/* 主题切换按钮动画 */
#themeToggle {
    position: relative;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

#themeToggle:hover {
    background: rgba(var(--primary-color-rgb), 0.1);
}

#themeToggle i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

#themeToggle i.rotate {
    transform: rotate(360deg);
}

/* 轮播图进度条 */
.carousel-progress {
    position: absolute;
    bottom: -10px;
    left: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.1s linear;
}

/* 轮播图图片加载动画 */
.carousel-item img {
    opacity: 0;
    transition: opacity 0.5s ease;
} 