/* styles/reseller.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.contact-btn-link {
    width: 100%;
    display: inline-block; /* 或 block */
    text-decoration: none;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

body {
    min-height: 100vh;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 102, 255, 0.1), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 255, 204, 0.1), transparent 40%),
        #0a0a1a;
    animation: starrySky 20s linear infinite;
    color: #ffffff;
    padding: 2rem;
}

@keyframes starrySky {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

/* 新增导航栏样式 */
.navbar {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 26, 0.9);
}

.nav-links {
    display: flex;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-link:hover {
    background: rgba(0, 255, 204, 0.1);
}

.brand {
    font-weight: bold;
    background: linear-gradient(45deg, #00ffcc, #0066ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.container {
    padding-top: 100px; /* 给导航栏留出空间 */
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* 星空粒子效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        linear-gradient(white 1px, transparent 1px),
        linear-gradient(90deg, white 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.05;
    pointer-events: none;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    from { transform: translate(-15px, -15px); }
    to { transform: translate(0, 0); }
}

.header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.header h1 {
    font-size: 2.5rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00ffcc, #0066ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
}

.dealer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.dealer-card {
    background: rgba(30, 30, 50, 0.9);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    min-height: 340px;
    position: relative;
}

.dealer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 255, 204, 0.2);
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #00ffcc;
    margin: 0 auto 1.5rem;
    overflow: hidden;
}

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

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

.dealer-info {
    text-align: center;
    margin-bottom: 1.5rem;
}

.dealer-name {
    font-size: 1.2rem;
    color: #00ffcc;
    margin-bottom: 0.5rem;
}

.dealer-meta {
    font-size: 0.9rem;
    color: #cccccc;
    line-height: 1.4;
}

.certification {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem 0;
}

.cert-badge {
    background: rgba(0, 255, 204, 0.1);
    color: #00ffcc;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 255, 204, 0.3);
}

.stats {
    display: flex;
    justify-content: space-around;
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

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

.stat-value {
    color: #00ffcc;
    font-weight: bold;
    font-size: 1.1rem;
}

.stat-label {
    font-size: 0.75rem;
    color: #888;
}

.contact-btn {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(45deg, #00ffcc, #0066ff);
    color: #000;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 204, 0.3);
}

/* 页脚 */
.footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 3rem 0;
    text-align: center;
    color: #888;
}

@media (max-width: 1200px) {
    .dealer-grid {
        grid-template-columns: repeat(3, minmax(240px, 1fr));
    }
}

@media (max-width: 992px) {
    .dealer-grid {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
    }
}

@media (max-width: 576px) {
    body {
        padding: 1rem;
    }
    .dealer-grid {
        grid-template-columns: 1fr;
    }
    .header h1 {
        font-size: 2rem;
    }
}

.btn-row {
  display: flex;
  justify-content: center;   /* 水平居中 */
  gap: 60px;                 /* 按钮间距 */
  margin-top: 1.5rem;
  flex-wrap: wrap;           /* 窄屏时自动换行 */
}

.btn-row .contact-btn-link {
  width: auto;               /* 取消之前 100% 宽度限制 */
  display: inline-block;     /* 保持行内块元素 */
  flex-grow: 1;              /* 让按钮等宽可扩展 */
  max-width: 550px;          /* 按钮最大宽度限制 */
}

.btn-row .contact-btn {
  width: 100%;               /* 让按钮填满a标签 */
  padding: 0.8rem 1.2rem;    /* 调整内边距 */
  font-size: 1rem;           /* 字体稍微放大点 */
  background: linear-gradient(45deg, #00ffcc, #0066ff);
  color: #000;
  border-radius: 6px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-row .contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 204, 0.3);
}


/* intro-section 样式 */
.intro-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

.intro-section h2 {
    color: #00ffcc;
    margin-bottom: 1rem;
}

.intro-section p {
    line-height: 1.6;
}