/* ===== reset & base ===== */
* {
  margin: 0;
  padding: 0;
  border: none;
  font-family: '微软雅黑', sans-serif !important;
  font-size: 14px;
  box-sizing: border-box;
  color: #333;
  text-decoration: none;
}
a:hover {
  color: #f83244;
  transition: all 0.3s ease;
}
ul, li {
  list-style: none;
}
*,
:after,
:before {
  outline: 0 !important;
}

/* ===== layout ===== */
.site-header {
  width: 100%;
  float: left;
  padding: 0 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
}
.site-logo {
  width: 200px;
  float: left;
}
.site-logo a {
  line-height: 60px;
  font-size: 32px;
  color: #f83244;
  font-weight: 600;
}
.site-nav {
  float: left;
  margin-left: 5px;
  max-width: 980px;
  height: 60px;
  overflow: hidden;
}
.site-nav li {
  float: left;
  margin: 0 15px;
  position: relative;
}
.site-nav li a {
  line-height: 60px;
  font-size: 16px;
}
.user-links {
  float: right;
}
.user-links a {
  margin-left: 5px;
  line-height: 60px;
}
.menu-toggle {
  display: none;
}
.site-main {
  width: 100%;
  float: left;
  margin-top: 60px;
}
.container {
  width: calc(100% - 540px);
  margin: 0 auto;
}
.content-primary {
  width: calc(100% - 320px);
  float: left;
}
.content-secondary {
  width: 280px;
  float: right;
}
.site-footer {
  float: left;
  width: 100%;
  padding: 30px 0;
  margin: 50px 0 0 0;
  text-align: center;
  background: #f7f9fa;
}
.site-footer p {
  float: left;
  width: 100%;
  margin: 5px 0;
  font-size: 14px;
}
.site-footer p a {
  font-size: 14px;
}

/* ===== common components ===== */
.card {
  padding: 20px 25px;
  margin:20px 0 0 0;
  border-radius: 10px;
  background: #f7f9fa;
}
.section-title {
  width: 100%;
  float: left;
  font-size: 24px;
  font-weight: 500;
  position: relative;
  text-indent: 20px;
}
.section-title:before {
  content: '';
  color: #f83244;
  position: absolute;
  top: 5px;
  display: block;
  width: 5px;
  height: 25px;
  background: #f83244;
  margin-right: 10px;
}
.section-title span {
  float: right;
  text-align: center;
  margin: 2px 0 0 0;
  display: block;
  padding: 5px 10px;
  text-indent: 0;
  font-size: 14px;
  background: #fff;
  color: #7b8a9b;
  border-radius: 30px;
}
.section-title a {
  font-size: 24px;
}

/* ===== price summary cards (top) ===== */
.price-summary {
  width: 100%;
  float: left;
}
.price-summary-item {
  width: calc(50% - 10px);
  float: left;
}
.price-summary-item:nth-child(2) {
  margin-left: 20px;
}
.price-summary-item p {
  width: 100%;
  float: left;
  margin-top: 5px;
}
.price-summary-item h3 {
  width: 100%;
  float: left;
  font-size: 18px;
  margin-top: 5px;
  color: #d4af37;
}
.price-summary-item h3 span {
  float: right;
  font-size: 16px;
}

/* ===== chart section ===== */
.chart-section {
  width: 100%;
  float: left;
  margin-top: 20px;
}
.chart-wrapper {width: 100%;
  float: left;
  height: 340px !important;
  margin-top: 20px; 
}
#goldPriceChart {
  border-radius: 12px;
  background-color: #ffffff;
  border: 1px solid #e7ecf3;
  padding: 10px;
}

/* ===== data table (brand prices) ===== */
.data-table {
  width: 100%;
  float: left;
  margin: 20px 0 0 0;
}
.data-table table {
  width: 100%;
  margin: 20px 0 0 0;
  float: left;
  background: #fff;
  border-radius: 10px;
  border-collapse: collapse;
  text-align: center;
}
.data-table th {
  font-weight: 600;
  color: #2f3e57;
  padding: 0.9rem 0.6rem;
  white-space: nowrap;
  border-bottom: 1px solid #dde3ea;
}
.data-table td {
  padding: 1rem 0.6rem;
  border-bottom: 1px solid #e7ecf2;
  white-space: nowrap;
}
.data-table td img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}
.data-table tbody tr:last-child td {
  border-bottom: none;
}
.data-table td:first-child {
  font-weight: 560;
  color: #16212e;
}
.data-table .change {
  font-weight: 530;
  color: #4f5d73;
}
.data-table .positive {
  color: #b13e3e !important;
}
.data-table .negative {
  color: #0f7b4e !important;
}
.data-table td:nth-child(2),
.data-table td:nth-child(4) {
  font-weight: 480;
  color: #1e2c3d;
}

/* ===== calculator ===== */
.calculator {
  width: 100%;
  float: left;
}
.calculator h3 {
  text-align: center;
  font-size: 24px;
  font-weight: 500;
}
.calculator__input {
  float: left;
  width: 100%;
  margin: 15px 0 0 0;
  padding: 10px 16px;
  border: 1px solid #d0dbe8;
  border-radius: 10px;
  background: #ffffff;
  outline: none;
}
.calculator__golds {
  float: left;
  width: 100%;
  margin: 15px 0 0 0;
  padding: 10px 16px;
  border: 1px solid #d0dbe8;
  border-radius: 10px;
  background: #ffffff;
  outline: none;
}
.calculator__result {
  width: 100%;
  float: left;
  padding: 20px 0 5px 0;
  text-align: center;
  display: none;
}
.calculator__result span {
  font-weight: bold;
  font-size: 22px;
  font-weight: 450;
  color: #1e2b3c;
}
.calculator__button {
  float: left;
  width: 100%;
  margin: 15px 0 0 0;
  height: 42px;
  line-height: 40px;
  border-radius: 10px;
  background: #e9f0f8;
  border: 1px solid #cdddec;
  color: #153243;
  cursor: pointer;
}
.calculator p {
  width: 100%;
  float: left;
  text-align: center;
  font-size: 12px;
  margin-top: 15px;
  color: #aab2bd;
}

/* ===== sidebar ===== */
.sidebar {
  width: 100%;
  float: left;
}
.sidebar__list {
  width: 100%;
  float: left;
  margin:30px 0 0 0;
}
.sidebar__list li {
  width: 100%;
  float: left;
  margin:10px 0 0 0;
  max-height:20px;
  overflow: hidden;
}
.sidebar__list li:before {
  content: '\02022';
  color: #b6c8d9;
  margin-right: 10px;
}
.sidebar__brand-list {
  width: 100%;
  float: left;
  margin:30px 0 0 0;
}
.sidebar__brand-list li {
  float: left;
  margin-right: 15px;
}
.sidebar__brand-list li a {
  display: block;
  padding: 5px 10px;
  margin: 15px 0 0 0;
  border-radius: 10px;
  background: #f7f9fa;
}

/* ===== brand price items (three colored blocks) ===== */
.brand-prices {
  width: 100%;
  float: left;
}
.brand-price-item {
  width: calc(33.3333% - 13.3333px);
  float: left;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}
.brand-price-item:nth-child(1) {
  background: linear-gradient(145deg, #fff7e6, #fff0d4);
  margin-left: 0;
}
.brand-price-item:nth-child(2) {
  margin-left: 20px;
  background: linear-gradient(145deg, #f0f4f8, #e9eef3);
}
.brand-price-item:nth-child(3) {
  margin-left: 20px;
  background: linear-gradient(145deg, #e8f5e9, #e0f0e3);
}
.brand-price-item .price-label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #4a4a4a;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}
.brand-price-item .price-value {
  display: block;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  color: #2c3e50;
}
.brand-price-item .unit {
  font-size: 16px;
  font-weight: 400;
  color: #7f8c8d;
  margin-left: 4px;
}
.brand-price-item:nth-child(1) .price-value {
  color: #c49b2b;
}
.brand-price-item:nth-child(2) .price-value {
  color: #5f7a8c;
}
.brand-price-item:nth-child(3) .price-value {
  color: #2e7d32;
}
.brand-prices p {
  width: 100%;
  float: left;
  text-align: right;
  padding: 15px 0 0 0;
  font-size: 12px;
  color: #aab2bd;
}

/* ===== store collection ===== */
.store-collection {
  width: 100%;
  float: left;
}
.store-item {
  width: 100%;
  float: left;
  margin: 20px 0 0 0;
  padding: 20px;
  border-radius: 10px;
  background: #fff;
}
.store-item p {
  width: 100%;
  float: left;
}
.store-name {
  font-size: 20px;
}
.store-name a {
  font-size: 20px;
}
.store-tel,
.store-addr {
  margin: 5px 0 0 0;
}

/* ===== city collection ===== */
.city-collection {
  width: 100%;
  float: left;
}
.city-collection ul {
  width: 100%;
  float: left;
  margin: 10px 0 0 0;
}
.city-item {
  float: left;
  margin: 10px 10px 0 0;
  padding: 5px 10px;
  border-radius: 10px;
  background: #fff;
}

/* ===== store profile (detail page) ===== */
.store-profile {
  width: 100%;
  float: left;
  margin-top: 20px;
}
.store-profile__image {
  width: 150px;
  height: 180px;
  float: left;
}
.store-profile__image img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}
.store-profile__info {
  width: calc(100% - 170px);
  float: right;
}
.store-profile__info h1 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 15px;
}
.store-profile__info h1 a {
  font-size: 24px;
}
.store-profile__info li {
  width: 100%;
  float: left;
  margin-bottom: 15px;
}

/* ===== breadcrumb ===== */
.breadcrumb {
  width: 100%;
  float: left;
  background-color: #f7f9fa;
  padding: 10px 15px;
  border-radius: 5px;
}
.breadcrumb a {
  font-size: 14px;
  color: #666;
}

/* ===== brand about (right side in brand pages) ===== */
.brand-about {
  width: 100%;
  float: left;
}
.brand-about__image {
  width: 100%;
  float: left;
}
.brand-about__image img {
  display: block;
  width: 100px;
  height: 100px;
  margin: 0 auto;
  border-radius: 50%;
}
.brand-about h4 {
  width: 100%;
  float: left;
  font-size: 20px;
  text-align: center;
  margin-top: 10px;
}
.brand-about h4 a {
  font-size: 20px;
}
.brand-about p {
  width: 100%;
  float: left;
  margin-top: 10px;
}
/*article*/
.breadcrumb-navigation { width:100%; float:left; background-color:#f7f9fa; padding:10px 15px; margin:20px 0; border-radius:5px;  }
.breadcrumb-navigation a { font-size:14px; color:#666; }
.article-head { width:100%; float:left; text-align:center; padding:20px; }
.article-head h1 { width:100%; float:left; font-size:28px; font-weight:500; }
.article-head p { width:100%; float:left; margin:8px 0 0 0;  font-size:14px; color:#aab2bd; }
.article-html { width:100%; float:left; }
.article-html p { width:100%; float:left; margin-top:10px; line-height:32px; }
.article-html p strong { width:100%; float:left; margin: 13px 0 2px 0; padding:0 0 10px 0; font-size:22px; font-weight: 600; line-height: 38px;  border-bottom:1px solid #f1f1f1; }
.article-html p img { display:block; width:100%; max-width:100%; margin:10px auto; }
/* ===== responsive ===== */
@media (max-width: 900px) {
  .site-header {
    padding: 0px 3%;
  }
  .site-nav {
    position: fixed;
    top: 51px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 50px);
    margin: 0;
    padding: 30px 0 100px 0;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
  }
  .menu-toggle {
    display: block;
    position: fixed;
    top: 10px;
    right: 0;
    width: 40px;
    height: 40px;
    cursor: pointer;
  }
  .menu-toggle:before {
    content: '\2630';
    font-size: 24px;
    color: #656d78;
  }
  .site-nav.active {
    left: 0;
  }
  .site-nav ul {
    padding: 0 3%;
  }
  .user-links {
    display: none;
  }
  .container {
    width: 100%;
  }
  .site-main {
    padding: 0 3%;
  }
  .content-primary {
    width: 100%;
  }
  .content-secondary {
  width:100%; float:left;
  }
}


/*走势图*/
.chart-card {
            max-width: 1000px;
            width: 100%;
            background: #ffffff;
            border-radius: 32px;
            box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0, 0, 0, 0.05);
            padding: 20px 24px 28px 24px;
            transition: all 0.2s ease;
        }
.canvas-wrapper {width: 100%;
  float: left;
            background: #fefefe;
            border-radius: 10px;
            margin: 20px 0 0px 0;
            background: #ffffff;
            box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03), 0 4px 12px rgba(0,0,0,0.05);
        }
        canvas {
            display: block;
            width: 100%;
            height: auto;
            background: #ffffff;
            border-radius: 10px;
            cursor: crosshair; padding: 20px;
        }