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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #2d3436;
    background-color: #f0f2f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: #ffffff;
    color: #2d3436;
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(0,0,0,0.08);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: #2d3436;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 2px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4facfe;
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: #4facfe;
}

.nav-menu a.active {
    color: #4facfe;
}

.btn-login {
    background: linear-gradient(135deg, #4facfe 0%, #00c6fb 100%) !important;
    color: #ffffff !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    transition: all 0.3s !important;
    border: none !important;
    display: inline-block !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
}

.btn-login:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.4) !important;
    text-decoration: none !important;
    color: #ffffff !important;
}

.nav-menu .btn-login {
    background: linear-gradient(135deg, #4facfe 0%, #00c6fb 100%) !important;
    color: #ffffff !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    border: none !important;
    font-size: 0.95rem !important;
}

/* 英雄区 */
.hero {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5%, 5%); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    animation: slideDown 0.8s ease-out;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: slideUp 0.8s ease-out;
    opacity: 0.9;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 按钮 */
.btn-primary {
    background: linear-gradient(135deg, #4facfe 0%, #00c6fb 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    width: 100%;
    display: block;
    margin: 0 auto;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

/* 区块标题通用 */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #2d3436;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: #999;
    margin-bottom: 3rem;
}

/* 分类信息 */
.categories {
    padding: 60px 20px;
    background: white;
    margin-bottom: 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.category-card {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.category-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #4facfe;
    border-radius: 2px;
    opacity: 0;
    transition: all 0.3s;
}

.category-card:hover::before {
    opacity: 1;
    width: 60px;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(79,172,254,0.2);
    border-color: #e0e0e0;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.category-icon {
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    transition: all 0.3s;
}

.category-icon svg {
    width: 36px;
    height: 36px;
}

.icon-recruit { background: linear-gradient(135deg, #43aa8b, #90be6d); }
.icon-secondhand { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.icon-vehicle { background: linear-gradient(135deg, #f5a623, #f9c74f); }
.icon-dating { background: linear-gradient(135deg, #e91e63, #f472b6); }

.category-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: #2d3436;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.category-card p {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 分类页面头部 */
.category-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 50px 20px;
    text-align: center;
    margin-bottom: 30px;
}

.category-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.category-header p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.category-header .btn-primary {
    display: inline-block;
    width: auto;
    min-width: 160px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.category-header .btn-primary:hover {
    background: rgba(255,255,255,0.35);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.hero-content .btn-primary {
    display: inline-block;
    width: auto;
    min-width: 160px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.hero-content .btn-primary:hover {
    background: rgba(255,255,255,0.35);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* 筛选和搜索 */
.filter-section {
    background: white;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-bar input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-bar input:focus {
    border-color: #4facfe;
    outline: none;
    box-shadow: 0 0 0 3px rgba(79,172,254,0.1);
}

.search-bar button {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #4facfe 0%, #00c6fb 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.search-bar button:hover {
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.35);
    transform: translateY(-1px);
}

.filter-options {
    display: flex;
    gap: 1rem;
}

.filter-options select {
    padding: 0.8rem;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.3s;
}

.filter-options select:focus {
    border-color: #4facfe;
    outline: none;
}

/* 信息网格 */
.info-section {
    padding: 2rem;
    flex: 1;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.info-card-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 1rem 1.2rem;
}

.info-card-header h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.info-card-body {
    padding: 1.2rem;
    flex: 1;
}

.info-card-body p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.info-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.2rem;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    margin-top: auto;
}

.info-price {
    font-size: 1.2rem;
    color: #f5a623;
    font-weight: 700;
}

.info-location {
    color: #999;
    font-size: 0.85rem;
}

/* 最新信息 */
.latest-info {
    padding: 60px 20px;
    background: #f0f2f5;
    margin-bottom: 0;
}

#latest-info-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.info-item {
    background: white;
    border: none;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.info-item:hover {
    box-shadow: 0 8px 24px rgba(79,172,254,0.15);
    transform: translateY(-4px);
    border: 1px solid rgba(79,172,254,0.3);
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.category-tag {
    display: inline-block;
    background: #4facfe;
    color: white;
    padding: 0.2rem 0.7rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.category-tag.vehicle {
    background: #f5a623;
}

.category-tag.dating {
    background: #90be6d;
}

.category-tag.recruitment {
    background: #43aa8b;
}

.time {
    color: #bbb;
    font-size: 0.85rem;
}

.info-item h4 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
    color: #2d3436;
    font-weight: 600;
}

.info-item p {
    color: #999;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.info-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.2rem;
    color: #f5a623;
    font-weight: 700;
}

.location {
    color: #bbb;
    font-size: 0.9rem;
}

/* 关于我们 */
.about {
    padding: 60px 20px;
    background: white;
    margin-bottom: 0;
}

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

.about-text h3 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: #4facfe;
    font-weight: 600;
    padding-left: 0.8rem;
    border-left: 3px solid #4facfe;
}

.about-text p {
    line-height: 1.8;
    color: #666;
    margin-bottom: 1rem;
}

.about-text ul {
    list-style: none;
    margin-left: 1rem;
}

.about-text li {
    padding: 0.4rem 0;
    color: #666;
    font-size: 1rem;
}

/* 联系我们 */
.contact {
    padding: 60px 20px;
    background: #f0f2f5;
    margin-bottom: 0;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #4facfe;
    font-weight: 600;
}

.contact-item p {
    color: #666;
}

/* 页脚 */
.footer {
    background: #2d3436;
    color: #ddd;
    text-align: center;
    padding: 2rem;
    margin-top: auto;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer a {
    color: #4facfe;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
    backdrop-filter: blur(4px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 16px;
    width: 95%;
    max-width: 520px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: slideIn 0.3s;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #ccc;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    color: #999;
    background: #f5f5f5;
}

.modal-content .btn-primary {
    width: 100%;
    display: block;
    margin: 1rem auto 0;
    border-radius: 8px;
}

.modal-content .form-group {
    margin-bottom: 1rem;
}

/* 标签页 */
.modal-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 4px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.6rem 1rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: #999;
    transition: all 0.3s;
    flex: 1;
    border-radius: 6px;
    text-align: center;
}

.tab-btn.active {
    color: #4facfe;
    background: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

.tab-content h2 {
    margin-bottom: 1.2rem;
    color: #2d3436;
    font-size: 1.3rem;
    font-weight: 700;
}

/* 表单 */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: #2d3436;
    white-space: nowrap;
    gap: 0.3rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s;
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4facfe;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
    background: white;
}

.radio-group {
    display: flex;
    gap: 2rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
}

.radio-group input[type="radio"] {
    width: auto;
}

.form-tip {
    text-align: center;
    margin-top: 1rem;
    color: #999;
    font-size: 0.9rem;
}

.form-tip a {
    color: #4facfe;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
}

.form-tip a:hover {
    text-decoration: underline;
}

/* 统计数字条 */
.stats-bar {
    padding: 40px 20px;
    background: white;
    margin-bottom: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #4facfe;
    margin-bottom: 0.3rem;
}

.stat-label {
    color: #999;
    font-size: 0.95rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        gap: 0.8rem;
        font-size: 0.85rem;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title,
    .category-header h1 {
        font-size: 1.5rem;
    }

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

    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-list {
        grid-template-columns: 1fr;
    }

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

    .stat-number {
        font-size: 1.6rem;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .search-bar {
        flex-direction: column;
    }

    .filter-options {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}
