* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100dvh;
    background: #fff;
    position: relative;
    padding-bottom: 60px;
}

.header {
    background: #fff;
    padding: 15px 20px;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.container {
    padding: 20px;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.form-item {
    position: relative;
    margin-bottom: 20px;
}

.form-item input,
.form-item select {
    width: 100%;
    height: 50px;
    padding: 0 15px 0 45px;
    border: none;
    border-radius: 10px;
    background: #f5f7fa;
    font-size: 15px;
    color: #333;
}

.form-item input:focus,
.form-item select:focus {
    outline: none;
    background: #f5f7fa;
}

.form-item i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #666;
    z-index: 1;
}

.code-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    height: 40px;
    padding: 0 15px;
    border: none;
    border-radius: 8px;
    background: #3b82f6;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.code-btn:disabled {
    background: #94a3b8;
}

.submit-btn {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 10px;
    background: #3b82f6;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 10px;
}

.price-box {
    text-align: center;
    padding: 10px;
    margin: 20px 0;
    background: #f5f7fa;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 500;
    color: #ef4444;
}

.footer {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    box-shadow: 0 -1px 6px rgba(0,0,0,0.1);
    z-index: 100;
    max-width: 480px;
    margin: 0 auto;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: all 0.3s;
    cursor: pointer;
}

.nav-item:hover {
    color: #3b82f6;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 3px;
}

.nav-item span {
    font-size: 12px;
}

.nav-item.active {
    color: #3b82f6;
}

.nav-item[data-page="home"] i:before {
    content: "\e68e";
}

.nav-item[data-page="order"] i:before {
    content: "\e653";
}

.nav-item[data-page="search"] i:before {
    content: "\e60b";
}

.results-box {
    padding-top: 30px;
}

.results-box .order-item {
    background: #f5f7fa;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.results-box .order-info {
    margin: 0;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-wrap;
}

.page {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
        color: #fff;
    }
    
    .app {
        background: #1a1a1a;
    }
    
    .header {
        background: #1a1a1a;
        color: #fff;
    }
    
    .form-item input,
    .form-item select {
        background: #2a2a2a;
        color: #fff;
    }
    
    .form-item input:focus,
    .form-item select:focus {
        background: #333;
    }
    
    .price-box {
        background: #2a2a2a;
    }
    
    .footer {
        background: #1a1a1a;
    }
    
    .results-box .order-item {
        background: #222;
        color: #fff;
    }
    
    .nav-item {
        color: #666;
    }
    
    .nav-item:hover,
    .nav-item.active {
        color: #3b82f6;
    }
}

.form-item select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 40px !important;
    position: relative;
}

.form-item select option {
    background-color: #f5f7fa;
}

.form-item:has(select)::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    width: 12px;
    height: 12px;
    transform: translateY(-50%);
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
}

@media (prefers-color-scheme: dark) {
    .form-item input,
    .form-item select {
        background: #2a2a2a;
        color: #fff;
    }
    
    .form-item input:focus,
    .form-item select:focus {
        background: #2a2a2a;
    }
    
    .form-item select option {
        background-color: #2a2a2a;
    }
}

.form-item select option {
    background: inherit;
    color: inherit;
    padding: 10px;
}

.article-item {
    background: #f5f7fa;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.article-header {
    padding: 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.article-header i {
    font-size: 14px;
    margin-right: 10px;
    transition: transform 0.3s;
}

.article-header span {
    font-size: 15px;
    font-weight: 500;
}

.article-content {
    display: none;
    padding: 0 15px 15px;
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    border-top: 1px solid #f0f0f0;
}

.article-item.active .article-header i {
    transform: rotate(90deg);
}

.article-item.active .article-content {
    display: block;
}

@media (prefers-color-scheme: dark) {
    .article-item {
        background: #222;
    }
    
    .article-content {
        border-top-color: #333;
    }
}

.order-dialog {
    border-radius: 12px;
}

.order-dialog .layui-layer-title {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 12px 12px 0 0;
    height: auto;
    line-height: 1.5;
}

.order-dialog .layui-layer-btn {
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
}

.order-dialog .layui-layer-btn a {
    width: 100%;
    height: 40px;
    line-height: 40px;
    background: #3b82f6;
    border-color: #3b82f6;
    border-radius: 8px;
}

.order-detail {
    padding: 20px;
}

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

.order-item .label {
    color: #666;
    font-size: 14px;
}

.order-item .value {
    color: #333;
    font-weight: 500;
}

.order-item .price {
    color: #f56c6c;
    font-size: 20px;
    font-weight: 600;
}

.payment {
    flex-direction: column;
    align-items: flex-start;
}

.payment .label {
    margin-bottom: 10px;
}

.payment-options {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.payment-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option input:checked ~ * {
    color: #3b82f6;
}

.payment-option input:checked + .icon i {
    color: inherit !important;
}

.payment-option input:checked ~ .text {
    color: #3b82f6;
}

.payment-option input:checked ~ * {
    border-color: #3b82f6;
}

.payment-option input:checked {
    border-color: #3b82f6;
}

.payment-option:has(input:checked) {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

.payment-option:hover {
    border-color: #3b82f6;
}

.payment-option input {
    display: none;
}

.payment-option input:checked + .icon {
    color: #3b82f6;
}

.payment-option .icon {
    font-size: 24px;
    margin-bottom: 5px;
    color: #666;
}

.payment-option .text {
    font-size: 12px;
    color: #666;
}

@media (prefers-color-scheme: dark) {
    .order-dialog .layui-layer-title {
        background: #2a2a2a;
        border-bottom-color: #333;
    }
    
    .order-dialog .layui-layer-btn {
        border-top-color: #333;
    }
    
    .order-item .label {
        color: #999;
    }
    
    .order-item .value {
        color: #fff;
    }
    
    .payment-option {
        border-color: #333;
        background: #2a2a2a;
    }
    
    .payment-option:hover {
        border-color: #3b82f6;
    }
}

.payment-option .icon .layui-icon-login-wechat {
    color: #07c160;
}

.payment-option .icon .layui-icon-login-qq {
    color: #12b7f5;
}

.payment-option .icon .alipay-icon:before {
    content: "\e65e";
    font-family: layui-icon !important;
    color: #1677ff;
}

.results-box .status-icon {
    text-align: center;
    margin: 20px 0;
}

.results-box .status-icon i {
    font-size: 60px;
}

.results-box .status-icon .success-icon {
    color: #67C23A;
}

.results-box .status-icon .error-icon {
    color: #F56C6C;
}

.results-box p {
    text-align: center;
    font-size: 18px;
    color: #333;
    margin: 15px 0;
}

.btn-group {
    display: flex;
    gap: 10px;
    padding: 20px;
    margin-top: 20px;
}

.btn-group a {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 12px;
    color: #666;
    text-decoration: none;
}

.btn-group a i {
    font-size: 16px;
    margin-right: 5px;
    margin-bottom: 0;
}

.layui-layer-btn a{
    margin: 5px 0 !important;
}