/* 
 * 四川宗睿教育咨询信息发布平台首页样式
 * 绿色科技风格设计
 * 所有自定义类和ID使用zh_前缀
 */

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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #000000;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ===== 通用工具类 ===== */
.zh_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.zh_text_gradient {
    background: linear-gradient(45deg, #59ff85, #41d86c, #2ecc5a);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: zh_gradient_animation 3s ease infinite;
}

@keyframes zh_gradient_animation {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.zh_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.zh_btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.zh_btn:hover::before {
    left: 100%;
}

.zh_btn_primary {
    background: linear-gradient(45deg, #59ff85, #41d86c);
    color: #000;
}

.zh_btn_primary:hover {
    background: linear-gradient(45deg, #41d86c, #2ecc5a);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(89, 255, 133, 0.4);
}

.zh_btn_outline {
    background: transparent;
    color: #59ff85;
    border-color: #59ff85;
}

.zh_btn_outline:hover {
    background: #59ff85;
    color: #000;
    transform: translateY(-2px);
}

/* ===== Hero区域样式 ===== */
.zh_hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at center, rgba(89, 255, 133, 0.1) 0%, rgba(0, 0, 0, 0.95) 70%);
}

.zh_hero_bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1920&h=1080&fit=crop&crop=center') center/cover;
    opacity: 0.1;
    z-index: -1;
}

.zh_hero_bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.zh_hero_content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 70vh;
}

.zh_hero_title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.zh_hero_desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    line-height: 1.8;
}

.zh_hero_actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.zh_hero_image {
    position: relative;
    text-align: center;
}

.zh_floating_image {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(89, 255, 133, 0.3);
    animation: zh_float 6s ease-in-out infinite;
    border: 2px solid rgba(89, 255, 133, 0.3);
}

@keyframes zh_float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.zh_features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 80px;
}

.zh_feature_item {
    background: rgba(89, 255, 133, 0.05);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(89, 255, 133, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.zh_feature_item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #59ff85, #41d86c);
    transition: left 0.3s ease;
}

.zh_feature_item:hover::before {
    left: 0;
}

.zh_feature_item:hover {
    transform: translateY(-5px);
    background: rgba(89, 255, 133, 0.1);
    box-shadow: 0 15px 35px rgba(89, 255, 133, 0.2);
}

.zh_feature_icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(45deg, #59ff85, #41d86c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 24px;
}

.zh_feature_item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #59ff85;
}

.zh_feature_item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* ===== 章节通用样式 ===== */
.zh_section_header {
    text-align: center;
    margin-bottom: 60px;
}

.zh_section_title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
}

.zh_section_desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== 产品分类区域 ===== */
.zh_categories {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(15, 25, 15, 0.98) 100%);
    position: relative;
}

.zh_categories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #59ff85, transparent);
}

.zh_category_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.zh_category_card {
    background: rgba(89, 255, 133, 0.05);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(89, 255, 133, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.zh_category_card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(89, 255, 133, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zh_category_card:hover::after {
    opacity: 1;
}

.zh_category_card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(89, 255, 133, 0.3);
    border-color: #59ff85;
}

.zh_category_icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(45deg, #59ff85, #41d86c);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 32px;
    transition: all 0.3s ease;
}

.zh_category_card:hover .zh_category_icon {
    transform: scale(1.1) rotate(5deg);
}

.zh_category_card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.zh_category_card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    line-height: 1.6;
}

.zh_category_link {
    color: #59ff85;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.zh_category_link:hover {
    color: #41d86c;
    transform: translateX(5px);
}

/* ===== 推荐信息区域 ===== */
.zh_recommended {
    padding: 100px 0;
    background: rgba(0, 0, 0, 0.98);
}

.zh_recommended_content {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.zh_recommended_section {
    background: rgba(89, 255, 133, 0.03);
    padding: 40px;
    border-radius: 25px;
    border: 1px solid rgba(89, 255, 133, 0.15);
}

.zh_recommended_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.zh_recommended_header h3 {
    font-size: 1.8rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.zh_recommended_header h3 i {
    color: #59ff85;
}

.zh_more_link {
    color: #59ff85;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.zh_more_link:hover {
    color: #41d86c;
    transform: translateX(5px);
}

.zh_product_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.zh_product_card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(89, 255, 133, 0.1);
    position: relative;
}

.zh_product_card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(89, 255, 133, 0.2);
    border-color: #59ff85;
}

.zh_product_card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.zh_product_image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.zh_product_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.zh_product_card:hover .zh_product_image img {
    transform: scale(1.1);
}

.zh_product_badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #59ff85, #41d86c);
    color: #000;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.zh_product_info {
    padding: 20px;
}

.zh_product_title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zh_product_meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
}

.zh_product_model,
.zh_product_condition {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.zh_product_condition {
    color: #59ff85;
}

.zh_product_price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #59ff85;
}

/* ===== 其他分类展示 ===== */
.zh_other_categories {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(15, 25, 15, 0.95) 0%, rgba(0, 0, 0, 0.98) 100%);
}

.zh_other_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.zh_other_section {
    background: rgba(89, 255, 133, 0.05);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(89, 255, 133, 0.2);
}

.zh_other_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.zh_other_header h3 {
    font-size: 1.3rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.zh_other_header h3 i {
    color: #59ff85;
}

.zh_view_all {
    color: #59ff85;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.zh_view_all:hover {
    color: #41d86c;
}

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

.zh_other_item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.zh_other_item:hover {
    transform: translateX(5px);
    border-color: rgba(89, 255, 133, 0.3);
    background: rgba(89, 255, 133, 0.08);
}

.zh_other_item a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    text-decoration: none;
    color: inherit;
}

.zh_other_item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(89, 255, 133, 0.2);
}

.zh_other_info h4 {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zh_other_price {
    font-size: 14px;
    font-weight: 600;
    color: #59ff85;
}

/* ===== 统计数据区域 ===== */
.zh_stats {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(89, 255, 133, 0.1) 0%, rgba(0, 0, 0, 0.95) 70%);
    position: relative;
}

.zh_stats::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"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(89,255,133,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.zh_stats_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    position: relative;
}

.zh_stat_item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(89, 255, 133, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.zh_stat_item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #59ff85, #41d86c);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.zh_stat_item:hover::before {
    transform: scaleX(1);
}

.zh_stat_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(89, 255, 133, 0.3);
}

.zh_stat_number {
    font-size: 3rem;
    font-weight: 700;
    color: #59ff85;
    margin-bottom: 10px;
    font-family: 'Arial', sans-serif;
}

.zh_stat_label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* ===== 行业资讯区域 ===== */
.zh_news {
    padding: 100px 0;
    background: rgba(0, 0, 0, 0.98);
}

.zh_news_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.zh_news_card {
    background: rgba(89, 255, 133, 0.05);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(89, 255, 133, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.zh_news_card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #59ff85, #41d86c);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.zh_news_card:hover::before {
    transform: scaleX(1);
}

.zh_news_card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(89, 255, 133, 0.2);
}

.zh_news_card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.zh_news_content {
    padding: 30px;
}

.zh_news_meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.zh_news_category {
    background: rgba(89, 255, 133, 0.1);
    color: #59ff85;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.zh_news_date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.zh_news_title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zh_news_excerpt {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zh_news_footer {
    display: flex;
    justify-content: flex-end;
}

.zh_read_more {
    color: #59ff85;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.zh_news_card:hover .zh_read_more {
    transform: translateX(5px);
}

.zh_news_footer {
    text-align: center;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .zh_hero_content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .zh_hero_title {
        font-size: 2.8rem;
    }
    
    .zh_features {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        margin-top: 60px;
    }
    
    .zh_category_grid,
    .zh_product_grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .zh_other_grid {
        grid-template-columns: 1fr;
    }
    
    .zh_recommended_header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .zh_container {
        padding: 0 15px;
    }
    
    .zh_hero_title {
        font-size: 2.2rem;
    }
    
    .zh_hero_desc {
        font-size: 1rem;
    }
    
    .zh_hero_actions {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .zh_btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .zh_section_title {
        font-size: 2rem;
    }
    
    .zh_features {
        grid-template-columns: 1fr;
        margin-top: 40px;
    }
    
    .zh_category_grid,
    .zh_product_grid,
    .zh_news_grid {
        grid-template-columns: 1fr;
    }
    
    .zh_stats_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .zh_stat_number {
        font-size: 2.2rem;
    }
    
    .zh_recommended_section,
    .zh_other_section {
        padding: 25px 20px;
    }
    
    .zh_other_item a {
        padding: 12px;
    }
    
    .zh_other_item img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .zh_hero_title {
        font-size: 1.8rem;
    }
    
    .zh_section_title {
        font-size: 1.6rem;
    }
    
    .zh_stats_grid {
        grid-template-columns: 1fr;
    }
    
    .zh_category_card,
    .zh_other_section,
    .zh_recommended_section {
        padding: 20px 15px;
    }
    
    .zh_news_content {
        padding: 20px;
    }
}

/* ===== 滚动条样式 ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #59ff85, #41d86c);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #41d86c, #2ecc5a);
}

/* ===== 加载动画 ===== */
@keyframes zh_pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.zh_loading {
    animation: zh_pulse 1.5s ease-in-out infinite;
}

/* ===== 焦点样式 ===== */
*:focus {
    outline: 2px solid #59ff85;
    outline-offset: 2px;
}

/* ===== 选择文本样式 ===== */
::selection {
    background: rgba(89, 255, 133, 0.3);
    color: #ffffff;
}

/* ===== 打印样式 ===== */
@media print {
    .zh_hero_bg,
    .zh_stats::before,
    .zh_categories::before {
        display: none;
    }
    
    .zh_hero,
    .zh_categories,
    .zh_recommended,
    .zh_other_categories,
    .zh_stats,
    .zh_news {
        background: white !important;
        color: black !important;
    }
    
    .zh_text_gradient,
    .zh_section_title,
    .zh_hero_title {
        color: black !important;
        -webkit-text-fill-color: unset !important;
    }
}