/* 产品密钥验证页面样式 */

/* 全局重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    overflow-y: auto;
    color: #333;
}

/* 主容器 */
.verify-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* 验证卡片 */
.verify-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.verify-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* 头部区域 */
.verify-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-section {
    margin-bottom: 15px;
}

.logo-icon {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 10px;
    display: block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.verify-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.subtitle {
    color: #718096;
    font-size: 16px;
    line-height: 1.5;
}

/* 表单样式 */
.verify-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group label i {
    margin-right: 8px;
    color: #667eea;
    width: 16px;
}

.optional {
    color: #a0aec0;
    font-weight: 400;
    font-size: 12px;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: #a0aec0;
}

.input-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #718096;
    display: flex;
    align-items: center;
}

.input-hint i {
    margin-right: 6px;
    font-size: 10px;
}

/* 按钮样式 */
.form-actions {
    margin-top: 30px;
}

.btn-verify {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-verify:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-verify:active {
    transform: translateY(0);
}

.btn-verify:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.loading-spinner {
    display: none;
}

.btn-verify.loading .btn-text {
    display: none;
}

.btn-verify.loading .loading-spinner {
    display: block;
}

/* 状态显示区域 */
.status-section {
    margin: 20px 0;
    padding: 15px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    background: #f7fafc;
}

.status-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.status-icon {
    font-size: 18px;
    color: #667eea;
    margin-top: 2px;
}

.status-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #2d3748;
}

.status-section.success {
    border-left-color: #48bb78;
    background: #f0fff4;
}

.status-section.success .status-icon {
    color: #48bb78;
}

.status-section.error {
    border-left-color: #f56565;
    background: #fff5f5;
}

.status-section.error .status-icon {
    color: #f56565;
}

/* 帮助区域 */
.help-section {
    margin-top: 30px;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

.help-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 0;
    color: #718096;
    font-size: 14px;
    transition: color 0.3s ease;
}

.help-toggle:hover {
    color: #667eea;
}

.toggle-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.help-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.help-content {
    margin-top: 15px;
    animation: slideDown 0.3s ease;
}

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

.help-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.help-item h4 {
    color: #2d3748;
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-item h4 i {
    color: #667eea;
    font-size: 12px;
}

.help-item p {
    color: #718096;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.help-item ul {
    color: #718096;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    padding-left: 20px;
}

.help-item li {
    margin-bottom: 5px;
}

/* 底部信息 */
.verify-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #a0aec0;
}

.security-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.security-info i {
    color: #48bb78;
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 999;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
    position: relative;
    z-index: 1001;
    margin: auto;
}

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

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.success-icon {
    font-size: 48px;
    color: #48bb78;
    margin-bottom: 15px;
    display: block;
    animation: successPulse 0.6s ease;
}

.error-icon {
    font-size: 48px;
    color: #f56565;
    margin-bottom: 15px;
    display: block;
    animation: errorShake 0.6s ease;
}

@keyframes successPulse {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.modal-header h2 {
    font-size: 24px;
    color: #2d3748;
    margin: 0;
}

.modal-body {
    margin-bottom: 25px;
    color: #718096;
    line-height: 1.6;
}

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

.btn-continue,
.btn-retry {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-continue {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(72, 187, 120, 0.3);
}

.btn-retry {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-retry:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        align-items: flex-start;
        padding: 30px 0;
    }
    
    .verify-container {
        padding: 25px;
        margin: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .verify-card {
        padding: 40px 25px;
        margin: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
    
    .verify-header {
        margin-bottom: 35px;
    }
    
    .logo-section {
        margin-bottom: 20px;
    }
    
    .logo-section h1 {
        font-size: 26px;
        margin-top: 15px;
    }
    
    .logo-icon {
        font-size: 45px;
    }
    
    .subtitle {
        font-size: 15px;
        line-height: 1.5;
        margin-top: 10px;
    }
    
    .verify-form {
        margin-bottom: 30px;
    }
    
    .form-group {
        margin-bottom: 25px;
    }
    
    .form-group label {
        margin-bottom: 10px;
        font-size: 15px;
    }
    
    .form-group input {
        padding: 16px 18px;
        font-size: 16px;
        line-height: 1.4;
    }
    
    .btn-verify {
        padding: 18px 25px;
        font-size: 16px;
        margin-top: 10px;
    }
    
    .verify-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        margin-top: 25px;
    }
    
    /* 移动端模态框适配 */
    .modal {
        padding: 20px;
        align-items: center;
        justify-content: center;
    }
    
    .modal-content {
        padding: 35px 25px;
        margin: 0;
        max-width: 90%;
        border-radius: 16px;
        max-height: 85vh;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    }
    
    .modal-header {
        margin-bottom: 25px;
        text-align: center;
    }
    
    .modal-header h2 {
        font-size: 22px;
        margin-top: 15px;
        line-height: 1.3;
    }
    
    .success-icon,
    .error-icon {
        font-size: 42px;
        margin-bottom: 10px;
    }
    
    .modal-body {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .error-details {
        padding: 16px;
        margin: 16px 0;
        text-align: left;
    }
    
    .error-details strong {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .suggestion-item {
        padding: 5px 0;
        margin-bottom: 3px;
        font-size: 13px;
        line-height: 1.4;
    }
    
    .modal-footer {
        margin-top: 25px;
    }
    
    .btn-continue,
    .btn-retry {
        padding: 14px 25px;
        font-size: 16px;
        width: 100%;
        border-radius: 12px;
        font-weight: 500;
    }
}

@media (max-width: 480px) {
    body {
        padding: 20px 0;
    }
    
    .verify-container {
        padding: 20px;
    }
    
    .verify-card {
        padding: 35px 20px;
    }
    
    .verify-header {
        margin-bottom: 30px;
    }
    
    .logo-section h1 {
        font-size: 24px;
    }
    
    .logo-icon {
        font-size: 40px;
    }
    
    .subtitle {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    .btn-verify {
        padding: 16px 20px;
        font-size: 16px;
    }
    
    .modal-content {
        padding: 30px 20px;
        max-width: 95%;
        border-radius: 14px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .success-icon,
    .error-icon {
        font-size: 38px;
    }
    
    .modal-body {
        font-size: 14px;
    }
    
    .btn-continue,
    .btn-retry {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* 移动端触摸优化 */
@media (max-width: 768px) {
    .btn-verify,
    .btn-continue,
    .btn-retry,
    .help-toggle {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .form-group input {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    
    /* 改善输入框在移动端的体验 */
    .form-group input:focus {
        transform: none;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }
    
    /* 优化按钮点击效果 */
    .btn-verify:active,
    .btn-continue:active,
    .btn-retry:active {
        transform: translateY(1px);
    }
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.5s ease;
}

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

.slide-up {
    animation: slideUp 0.5s ease;
}

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

/* 加载状态 */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    z-index: 10;
}

.loading-spinner-large {
    font-size: 24px;
    color: #667eea;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 成功验证信息样式 */
.license-info {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.license-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #c6f6d5;
}

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

.license-info-label {
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

.license-info-value {
    color: #38a169;
    font-size: 14px;
    font-weight: 500;
}

/* 错误信息样式 */
.error-details {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    font-size: 14px;
    color: #c53030;
    line-height: 1.6;
}

.error-details strong {
    display: block;
    margin-bottom: 12px;
    font-size: 15px;
    color: #991b1b;
}

.suggestion-list {
    margin-top: 8px;
}

.suggestion-item {
    padding: 6px 0;
    margin-bottom: 4px;
    color: #c53030;
    font-size: 14px;
    line-height: 1.5;
}

.suggestion-item:last-child {
    margin-bottom: 0;
}

/* 授权站链接样式 */
.auth-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.auth-link:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
    text-decoration: none;
}