/* buyEnergy page styles */
.page-container { padding: 30px 0 }
.be-hero { display: flex; gap: 24px; align-items: flex-start }
.hero-left { flex: 1; padding: 20px 28px; background: linear-gradient(180deg,#ffffff,#f7fbff); border-radius: 10px; border: 1px solid rgba(42, 86, 165,0.1) }
.hero-left h1 { font-size: 22px; color: #163E6A; margin-bottom: 8px;text-align:center; }
.hero-desc { color: #3d4850; line-height: 2; text-indent: 2em; margin: 22px 0; }
.address-row { margin-top: 18px }
.label { display: block; font-weight: 700; margin-bottom: 6px; color: #334 }
.address-block { width: 380px; margin: auto; text-align: center; }
.address-block .label { font-size:18px; }
.address-box { display: flex; align-items: center; gap: 8px; background: #f1f7ff; padding: 2px 10px; border-radius: 6px; border: 1px solid rgba(1,69,140,0.06) }
.address-box i { font-weight: bold; font-size: 22px; cursor: pointer; color: #502828; }
.address-text { flex: 1; font-family: Arial,Helvetica,sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.hero-list { margin-top: 18px; color: #425564; font-size: 14px; line-height: 2 }

.be-order { width: 420px; padding: 18px; border-radius: 10px; background: #ffffff; border: 1px solid rgba(0,0,0,0.03) }
.be-order h3 { margin: 0 0 16px 0; color: #0b3a66 }
.form-row { margin-bottom: 20px }
.btnconnect { line-height: 20px !important; height: 20px !important; border-radius: 5px !important; font-size: 12px !important; font-family: Arial, Helvetica, sans-serif; padding: 0 6px !important; font-weight: initial !important; }
.form-row input, .form-row select { width: 100%; padding: 10px; border-radius: 6px; border: 1px solid #d5e9fb; font-size: 14px }
.form-flex { display: flex; gap: 10px; align-items: center }
.flex-item { flex: 1 }
.price-item { width: 160px }
.unit-price { padding: 10px; background: #f8fafc; border-radius: 6px; text-align: center; font-weight: 700 }
.total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.total-label { color: #516070 }
.total-value { font-weight: 700; color: #0b3a66 }
.full-btn { width: 100% }
.hint { margin-top: 12px; font-size: 13px; color: #5b6b78; text-indent: 2em; }

.be-features { display: flex; gap: 16px; margin-top: 26px }
.feature { flex: 1; padding: 16px; border-radius: 8px; background: linear-gradient(180deg,#fff,#fbfeff); border: 1px solid rgba(0,0,0,0.03); text-align: center; box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.1) 0px 2px 4px -2px; background: linear-gradient(to bottom, rgba(62, 200, 240, 0.1), #ffffff); }
.feature i { font-size: 56px; color: #1f6fb8 }
.feature h4 { margin: 0 0 8px 0; color: #153a60 }
.feature p { color: #546a75 }

.be-how { margin-top: 28px; background: #fff; padding: 18px; border-radius: 8px; border: 1px solid rgba(0,0,0,0.03) }
.be-how h3 { margin: 0 0 12px 0; color: #163E6A }
.be-how ol { color: #44545a; line-height: 1.8 }

/* Illustration for how-it-works */
.how-with-illu { display: flex; gap: 18px; align-items: flex-start }
.how-illu { width: 580px; flex-shrink: 0 }
.how-illu img { width: 100%; height: auto; }
.how-steps { flex: 1; }
.how-steps ol { counter-reset: num; }
.how-steps ol li { counter-increment: num; position: relative; padding-left: 25px; width: 100%; line-height: 42px; color: #333; border-bottom: 1px dotted rgba(42, 86, 165,0.5); display: inline-block; }
.how-steps ol li::before { content: counter(num) ". "; position: absolute; left: 0; top: 0; }

.be-activity { margin-top: 20px }
.activity-table { width: 100%; margin-top: 8px; border-collapse: collapse }
.activity-table thead tr { background: #f1f7ff; color: #0b3a66; text-align: left }
.activity-table th, .activity-table td { padding: 8px; border: 1px solid #eef2f6; }
.activity-table tr:nth-child(even) { background-color: rgba(213,233,251,0.2); }
.activity-table th:first-child { border-top-left-radius: 5px; }
.activity-table th:last-child { border-top-right-radius: 5px; }


.be-faq { margin-top: 18px }
.be-faq h3 { color: #163E6A; }
.be-faq dl dt { display: flex; font-weight: 700; margin-top: 8px; line-height: 45px; border-radius: 5px; padding-left: 6px; box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 4px -2px; background: #F1F7FF; }
.be-faq dl dt i { color: #4D6366; font-size: 22px; font-weight: initial; margin-right: 9px; }
.be-faq dl dd { margin-bottom: 10px; color: #43545a; line-height: 35px; padding: 9px; background: rgba(247, 251, 254, 0.5); }

.qRCodeParent { display: flex; flex-direction: column; justify-content: center; }
.qRCodeParent #qrcode { text-align: center; }
.qRCodeParent #qrcode img[src],
.qRCodeParent #qrcode canvas[width] { border: 1px solid #ccc; padding: 9px; margin: auto; width: 200px; height: 200px; }
#LAY_PopupLayerQRCode { padding-bottom: 6px; }

.be-links { margin-top: 20px; }
.be-links dl { padding: 12px; }
.be-links dl dt { font-weight: bold; line-height: 20px; margin: 9px 0; }
.be-links dl dd { text-indent: 2em; line-height: 32px; }

@media only screen and (max-width: 768px) {
    .be-hero { display: block }
    .be-order { width: 100%; margin-top: 12px; }
    .be-features { display: block; }
    .be-features .feature { margin-top: 12px; }
    .how-steps ol li { line-height: 30px; padding: 9px; padding-left: 18px; }
    .how-steps ol li::before { top: 9px; }
    .how-illu { display: none; }
    .activity-table { display: none; }
    main { padding: 9px; }
    .page-container { padding-top: 6px; }
    .hero-left { padding: 12px; }
    .hero-left h1 { font-size: 19px; }
    .address-box { padding: 0 3px; gap: 5px; }
    .be-faq dl dt { line-height: 25px; padding: 9px; }
    .address-text { font-size: 12px; }
    .address-block { width:100%; }
}
