/**
 * 菇小二 - 大型真菌标本管理系统
 * 完整 CSS 设计系统
 * 
 * 整合自以下设计稿：
 * - new-homepage.html (首页)
 * - new-login.html (登录页)
 * - new-register.html (注册页)
 * - new-gallery.html (标本展示页)
 * - new-trade-list.html (交易列表页)
 * - new-trade-detail.html (交易详情页)
 * - new-user-center.html (用户中心)
 */

/* ============================================
   1. CSS 变量定义 (:root)
   ============================================ */
:root {
    /* 森林色系 - 主色调 */
    --forest-50: #f6f9f8;
    --forest-100: #e8f0ed;
    --forest-200: #d1e1db;
    --forest-300: #a8c9be;
    --forest-400: #7ba898;
    --forest-500: #568b7a;
    --forest-600: #3d6b5c;
    --forest-700: #2d5246;
    --forest-800: #1f3a32;
    --forest-900: #142621;
    
    /* 大地色系 - 辅助色 */
    --earth-100: #faf8f5;
    --earth-200: #f0ebe3;
    --earth-300: #e0d5c5;
    --earth-400: #c9b89f;
    --earth-500: #b09b7d;
    --earth-600: #967f5f;
    --earth-700: #7a664d;
    
    /* 功能色 */
    --accent: #c4a574;
    --accent-light: #e8dcc8;
    --success: #059669;
    --warning: #d97706;
    --error: #dc2626;
}

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

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--forest-50);
    color: var(--forest-900);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif SC', serif;
    font-weight: 600;
}

/* ============================================
   3. 背景样式
   ============================================ */

/* 有机背景 */
.organic-bg {
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(168, 201, 190, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(196, 165, 116, 0.1) 0%, transparent 50%),
        var(--forest-50);
}

/* 深色区域背景 */
.section-dark {
    background: linear-gradient(180deg, var(--forest-800), var(--forest-900));
    position: relative;
    overflow: hidden;
}

.section-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

/* 功能展示区域背景 */
.feature-section {
    background: linear-gradient(180deg, var(--forest-50), white);
    position: relative;
}

/* 登录/注册页背景 */
.bg-layer {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 50%, rgba(86, 139, 122, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 30%, rgba(196, 165, 116, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, var(--forest-800) 0%, var(--forest-900) 50%, #0a1a15 100%);
}

/* ============================================
   4. 导航栏样式
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(86, 139, 122, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(20, 38, 33, 0.08);
}

.nav-link {
    position: relative;
    color: var(--forest-700);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--forest-500), var(--accent));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--forest-900);
}

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

/* 顶部导航（登录/注册页） */
.header {
    height: 70px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(86, 139, 122, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    position: relative;
    z-index: 20;
}

/* 品牌样式 */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--forest-600), var(--forest-700));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: 'Noto Serif SC', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--forest-900);
}

.brand-sub {
    font-size: 12px;
    color: var(--forest-500);
}

/* 移动端菜单 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(86, 139, 122, 0.1);
    padding: 24px;
    z-index: 999;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu.show {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
    color: var(--forest-700);
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    background: var(--forest-100);
    color: var(--forest-900);
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--forest-700);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   5. 页面标题区
   ============================================ */
.page-header {
    padding: 140px 0 60px;
    background: 
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(168, 201, 190, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 20% 80%, rgba(196, 165, 116, 0.15) 0%, transparent 50%),
        var(--forest-50);
}

.page-header-dark {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--forest-800), var(--forest-900));
    position: relative;
    overflow: hidden;
}

.page-header-dark::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(196, 165, 116, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.page-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: var(--forest-900);
    margin-bottom: 12px;
}

.page-title-light {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    position: relative;
}

.page-subtitle {
    font-size: 18px;
    color: var(--forest-600);
}

.page-subtitle-light {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    position: relative;
}

/* ============================================
   6. Hero 区域
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding-top: 100px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
}

.hero-blob-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--forest-200), var(--forest-300));
    top: -200px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.hero-blob-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    bottom: -100px;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
}

/* 叶子装饰 */
.leaf-decoration {
    position: absolute;
    opacity: 0.06;
    z-index: 0;
    color: white;
}

.leaf-1 {
    top: 15%;
    left: 5%;
    width: 150px;
    transform: rotate(-15deg);
}

.leaf-2 {
    top: 60%;
    right: 8%;
    width: 100px;
    transform: rotate(25deg);
}

.leaf-3 {
    top: 40%;
    right: 15%;
    width: 100px;
    transform: rotate(45deg);
}

/* 标语样式 */
.hero-title {
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.15;
    color: var(--forest-900);
    margin-bottom: 24px;
}

.hero-title-accent {
    background: linear-gradient(135deg, var(--forest-600), var(--forest-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--forest-600);
    line-height: 1.8;
    max-width: 480px;
    margin-bottom: 40px;
}

.tagline {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: white;
}

.tagline-accent {
    color: var(--accent);
}

.tagline-sub {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    max-width: 400px;
}

/* ============================================
   7. 按钮样式
   ============================================ */

/* 主要按钮 */
.btn-primary {
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--forest-600), var(--forest-700));
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(61, 107, 92, 0.3);
}

/* 登录/注册表单中的按钮保持全宽 */
.auth-card .btn-primary,
.form-card .btn-primary {
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(61, 107, 92, 0.4);
}

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

/* 登录按钮 */
.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--forest-600), var(--forest-700));
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(61, 107, 92, 0.4);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(61, 107, 92, 0.5);
}

/* 注册按钮 */
.btn-register {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--forest-600), var(--forest-700));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(61, 107, 92, 0.4);
    margin-top: 8px;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(61, 107, 92, 0.5);
}

/* 搜索按钮 */
.search-btn {
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--forest-600), var(--forest-700));
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(61, 107, 92, 0.3);
}

/* 交易按钮 */
.trade-btn {
    padding: 10px 24px;
    background: var(--forest-600);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.trade-btn:hover {
    background: var(--forest-700);
    transform: translateY(-2px);
}

/* 购买按钮 */
.btn-buy {
    flex: 1;
    height: 56px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, var(--forest-600), var(--forest-700));
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(61, 107, 92, 0.3);
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(61, 107, 92, 0.4);
}

/* 联系按钮 */
.btn-contact {
    flex: 1;
    height: 56px;
    border-radius: 16px;
    border: 1.5px solid var(--forest-600);
    background: white;
    color: var(--forest-700);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-contact:hover {
    background: var(--forest-50);
}

/* 收藏按钮 */
.btn-favorite {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    border: 1.5px solid var(--forest-200);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--forest-400);
}

.btn-favorite:hover {
    border-color: var(--error);
    color: var(--error);
}

/* 验证码按钮 */
.btn-sms {
    padding: 12px 20px;
    background: var(--forest-50);
    color: var(--forest-700);
    border: 1.5px solid var(--forest-300);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-sms:hover:not(:disabled) {
    background: var(--forest-600);
    color: white;
    border-color: var(--forest-600);
}

.btn-sms:disabled {
    background: var(--forest-100);
    color: var(--forest-400);
    border-color: var(--forest-200);
    cursor: not-allowed;
}

/* 社交登录按钮 */
.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1.5px solid var(--forest-200);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--forest-600);
}

.social-btn:hover {
    border-color: var(--forest-400);
    background: var(--forest-50);
    transform: translateY(-2px);
}

/* 分页按钮 */
.page-btn {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    border: 1.5px solid var(--forest-200);
    background: white;
    color: var(--forest-600);
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--forest-500);
    color: var(--forest-700);
}

.page-btn.active {
    background: var(--forest-600);
    color: white;
    border-color: var(--forest-600);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 语言切换按钮 */
.lang-btn {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1.5px solid var(--forest-200);
    color: var(--forest-600);
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn:hover,
.lang-btn.active {
    border-color: var(--forest-500);
    color: var(--forest-700);
    background: var(--forest-50);
}

/* 发布按钮 (FAB) */
.fab {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--forest-600), var(--forest-700));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 32px rgba(61, 107, 92, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    z-index: 100;
}

.fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 12px 40px rgba(61, 107, 92, 0.5);
}

/* 个人中心按钮 */
.profile-btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.profile-btn-primary {
    background: white;
    color: var(--forest-800);
}

.profile-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.profile-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 画廊箭头 */
.gallery-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    color: var(--forest-700);
}

.gallery-arrow:hover {
    background: white;
    transform: scale(1.1);
}

/* ============================================
   8. 表单与输入框样式
   ============================================ */

/* 表单卡片 */
.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 40px;
    box-shadow: 
        0 20px 60px rgba(20, 38, 33, 0.1),
        0 0 0 1px rgba(86, 139, 122, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.form-card {
    width: 420px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 48px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.form-card-scrollable {
    width: 460px;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 40px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.form-card-scrollable::-webkit-scrollbar {
    width: 6px;
}

.form-card-scrollable::-webkit-scrollbar-track {
    background: transparent;
}

.form-card-scrollable::-webkit-scrollbar-thumb {
    background: var(--forest-300);
    border-radius: 3px;
}

.form-header {
    margin-bottom: 32px;
}

.form-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--forest-900);
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 14px;
    color: var(--forest-500);
}

/* 输入框组 */
.input-group {
    margin-bottom: 20px;
}

.input-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--forest-800);
    margin-bottom: 8px;
}

.input-label .hint {
    font-weight: 400;
    color: var(--forest-400);
    font-size: 12px;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--forest-400);
    transition: color 0.2s;
}

.input-wrap:focus-within .input-icon {
    color: var(--forest-600);
}

.input-field {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 1.5px solid var(--forest-200);
    border-radius: 14px;
    font-size: 15px;
    color: var(--forest-900);
    background: white;
    transition: all 0.2s;
}

.input-field:focus {
    outline: none;
    border-color: var(--forest-500);
    box-shadow: 0 0 0 4px rgba(86, 139, 122, 0.1);
}

.input-field::placeholder {
    color: var(--forest-400);
}

/* 搜索框 */
.search-box {
    background: white;
    border-radius: 20px;
    padding: 8px;
    box-shadow: 0 4px 24px rgba(20, 38, 33, 0.08);
    border: 1px solid rgba(86, 139, 122, 0.1);
    display: flex;
    gap: 8px;
}

.search-input-wrap {
    flex: 1;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--forest-400);
}

.search-input {
    flex: 1;
    border: none;
    padding: 16px 20px 16px 52px;
    font-size: 15px;
    outline: none;
    background: transparent;
    width: 100%;
    border: 1.5px solid var(--forest-200);
    border-radius: 16px;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--forest-500);
    box-shadow: 0 0 0 4px rgba(86, 139, 122, 0.1);
}

.search-input::placeholder {
    color: var(--forest-400);
}

/* 验证码行 */
.sms-row {
    display: flex;
    gap: 10px;
}

.sms-row .input-wrap {
    flex: 1;
}

/* 选项行 */
.options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

/* 复选框 */
.checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-wrap input {
    width: 18px;
    height: 18px;
    accent-color: var(--forest-600);
    cursor: pointer;
}

.checkbox-label {
    font-size: 13px;
    color: var(--forest-600);
}

/* 协议 */
.agreement {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 16px 0;
}

.agreement input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--forest-600);
    cursor: pointer;
}

.agreement-text {
    font-size: 12px;
    color: var(--forest-500);
    line-height: 1.5;
}

.agreement-text a {
    color: var(--forest-700);
    text-decoration: none;
}

/* 密码强度 */
.password-strength {
    height: 4px;
    margin-top: 8px;
    border-radius: 2px;
    background: var(--forest-200);
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: all 0.3s;
}

.password-strength-bar.weak {
    width: 33%;
    background: #ef4444;
}

.password-strength-bar.medium {
    width: 66%;
    background: #f59e0b;
}

.password-strength-bar.strong {
    width: 100%;
    background: #10b981;
}

/* ============================================
   9. Tab 切换样式
   ============================================ */

/* Tab 容器 */
.tab-container {
    display: flex;
    background: var(--forest-100);
    border-radius: 16px;
    padding: 6px;
    margin-bottom: 28px;
}

.tab-btn {
    flex: 1;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.tab-btn.active {
    background: white;
    color: var(--forest-900);
    box-shadow: 0 2px 8px rgba(20, 38, 33, 0.08);
}

.tab-btn:not(.active) {
    color: var(--forest-500);
    background: transparent;
}

.tab-btn:not(.active):hover {
    color: var(--forest-700);
}

/* Tab 导航（深色背景） */
.tab-nav {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px;
    border-radius: 16px;
    width: fit-content;
    margin-top: 32px;
}

.tab-nav .tab-btn {
    padding: 12px 28px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
}

.tab-nav .tab-btn.active {
    background: white;
    color: var(--forest-900);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================================
   10. 卡片组件样式
   ============================================ */

/* 通用卡片 */
.card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(20, 38, 33, 0.06);
    border: 1px solid rgba(86, 139, 122, 0.08);
}

/* 标本卡片 */
.specimen-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(20, 38, 33, 0.06);
    border: 1px solid rgba(86, 139, 122, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.specimen-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(20, 38, 33, 0.12);
}

.specimen-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--forest-100), var(--earth-200));
}

.specimen-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.specimen-card:hover .specimen-image img {
    transform: scale(1.08);
}

.specimen-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: var(--forest-700);
    border: 1px solid rgba(86, 139, 122, 0.1);
}

.specimen-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--forest-700);
    border: 1px solid rgba(86, 139, 122, 0.1);
}

.specimen-content {
    padding: 24px;
}

.specimen-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--forest-900);
    margin-bottom: 4px;
}

.specimen-latin {
    font-size: 13px;
    color: var(--forest-400);
    font-style: italic;
    margin-bottom: 16px;
}

.specimen-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--forest-100);
}

.specimen-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--forest-500);
}

.specimen-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--error);
}

.specimen-date {
    font-size: 12px;
    color: var(--forest-400);
}

/* 求购卡片 */
.request-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 28px;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.request-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.request-card-light {
    background: white;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(20, 38, 33, 0.06);
    border: 1px solid rgba(86, 139, 122, 0.08);
    transition: all 0.4s ease;
}

.request-card-light:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(20, 38, 33, 0.1);
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.request-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.request-badge.buying {
    background: var(--accent);
    color: var(--forest-900);
}

.request-badge.selling {
    background: var(--forest-600);
    color: white;
}

.request-date {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

.request-date-light {
    font-size: 13px;
    color: var(--forest-400);
}

.request-title {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin: 16px 0 8px;
}

.request-title-dark {
    font-size: 20px;
    font-weight: 700;
    color: var(--forest-900);
    margin-bottom: 8px;
}

.request-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-style: italic;
}

.request-desc-light {
    font-size: 14px;
    color: var(--forest-500);
    margin-bottom: 20px;
    line-height: 1.6;
}

.request-meta {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.request-meta-light {
    display: flex;
    gap: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--forest-100);
}

.request-meta-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.request-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.request-meta-label {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

.request-meta-label-light {
    font-size: 12px;
    color: var(--forest-400);
}

.request-meta-value {
    color: white;
    font-weight: 600;
    font-size: 15px;
}

.request-meta-value-light {
    font-size: 15px;
    font-weight: 600;
    color: var(--forest-800);
}

.request-price {
    color: var(--accent);
    font-weight: 700;
}

.request-price-large {
    color: var(--error);
    font-size: 20px;
    font-weight: 800;
}

/* 交易卡片 */
.trade-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(20, 38, 33, 0.06);
    border: 1px solid rgba(86, 139, 122, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.trade-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(20, 38, 33, 0.12);
}

.trade-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--forest-100), var(--forest-200));
}

.trade-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.trade-card:hover .trade-image img {
    transform: scale(1.08);
}

.trade-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--forest-700);
}

.trade-content {
    padding: 24px;
}

.trade-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--forest-900);
    margin-bottom: 4px;
}

.trade-latin {
    font-size: 13px;
    color: var(--forest-400);
    font-style: italic;
    margin-bottom: 16px;
}

.trade-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.trade-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--forest-500);
}

.trade-seller {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trade-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--forest-100);
}

.trade-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--error);
}

/* 功能特性卡片 */
.feature-grid-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(86, 139, 122, 0.1);
    transition: all 0.4s ease;
    display: flex;
    gap: 20px;
}

.feature-grid-card:hover {
    border-color: rgba(86, 139, 122, 0.2);
    box-shadow: 0 12px 32px rgba(20, 38, 33, 0.08);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--forest-100), var(--forest-200));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--forest-600);
    flex-shrink: 0;
}

.feature-grid-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--forest-500), var(--forest-600));
    color: white;
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--forest-900);
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 14px;
    color: var(--forest-500);
    line-height: 1.7;
}

/* 详情卡片 */
.detail-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(20, 38, 33, 0.08);
    border: 1px solid rgba(86, 139, 122, 0.08);
}

/* 侧边栏卡片 */
.sidebar-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(20, 38, 33, 0.06);
    border: 1px solid rgba(86, 139, 122, 0.08);
    margin-bottom: 24px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--forest-900);
    margin-bottom: 16px;
}

/* 内容卡片 */
.content-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(20, 38, 33, 0.06);
    border: 1px solid rgba(86, 139, 122, 0.08);
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--forest-900);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title-link {
    font-size: 13px;
    color: var(--forest-500);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-title-link:hover {
    color: var(--forest-700);
}

/* 统计卡片 */
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(20, 38, 33, 0.06);
    border: 1px solid rgba(86, 139, 122, 0.08);
    transition: all 0.3s;
}

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

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.stat-icon.blue {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #2563eb;
}

.stat-icon.green {
    background: linear-gradient(135deg, var(--forest-100), var(--forest-200));
    color: var(--forest-600);
}

.stat-icon.amber {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
}

.stat-icon.purple {
    background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
    color: #7c3aed;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--forest-900);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--forest-500);
}

/* 卖家卡片 */
.seller-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--forest-50);
    border-radius: 16px;
}

.seller-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--forest-500), var(--forest-600));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 700;
}

.seller-avatar-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--forest-400), var(--forest-500));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.seller-info {
    flex: 1;
}

.seller-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--forest-900);
    margin-bottom: 4px;
}

.seller-name-small {
    font-size: 13px;
    color: var(--forest-600);
}

.seller-meta {
    font-size: 13px;
    color: var(--forest-500);
}

.seller-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--accent);
}

/* ============================================
   11. 功能展示组件
   ============================================ */

/* 功能展示区 */
.feature-showcase {
    background: linear-gradient(135deg, var(--forest-700), var(--forest-800));
    border-radius: 32px;
    padding: 48px;
    color: white;
    position: relative;
    overflow: hidden;
}

.feature-showcase::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(196, 165, 116, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.feature-tag {
    display: inline-block;
    background: var(--forest-500);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 24px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.feature-item-text {
    font-size: 15px;
}

.feature-item-highlight {
    color: var(--accent-light);
    font-weight: 600;
}

/* 功能列表（注册页） */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.feature-list-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

/* 快速操作 */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: var(--forest-50);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.quick-action:hover {
    background: white;
    border-color: var(--forest-200);
    box-shadow: 0 8px 24px rgba(20, 38, 33, 0.08);
    transform: translateY(-4px);
}

.quick-action-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--forest-500), var(--forest-600));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.quick-action-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--forest-800);
}

/* ============================================
   12. 徽章与标签
   ============================================ */

/* 新徽章 */
.badge-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--forest-100), rgba(232, 220, 200, 0.5));
    color: var(--forest-700);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(86, 139, 122, 0.2);
    margin-bottom: 28px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--forest-500);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

/* 徽章组 */
.badge-group {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.badge-primary {
    background: var(--forest-600);
    color: white;
}

.badge-accent {
    background: var(--accent);
    color: var(--forest-900);
}

.badge-outline {
    background: white;
    border: 1.5px solid var(--forest-200);
    color: var(--forest-600);
}

/* 列表状态 */
.list-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.list-status.success {
    background: #dcfce7;
    color: #166534;
}

.list-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.list-status.error {
    background: #fee2e2;
    color: #991b1b;
}

/* ============================================
   13. 筛选与搜索组件
   ============================================ */

/* 筛选区域 */
.filter-section {
    background: white;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 4px 24px rgba(20, 38, 33, 0.06);
    border: 1px solid rgba(86, 139, 122, 0.08);
}

/* 筛选标签 */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tag {
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    border: 1.5px solid var(--forest-200);
    background: white;
    color: var(--forest-600);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tag:hover {
    border-color: var(--forest-400);
    color: var(--forest-700);
}

.filter-tag.active {
    background: var(--forest-600);
    color: white;
    border-color: var(--forest-600);
}

/* 统计栏 */
.stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 8px;
}

.stats-text {
    font-size: 14px;
    color: var(--forest-600);
}

.stats-text strong {
    color: var(--forest-900);
}

.sort-select {
    padding: 10px 16px;
    border: 1.5px solid var(--forest-200);
    border-radius: 10px;
    font-size: 13px;
    color: var(--forest-700);
    background: white;
    cursor: pointer;
}

/* ============================================
   14. 画廊组件
   ============================================ */
.gallery {
    position: relative;
    height: 500px;
    background: linear-gradient(135deg, var(--forest-100), var(--forest-200));
}

.gallery-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-nav {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s;
}

.gallery-dot.active {
    background: white;
    width: 24px;
    border-radius: 5px;
}

.gallery-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 24px;
}

/* ============================================
   15. 详情页组件
   ============================================ */

/* 详情头部 */
.detail-header {
    padding: 32px;
    border-bottom: 1px solid var(--forest-100);
}

.detail-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--forest-900);
    margin-bottom: 8px;
}

.detail-latin {
    font-size: 16px;
    color: var(--forest-400);
    font-style: italic;
}

/* 价格区域 */
.price-section {
    padding: 24px 32px;
    background: linear-gradient(135deg, rgba(196, 165, 116, 0.1), rgba(196, 165, 116, 0.05));
    border-bottom: 1px solid var(--forest-100);
}

.price-label {
    font-size: 13px;
    color: var(--forest-500);
    margin-bottom: 4px;
}

.price-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--error);
}

.price-original {
    font-size: 16px;
    color: var(--forest-400);
    text-decoration: line-through;
    margin-left: 12px;
}

/* 信息网格 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 32px;
    border-bottom: 1px solid var(--forest-100);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-label {
    font-size: 13px;
    color: var(--forest-400);
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--forest-800);
}

/* 描述区域 */
.description-section {
    padding: 32px;
    border-bottom: 1px solid var(--forest-100);
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--forest-900);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.description-text {
    font-size: 15px;
    color: var(--forest-600);
    line-height: 1.8;
}

/* 卖家区域 */
.seller-section {
    padding: 32px;
}

/* ============================================
   16. 用户中心组件
   ============================================ */

/* 用户信息头部 */
.profile-header {
    background: linear-gradient(135deg, var(--forest-700), var(--forest-800));
    border-radius: 24px;
    padding: 40px;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(196, 165, 116, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.profile-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 32px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #b08d5f);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 700;
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.profile-title {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}

.profile-stats {
    display: flex;
    gap: 32px;
}

.profile-stat {
    text-align: center;
}

.profile-stat-value {
    font-size: 24px;
    font-weight: 700;
}

.profile-stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.profile-actions {
    display: flex;
    gap: 12px;
}

/* 侧边栏菜单 */
.sidebar-menu {
    background: white;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(20, 38, 33, 0.06);
    border: 1px solid rgba(86, 139, 122, 0.08);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--forest-600);
    font-size: 14px;
    font-weight: 500;
}

.menu-item:hover {
    background: var(--forest-50);
    color: var(--forest-800);
}

.menu-item.active {
    background: var(--forest-600);
    color: white;
}

.menu-icon {
    width: 20px;
    height: 20px;
}

/* ============================================
   17. 列表组件
   ============================================ */
.list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--forest-100);
}

.list-item:last-child {
    border-bottom: none;
}

.list-thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--forest-100);
}

.list-content {
    flex: 1;
}

.list-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--forest-900);
    margin-bottom: 4px;
}

.list-meta {
    font-size: 13px;
    color: var(--forest-500);
}

/* 相关推荐项 */
.related-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--forest-100);
    cursor: pointer;
    transition: all 0.2s;
}

.related-item:last-child {
    border-bottom: none;
}

.related-item:hover {
    background: var(--forest-50);
    margin: 0 -12px;
    padding: 12px;
    border-radius: 12px;
}

.related-thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--forest-100);
}

.related-info {
    flex: 1;
}

.related-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--forest-900);
    margin-bottom: 4px;
}

.related-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--error);
}

/* ============================================
   18. 页脚
   ============================================ */
.footer {
    background: var(--forest-900);
    color: rgba(255, 255, 255, 0.6);
    padding: 80px 0 40px;
}

.footer-title {
    color: white;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-link {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
    margin-top: 48px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   19. 面包屑
   ============================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--forest-500);
}

.breadcrumb a {
    color: var(--forest-600);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* ============================================
   20. 链接样式
   ============================================ */
.forgot-link {
    font-size: 13px;
    color: var(--forest-600);
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: var(--forest-800);
}

.register-link,
.login-link {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--forest-100);
}

.register-text,
.login-text {
    font-size: 14px;
    color: var(--forest-500);
}

.register-text a,
.login-text a {
    color: var(--forest-700);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.register-text a:hover,
.login-text a:hover {
    color: var(--forest-900);
}

/* 社交登录 */
.social-login {
    margin-top: 32px;
}

.social-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--forest-200);
}

.social-divider span {
    font-size: 13px;
    color: var(--forest-400);
}

.social-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ============================================
   21. 动画效果
   ============================================ */

/* 浮动动画 */
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.05); }
}

/* 脉冲动画 */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* 淡入上移动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* ============================================
   22. 滚动条美化
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--forest-100);
}

::-webkit-scrollbar-thumb {
    background: var(--forest-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--forest-500);
}

/* ============================================
   23. 布局工具类
   ============================================ */
/* 排除后台管理页面（.admin-panel）和侧边栏布局页面（.sidebar-layout） */
body:not(.admin-panel):not(.sidebar-layout) .main-content {
    padding-top: 100px;
    padding-bottom: 60px;
}

.content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

.specimen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

/* 操作栏 */
.action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--forest-200);
    padding: 16px 24px;
    display: flex;
    gap: 12px;
    z-index: 100;
}

/* ============================================
   24. 响应式设计
   ============================================ */

/* 大屏 */
@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }

    .content {
        flex-direction: column;
        gap: 48px;
        padding: 32px;
    }

    .tagline-section {
        text-align: center;
    }

    .tagline-sub {
        margin: 0 auto;
    }

    .form-card,
    .form-card-scrollable {
        width: 100%;
        max-width: 460px;
    }

    .gallery {
        height: 400px;
    }

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

    .profile-content {
        flex-direction: column;
        text-align: center;
    }

    .profile-stats {
        justify-content: center;
    }

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

/* 平板 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .auth-card {
        padding: 28px;
    }
    
    .feature-showcase {
        padding: 32px;
    }
    
    .specimen-grid {
        grid-template-columns: 1fr;
    }

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

    .filter-tags {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }

    .tab-nav {
        width: 100%;
    }

    .tab-nav .tab-btn {
        flex: 1;
        text-align: center;
    }

    .request-meta-light {
        flex-wrap: wrap;
        gap: 16px;
    }
}

/* 手机 */
@media (max-width: 640px) {
    .header {
        padding: 0 24px;
    }

    .content {
        padding: 24px;
    }

    .form-card,
    .form-card-scrollable {
        padding: 28px;
    }

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

    .quick-actions {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   针对现有 Tailwind 模板类名的样式覆盖
   使现有模板匹配设计稿风格
   ============================================================ */

@media (min-width: 769px) {
    /* 全局背景 */
    body.bg-\[\#f8fafc\] {
        background: var(--forest-50) !important;
        font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    }

    /* 导航栏样式 */
    .glass-nav {
        background: rgba(255, 255, 255, 0.85) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-bottom: 1px solid rgba(86, 139, 122, 0.1) !important;
    }

    /* Hero 区域背景 */
    .eco-blob {
        opacity: 0.4 !important;
        filter: blur(80px) !important;
    }

    .eco-blob.bg-emerald-100 {
        background: linear-gradient(135deg, var(--forest-200), var(--forest-300)) !important;
    }

    .eco-blob.bg-lime-50 {
        background: linear-gradient(135deg, var(--accent-light), var(--accent)) !important;
    }

    /* 徽章样式 */
    .bg-emerald-50.text-emerald-700 {
        background: linear-gradient(135deg, var(--forest-100), rgba(232, 220, 200, 0.5)) !important;
        color: var(--forest-700) !important;
        border: 1px solid rgba(86, 139, 122, 0.2) !important;
        border-radius: 50px !important;
        padding: 10px 20px !important;
    }

    /* 标题样式 */
    .text-5xl.lg\:text-7xl {
        font-family: 'Noto Serif SC', serif !important;
        font-size: clamp(36px, 5vw, 64px) !important;
        line-height: 1.15 !important;
        color: var(--forest-900) !important;
    }

    .gradient-green-text {
        background: linear-gradient(135deg, var(--forest-600), var(--forest-500)) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
    }

    /* 副标题 */
    .text-lg.text-slate-500 {
        color: var(--forest-600) !important;
        font-size: 18px !important;
        line-height: 1.8 !important;
    }

    /* 表单卡片 */
    .bg-white.rounded-3xl.shadow-2xl {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        border-radius: 28px !important;
        box-shadow: 
            0 20px 60px rgba(20, 38, 33, 0.1),
            0 0 0 1px rgba(86, 139, 122, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.5) !important;
    }

    /* Tab 切换 */
    .bg-slate-100.rounded-2xl {
        background: var(--forest-100) !important;
        border-radius: 16px !important;
        padding: 6px !important;
    }

    .bg-slate-100.rounded-2xl button {
        border-radius: 12px !important;
        font-weight: 600 !important;
        font-size: 14px !important;
        transition: all 0.3s ease !important;
    }

    .bg-slate-100.rounded-2xl button.bg-white {
        background: white !important;
        color: var(--forest-900) !important;
        box-shadow: 0 2px 8px rgba(20, 38, 33, 0.08) !important;
    }

    .bg-slate-100.rounded-2xl button.text-slate-400 {
        color: var(--forest-500) !important;
        background: transparent !important;
    }

    /* 输入框 */
    input[type="tel"],
    input[type="password"],
    input[type="text"] {
        border: 1px solid var(--forest-200) !important;
        border-radius: 14px !important;
        padding: 14px 18px !important;
        font-size: 15px !important;
        transition: all 0.3s ease !important;
    }

    input[type="tel"]:focus,
    input[type="password"]:focus,
    input[type="text"]:focus {
        outline: none !important;
        border-color: var(--forest-400) !important;
        box-shadow: 0 0 0 4px rgba(86, 139, 122, 0.1) !important;
    }

    /* 按钮 */
    button[type="submit"].bg-emerald-600 {
        background: linear-gradient(135deg, var(--forest-600), var(--forest-700)) !important;
        border-radius: 14px !important;
        padding: 16px !important;
        font-weight: 600 !important;
        font-size: 15px !important;
        box-shadow: 0 4px 16px rgba(61, 107, 92, 0.3) !important;
        transition: all 0.3s ease !important;
    }

    button[type="submit"].bg-emerald-600:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 24px rgba(61, 107, 92, 0.4) !important;
    }

    /* 深色区域（求购信息） */
    .bg-emerald-950 {
        background: linear-gradient(180deg, var(--forest-800), var(--forest-900)) !important;
        position: relative !important;
    }

    .bg-emerald-950::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    }

    /* 求购卡片 */
    .bg-white\/5 {
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 24px !important;
        padding: 28px !important;
        transition: all 0.4s ease !important;
        backdrop-filter: blur(10px) !important;
    }

    .bg-white\/5:hover {
        background: rgba(255, 255, 255, 0.08) !important;
        border-color: rgba(255, 255, 255, 0.15) !important;
        transform: translateY(-4px) !important;
    }

    .bg-amber-400 {
        background: var(--accent) !important;
        color: var(--forest-900) !important;
    }

    /* 标本卡片 */
    .card-hover {
        background: white !important;
        border-radius: 24px !important;
        border: 1px solid rgba(86, 139, 122, 0.1) !important;
        box-shadow: 0 4px 20px rgba(20, 38, 33, 0.06) !important;
        transition: all 0.4s ease !important;
        overflow: hidden !important;
    }

    .card-hover:hover {
        transform: translateY(-8px) !important;
        box-shadow: 0 20px 40px rgba(20, 38, 33, 0.12) !important;
        border-color: rgba(86, 139, 122, 0.2) !important;
    }

    .card-hover img {
        transition: transform 0.7s ease !important;
    }

    .card-hover:hover img {
        transform: scale(1.05) !important;
    }

    /* 功能展示区域 */
    .bg-emerald-50\/30 {
        background: linear-gradient(180deg, var(--forest-50), white) !important;
    }

    /* 功能卡片 */
    .bg-emerald-900 {
        background: linear-gradient(135deg, var(--forest-700), var(--forest-800)) !important;
        border-radius: 32px !important;
        box-shadow: 0 25px 50px -12px rgba(20, 38, 33, 0.25) !important;
    }

    /* 页脚 */
    footer {
        background: var(--forest-900) !important;
        color: rgba(255, 255, 255, 0.6) !important;
    }

    /* 搜索框 */
    .shadow-lg.shadow-emerald-100 {
        box-shadow: 0 10px 40px rgba(86, 139, 122, 0.15) !important;
        border-radius: 20px !important;
    }

    /* 链接样式 */
    a.text-emerald-600 {
        color: var(--forest-600) !important;
    }

    a.text-emerald-600:hover {
        color: var(--forest-700) !important;
    }

    /* 标签 */
    .bg-emerald-600\/90 {
        background: rgba(86, 139, 122, 0.9) !important;
        backdrop-filter: blur(8px) !important;
    }

}

/* ============================================================
   修复顶部栏按钮布局 - 确保在一行显示
   ============================================================ */

@media (min-width: 769px) {
    .topbar-right {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 8px !important;
    }
    
    .topbar-right .topbar-item {
        flex-shrink: 0 !important;
    }
    
    .topbar-right .topbar-btn {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
}
