﻿/* Home Page Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Container */
.content.maxwidth {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* Banner */
.banner-v {
    width: 100%;
    position: relative;
    /* background: #000; */
    /* margin: 0 0 20px 0; */
    padding: 0;
}

/* Search Form */
.search {
    max-width: 800px;
    margin: 20px auto 30px;
    display: flex;
    padding: 0;
    width: 100%;
}

/* Header Section */
.home-header {
    text-align: center;
    margin: 0 0 30px 0;
    padding: 20px 0;
}

/* Load More Button */
.load-more {
    text-align: center;
    margin: 30px 0;
    width: 100%;
    padding: 0 15px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.home-header h1 {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.home-header p {
    color: #666;
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* Category Navigation */
.category-nav {
    display: flex;
    justify-content: flex-start;
    margin: 0 0 16px 0;
    padding: 5px 15px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    width: 100%;
    box-sizing: border-box;
}

.category-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.category-nav a {
    display: inline-block;
    padding: 8px 14px;
    margin-right: 8px;
    background: #f0f2f5;
    color: #333;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.category-nav a:hover,
.category-nav a.active {
    background: #1d4ed8;
    color: #fff;
}

/* Home main container (filters + grid wrapper) */
.home-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
    padding: 16px;
    margin: 12px 0 24px;
}

/* Filter area rhythm & separators */
.filter-row {
    border-top: 1px dashed #e5e7eb;
}
.filter-row:first-of-type {
    border-top: 0;
}
.filter-label {
    font-weight: 500;
}
.filter-options .filter-item {
    background: #f3f4f6;
}
.filter-options .filter-item:hover,
.filter-options .filter-item.active {
    background: #1d4ed8;
    color: #fff;
}

/* Fine tune load-more spacing to match container */
.load-more { margin-top: 8px; }

/* Typography adjustments for cohesion */
.tab-main-title { color: #111827; }
.tab-subtitle { color: #6b7280; }

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 0 0 20px 0;
    padding: 0;
    width: 100%;
}

.project-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-image {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.project-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 15px;
}

.project-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin: 0 0 8px 0;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 42px;
    line-height: 1.4;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 992px) {
    .project-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .project-title {
        font-size: 14px;
        height: 40px;
    }
    
    .category-nav {
        margin-bottom: 15px;
        padding: 5px 10px;
    }
    
    .category-nav a {
        padding: 6px 12px;
        font-size: 13px;
        margin-right: 6px;
    }
}

@media (max-width: 480px) {
    .project-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .project-title {
        font-size: 15px;
        height: auto;
        min-height: 42px;
    }
    
    .category-nav {
        padding: 5px 10px 8px;
    }
    
    .category-nav a {
        padding: 5px 10px;
        font-size: 12px;
    }
}

.project-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.project-image {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.project-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 15px;
}

.project-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 48px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 12px;
    color: #999;
}

/* Banner Styles */
.home-banner {
    width: 100%;
    padding: 20px 0 30px;
    /* border: 1px solid red;   */
    /* margin-bottom: 30px; */
    /* border-radius: 8px; */
    background: linear-gradient(180deg, rgb(211, 225, 255), rgb(234, 240, 255));
    background: linear-gradient(180deg, rgb(240, 242, 246), rgb(243, 245, 249));
    overflow: hidden;
}

.home-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.separator {
    height: 10px;
    background: #e6e8ec;
    margin-bottom: 30px;
}

/* Section Title */
.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 40px 0 20px;
    position: relative;
    padding-bottom: 10px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #1d4ed8;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }
    
    .category-nav {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .category-nav a {
        white-space: nowrap;
    }
}

/* Loading Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.project-card {
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

/* Create staggered animation delays */
.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

/* ---------- Homepage polish: keep layout, enhance visuals ---------- */
/* Banner overlay content */
.banner-v .slide-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    padding: 16px 24px;
    background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.15));
    border-radius: 12px;
    backdrop-filter: blur(2px);
}

.banner-v .slide-title {
    font-size: 28px;
    line-height: 1.3;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.banner-v .slide-desc {
    margin-top: 8px;
    font-size: 14px;
    opacity: .95;
}

.banner-v .slide-button {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: #1d4ed8;
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    transition: all .2s ease;
    box-shadow: 0 6px 18px rgba(29,78,216,.35);
}

.banner-v .slide-button:hover {
    background: #0f3ec8;
    transform: translateY(-1px);
}

/* Swiper pagination/buttons subtle tweaks */
.banner-v .swiper-button-next,
.banner-v .swiper-button-prev {
    color: #fff;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
}
.banner-v .swiper-pagination-bullet {
    background: rgba(255,255,255,.7);
}
.banner-v .swiper-pagination-bullet-active {
    background: #fff;
}

/* Search bar on homepage */
.content .search {
    background: #fff;
    border-radius: 999px;
    padding: 8px 10px;
    box-shadow: 0 4px 18px rgba(0,0,0,.06);
    align-items: center;
}

.content .switch_search {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    background: #f3f4f6;
    border-radius: 999px;
    margin-right: 10px;
    cursor: pointer;
}

.content .home_search_input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px 12px;
    font-size: 14px;
    background: transparent;
}

.content .home_search_button,
.load-more .btn-primary {
    border: none;
    outline: none;
    background: #1d4ed8;
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all .2s ease;
    box-shadow: 0 6px 16px rgba(29,78,216,.25);
}

.content .home_search_button:hover,
.load-more .btn-primary:hover {
    background: #0f3ec8;
    transform: translateY(-1px);
}

/* Filter rows on homepage */
.filter-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;
    padding: 10px 0;
}
.filter-row .menu-tit {
    display: flex;
    align-items: center;
}

.filter-row .menu-tit .tit-icon {
	width: 4px;
	height: 18px;
	background: linear-gradient(135deg, #2d74d9 0%, #d4af37 100%);
	border-radius: 2px;
	margin-right: 10px;
	position: relative;
}

.filter-item .menu-tit .tit-icon::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 2px;
	height: 12px;
	background: rgba(255, 255, 255, 0.8);
	border-radius: 1px;
}

.filter-label {
    color: #666;
    font-size: 14px;
    min-width: 48px;
}

.filter-options {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
	width:100%;
	display: grid;
	grid-template-columns: repeat(9, minmax(0, 1fr));
	gap: 8px 12px;
	align-items: start;
}

.filter-options .filter-item- {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: all .2s ease;
}

.filter-options .filter-item-:hover,
.filter-options .filter-item-.active {
    background: #1d4ed8;
    color: #fff;
}

.filter-options .filter-item {
  overflow: hidden;
  padding-top: 4px; 
  padding-bottom: 4px;
  line-height: 1;
  border-radius: var(--radius-circle);
  background: var(--color-bg-lighter);
  border: 1px solid transparent;
  text-align: center;
}

.filter-options .filter-item:hover {
  background: rgba(15, 156, 247, 0.08);
  border-color: var(--color-primary);
  transform: translateY(-1px);
  color: red;
}

.filter-options .filter-item.active {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(15, 156, 247, 0.3);
  transform: translateY(-1px);
}

.filter-options .filter-item.active:hover {
    transform: translateY(-2px);
}
.filter-options .filter-item.active::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 6px;
    height: 6px;
    background: #d4af37;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

.filter-options .level-tab {
	display: flex;
    justify-content: center;
	align-items: center;
	gap: 8px;
	position: relative;
	transition: all 0.3s ease;
}

/* Handpicked level badges on cards */
.level-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #fff;
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
}
.level-badge.level-s { background: linear-gradient(135deg,#ef4444,#f59e0b); }
.level-badge.level-a { background: linear-gradient(135deg,#10b981,#22c55e); }
.level-badge.level-b { background: linear-gradient(135deg,#1d4ed8,#1d4ed8); }
.level-badge.level-c { background: linear-gradient(135deg,#8b5cf6,#6d28d9); }

/* Card meta pills */
.con .list .con-v .price {
    /* background: #1d4ed8; */
    /* color: #fff; */
    /* padding: 2px 8px; */
    border-radius: 6px;
    font-size: 12px;
}
.con .list .con-v .price.free {
    /* background: #10b981; */
}

/* Misc */
.more-link.tech-link {
    color: #1d4ed8;
}
.more-link.tech-link:hover {
    color: #0f3ec8;
}

@media (max-width: 768px) {
    .banner-v .slide-title { font-size: 22px; }
    .banner-v .slide-desc { font-size: 13px; }
    .content .search { padding: 6px 8px; }
}


/* 私信按钮深蓝色样式 */
.send_message, .join-lis.send_message {
  color: #1d4ed8 !important;
  border: 1px solid #1d4ed8 !important;
  background-color: #fff !important;
}
.join .join-lis:nth-child(2), .join .join-lis.send_message {
  color: #1d4ed8 !important;
  border: 1px solid #1d4ed8 !important;
  background-color: #fff !important;
}
