/* ===========================================
   EFCMS PC端现代化样式文件
   采用现代设计语言，提供优雅的用户体验
   =========================================== */

/* ===== 全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #34495e;
    background: #ecf0f1;
    min-height: 100vh;
}

/* ===== 页面容器 ===== */
.page-container {
    min-height: 100vh;
    background: #ecf0f1;
}

/* ===== 顶部导航栏 ===== */
.modern-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
}

.navbar-brand i {
    color: #667eea;
    margin-right: 10px;
    font-size: 28px;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 30px;
}

.navbar-nav a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-modern {
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary-modern {
    background: #4a90e2;
    color: white;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.btn-outline-modern {
    background: transparent;
    color: #4a90e2;
    border: 2px solid #4a90e2;
}

.btn-outline-modern:hover {
    background: #4a90e2;
    color: white;
}

/* ===== 主要内容区域 ===== */
.main-content {
    padding-top: 90px;
    min-height: calc(100vh - 90px);
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ===== 页面标题区域 ===== */
.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    color: #667eea;
}

.page-header p {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== 卡片组件 ===== */
.card-modern {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.card-header-modern {
    padding: 30px 30px 0;
}

.card-body-modern {
    padding: 30px;
}

.card-title-modern {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.card-text-modern {
    color: #7f8c8d;
    line-height: 1.6;
}

/* ===== 按钮组件 ===== */
.btn-modern-lg {
    padding: 15px 40px;
    font-size: 16px;
    border-radius: 30px;
}

.btn-modern-sm {
    padding: 8px 20px;
    font-size: 14px;
    border-radius: 20px;
}

/* ===== 表单组件 ===== */
.form-modern {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

.form-group-modern {
    margin-bottom: 25px;
}

.form-label-modern {
    display: block;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control-modern {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control-modern:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control-modern::placeholder {
    color: #adb5bd;
}

/* ===== 服务卡片 ===== */
.services-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card-modern {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.service-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.service-image-modern {
    height: 200px;
    background: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.service-image-modern i {
    font-size: 4rem;
    color: white;
    opacity: 0.8;
}

.service-content-modern {
    padding: 30px;
}

.service-title-modern {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.service-description-modern {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-price-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.price-amount-modern {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.service-actions-modern {
    margin-top: 15px;
}

/* ===== 网格布局 ===== */
.grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-2-modern {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3-modern {
    grid-template-columns: repeat(3, 1fr);
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .navbar-content {
        padding: 0 15px;
        height: 60px;
    }

    .navbar-brand {
        font-size: 20px;
    }

    .navbar-nav {
        display: none;
    }

    .main-content {
        padding-top: 80px;
    }

    .content-wrapper {
        padding: 20px 15px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .services-grid-modern {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-modern {
        padding: 30px 20px;
        margin: 0 15px;
    }

    .card-body-modern {
        padding: 20px;
    }

    /* 制作流程在小屏幕上可以换行 */
    .main-content > section > .content-wrapper > div:last-child {
        flex-wrap: wrap;
        gap: 8px;
    }

    .main-content > section > .content-wrapper > div:last-child > div.card-modern {
        width: 100px !important;
        margin-bottom: 10px;
    }

    .main-content > section > .content-wrapper > div:last-child > div[style*="display: flex"] {
        margin: 0 5px;
    }

    /* 立即制作您的专业网站部分在小屏幕上的布局 */
    .main-content > section > .content-wrapper > div[style*="display: grid"] {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* ===== 动画效果 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== 加载状态 ===== */
.loading-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.spinner-modern {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f4;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== 消息提示 ===== */
.alert-modern {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: none;
}

.alert-success-modern {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-error-modern {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-info-modern {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* ===== 轮播组件 ===== */
.carousel-section {
    position: relative;
    height: calc(80vh + 90px);
    min-height: 690px;
    max-height: 890px;
    overflow: hidden;
    margin-top: -90px;
    padding-top: 90px;
}

.carousel-container {
    position: relative;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.carousel-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    line-height: 1.2;
}

/* 轮播按钮样式 */
.carousel-actions .btn-modern {
    margin: 0 5px;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.carousel-actions .btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

.carousel-actions .btn-modern:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.carousel-content p {
    font-size: 1.3rem;
    margin-bottom: 15px;
    opacity: 0.9;
    line-height: 1.6;
}

.version-info {
    margin: 30px 0;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    display: inline-block;
}

.version-info p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

.carousel-actions {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.carousel-indicators {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* ===== 页脚 ===== */
.footer-modern {
    background: #101010;
    color: white;
    padding: 50px 0 30px;
    margin-top: 80px;
}

.footer-content-modern {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section-modern h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section-modern p,
.footer-section-modern a {
    color: #bdc3c7;
    text-decoration: none;
    line-height: 1.6;
}

.footer-section-modern a:hover {
    color: #42a5f5;
}

.footer-bottom-modern {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid #37474f;
    color: #90a4ae;
}

/* ===== 页面区域特效 ===== */

/* 立即制作您的专业网站 - 服务特性项特效 */
.service-feature-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-feature-item:hover {
    transform: translateY(-8px);
}

.service-feature-item:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.service-feature-item:hover .service-title {
    color: #4a90e2;
}

.service-feature-item:hover .service-desc {
    color: #34495e;
}

.service-icon {
    transition: all 0.3s ease;
}

/* 模版展示 - 卡片特效 */
.template-card {
    transition: all 0.4s ease;
    overflow: hidden;
}

.template-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.template-card:hover .template-header {
    transform: scale(1.05);
}

.template-card:hover .template-icon {
    transform: scale(1.2) rotate(10deg);
    animation: pulse 2s infinite;
}

.template-card:hover .template-title {
    color: #4a90e2;
}

.template-card:hover .template-desc {
    color: #34495e;
}

.template-card:hover .template-btn {
    background: linear-gradient(135deg, #42a5f5, #1e88e5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 165, 245, 0.3);
}

.template-header {
    transition: all 0.4s ease;
}

.template-icon {
    transition: all 0.3s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(1.2) rotate(10deg); }
    50% { transform: scale(1.3) rotate(15deg); }
}

/* 我们的服务 - 卡片特效 */
.service-card {
    transition: all 0.4s ease;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.service-card:hover .service-icon-large {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.service-card:hover .service-title {
    color: #4a90e2;
    transform: translateX(5px);
}

.service-card:hover .service-desc {
    color: #34495e;
    transform: translateX(3px);
}

.service-card:hover .service-btn {
    background: linear-gradient(135deg, #42a5f5, #1e88e5);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(66, 165, 245, 0.4);
}

.service-icon-large {
    transition: all 0.4s ease;
}

.service-title,
.service-desc {
    transition: all 0.3s ease;
}

/* 为什么选择 EFCMS - 卡片特效 */
.choice-card {
    transition: all 0.3s ease;
    position: relative;
}

.choice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(74, 144, 226, 0.05));
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 15px;
}

.choice-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.choice-card:hover::before {
    opacity: 1;
}

.choice-card:hover .choice-icon {
    transform: scale(1.2) rotate(15deg);
    color: #4a90e2;
}

.choice-card:hover .choice-title {
    color: #4a90e2;
    transform: translateX(8px);
}

.choice-card:hover .choice-desc {
    color: #34495e;
    transform: translateX(5px);
}

.choice-icon {
    transition: all 0.3s ease;
}

.choice-title,
.choice-desc {
    transition: all 0.3s ease;
}

/* 最近新闻 - 卡片特效 */
.news-card {
    transition: all 0.4s ease;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.news-card:hover .news-header {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.news-card:hover .news-icon {
    transform: scale(1.3) rotate(20deg);
    animation: bounce 1s ease-in-out;
}

.news-card:hover .news-title {
    color: #4a90e2;
    transform: translateX(5px);
}

.news-card:hover .news-desc {
    color: #34495e;
    transform: translateX(3px);
}

.news-card:hover .news-btn {
    background: linear-gradient(135deg, #42a5f5, #1e88e5);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(66, 165, 245, 0.3);
}

.news-header {
    transition: all 0.4s ease;
}

.news-icon {
    transition: all 0.3s ease;
}

.news-title,
.news-desc {
    transition: all 0.3s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: scale(1.3) rotate(20deg); }
    40% { transform: scale(1.4) rotate(25deg); }
    60% { transform: scale(1.35) rotate(22deg); }
}

/* 制作流程 - 统一卡片高度 */
.process-card {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== 工具类 ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }

.justify-center { justify-content: center; }
.align-center { align-items: center; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }
