/* ===== 精简版 sections.css ===== */

/* 英雄区域 - 修复版 */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.hero-content {
    position: relative;
    z-index: 20;
    max-width: 650px;
    padding: 40px 0;
}

.hero h2 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--white), #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 550px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-features {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-feature i {
    color: var(--secondary);
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

.hero-animation {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80');
    background-size: cover;
    background-position: center;
    mask: linear-gradient(270deg, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
    z-index: 10;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.floating-element {
    position: absolute;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.7);
    animation: float 6s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.floating-element.element-1 { top: 20%; right: 20%; animation-delay: 0s; }
.floating-element.element-2 { top: 60%; right: 30%; animation-delay: 1.5s; }
.floating-element.element-3 { top: 35%; right: 15%; animation-delay: 3s; }
.floating-element.element-4 { top: 70%; right: 25%; animation-delay: 4.5s; }

/* 动画关键帧 */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    25% { transform: translateY(-20px) rotate(5deg) scale(1.1); }
    50% { transform: translateY(-10px) rotate(-5deg) scale(1.05); }
    75% { transform: translateY(-15px) rotate(3deg) scale(1.08); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* 通用区块样式 */
.services, .ecommerce-solutions, .hosting-solutions, .pricing-reference, .portfolio, .about, .contact, .news-section {
    padding: 100px 0;
}

.services { background: var(--white); }
.ecommerce-solutions, .pricing-reference, .about { background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); }
.portfolio, .contact { background: var(--white); }
.news-section { background: var(--white); border-top: 1px solid var(--gray-light); }

/* 网格布局 */
.services-grid, .ecommerce-grid, .hosting-grid, .pricing-cards, .portfolio-grid, .news-grid {
    display: grid;
    gap: 30px;
    padding: 0 20px;
}

.services-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.ecommerce-grid { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
.hosting-grid, .pricing-cards, .portfolio-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.news-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-bottom: 50px; }

/* 通用卡片样式 */
.service-card, .platform-card, .hosting-card, .pricing-card, .news-category {
    background: var(--white);
    border-radius: 12px;
    padding: 35px 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-light);
    position: relative;
    overflow: hidden;
}

.service-card::before, .platform-card::before, .hosting-card::before, .pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.service-card:hover, .platform-card:hover, .hosting-card:hover, .pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* 图标样式 */
.service-icon, .platform-icon, .hosting-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon, .platform-card:hover .platform-icon, .hosting-card:hover .hosting-icon {
    transform: scale(1.1) rotate(5deg);
}

/* 文本样式 */
.service-card h3, .platform-card h3, .hosting-card h3, .pricing-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark);
}

.service-card p, .platform-card p, .hosting-card p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* 列表样式 */
.service-features, .platform-card ul, .hosting-card ul, .pricing-features {
    list-style: none;
    text-align: left;
    margin: 0;
    padding: 0;
}

.service-features li, .platform-card li, .hosting-card li {
    padding: 10px 0;
    color: var(--gray);
    border-bottom: 1px solid var(--gray-light);
    position: relative;
    padding-left: 28px;
    font-size: 0.95rem;
}

.service-features li:before, .platform-card li:before, .hosting-card li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
    font-size: 1.1rem;
}

.service-features li:last-child, .platform-card li:last-child, .hosting-card li:last-child {
    border-bottom: none;
}

.pricing-features li {
    padding: 12px 0;
    color: var(--gray);
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.pricing-features li:last-child { border-bottom: none; }
.pricing-features li i { color: var(--secondary); margin-right: 12px; font-size: 1.1rem; }

/* 特殊卡片样式 */
.hosting-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.hosting-card.featured::before {
    content: '热门推荐';
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow);
}

/* 价格样式 */
.price {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 25px;
    display: block;
}

.price span {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 500;
}

.hosting-price {
    margin-bottom: 25px;
    padding: 20px 0;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 8px;
    margin: 0 -10px 25px;
}

.hosting-price .price { font-size: 2.5rem; }

/* 作品集样式 */
.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 280px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img { transform: scale(1.1); }

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.portfolio-text h3 {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.portfolio-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 关于我们样式 */
.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text { flex: 1; }
.about-image { flex: 1; position: relative; }

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--dark);
    line-height: 1.2;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--gray);
    line-height: 1.7;
    font-size: 1.05rem;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 20px;
}

.stat {
    text-align: center;
    flex: 1;
}

.stat h3 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat p {
    color: var(--gray);
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0;
}

.image-placeholder {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.image-placeholder i { font-size: 4rem; margin-bottom: 20px; }
.image-placeholder p { font-size: 1.1rem; font-weight: 500; }

/* 联系我们样式 */
.contact-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.contact-info {
    color: black;
    flex: 1;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

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

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 20px;
    margin-top: 4px;
    flex-shrink: 0;
}

.contact-item h3 {
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-item p {
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

.contact-methods {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-light);
}

.contact-methods h3 {
    margin-bottom: 20px;
    color: var(--dark);
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-form {
    flex: 1;
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-light);
}

.contact-form form { display: flex; flex-direction: column; }

.contact-form input, .contact-form select, .contact-form textarea {
    padding: 14px 16px;
    margin-bottom: 20px;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* 新闻板块样式 */
.news-category {
    border-left: 4px solid var(--primary);
}

.news-category h3 {
    color: var(--dark);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-item {
    display: block;
    padding: 15px;
    background: var(--white);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.news-item:hover {
    transform: translateX(8px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.news-date {
    display: block;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 5px;
}

.news-title {
    color: var(--dark);
    font-weight: 500;
    line-height: 1.4;
}

.news-more { text-align: center; }
/* 新闻归档页面样式 */
.news-archive {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.news-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--gray-light);
    background: var(--white);
    color: var(--dark);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.news-archive-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-article-item {
    display: flex;
    gap: 30px;
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.news-article-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.article-image {
    flex: 0 0 300px;
}

.article-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.article-content {
    flex: 1;
}

.article-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary);
    color: var(--white);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.article-title {
    margin-bottom: 15px;
}

.article-title a {
    color: var(--dark);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
}

.article-title a:hover {
    color: var(--primary);
}

.article-excerpt {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--gray);
    font-size: 0.9rem;
}

.article-meta i {
    margin-right: 5px;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--primary-dark);
}

/* 新闻详情页样式 */
.news-detail {
    padding: 80px 0;
    background: var(--white);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .separator {
    color: var(--gray-light);
}

.breadcrumb .current {
    color: var(--primary);
    font-weight: 500;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
    line-height: 1.2;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: var(--gray);
    font-size: 0.95rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-image {
    margin-bottom: 40px;
}

.article-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

.article-content {
    max-width: 800px;
    margin: 0 auto 50px;
}

.article-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 30px 0 15px;
    color: var(--dark);
}

.article-content p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: var(--gray);
}

.article-footer {
    border-top: 1px solid var(--gray-light);
    padding-top: 30px;
}

.article-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.article-tags strong {
    color: var(--dark);
}

.tag {
    padding: 4px 12px;
    background: var(--gray-light);
    color: var(--dark);
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary);
    color: var(--white);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-article-item {
        flex-direction: column;
        gap: 20px;
    }
    
    .article-image {
        flex: none;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
}
/* 按钮容器 */
.pricing-buttons { display: flex; flex-direction: column; gap: 12px; }