/* ========== 全局样式 ========== */
:root {
    --primary-color: #00d4ff;
    --secondary-color: #0a1628;
    --dark-bg: #0a1628;
    --darker-bg: #060d1a;
    --text-light: #ffffff;
    --text-gray: #b0b8c5;
    --card-bg: #111e35;
    --border-color: #1e3050;
    --gradient: linear-gradient(135deg, #0a1628 0%, #16213e 50%, #0f3460 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

/* ========== 导航栏 ========== */
.navbar {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 1px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-menu {
    display: flex;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lang-btn {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 3px 8px;
    border-radius: 4px;
    transition: all 0.3s;
}

.lang-btn.active {
    color: var(--primary-color);
    font-weight: 700;
    background: rgba(0, 212, 255, 0.1);
}

.lang-divider {
    color: var(--border-color);
}

.btn-contact {
    background: var(--primary-color);
    color: var(--dark-bg);
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-contact:hover {
    background: #00b8e6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 5px 0;
    transition: all 0.3s;
    border-radius: 3px;
}

/* ========== 用户操作（注册/登录/购物车） ========== */
.user-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-actions .nav-link-btn {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    cursor: pointer;
}

.user-actions .nav-link-btn:hover {
    color: var(--primary-color);
}

.user-actions .nav-divider {
    color: var(--border-color);
    font-size: 0.8rem;
}

.user-actions .cart-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1rem;
}

.user-actions .cart-link .cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ff4757;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    padding: 0 5px;
    margin-top: -8px;
}

/* ========== 加入购物车按钮（全局） ========== */
.btn-add-cart {
    background: #00d4ff;
    color: #0a1628;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
    background: #00b8e6;
}

/* ========== HERO区域 ========== */
.hero {
    min-height: 100vh;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 100px 20px 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(0, 100, 200, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(100, 0, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--primary-color);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: 500;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--dark-bg);
}

.btn-primary:hover {
    background: #00b8e6;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-3px);
}

/* 滚动提示 */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.scroll-down span {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
    animation: scrollDown 1.5s infinite;
}

.scroll-down span:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-down span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scrollDown {
    0% { opacity: 0; transform: rotate(45deg) translate(-5px, -5px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(5px, 5px); }
}

/* ========== 数据展示条 ========== */
.stats-bar {
    background: var(--darker-bg);
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    text-align: center;
    min-width: 120px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* ========== 通用区域标题 ========== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.2rem;
    color: var(--dark-bg);
    margin-bottom: 10px;
    font-weight: 700;
}

.section-subtitle {
    color: #888;
    font-size: 1.05rem;
}

/* ========== 产品分类 - 科技感升级 ========== */
.categories {
    padding: 80px 0;
    background: #ffffff;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 35px 25px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 200px;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(145deg, #f8fafc, #f0f2f5);
}

/* 科技感光晕边框（悬停时发光） */
.category-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    padding: 1px;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(0, 212, 255, 0.4),
        transparent,
        rgba(0, 212, 255, 0.4),
        transparent
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

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

/* 背景光晕（悬停时出现） */
.category-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 212, 255, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.6s;
    pointer-events: none;
}

.category-card:hover::after {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(0, 212, 255, 0.2);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.10),
        0 0 40px rgba(0, 212, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    background: #ffffff;
}

.category-card .category-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 14px;
    background: #f0f2f5;
    position: relative;
    z-index: 1;
}

.category-card .category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-card h3 {
    font-size: 1.05rem;
    color: #1a2332;
    margin-bottom: 6px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

.category-card h3::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00d4ff, #0077ff);
    margin: 6px auto 0;
    transition: width 0.4s ease;
    border-radius: 2px;
}

.category-card:hover h3::after {
    width: 40%;
}

.category-card p {
    color: #888;
    font-size: 0.8rem;
    margin-top: 4px;
    position: relative;
    z-index: 1;
    letter-spacing: 0.3px;
}

/* ========== 热门机器人 ========== */
.featured-robots {
    padding: 80px 0;
    background: #f5f7fa;
}

.robot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    align-items: stretch;
}

.robot-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.robot-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.robot-card-image {
    width: 100%;
    aspect-ratio: 1/1;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.robot-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.robot-card-body .card-content {
    flex: 1;
}

.robot-card-body .card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f2f5;
}

.robot-card-body h3 {
    font-size: 1.2rem;
    color: var(--dark-bg);
    margin-bottom: 8px;
}

.robot-card-body p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.robot-card-price {
    color: var(--primary-color) !important;
    font-weight: 700;
    font-size: 1.1rem !important;
}

/* ========== 服务项目 ========== */
.services {
    padding: 80px 0;
    background: #ffffff;
}

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

.service-card {
    padding: 35px 25px;
    border: 1px solid #e8ecf1;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    background: #fafbfc;
}

.service-card:hover {
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.2rem;
    color: var(--dark-bg);
    margin-bottom: 12px;
}

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

/* ========== 合作伙伴 ========== */
.partners {
    padding: 80px 0;
    background: #f5f7fa;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.partner-card {
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
}

.partner-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.partner-logo {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.partner-card h4 {
    font-size: 1rem;
    color: var(--dark-bg);
    margin-bottom: 5px;
}

.partner-card p {
    color: #888;
    font-size: 0.85rem;
}

.partner-cta {
    text-align: center;
}

/* ========== 行业资讯 ========== */
.news {
    padding: 80px 0;
    background: #ffffff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.news-card {
    background: #fafbfc;
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s;
}

.news-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.news-date {
    color: var(--primary-color);
    font-size: 0.85rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.news-card h3 {
    font-size: 1.1rem;
    color: var(--dark-bg);
    margin-bottom: 10px;
}

.news-card p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.7;
}

/* ========== 关于我们 ========== */
.about {
    padding: 80px 0;
    background: var(--dark-bg);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text {
    color: var(--text-gray);
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.badge {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
}

.about-stat-card:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary-color);
}

.about-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
}

.about-stat-label {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* ========== 强制首页资讯横排图文 ========== */
.news-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.news-grid .news-card,
.news-grid > div {
    display: flex !important;
    flex-direction: row !important;
    height: 140px !important;
    width: 100% !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
    border: none !important;
}

.news-grid .news-card:hover,
.news-grid > div:hover {
    transform: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
}

.news-grid .news-card img,
.news-grid > div img {
    display: block !important;
    width: 200px !important;
    height: 140px !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}

.news-grid .news-card .news-date,
.news-grid > div .news-date {
    color: #999 !important;
    font-size: 0.75rem !important;
    margin-bottom: 4px !important;
}

.news-grid .news-card h3,
.news-grid > div h3 {
    font-size: 0.95rem !important;
    margin: 0 0 6px 0 !important;
    color: #1a2332 !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.news-grid .news-card p,
.news-grid > div p {
    color: #666 !important;
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    margin: 0 0 6px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* ========== 联系我们+页脚 左右布局 ========== */
.contact-footer-wrapper {
    background: #0a1628;
    padding: 50px 0 0;
}

.contact-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: stretch;
}

.contact-footer-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin: 10px 0;
}

/* 左侧 - 联系方式 */
.contact-footer-left .contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.contact-footer-left .contact-item:last-child {
    border-bottom: none;
}

.contact-footer-left .contact-item i {
    font-size: 1.2rem;
    color: #00d4ff;
    width: 30px;
    text-align: center;
}

.contact-footer-left .contact-item h4 {
    color: #888;
    font-size: 0.75rem;
    font-weight: 400;
    margin-bottom: 1px;
}

.contact-footer-left .contact-item p {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 左侧 - 页脚链接 */
.contact-footer-left .footer-links-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    padding: 10px 0;
}

.contact-footer-left .footer-links h4,
.contact-footer-left .footer-contact h4 {
    color: #fff;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.contact-footer-left .footer-links a {
    display: block;
    color: #888;
    text-decoration: none;
    font-size: 0.8rem;
    padding: 3px 0;
    transition: color 0.3s;
}

.contact-footer-left .footer-links a:hover {
    color: #00d4ff;
}

.contact-footer-left .footer-contact p {
    color: #888;
    font-size: 0.8rem;
    padding: 3px 0;
}

.contact-footer-left .footer-contact p i {
    color: #00d4ff;
    width: 18px;
}

/* 右侧 - 宣传海报 */
.contact-footer-poster {
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    min-height: 380px;
    background: #0f1a2e;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.contact-footer-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ====== 版权信息（在 container 外面，整条白色） ====== */
.contact-footer-wrapper .footer-bottom {
    text-align: center;
    padding: 20px 0 15px;
    background: #ffffff;
    width: 100%;
    border-top: 1px solid #e8ecf1;
    margin-top: 0;
}

.contact-footer-wrapper .footer-bottom .container {
    background: #ffffff;
}

.contact-footer-wrapper .footer-bottom p {
    margin: 3px 0;
}

.contact-footer-wrapper .footer-bottom p:first-child {
    color: #888;
    font-size: 0.9rem;
}

.contact-footer-wrapper .footer-bottom a {
    color: #888;
    text-decoration: none;
    font-size: 0.85rem;
}

.contact-footer-wrapper .footer-bottom a:hover {
    color: #00d4ff;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .user-actions {
        gap: 5px;
    }
    .user-actions .nav-link-btn {
        font-size: 0.8rem;
    }
}

/* ============================================================
   二手交易模块样式（机器人集市）
   ============================================================ */

/* ---------- 导航栏下拉菜单 ---------- */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #0a1628;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 0;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 100;
    list-style: none;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 8px 20px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.dropdown-menu a:hover {
    color: var(--primary-color);
    background: rgba(0, 212, 255, 0.05);
}

/* ---------- 机器人集市（二手交易区块） ---------- */
.trade-market {
    padding: 80px 0;
    background: #f0f4fa;
}

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

.trade-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    border-left: 4px solid #00d4ff;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.trade-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* 出售/求购 标签 */
.trade-card .trade-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
    width: fit-content;
    letter-spacing: 0.5px;
}

.trade-card .trade-tag.sell {
    background: #ff4757;
    color: #fff;
}

.trade-card .trade-tag.buy {
    background: #2ed573;
    color: #fff;
}

/* 标题 */
.trade-card h3 {
    font-size: 1rem;
    color: #1a2332;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 元信息（品牌/型号/成色） */
.trade-card .trade-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 0.8rem;
    color: #888;
    margin: 6px 0;
}

/* 价格 */
.trade-card .trade-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ff4757;
    margin: 6px 0;
}

.trade-card .trade-price.buy-price {
    color: #2ed573;
}

/* 底部（地点 + 浏览量） */
.trade-card .trade-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f0f2f5;
    font-size: 0.75rem;
    color: #aaa;
}

.trade-card .trade-footer .location {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ---------- 手机端下拉菜单适配 ---------- */
@media (max-width: 768px) {
    .nav-dropdown .dropdown-menu {
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        padding-left: 20px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }
    
    .nav-dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        padding: 6px 0;
        font-size: 0.85rem;
    }
    
    .trade-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .category-card {
        padding: 24px 16px 20px;
        min-height: 150px;
    }
    .category-card .category-icon {
        font-size: 2.2rem;
    }
    .category-card h3 {
        font-size: 0.9rem;
    }
}

/* ---------- 平板端微调 ---------- */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-links {
        gap: 0.5rem;
    }
    .nav-links a {
        font-size: 0.82rem;
        padding: 4px 8px;
    }
    .btn-contact {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
    .logo-text {
        font-size: 1.1rem;
    }
}

/* ---------- 手机端小屏微调 ---------- */
@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .category-card {
        padding: 18px 12px 16px;
        min-height: 120px;
        border-radius: 14px;
    }
    .category-card .category-icon {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    .category-card h3 {
        font-size: 0.8rem;
    }
    .category-card p {
        font-size: 0.7rem;
    }
}

/* ===== 国际贸易板块 ===== */
.global-trade {
    padding: 70px 0;
    background: linear-gradient(135deg, #0a1628 0%, #16213e 100%);
}

.global-trade .section-title {
    color: #fff;
}

.global-trade .section-subtitle {
    color: #b0b8c5;
}

.global-trade-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.global-trade-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 14px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
}

.global-trade-card:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: #00d4ff;
    transform: translateY(-4px);
}

.global-trade-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.global-trade-card h3 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.global-trade-card p {
    color: #b0b8c5;
    font-size: 0.85rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .global-trade-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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