:root {
  --atomy-blue: #007bff; /* Primary brand color */
  --atomy-light-blue: #e6f2ff;
  --atomy-white: #ffffff;
  --atomy-dark: #333333;
  --atomy-gray: #666666;
  --atomy-light-gray: #f5f5f5;
  --atomy-border: #eeeeee;
  
  --font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', Arial, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background-color: var(--atomy-light-gray);
  color: var(--atomy-dark);
  -webkit-font-smoothing: antialiased;
}

/* Mobile container (constrained for H5 view on desktop) */
.mobile-container {
  max-width: 480px;
  margin: 0 auto;
  background-color: var(--atomy-white);
  min-height: 100vh;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  position: relative;
}

/* Header */
.header {
  background-color: var(--atomy-blue);
  color: var(--atomy-white);
  padding: 15px 20px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
}

/* Dealer Card Banner */
.dealer-profile {
  background: linear-gradient(135deg, var(--atomy-blue) 0%, #4da6ff 100%);
  color: var(--atomy-white);
  padding: 30px 20px;
  display: flex;
  align-items: center;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  margin-bottom: 20px;
}

.dealer-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.3);
  object-fit: cover;
  margin-right: 15px;
}

.dealer-info h2 {
  margin: 0 0 5px 0;
  font-size: 20px;
}

.dealer-info p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

/* Navigation Grid */
.nav-grid {
  display: flex;
  flex-wrap: wrap;
  padding: 0 10px;
  margin-bottom: 20px;
}

.nav-item {
  width: 25%;
  text-align: center;
  margin-bottom: 15px;
  text-decoration: none;
  color: var(--atomy-dark);
}

.nav-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--atomy-light-blue);
  color: var(--atomy-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 5px auto;
  font-size: 20px;
}

.nav-text {
  font-size: 12px;
}

/* Article List */
.section-title {
  padding: 0 20px;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  border-left: 4px solid var(--atomy-blue);
  line-height: 1;
}

.article-list {
  padding: 0 20px;
}

.article-item {
  display: flex;
  padding: 15px 0;
  border-bottom: 1px solid var(--atomy-border);
  text-decoration: none;
  color: inherit;
}

.article-content {
  flex: 1;
  padding-right: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-title {
  font-size: 16px;
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  font-size: 12px;
  color: var(--atomy-gray);
  display: flex;
  justify-content: space-between;
}

.article-cover {
  width: 100px;
  height: 70px;
  border-radius: 4px;
  object-fit: cover;
}

/* Contact floating button */
.fab-contact {
  position: fixed;
  bottom: 30px;
  right: calc(50% - 220px); /* Aligned within container */
  width: 56px;
  height: 56px;
  background-color: var(--atomy-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,123,255,0.3);
  text-decoration: none;
  font-size: 24px;
  z-index: 100;
}

@media (max-width: 480px) {
  .fab-contact {
    right: 20px;
  }
}

/* Article Detail Page */
.article-detail-header {
  padding: 20px;
}
.article-detail-title {
  font-size: 22px;
  margin-bottom: 10px;
}
.article-detail-meta {
  color: var(--atomy-gray);
  font-size: 13px;
  margin-bottom: 20px;
}

.article-detail-content {
  padding: 0 20px 30px 20px;
  font-size: 16px;
  line-height: 1.6;
  color: #2c3e50;
}
.article-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 10px 0;
}
