         .terms-modal, .privacy-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1100;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }
        
        .terms-modal:not(.hidden), .privacy-modal:not(.hidden) {
            opacity: 1;
            visibility: visible;
        }
        
        .terms-modal-content, .privacy-modal-content {
            background: white;
            border-radius: 8px;
            width: 90%;
            max-width: 800px;
            max-height: 80vh;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
            display: flex;
            flex-direction: column;
            transform: translateY(20px);
            transition: transform 0.3s ease;
        }
        
        .terms-modal:not(.hidden) .terms-modal-content,
        .privacy-modal:not(.hidden) .privacy-modal-content {
            transform: translateY(0);
        }
        
        .terms-modal-header, .privacy-modal-header {
            padding: 20px;
            border-bottom: 1px solid #e2e8f0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            background: white;
            z-index: 1;
        }
        
        .terms-modal-header h3, .privacy-modal-header h3 {
            margin: 0;
            font-size: 20px;
            color: #2d3748;
        }
        
        .terms-close-btn, .privacy-close-btn {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #718096;
            line-height: 1;
            padding: 5px;
        }
        
        .terms-modal-body, .privacy-modal-body {
            padding: 20px;
            overflow-y: auto;
            flex-grow: 1;
            font-size: 14px;
            line-height: 1.6;
            color: #4a5568;
        }
        
        .terms-modal-body h4, .privacy-modal-body h4 {
            color: #2d3748;
            margin-top: 25px;
            margin-bottom: 15px;
            font-size: 16px;
            font-weight: 600;
        }
        
        .terms-modal-body h5, .privacy-modal-body h5 {
            color: #2d3748;
            margin-top: 20px;
            margin-bottom: 10px;
            font-size: 14px;
            font-weight: 600;
        }
        
        .terms-modal-body p, .privacy-modal-body p {
            margin-bottom: 15px;
        }
        
        .terms-modal-body ul, .privacy-modal-body ul {
            margin-bottom: 15px;
            padding-left: 20px;
        }
        
        .terms-modal-body li, .privacy-modal-body li {
            margin-bottom: 8px;
        }
        
        .table-wrapper {
            width: 100%;
            overflow-x: auto;
            margin: 15px 0;
        }
        
        table {
            width: 100%;
            border-collapse: collapse;
            margin: 15px 0;
            font-size: 13px;
        }
        
        th, td {
            padding: 10px;
            border: 1px solid #e2e8f0;
            text-align: left;
        }
        
        th {
            background-color: #f7fafc;
            font-weight: 600;
        }
        
        tr:nth-child(even) {
            background-color: #f8f9fa;
        }
        
        .terms-update, .privacy-update {
            color: #718096;
            font-size: 13px;
            text-align: right;
            margin-top: 30px;
            font-style: italic;
        }
        
        strong {
            color: #2d3748;
            font-weight: 600;
        }

        .auth-form {
            width: 100%;
            max-width: 420px;
            opacity: 0;
            transform: translateX(-20px);
            transition: opacity 0.3s ease, transform 0.3s ease;
        }
        
        .auth-form.active {
            opacity: 1;
            transform: translateX(0);
            display: block; 
        }
        
        .auth-tabs {
            display: flex;
            margin-bottom: 20px;
            border-bottom: 1px solid #e2e8f0;
            background: white;
            border-radius: 8px 8px 0 0;
            overflow: hidden;
        }
        
        .tab-btn {
            flex: 1;
            padding: 12px;
            background: none;
            border: none;
            border-bottom: 2px solid transparent;
            cursor: pointer;
            font-size: 16px;
            color: #718096;
            transition: all 0.3s;
        }
        
        .tab-btn.active {
            color: var(--primary-green);
            border-bottom-color: var(--primary-green);
            font-weight: 500;
        }
        
        .input-group {
            margin-bottom: 20px;
        }
        
        .input-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: #4a5568;
        }
        
        .form-input {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            font-size: 16px;
            box-sizing: border-box;
            transition: border-color 0.3s;
        }
        
        .form-input:focus {
            border-color: var(--primary-green);
            outline: none;
            box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
        }
        
        .code-wrapper {
            display: flex;
            gap: 10px;
        }
        
        .code-btn {
            padding: 0 15px;
            background: var(--primary-green);
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            height: 46px;
            min-width: 110px;
            font-size: 14px;
            transition: background 0.3s;
        }
        
        .code-btn:hover {
            background: #3182ce;
        }
        
        .code-btn:disabled {
            background: #a0aec0;
            cursor: not-allowed;
        }
        
        .submit-btn {
            width: 100%;
            padding: 12px;
            background: var(--primary-green);
            color: white;
            border: none;
            border-radius: 6px;
            font-size: 16px;
            cursor: pointer;
            margin-top: 10px;
            transition: background 0.3s;
        }
        
        .submit-btn:hover {
            background: #3182ce;
        }
        
        .submit-btn:disabled {
            background: #a0aec0;
            cursor: not-allowed;
        }
        
        .info-tip {
            background: #ebf8ff;
            color: #2b6cb0;
            padding: 12px;
            border-radius: 6px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            font-size: 14px;
        }
        
        .error-message {
            color: #e53e3e;
            font-size: 13px;
            margin-top: 5px;
            height: 18px;
        }
        

        .wechat-login {
            display: flex;
            flex-direction: column;
            align-items: center; 
            justify-content: center; 
            padding: 30px;
            width: 100%; 
        }
        
        .qrcode-loading {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 200px;
            color: #718096;
        }
        
        .qrcode-loading svg {
            width: 40px;
            height: 40px;
            margin-bottom: 15px;
        }
        
        .qrcode-tip {
            margin-top: 15px;
            color: #718096;
            font-size: 14px;
            text-align: center;
        }
        
        .qrcode-container {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 0 auto;
            width: 200px;
            height: 200px;
        }
        
        .bind-notice {
            background: #ebf8ff;
            color: #2b6cb0;
            padding: 12px;
            border-radius: 6px;
            margin-top: 20px;
            font-size: 14px;
            display: flex;
            align-items: center;
        }
        
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }
        
        .modal:not(.hidden) {
            opacity: 1;
            visibility: visible;
        }
        
        .modal-content {
            transform: translateY(20px);
            transition: transform 0.3s ease;
        }
        
        .modal:not(.hidden) .modal-content {
            transform: translateY(0);
        }
        
        .modal-content {
            background: white;
            border-radius: 8px;
            width: 90%;
            max-width: 400px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
            overflow: hidden;
        }
        
        .modal-header {
            padding: 20px;
            border-bottom: 1px solid #e2e8f0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .modal-header h3 {
            margin: 0;
            font-size: 18px;
            color: #2d3748;
        }
        
        .close-btn {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #718096;
            line-height: 1;
        }
        
        .modal-body {
            padding: 20px;
        }
        
        .wechat-bind-qrcode {
            text-align: center;
            margin-bottom: 20px;
        }
        
        .toast-container {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 12px 24px;
            border-radius: 4px;
            z-index: 1000;
            animation: fadeIn 0.3s ease-out;
            max-width: 80%;
        }
        
        .toast-container.error {
            background: rgba(239, 68, 68, 0.9);
        }
        
        .animate-spin {
            animation: spin 1.2s linear infinite;
        }
        
        .btn-loader {
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid rgba(255,255,255,0.3);
            border-radius: 50%;
            border-top-color: #fff;
            animation: spin 1s ease-in-out infinite;
            margin-right: 8px;
            vertical-align: middle;
        }
        
        .hidden {
            display: none !important;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translate(-50%, -20px); }
            to { opacity: 1; transform: translate(-50%, 0); }
        }
        
        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }