@charset "UTF-8";

:root {
    --color: #007bff; 
    --l-color: #66b3ff;
    --d-color: #0056b3;

    --table-status-pending: #ffc107;
    --table-status-success: #28a745;
    --table-status-failed: #dc3545;
    --table-status-default: #6c757d;
    --table-header-bg: #f8f9fa;
    --table-row-hover: #f5f7fa;
    --table-border-color: #f0f0f0;
    --table-text-muted: #6c757d;
}

/* index */
* {
    margin: 0;
    padding: 0;
}

html, body {
    font-family: Arial, sans-serif;
}

a {
    color: black;
    text-decoration: none;
}

hr {
  border: 0;
  height: 1px;
  background: var(--t-color);
  margin: 10px auto;
  border-radius: 2px;
}

strong {
    color: var(--color);
}

/* head */
.header {
    height: 30px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* sidebar trigger */
.sidebar-trigger {
    display: inline-block;
    cursor: pointer;
}

.custom-trigger-icon {
    width: 30px;
    height: 30px;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.sidebar-open .sidebar-trigger .custom-trigger-icon {
    transform: rotate(90deg);
    opacity: 0.8;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
}

.sidebar-content {
    padding: 0 0 25px 0;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 1.1em;
}

.sidebar-avatar {
    width: 65%;
    height: auto;
    border-radius: 50%;
    border: 5px solid #ccc;
}
.vip {
    border: 5px solid gold;
}

@media (max-width: 768px) {
    .sidebar {
        width: 60%;
        right: -60%;
    }
}

.sidebar-open .sidebar-trigger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.sidebar-open .sidebar-trigger span:nth-child(2) {
    opacity: 0;
}

.sidebar-open .sidebar-trigger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
/* container */
.ui-container {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    border: 2px solid var(--color);
    border-radius: 8px;
    padding: 24px 16px 16px;
    margin: 16px 0;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ui-container::before {
    content: attr(data-name);
    position: absolute;
    top: 0;
    left: 16px;
    transform: translateY(-50%);
    background-color: var(--color);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ui-container .item {
    padding: 12px;
    background-color: white;
    border: 1px solid var(--l-color);
    border-radius: 4px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    margin: 8px 0;
}

.ui-container .item[size="full"] { flex: 1 0 100%; }
.ui-container .item[size="large"] { flex: 1 0 82.5%; }
.ui-container .item[size="medium"] { flex: 1 0 47.5%; }
.ui-container .item[size="small"] { flex: 1 0 24%; }
.ui-container .item[size="auto"] { flex: 0 1 auto; }

.ui-container .item[place="left"] { order: 1; margin-right: auto; }
.ui-container .item[place="center"] { order: 2; margin: 0 auto; }
.ui-container .item[place="right"] { order: 3; margin-left: auto; }

.ui-container .item:hover {
    border-color: var(--color);
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.1);
}

.ui-container .item-title {
    font-weight: bold;
    color: var(--d-color);
    margin-bottom: 4px;
}
.ui-container .item-content {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

/* block */
.block {
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.ui-block {
    padding: 12px 20px;
    margin: 8px 0;
    background-color: var(--color);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ui-block:hover {
    background-color: var(--d-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 特殊块样式变体 */
.ui-block.logout {
    background-color: transparent;
    color: #dc3545;
    border: 1px solid #dc3545;
}

.ui-block.logout:hover {
    background-color: rgba(220, 53, 69, 0.1);
}

/* container */
.section-container {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.section-title {
    color: var(--d-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.data-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.data-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
}

.data-card-label {
    font-size: 12px;
    color: #666;
}

.data-card-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--color);
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.info-list {
    border: 1px solid #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
}

.list-header {
    display: flex;
    padding: 12px 15px;
    background: #f9f9f9;
    border-bottom: 1px solid #f0f0f0;
    font-weight: bold;
}

.list-row {
    display: flex;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.list-row:last-child {
    border-bottom: none;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.setting-desc {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* table*/
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--table-border-color);
}

.data-table th {
    background-color: var(--table-header-bg);
    font-weight: 600;
    color: var(--d-color);
}

.data-table tr:hover {
    background-color: var(--table-row-hover);
}

.table-status {
    font-weight: 500;
}

.table-status-pending {
    color: var(--table-status-pending);
}

.table-status-success {
    color: var(--table-status-success);
}

.table-status-failed {
    color: var(--table-status-failed);
}

.table-status-default {
    color: var(--table-status-default);
}

.table-amount {
    font-weight: 600;
    color: var(--color);
}

.table-time {
    color: var(--table-text-muted);
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: -ms-autohiding-scrollbar;
        border: 1px solid #f0f0f0;
        border-radius: 5px;
    }
    
    .data-table {
        min-width: 600px;
    }
    .data-table th, 
    .data-table td {
        padding: 8px 10px;
        font-size: 14px;
    }
}

.no-data {
    text-align: center;
    padding: 40px;
    color: var(--table-text-muted);
    background-color: var(--table-header-bg);
    border-radius: 5px;
    margin: 20px 0;
}

.table-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.refresh-btn {
    background: none;
    border: none;
    color: var(--color);
    cursor: pointer;
    font-size: 1.2em;
    transition: transform 0.3s;
}

.refresh-btn:hover {
    transform: rotate(180deg);
}

/* select */
.table-select {
    padding: 8px 12px;
    border: 1px solid var(--table-border-color);
    border-radius: 4px;
    background-color: white;
    color: var(--d-color);
    font-size: 14px;
    margin-right: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
    padding-right: 30px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.table-select:focus {
    outline: none;
    border-color: var(--color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.table-select:hover {
    border-color: var(--color);
}

.table-select option {
    padding: 8px;
    background: white;
    color: #333;
}

.table-select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
}

/* body */
.content {
    padding: 20px;
    padding-top: 35px;
}

/* foot */
.footer {
    background-color: #f1f1f1;
    text-align: center;
    padding: 15px 0;
    bottom: 0;
    width: 100%;
}
.footer hr {border: 0;border-top: 1px dashed #8c8c8c;background: none;margin: 10px 0;}.footer img {width: 90%;max-width: 400px;}.footer .item {display: inline-block;}.footer a {color: #262f3e;}

/* button */
button {
    background-color: var(--color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    text-align: center;
    margin-top: 2.5px;
    margin-bottom: 5px;
}

button[size="full"] {width: 90%;}
button[size="half"] {width: 45%;}
button[place="left"] {margin-right: auto;}
button[place="center"] {margin: 0 auto;}
button[place="right"] {margin-left: auto;}
button[align="left"] {text-align: left;}
button[align="center"] {text-align: center;}
button[align="right"] {text-align: right;}
button[disabled] {background-color: var(--l-color);}
button[inline] {
    display: inline-block;
    margin: 0;
    vertical-align: middle;
    text-align: center;
}
button[radius="none"] {border-radius: 0;}
button[radius="half"] {border-radius: 25%;}
button[radius="full"] {border-radius: 50%;}
button[radius] {border-radius: var(--button-radius);}
button[radius^="0"],button[radius^="1"],button[radius^="2"],
button[radius^="3"],button[radius^="4"],button[radius^="5"],
button[radius^="6"],button[radius^="7"],button[radius^="8"],
button[radius^="9"] {
  border-radius: attr(radius px);
}

/* input */
input {
    background-color: white;
    color: #333;
    padding: 10px 20px;
    border: 2px solid #ccc;
    border-radius: 5px;
    cursor: text;
    transition: border-color 0.3s ease;
    display: block;
    text-align: left;
    margin-top: 2.5px;
    margin-bottom: 5px;
    outline: none;
    font-size: 16px;
}

input:focus { border-color: var(--color); }
input[size="full"] { width: 90%; }
input[size="half"] { width: 42.5%; }
input[place="left"] { margin-right: auto; }
input[place="center"] {
    margin-left: auto;
    margin-right: auto;
    margin-top: 2.5px;
    margin-bottom: 10px;
}
input[place="right"] { margin-left: auto; }
input[align="left"] { text-align: left; }
input[align="center"] { text-align: center; }
input[align="right"] { text-align: right; }
input[inline] { 
    display: inline-block;
    margin: 0;
    vertical-align: middle;
    text-align: center;
}

/* textarea */
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: white;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    margin: 8px 0;
    outline: none;
}

textarea:focus {
    border-color: var(--color);
}

textarea[disabled] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

textarea.error {
    border-color: #dc3545;
}

textarea {
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    textarea {
        padding: 10px;
        font-size: 15px;
    }
}

button + textarea,
textarea + button {
    margin-top: 15px;
}

.textarea-container {
    position: relative;
    margin-bottom: 20px;
}

.textarea-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--d-color);
}

.char-count {
    display: block;
    text-align: right;
    font-size: 0.8em;
    color: #666;
    margin-top: 5px;
}

/* tab */
.tab {
    --tab-active-color: var(--color);
    --tab-inactive-color: #666;
    position: relative;
    max-width: 500px;
    margin: 20px auto;
    font-family: inherit;
}

.tab-nav-container {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 20px;
}

.tab-nav-container::-webkit-scrollbar {
    display: none;
}

.tab-nav {
    display: inline-flex;
    border-bottom: 1px solid #f0f0f0;
    min-width: 100%;
    white-space: nowrap;
}

.tab-nav-item {
    padding: 12px 20px;
    cursor: pointer;
    color: var(--tab-inactive-color);
    border-bottom: 2px solid transparent;
    font-weight: normal;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.tab-nav-item.active {
    color: var(--tab-active-color);
    font-weight: bold;
    border-bottom-color: var(--tab-active-color);
}

.tab-content {
    display: none;
    padding: 0 15px;
    animation: fadeIn 0.3s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* load */
.load {
    width: 100%;
    background-color: #f1f1f1;
    border-radius: 10px;
    height: 25px;
    margin: 15px 0;
    position: relative;
    overflow: hidden;
}

.load::before {
    content: '';
    position: absolute;
    width: var(--progress-width, 0%);
    height: 100%;
    background-color: var(--color);
    transition: width 0.3s ease;
}

.load::after {
    content: attr(data-display);
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: var(--color);
    background: linear-gradient(to right, 
        #fff 0%, 
        #fff var(--progress-width, 0%), 
        var(--color) var(--progress-width, 0%), 
        var(--color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .load::after {
        font-size: 12px;
    }
}

.mainTip {
  position: relative;
}

.mainTip::before {
  content: attr(data-content);
  position: absolute;
  top: 0px;
  right: -12px;
  background-color: red;
  color: white;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 12px;
  transform: rotate(calc(var(--angle, 30) * 1deg)); 
  transform-origin: right bottom;
  z-index: 1;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* payment */
.payment-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 0;
    background: white;
    text-align: center;
}
.payment-option i {
    font-size: 28px;
    margin-bottom: 5px;
}
.payment-option div {
    font-weight: 500;
    font-size: 14px;
}
.payment-option small {
    margin-top: 3px;
}
.payment-option[data-selected] {
    border-color: var(--color);
    background: rgba(0, 123, 255, 0.05);
}