* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

.page-notice, .page-check {
    background: linear-gradient(180deg, #f5f7fa 0%, #e4e8ec 100%);
    min-height: 100vh;
    padding-bottom: 60px;
}

.watermark-header {
    background: #1a1a1a;
    padding: 8px 12px;
    text-align: center;
}

.watermark-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
}

.watermark-brand {
    color: rgba(255, 255, 255, 0.7);
    font-weight: normal;
}

.watermark-divider {
    color: rgba(255, 255, 255, 0.3);
}

.watermark-title {
    font-size: 11px;
    color: #fff;
    font-weight: 500;
    letter-spacing: 2px;
}

.main-container {
    padding: 25px 15px;
    padding-bottom: 40px;
}

.brand-section {
    text-align: center;
    margin-bottom: 30px;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #7A5CFF;
}

.logo-symbol {
    font-size: 24px;
    color: #7A5CFF;
}

.brand-subtitle {
    font-size: 13px;
    color: #666;
}

.content-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.card-title h1 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 25px;
}

.process-section {
    margin-bottom: 20px;
}

.section-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    display: block;
}

.section-label.warning {
    color: #7A5CFF;
}

.section-label.risk {
    color: #e74c3c;
}

.section-label.rights {
    color: #27ae60;
}

.warning-section {
    background: #f8f5ff;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e8e0ff;
    margin-bottom: 15px;
}

.warning-section .notice-item {
    border-bottom-color: #ebe4ff;
}

.risk-section {
    background: #fff5f5;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #ffd7d7;
    margin-bottom: 15px;
}

.risk-section .notice-item {
    border-bottom-color: #ffe4e4;
}

.risk-section .notice-bullet {
    color: #e74c3c;
}

.rights-section {
    background: #f0fff4;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #c6f6d5;
    margin-bottom: 15px;
}

.rights-section .notice-item {
    border-bottom-color: #e2f4eb;
}

.rights-section .notice-bullet {
    color: #27ae60;
}

.checkbox-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #e0e0e0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    background: transparent;
    outline: none;
    padding: 12px;
    border-radius: 10px;
    transition: background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.checkbox-label:active {
    background: rgba(122, 92, 255, 0.08);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid #d0d0d0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: linear-gradient(90deg, #7A5CFF 0%, #B75CFF 100%);
    border-color: #7A5CFF;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-text {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

.primary-btn:disabled {
    background: linear-gradient(90deg, #ccc 0%, #bbb 100%);
    box-shadow: none;
    cursor: not-allowed;
}

.primary-btn:disabled:active {
    transform: none;
}

.page-notice .primary-btn:disabled {
    background: linear-gradient(90deg, #ccc 0%, #bbb 100%);
    box-shadow: none;
    cursor: not-allowed;
}

.page-notice .primary-btn:disabled:active {
    transform: none;
}

.process-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

.process-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.process-icon {
    font-size: 14px;
}

.process-text {
    color: #666;
}

.process-divider {
    color: #ddd;
    margin: 0 4px;
}

.divider-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
    margin: 20px 0;
}

.notice-section {
    background: #fafbfc;
    border-radius: 12px;
    padding: 18px;
    border: 1px solid #f0f0f0;
}

.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice-item {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    font-size: 14px;
    line-height: 1.6;
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-item.highlight {
    background: #fff8f0;
    margin: 8px -18px;
    padding: 12px 18px;
    border-radius: 8px;
    border-bottom: 1px solid #ffe4cc;
}

.notice-item.highlight .notice-text {
    font-weight: 600;
    color: #e67e22;
}

.notice-bullet {
    color: #7A5CFF;
    font-weight: bold;
    margin-right: 10px;
    flex-shrink: 0;
    margin-top: 2px;
}

.notice-text {
    color: #555;
    flex: 1;
}

.action-section {
    padding: 0 10px;
}

.primary-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(90deg, #7A5CFF 0%, #B75CFF 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(122, 92, 255, 0.4);
}

.primary-btn:active {
    transform: scale(0.98);
    box-shadow: 0 3px 10px rgba(122, 92, 255, 0.3);
}

.footer-info {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-divider {
    color: rgba(255, 255, 255, 0.3);
}

.footer-item {
    white-space: nowrap;
}

@media (max-width: 375px) {
    .main-container {
        padding: 20px 12px;
    }
    
    .content-card {
        padding: 20px;
    }
    
    .card-title h1 {
        font-size: 18px;
    }
    
    .logo-text {
        font-size: 24px;
    }
    
    .logo-symbol {
        font-size: 20px;
    }
    
    .process-info {
        font-size: 12px;
    }
    
    .notice-item {
        font-size: 13px;
        padding: 8px 0;
    }
    
    .primary-btn {
        padding: 14px;
        font-size: 15px;
    }
    
    .watermark-content {
        font-size: 9px;
    }
    
    .watermark-title {
        font-size: 10px;
    }
}

.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    margin-bottom: 25px;
}

.progress-step {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #999;
    flex-shrink: 0;
}

.progress-step.active {
    background: linear-gradient(135deg, #7A5CFF 0%, #B75CFF 100%);
    color: #fff;
}

.progress-line {
    width: 20px;
    height: 3px;
    background: #ddd;
    margin: 0 3px;
    flex-shrink: 0;
}

.progress-line.active {
    background: linear-gradient(90deg, #7A5CFF 0%, #B75CFF 100%);
}

.page-title {
    text-align: center;
    margin-bottom: 25px;
}

.page-title h1 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.title-desc {
    font-size: 14px;
    color: #666;
}

.check-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.check-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #fafbfc;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.check-item.success {
    background: #f0fff4;
    border-color: #c6f6d5;
}

.check-item.error {
    background: #fff5f5;
    border-color: #fed7d7;
}

.check-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.check-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.check-item.success .check-icon {
    background: #48bb78;
}

.check-item.error .check-icon {
    background: #ff0000;
}

.check-icon .loading {
    font-size: 16px;
    color: #999;
    animation: blink 1s ease-in-out infinite;
}

.check-item.success .check-icon .loading {
    animation: none;
}

.check-item.error .check-icon .loading {
    animation: none;
}

.check-item.special-error.error .check-icon .loading {
    animation: none;
    color: #FFFFFF;
}

@keyframes blink {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.check-info {
    flex: 1;
    min-width: 0;
}

.check-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.check-desc {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.check-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.status-text {
    font-size: 13px;
    color: #999;
}

.check-item.success .status-text {
    color: #48bb78;
}

.check-item.error .status-text {
    color: #ff0000;
}

.btn-action {
    padding: 8px 16px;
    background: linear-gradient(90deg, #7A5CFF 0%, #B75CFF 100%);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-action:active {
    transform: scale(0.95);
}

.primary-btn.retry {
    background: linear-gradient(90deg, #7A5CFF 0%, #B75CFF 100%);
}

.primary-btn.retry:active {
    transform: scale(0.98);
    box-shadow: 0 3px 10px rgba(122, 92, 255, 0.3);
}

.auth-type-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.auth-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.auth-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.auth-btn-wrapper {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-btn.primary {
    background: linear-gradient(90deg, #7A5CFF 0%, #B75CFF 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(122, 92, 255, 0.3);
}

.auth-btn.primary:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(122, 92, 255, 0.3);
}

.auth-btn.disabled {
    background: #f0f0f0;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
}

.auth-cert-btn {
    align-self: flex-end;
    padding: 8px 16px;
    background: rgba(122, 92, 255, 0.1);
    color: #7A5CFF;
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-cert-btn:hover {
    background: rgba(122, 92, 255, 0.15);
}

.auth-cert-btn:active {
    transform: scale(0.95);
}

.auth-core-text {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.auth-link {
    color: #7A5CFF;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-link:hover {
    color: #B75CFF;
}

.auth-link-divider {
    color: #ccc;
    font-size: 12px;
}

.auth-detail-toggle {
    text-align: right;
    margin-bottom: 8px;
}

.detail-link {
    color: #999;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.detail-link:hover {
    color: #7A5CFF;
}

.auth-detail-content {
    font-size: 12px;
    color: #999;
    line-height: 1.5;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.auth-detail-content p {
    margin-bottom: 6px;
}

.auth-detail-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 375px) {
    .progress-step {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    .progress-line {
        width: 15px;
    }
    
    .page-title h1 {
        font-size: 20px;
    }
    
    .check-item {
        padding: 12px;
    }
    
    .check-icon {
        width: 35px;
        height: 35px;
    }
    
    .check-title {
        font-size: 13px;
    }
    
    .btn-action {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 320px) {
    .content-card {
        padding: 15px;
    }
    
    .card-title h1 {
        font-size: 16px;
    }
    
    .notice-section {
        padding: 14px;
    }
    
    .notice-item.highlight {
        margin: 6px -14px;
        padding: 10px 14px;
    }
    
    .footer-info {
        padding: 12px;
        font-size: 10px;
    }
    
    .progress-step {
        width: 18px;
        height: 18px;
        font-size: 9px;
    }
    
    .progress-line {
        width: 10px;
    }
    
    .check-title {
        font-size: 12px;
    }
    
    .check-desc {
        font-size: 11px;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.modal-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75vh;
    background: #fff;
    border-radius: 20px 20px 0 0;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-container.active {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.header-link {
    font-size: 12px;
    font-weight: 400;
    color: #7A5CFF;
    cursor: pointer;
    transition: color 0.3s ease;
}

.header-link:hover {
    color: #B75CFF;
}

.modal-close {
    color: #999;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #7A5CFF;
}

.modal-toggle-btn {
    color: #7A5CFF;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-toggle-btn:hover {
    color: #B75CFF;
}

.modal-search {
    padding: 12px 20px;
}

.modal-search {
    padding: 16px 20px;
    background: #fafafa;
}

.modal-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    background: #fff;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.modal-search-input:focus {
    border-color: #7A5CFF;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05), 0 0 0 3px rgba(122, 92, 255, 0.1);
}

.modal-search-hint {
    padding: 10px 20px 8px;
    font-size: 12px;
    color: #999;
    line-height: 1.5;
    text-align: right;
    background: #fafafa;
}

.modal-search-hint-center {
    padding: 6px 20px 14px;
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    text-align: center;
    background: #fafafa;
}

.modal-search-tip {
    padding: 8px 20px;
    font-size: 12px;
    color: #999;
    line-height: 1.5;
}

.modal-tabs {
    display: flex;
    gap: 6px;
    padding: 14px 20px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}

.modal-tab {
    padding: 8px 14px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.modal-tab:hover {
    background: #e8e8e8;
}

.modal-tab.active {
    background: linear-gradient(90deg, #7A5CFF 0%, #B75CFF 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(122, 92, 255, 0.3);
}

.modal-hot-countries {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 12px;
    flex-wrap: wrap;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}

.modal-hot-label {
    color: #999;
    flex-shrink: 0;
}

.modal-hot-item {
    color: #7A5CFF;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 2px 6px;
    background: rgba(122, 92, 255, 0.08);
    border-radius: 4px;
}

.modal-hot-item:hover {
    color: #B75CFF;
    background: rgba(122, 92, 255, 0.15);
}

.tip-inline-toggle {
    color: #7A5CFF;
    font-size: 12px;
    cursor: pointer;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.tip-inline-toggle:hover {
    color: #B75CFF;
}

.modal-tip-expand {
    padding: 14px 20px;
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    background: linear-gradient(135deg, #fef9f9 0%, #fdf5f5 100%);
    border-left: 3px solid #7A5CFF;
}

.modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    background: #fafafa;
}

.continent-section {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.continent-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.continent-header {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    padding: 12px 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.continent-header:hover {
    color: #7A5CFF;
}

.continent-header::before {
    content: '▼ ';
    font-size: 10px;
    color: #999;
}

.continent-header.collapsed::before {
    content: '▶ ';
}

.country-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.country-list.collapsed {
    display: none;
}

.country-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #fff;
    border-radius: 8px;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.country-item:hover {
    background: #f9f9fb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.country-info-icon {
    display: none;
    color: #ccc;
    font-size: 11px;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 2px 4px;
    border-radius: 50%;
    margin-left: auto;
}

.country-info-icon:hover {
    color: #7A5CFF;
    background: rgba(122, 92, 255, 0.1);
}

.country-item-selectable .country-checkbox-wrapper {
    display: none;
}

.country-item-selectable {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 10px 14px;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid transparent;
}

.country-item-selectable:hover {
    background: #f9f9fb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.country-item-selectable.selected {
    background: linear-gradient(135deg, rgba(122, 92, 255, 0.12) 0%, rgba(183, 92, 255, 0.12) 100%);
    border-color: rgba(122, 92, 255, 0.3);
}

.country-item-selectable.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.country-item-selectable.disabled:hover {
    background: #f5f5f5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.country-name {
    font-size: 13px;
    color: #333;
    flex: 1;
}

.modal-footer {
    padding: 14px 20px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.modal-count-row {
    margin-bottom: 10px;
}

.modal-count-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.modal-count {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.modal-rule-hint {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #7A5CFF;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 4px 8px;
    background: rgba(122, 92, 255, 0.08);
    border-radius: 12px;
}

.modal-rule-hint:hover {
    color: #B75CFF;
    background: rgba(122, 92, 255, 0.15);
}

.rule-icon {
    font-size: 12px;
}

.modal-rule-expand {
    padding: 12px 14px;
    background: linear-gradient(135deg, #f8f7ff 0%, #f5f0ff 100%);
    border-radius: 10px;
    margin-bottom: 14px;
    border-left: 3px solid #7A5CFF;
}

.modal-rule-expand p {
    font-size: 12px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 4px;
}

.modal-rule-expand p:last-child {
    margin-bottom: 0;
}

.modal-tip {
    font-size: 12px;
    color: #999;
    line-height: 1.5;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.modal-confirm-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #7A5CFF 0%, #B75CFF 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-confirm-btn:active {
    transform: scale(0.98);
}

.modal-confirm-btn.disabled {
    background: #f0f0f0;
    color: #999;
    cursor: not-allowed;
}

.modal-confirm-btn.disabled:active {
    transform: none;
}

.country-detail-modal {
    height: auto;
    max-height: 50vh;
    z-index: 1003;
    background: linear-gradient(145deg, #1a1035 0%, #2d1f4e 50%, #1a1a2e 100%);
    color: #fff;
    border-radius: 20px 20px 0 0;
}

.country-detail-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, rgba(122, 92, 255, 0.15) 0%, transparent 100%);
    pointer-events: none;
}

.country-detail-modal .modal-header {
    position: relative;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.country-detail-modal .modal-title {
    color: #fff;
    font-weight: 600;
}

.country-detail-modal .modal-close {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
}

.country-detail-modal .modal-close:hover {
    color: #fff;
}

.country-detail-modal .modal-content {
    background: transparent;
    padding: 10px 20px 20px;
}

.country-detail-modal .country-detail-item {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 10px;
}

.country-detail-modal .country-detail-item:last-child {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.country-detail-modal .detail-icon {
    font-size: 22px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.country-detail-modal .detail-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.country-detail-modal .detail-value {
    color: #e8e0ff;
    font-size: 14px;
    line-height: 1.5;
}

.country-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.country-detail-item:last-child {
    border-bottom: none;
}

.detail-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.detail-text {
    flex: 1;
}

.detail-label {
    font-size: 13px;
    color: #999;
    margin-bottom: 4px;
}

.detail-value {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.page-face-auth {
    background: linear-gradient(180deg, #f5f7fa 0%, #e4e8ec 100%);
    min-height: 100vh;
    padding-bottom: 100px;
}

.page-face-auth .main-container {
    padding: 20px 15px;
}

.face-auth-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.auth-title {
    text-align: center;
    margin-bottom: 25px;
}

.auth-title h1 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 13px;
    color: #999;
    line-height: 1.5;
}

.face-scan-box {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.scan-frame {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 20px;
    background: linear-gradient(145deg, #f0f4f8 0%, #e8ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.scan-line {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #7A5CFF, #B75CFF, #7A5CFF, transparent);
    box-shadow: 0 0 10px rgba(122, 92, 255, 0.6), 0 0 20px rgba(122, 92, 255, 0.4);
    animation: scanMove 2s ease-in-out infinite;
}

@keyframes scanMove {
    0% {
        top: 10px;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: calc(100% - 14px);
        opacity: 0;
    }
}

.face-preview {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.face-silhouette {
    width: 100px;
    height: 100px;
    opacity: 0.8;
}

.corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid #7A5CFF;
}

.corner.top-left {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.corner.top-right {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
}

.corner.bottom-left {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
}

.corner.bottom-right {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

.face-icon {
    font-size: 64px;
    opacity: 0.7;
}

.requirement-section, .prohibition-section {
    margin-bottom: 25px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.requirement-grid, .prohibition-grid {
    display: grid;
    gap: 12px;
}

.requirement-grid {
    grid-template-columns: repeat(4, 1fr);
}

.prohibition-grid {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 375px) {
    .requirement-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .prohibition-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.requirement-item, .prohibition-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border-radius: 12px;
}

.requirement-item {
    background: #f8fafc;
}

.prohibition-item {
    background: #fff5f5;
}

.requirement-icon, .prohibition-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.requirement-text, .prohibition-text {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.bottom-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.bottom-modal .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.agreement-content {
    position: relative;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 25px 20px 40px;
    z-index: 1002;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 85vh;
    overflow-y: auto;
}

.agreement-content.active {
    transform: translateY(0);
}

.agreement-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 15px;
}

.agreement-body p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

.agreement-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.agreement-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(90deg, #7A5CFF 0%, #B75CFF 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(122, 92, 255, 0.4);
}

.agreement-btn:active {
    transform: scale(0.98);
}

.confirm-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 1003;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.confirm-modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.confirm-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 60px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.confirm-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7A5CFF 0%, #B75CFF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    margin-bottom: 15px;
}

.confirm-text {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.start-auth-btn {
    width: calc(100% - 30px);
    padding: 16px;
    background: linear-gradient(90deg, #7A5CFF 0%, #B75CFF 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(122, 92, 255, 0.4);
    position: sticky;
    bottom: 20px;
    margin-top: 20px;
    z-index: 10;
}

.start-auth-btn:active {
    transform: scale(0.98);
}

.agreement-link {
    color: #7A5CFF;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.agreement-link:hover {
    color: #B75CFF;
    text-decoration: underline;
}