/* 字體引用 */
@font-face {
    font-family: 'SF Pro Text Medium';
    src: url('/pages/submenu/Polygon/Polygon記錄/fonts/SFProTextMedium.otf') format('opentype');
}

@font-face {
    font-family: 'SF Pro Text Regular';
    src: url('/pages/submenu/Polygon/Polygon記錄/fonts/SFProTextRegular.otf') format('opentype');
}

/* 全局樣式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
    min-width: 1385px;
}

/* 容器佈局 */
.container {
    display: flex;
    gap: 0;
    padding: 0;
    width: 1385px;
    height: 842px;
    margin: 0;
    background: #fff;
}

/* 預覽區域樣式 */
.preview-section {
    width: 385px;
    height: 842px;
    background: #f5f5f5;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    border-right: 1px solid #eee;
    position: relative;
}

.preview-container {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
    position: relative;
    padding-bottom: 96px;
    overflow: visible;
}

/* 頭部樣式 */
.preview-header {
    display: flex;
    align-items: center;
    height: 42px;
    padding: 0;
    margin: 15px 0 0;
    justify-content: center;
    position: relative;
}

.back-button {
    position: absolute;
    left: 16px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.back-button img {
    width: 10px;
    height: 18px;
}

.token-logo {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.token-logo img {
    width: 42px;
    height: 42px;
}

/* 文字區塊樣式 */
.text-block {
    width: 385px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.text-block h1 {
    font-family: 'SFProTextMedium', sans-serif;
    font-size: 14px;
    color: #111D4A;
    margin: 5px 0 0;
    height: 16px;
    line-height: 16px;
    text-align: center;
    min-width: 28.11px;
    width: auto;
}

.text-block p {
    font-family: 'SFProTextMedium', sans-serif;
    font-size: 12px;
    color: #111D4A;
    margin: 5px 0 0;
    height: 14px;
    line-height: 14px;
    text-align: center;
    min-width: 34.08px;
    width: auto;
}

/* 餘額部分樣式 */
.balance-section {
    width: 352px;
    height: 101px;
    background: #FFFFFF;
    margin: 25px 16.5px 0;
    padding: 16px;
    border-radius: 12px;
}

.balance-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.balance-amount h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 4px;
    margin-top: -8px;
}

.balance-usd {
    font-size: 13px;
    color: #666;
    margin-top: -4px;
}

/* 歷史記錄部分 */
.history-section {
    width: 352px;
    height: auto;
    min-height: 313px;
    background: #FFFFFF;
    margin: 17px 16.5px 0;
    padding: 16px;
    border-radius: 12px;
}

.transaction-list {
    display: flex;
    flex-direction: column;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0;
}

.history-header h3 {
    width: 48px;
    height: 16px;
    font-family: 'SFProTextRegular', sans-serif;
    font-size: 12px;
    color: #A0A4B6;
    line-height: 16px;
}

.view-more {
    width: 48px;
    height: 16px;
    font-family: 'SFProTextRegular', sans-serif;
    font-size: 12px;
    color: #007FFF;
    text-decoration: none;
    line-height: 16px;
}

/* 交易記錄樣式 */
.transaction-item {
    display: flex;
    align-items: flex-start;
    padding: 11px 0;
    width: 320px;
    height: 54px;
    margin-bottom: 15px;
    position: relative;
}

.transaction-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #eee;
}

.transaction-item:last-child {
    margin-bottom: 0;
}

.transaction-icon {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transaction-icon img {
    width: 32px;
    height: 32px;
}

.transaction-icon.send {
    background: #007bff;
}

.transaction-icon.receive {
    background: #4BCE71;
}

.transaction-details {
    width: 278px;
    display: flex;
    flex-direction: column;
}

.transaction-first-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 17px;
    margin-bottom: 4px;
}

.transaction-type {
    width: 26px;
    height: 17px;
    font-family: 'SFProTextMedium', sans-serif;
    font-size: 13px;
    color: #111D4A;
    line-height: 17px;
}

.transaction-amount {
    font-family: 'SFProTextMedium', sans-serif;
    font-size: 14px;
    line-height: 16px;
    text-align: right;
}

.transaction-amount.negative {
    width: 51.88px;
    color: #111D4A;
}

.transaction-amount.positive {
    width: 53.67px;
    color: #4BCE71;
}

.transaction-second-line {
    display: flex;
    align-items: center;
    height: 16px;
    justify-content: space-between;
}

.transaction-left {
    display: flex;
    align-items: center;
    width: 160px;
}

.transaction-prefix {
    white-space: nowrap;
    width: auto;
    height: 16px;
    font-family: 'SFProTextRegular', sans-serif;
    font-size: 12px;
    color: #111D4A;
    line-height: 16px;
    margin-right: 4px;
}

.transaction-address {
    width: 130px;
    height: 14px;
    font-family: 'SFProTextRegular', sans-serif;
    font-size: 12px;
    color: #A0A4B6;
    line-height: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transaction-time {
    width: 85px;
    height: 14px;
    font-family: 'SFProTextRegular', sans-serif;
    font-size: 12px;
    color: #A0A4B6;
    line-height: 14px;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 底部按鈕樣式 */
.action-buttons {
    width: 353px;
    height: 96px;
    background: #F0F1F3;
    padding: 26px 16px 35px;
    margin: auto 16px;
    display: flex;
    justify-content: space-between;
    position: absolute;
    bottom: 0;
    z-index: 1;
}

.action-buttons::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 137px;
    height: 5px;
    background: #000000;
    border-radius: 2.5px;
    z-index: 2;
    display: block !important;
}

.btn-receive {
    width: 55px;
    height: 55px;
    background: #FFFFFF;
    color: rgba(0, 0, 0, 0.9);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-receive img {
    width: 19px;
    height: 20px;
}

.btn-middle {
    width: 120px;
    height: 55px;
    background: #FFFFFF;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}

.btn-middle img {
    width: 16px;
    height: 16px;
}

.btn-middle span {
    font-size: 16px;
    font-family: 'SFProTextRegular';
    color: rgba(0, 0, 0, 0.9);
    height: 21px;
    line-height: 21px;
}

.btn-transfer {
    width: 120px;
    height: 55px;
    background: #007FFF;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-transfer img {
    width: 16px;
    height: 16px;
}

.btn-transfer span {
    font-size: 16px;
    font-family: 'SFProTextRegular';
    height: 21px;
    line-height: 21px;
}

/* 編輯區域樣式 */
.edit-section-one {
    width: 500px;
    height: 842px;
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
    border-left: 1px solid #eee;
    padding: 20px;
}

.save-button {
    width: 88px;
    height: 32px;
    background: #409EFF;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.edit-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    color: #333;
}

.form-input {
    height: 32px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    padding: 0 10px;
    font-size: 14px;
    width: 100%;
}

.form-select {
    height: 32px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    padding: 0 10px;
    font-size: 14px;
    width: 100%;
    background: #fff;
}

.history-edit-section {
    margin-top: 30px;
}

.history-edit-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 8px;
    padding: 0;
}

.header-label {
    font-size: 14px;
    color: #333;
    text-align: center;
}

.history-edit-group {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.history-edit-group:last-child {
    margin-bottom: 0;
}

.history-edit-group .form-input:nth-child(1) {
    width: 100%;
    min-width: 220px;
}

.history-edit-group .form-input:nth-child(2) {
    width: 100%;
    min-width: 80px;
}

.history-edit-group .form-input:nth-child(3) {
    width: 100%;
    min-width: 100px;
}

.address-input {
    width: 200px;
}

.amount-input {
    width: 100px;
}

.time-input {
    width: 120px;
}

/* 狀態欄樣式 */
.status-bar {
    width: 385px;
    height: 45px;
    background: #f5f5f5;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-bar-time {
    width: 67px;
    height: 22px;
    color: #000000;
    font-family: 'SFProTextMedium';
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border-radius: 11px;
}

/* 時間狀態樣式 */
.status-bar-time.green {
    color: #FFFFFF;
    background-color: #30D158;
}

.status-bar-time.blue {
    color: #FFFFFF;
    background-color: #0A84FF;
}

.status-bar-time.yellow {
    color: #FFFFFF;
    background-color: #FF9F0A;
}

.status-bar-right {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.sim-signal,
.network-status,
.battery-status {
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 編輯區域二樣式 */
.edit-section-two {
    width: 500px;
    height: 842px;
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
    border-left: 1px solid #eee;
    padding: 20px;
}

.edit-section-two .edit-block {
    margin-bottom: 30px;
}

.edit-section-two h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

.edit-section-two .edit-item {
    margin-bottom: 15px;
}

.edit-section-two .edit-item:last-child {
    margin-bottom: 0;
}

.edit-section-two label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.edit-section-two select {
    width: 100%;
    height: 32px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    padding: 0 10px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

.edit-section-two select:focus {
    outline: none;
    border-color: #409EFF;
}

/* 狀態欄右側圖標 */
.status-bar-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sim-signal,
.network-status,
.battery-status {
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 網絡狀態圖標 */
.network-status.wifi1 { background-image: url('/pages/submenu/Polygon/Polygon記錄/images/wifi1.png'); }
.network-status.wifi2 { background-image: url('/pages/submenu/Polygon/Polygon記錄/images/wifi2.png'); }
.network-status.wifi3 { background-image: url('/pages/submenu/Polygon/Polygon記錄/images/wifi3.png'); }
.network-status.wifi4 { background-image: url('/pages/submenu/Polygon/Polygon記錄/images/5g.png'); }

/* 電池狀態圖標 */
.battery-status.battery1 { background-image: url('/pages/submenu/Polygon/Polygon記錄/images/battery1.png'); }
.battery-status.battery2 { background-image: url('/pages/submenu/Polygon/Polygon記錄/images/battery2.png'); }
.battery-status.battery3 { background-image: url('/pages/submenu/Polygon/Polygon記錄/images/battery3.png'); }
.battery-status.battery4 { background-image: url('/pages/submenu/Polygon/Polygon記錄/images/battery4.png'); }
.battery-status.battery5 { background-image: url('/pages/submenu/Polygon/Polygon記錄/images/battery5.png'); }
.battery-status.battery6 { background-image: url('/pages/submenu/Polygon/Polygon記錄/images/battery6.png'); }

/* logo區塊樣式 */
.logo-block {
    width: 385px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 15px 0 0;
}

.back-button {
    position: absolute;
    left: 16px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.back-button img {
    width: 10px;
    height: 18px;
}

.token-logo {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.token-logo img {
    width: 42px;
    height: 42px;
} 