:root {
    --primary-color: #1F9F85;
    --primary-hover: #09997c;
    --primary-light: #0BB290;
    --text-color: #20232a;
    --text-light: #777777;
    --background-color: #f9f9f9;
    --white: #ffffff;
    --border-radius: 6px;
    --shadow: 0px 2px 24px 0px rgba(23,120,80,0.12);
    --success: #52c41a;
    --warning: #faad14;
    --error: #ff4d4f;
    --info: #1890ff;
    /* Mobile-specific variables */
    --header-height: 56px;
    --bottom-nav-height: 60px;
    --content-padding: 12px;
}

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

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", Arial, sans-serif;
    color: var(--text-color);
}

.container {
    max-width: 100%;
    padding: var(--content-padding);
    padding-bottom: calc(var(--bottom-nav-height) + var(--content-padding));
    padding-top: calc(var(--header-height) + var(--content-padding));
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    background: var(--primary-color);
    color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 18px;
    font-weight: 500;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}

.menu-icon {
    font-size: 20px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-points {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
    min-width: 80px;
    justify-content: center;
}

.user-points:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.user-points:active {
    transform: scale(0.98);
}

.user-points i {
    font-size: 16px;
    color: #ffd700;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

#user-points-display {
    color: var(--white);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Mobile responsive adjustments for header */
@media (max-width: 375px) {
    .header {
        padding: 0 12px;
    }
    
    .header h1 {
        font-size: 16px;
    }
    
    .user-points {
        font-size: 12px;
        padding: 4px 8px;
        min-width: 70px;
        gap: 4px;
    }
    
    .user-points i {
        font-size: 14px;
    }
    
    .menu-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

@media (max-width: 320px) {
    .user-points {
        font-size: 11px;
        padding: 3px 6px;
        min-width: 60px;
    }
    
    .header h1 {
        font-size: 15px;
    }
}

/* Navigation Drawer */
.drawer {
    position: fixed;
    top: 0;
    left: -80%;
    width: 80%;
    height: 100%;
    background: var(--primary-color);
    z-index: 200;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.drawer.open {
    left: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-header h2 {
    color: var(--white);
    font-size: 18px;
}

.close-drawer {
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

.nav-list {
    list-style: none;
    padding: 0;
}

.nav-item {
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
    font-size: 14px;
    cursor: pointer;
}

.nav-item.active {
    background: linear-gradient(127deg, #16c19f 0%, #19917a 96%);
    border-radius: 17px;
    box-shadow: var(--shadow);
    color: var(--white);
    margin: 10px 20px;
    padding: 15px 25px;
}

.nav-item:hover:not(.active) {
    color: #c3fff3;
}

.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 150;
    display: none;
}

.drawer-backdrop.open {
    display: block;
}

/* Button Styles */
.btn {
    padding: 12px 16px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px; /* Minimum 44px height for better tap targets */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: translateY(1px);
}

.btn::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s, opacity 0.3s;
}

.btn:active::after {
    transform: scale(3);
    opacity: 0;
    transition: 0s;
}

.btn i {
    font-size: 16px;
}

.btn-primary {
    background: var(--primary-light);
    color: var(--white);
    border: 1px solid var(--primary-light);
    box-shadow: 0 2px 4px rgba(11, 178, 144, 0.2);
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 4px 8px rgba(11, 178, 144, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-light);
    border: 1px solid transparent;
}

.btn-secondary:hover, .btn-secondary:focus {
    background: #f7fffb;
    color: var(--primary-light);
}

.btn-outline {
    background: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover, .btn-outline:focus {
    background: #f7fffb;
}

.btn-block {
    display: flex;
    width: 100%;
    margin-bottom: 10px;
}

.btn-icon {
    width: 44px;
    padding: 0;
    justify-content: center;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn:disabled:active {
    transform: none;
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px; /* Larger font for better mobile readability */
    transition: border-color 0.3s;
    -webkit-appearance: none; /* Remove default iOS styling */
    appearance: none;
    background-color: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 2px rgba(11, 178, 144, 0.2);
}

/* Improve tap target sizes for mobile */
select.form-control {
    padding-right: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Autofill styles */
.form-control:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: var(--text-color) !important;
}

/* Card Styles */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    will-change: transform;
    -webkit-tap-highlight-color: transparent;
}

.card:active {
    transform: scale(0.99);
}

.card-header {
    padding: 14px 16px;
    background: #fafafb;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 16px;
    margin: 0;
    font-weight: 500;
    color: var(--text-color);
}

.card-body {
    padding: 16px;
}

.card-footer {
    padding: 14px 16px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

/* List Styles */
.list {
    list-style: none;
    padding: 0;
}

.list-item {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.list-item-content {
    flex: 1;
}

.list-item-title {
    font-size: 16px;
    margin-bottom: 4px;
}

.list-item-text {
    font-size: 14px;
    color: var(--text-light);
}

/* Tab Styles */
.tabs {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 16px;
    overflow-x: auto;
}

.tab {
    padding: 12px 16px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.tab.active {
    color: var(--primary-light);
    border-bottom: 2px solid var(--primary-light);
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 12px;
    font-weight: 500;
}

.badge-primary {
    background: var(--primary-light);
    color: var(--white);
}

.badge-secondary {
    background: #f7fffb;
    color: var(--primary-light);
}

.badge-success {
    background: var(--success);
    color: var(--white);
}

.badge-warning {
    background: var(--warning);
    color: var(--white);
}

.badge-error {
    background: var(--error);
    color: var(--white);
}

/* Statistics Card */
.stats-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
}

.stat-card {
    flex: 1 0 calc(50% - 16px);
    margin: 8px;
    padding: 16px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--primary-color);
}

.stat-label {
    font-size: 12px;
    color: var(--text-light);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    display: flex;
    justify-content: space-around;
    height: var(--bottom-nav-height);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.nav-item-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    color: var(--text-light);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.nav-item-bottom.active {
    color: var(--primary-color);
}

.nav-item-bottom.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 40%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

.nav-icon {
    font-size: 18px;
    margin-bottom: 4px;
}

/* Data Package Card */
.data-package-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.data-package-card:active {
    transform: scale(0.99);
}

.data-package-header {
    position: relative;
    height: 160px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.data-package-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.data-package-title {
    color: var(--white);
    font-size: 18px;
    font-weight: 500;
    padding: 16px;
    position: relative;
    z-index: 10;
    width: 100%;
}

.data-package-body {
    padding: 16px;
}

.data-package-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.data-package-stat {
    text-align: center;
    flex: 1;
}

.data-package-stat-value {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-color);
}

.data-package-stat-label {
    font-size: 12px;
    color: var(--text-light);
}

.data-package-description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.data-package-footer {
    padding: 0 16px 16px 16px;
}

/* Order Summary */
.order-summary {
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
    margin-top: 16px;
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.order-summary-label {
    font-size: 14px;
    color: var(--text-light);
}

.order-summary-value {
    font-size: 14px;
    font-weight: 500;
}

.order-summary-total {
    font-size: 16px;
    font-weight: 600;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #f0f0f0;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    margin-bottom: 24px;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 0;
    right: 0;
    height: 2px;
    background: #f0f0f0;
    z-index: 1;
}

.progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.progress-step-circle {
    width: 32px;
    height: 32px;
    background: var(--white);
    border: 2px solid #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
}

.progress-step.active .progress-step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.progress-step.completed .progress-step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.progress-step-label {
    font-size: 12px;
    color: var(--text-light);
}

.progress-step.active .progress-step-label {
    color: var(--primary-color);
    font-weight: 500;
}

/* Upload File Area */
.upload-area {
    border: 2px dashed #ddd;
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: var(--primary-light);
}

.upload-icon {
    font-size: 32px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.upload-text {
    font-size: 14px;
    color: var(--text-light);
}

/* Order Card */
.order-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
    overflow: hidden;
}

.order-header {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
}

.order-id {
    font-size: 16px;
    font-weight: 500;
}

.order-date {
    font-size: 14px;
    color: var(--text-light);
}

.order-body {
    padding: 16px;
}

.order-package {
    display: flex;
    margin-bottom: 12px;
}

.order-package-image {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    background-size: cover;
    background-position: center;
    margin-right: 12px;
}

.order-package-details {
    flex: 1;
}

.order-package-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.order-package-stats {
    font-size: 14px;
    color: var(--text-light);
}

.order-footer {
    padding: 16px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-status {
    display: flex;
    align-items: center;
}

.order-status-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.order-status-text {
    font-size: 14px;
    font-weight: 500;
}

.order-status-pending .order-status-icon {
    background: var(--warning);
}

.order-status-completed .order-status-icon {
    background: var(--success);
}

.order-status-processing .order-status-icon {
    background: var(--info);
}

.order-status-pending .order-status-text {
    color: var(--warning);
}

.order-status-completed .order-status-text {
    color: var(--success);
}

.order-status-processing .order-status-text {
    color: var(--info);
}

/* Report Card */
.report-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 16px;
    margin-bottom: 16px;
}

.report-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.report-title {
    font-size: 16px;
    font-weight: 500;
}

.report-date {
    font-size: 14px;
    color: var(--text-light);
}

.report-stats {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
}

.report-stat {
    flex: 1 0 calc(50% - 16px);
    margin: 8px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: var(--border-radius);
    text-align: center;
}

.report-stat-value {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--primary-color);
}

.report-stat-label {
    font-size: 12px;
    color: var(--text-light);
}

.report-files {
    margin-top: 16px;
}

.report-file {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.report-file:last-child {
    border-bottom: none;
}

.report-file-icon {
    font-size: 20px;
    margin-right: 8px;
    color: var(--text-light);
}

.report-file-name {
    font-size: 14px;
    flex: 1;
}

.report-file-download {
    font-size: 20px;
    color: var(--primary-color);
    cursor: pointer;
}

/* Utilities */
.mt-10 {
    margin-top: 10px;
}

.mb-10 {
    margin-bottom: 10px;
}

.ml-10 {
    margin-left: 10px;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.flex {
    display: flex;
    align-items: center;
}

.space-between {
    justify-content: space-between;
}

/* Tabs Container to hide content */
.tab-content {
    display: none;
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state img {
    width: 120px;
    height: 120px;
    margin-bottom: 16px;
}

.empty-state p {
    color: var(--text-light);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: flex-start;
    z-index: 1000;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
}

.modal.open {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

.modal.closing {
    animation: modalFadeOut 0.3s ease forwards;
}

@keyframes modalFadeIn {
    from { 
        opacity: 0; 
    }
    to { 
        opacity: 1; 
    }
}

@keyframes modalFadeOut {
    from { 
        opacity: 1; 
    }
    to { 
        opacity: 0; 
    }
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

@keyframes modalSlideIn {
    from { 
        transform: translateY(-50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

/* 大尺寸Modal */
.modal-large .modal-content {
    max-width: 800px;
}

/* 全屏Modal */
.modal-fullscreen {
    padding: 0;
}

.modal-fullscreen .modal-content {
    max-width: none;
    max-height: none;
    width: 100%;
    height: 100%;
    border-radius: 0;
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from { 
        transform: translateY(100%);
    }
    to { 
        transform: translateY(0);
    }
}

.modal-header {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

/* 关闭按钮样式 */
.modal-close, .close-drawer {
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.modal-close:hover, .close-drawer:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--text-color);
}

.modal-close:active, .close-drawer:active {
    transform: scale(0.95);
}

.modal-body {
    padding: 16px;
}

.modal-footer {
    padding: 16px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .modal {
        padding: 8px;
        align-items: flex-start;
        padding-top: 30px;
    }
    
    .modal-content {
        max-height: 85vh;
        border-radius: var(--border-radius);
        animation: modalSlideInMobile 0.3s ease;
    }
    
    @keyframes modalSlideInMobile {
        from { 
            transform: translateY(-30px);
            opacity: 0;
        }
        to { 
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .modal-footer .btn:last-child {
        margin-bottom: 0;
    }
}

/* 防止背景滚动 */
body.modal-open {
    overflow: hidden;
}

/* iOS 风格 Switch 开关 */
.ios-switch {
    position: relative;
    display: inline-block;
    width: 51px;
    height: 31px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.ios-switch-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ios-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e9e9ea;
    transition: 0.3s;
    border-radius: 31px;
}

.ios-switch-slider:before {
    position: absolute;
    content: "";
    height: 27px;
    width: 27px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 选中状态 - 使用项目主题色 */
.ios-switch-input:checked + .ios-switch-slider {
    background-color: var(--primary-light);
}

.ios-switch-input:checked + .ios-switch-slider:before {
    transform: translateX(20px);
}

/* 禁用状态 */
.ios-switch-input:disabled + .ios-switch-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 聚焦状态 */
.ios-switch-input:focus + .ios-switch-slider {
    box-shadow: 0 0 0 2px rgba(11, 178, 144, 0.2);
}

/* 带标签的包装器 */
.ios-switch-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 12px 0;
}

.ios-switch-label {
    font-size: 16px;
    color: var(--text-color);
    flex: 1;
    margin-right: 12px;
}

/* 列表中的 switch */
.list-item .ios-switch {
    margin-left: 12px;
}

/* 设置页面的 switch 行 */
.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--white);
    border-bottom: 1px solid #f0f0f0;
}

.settings-row:active {
    background: #f8f8f8;
}

.settings-row-content {
    flex: 1;
    margin-right: 12px;
}

.settings-row-title {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 4px;
}

.settings-row-description {
    font-size: 14px;
    color: var(--text-light);
}

/* 链接基础样式 */
.link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
    overflow: hidden;
    min-height: 32px;
}

.link:hover, .link:focus {
    background-color: rgba(31, 159, 133, 0.08);
    color: var(--primary-hover);
    text-decoration: none;
}

.link:active {
    transform: scale(0.98);
    background-color: rgba(31, 159, 133, 0.12);
}

/* 主要链接 */
.link-primary {
    color: var(--primary-light);
    background-color: rgba(11, 178, 144, 0.1);
    border: 1px solid rgba(11, 178, 144, 0.2);
}

.link-primary:hover, .link-primary:focus {
    background-color: rgba(11, 178, 144, 0.15);
    color: var(--primary-hover);
    border-color: rgba(11, 178, 144, 0.3);
}

/* 次要链接 */
.link-secondary {
    color: var(--primary-color);
    border: 1px solid transparent;
}

.link-secondary:hover, .link-secondary:focus {
    background-color: #f7fffb;
    border-color: rgba(31, 159, 133, 0.2);
}

/* 操作链接（用于卡片头部的"查看全部"等） */
.link-action {
    color: var(--primary-color);
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 4px;
    min-height: 28px;
}

.link-action:hover, .link-action:focus {
    background-color: rgba(31, 159, 133, 0.08);
    color: var(--primary-hover);
}

/* 静音链接 */
.link-muted {
    color: var(--text-light);
    font-weight: 400;
}

.link-muted:hover, .link-muted:focus {
    color: var(--text-color);
    background-color: #f5f5f5;
}

/* 内联链接（用于段落中） */
.link-inline {
    color: var(--primary-color);
    padding: 2px 4px;
    border-radius: 3px;
    font-size: inherit;
    font-weight: 500;
    min-height: auto;
}

.link-inline:hover, .link-inline:focus {
    background-color: rgba(31, 159, 133, 0.08);
    color: var(--primary-hover);
}

/* 链接图标 */
.link i {
    font-size: 12px;
    opacity: 0.8;
}

.link:hover i, .link:focus i {
    opacity: 1;
}

/* 禁用状态 */
.link:disabled, .link.disabled {
    color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

/* 链接组合样式 */
.link-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.link-group .link {
    margin-bottom: 4px;
}

/* 响应式调整 */
@media (max-width: 375px) {
    .link {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .link-action {
        font-size: 12px;
        padding: 3px 6px;
    }
}

/* 数据包按钮容器 */
.data-package-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.data-package-buttons .btn {
    flex: 1;
    font-size: 13px;
    padding: 8px 12px;
    min-height: 36px;
}

.data-package-buttons .btn-sm {
    font-size: 12px;
    padding: 6px 10px;
    min-height: 32px;
}

/* 响应式调整 */
@media (max-width: 375px) {
    .data-package-buttons {
        gap: 6px;
    }
    
    .data-package-buttons .btn {
        font-size: 12px;
        padding: 6px 8px;
    }
    
    .data-package-buttons .btn-sm {
        font-size: 11px;
        padding: 5px 8px;
        min-height: 30px;
    }
}

/* Slider Styles */
.quantity-slider-container {
    margin: 16px 0;
}

.quantity-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 8px 0;
    cursor: pointer;
}

.quantity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.quantity-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.quantity-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.quantity-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.quantity-slider::-webkit-slider-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: #e0e0e0;
    border-radius: 3px;
}

.quantity-slider::-moz-range-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: #e0e0e0;
    border-radius: 3px;
    border: none;
}

.quantity-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.quantity-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    background: #f0f8ff;
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid var(--primary-color);
}

.quantity-range {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
}

.quantity-points {
    margin-top: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.quantity-points-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-color);
}

.quantity-points-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

/* Points Package Styles */
.points-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.points-package-card {
    background: white;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.points-package-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.points-package-card.recommended {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
}

.points-package-card.recommended::before {
    content: '推薦';
    position: absolute;
    top: 16px;
    right: -32px;
    background: var(--primary-color);
    color: white;
    padding: 6px 40px;
    font-size: 12px;
    font-weight: 600;
    transform: rotate(45deg);
    letter-spacing: 1px;
}

.points-package-card.selected {
    border-color: var(--primary-color);
    background: #f0f7ff;
    box-shadow: 0 4px 16px rgba(32, 107, 196, 0.2);
}

.points-package-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.points-package-points {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.points-package-bonus {
    font-size: 14px;
    color: var(--success);
    font-weight: 500;
    margin-bottom: 16px;
    min-height: 20px;
}

.points-package-price {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.points-package-price .currency {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-light);
}

.points-package-features {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.points-package-features li {
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 14px;
    position: relative;
}

.points-package-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
    margin-right: 8px;
}

.points-package-button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: var(--primary-color);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.points-package-button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.points-package-button:active {
    transform: translateY(0);
}

.points-package-card.selected .points-package-button {
    background: var(--success);
}

.points-package-card.selected .points-package-button:hover {
    background: #27ae60;
}

.points-package-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 16px;
    opacity: 0.8;
}

.points-package-card.recommended .points-package-icon {
    color: var(--primary-color);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .points-packages {
        grid-template-columns: 1fr;
    }
    
    .points-package-card {
        padding: 16px;
    }
    
    .points-package-points {
        font-size: 28px;
    }
    
    .points-package-price {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .points-packages {
        gap: 12px;
        margin: 12px 0;
    }
    
    .points-package-card {
        padding: 16px 12px;
    }
    
    .points-package-name {
        font-size: 16px;
    }
    
    .points-package-points {
        font-size: 24px;
    }
    
    .points-package-price {
        font-size: 18px;
    }
}