/**
 * 现代化激活页面样式
 * 参考 complete-flow-preview.html 原型设计
 * 版本: 2.0
 */

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
}

/* 容器 */
.ac-verify-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 420px;
    width: 100%;
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 头部 */
.ac-verify-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px 20px 20px;
    text-align: center;
    color: white;
}

.ac-header-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.ac-header-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ac-header-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

/* 卡片内容 */
.ac-verify-card {
    padding: 30px 20px;
}

.ac-card-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 15px;
}

.ac-verify-title {
    font-size: 20px;
    text-align: center;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.ac-verify-desc {
    font-size: 14px;
    text-align: center;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* 输入框样式 */
.ac-input-section {
    margin-bottom: 20px;
}

.ac-input-label {
    font-size: 15px;
    color: #333;
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
}

.ac-code-input-box {
    margin-bottom: 15px;
}

.ac-code-input {
    width: 100%;
    height: 50px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 4px;
    transition: all 0.3s;
    padding: 0 15px;
}

.ac-code-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.ac-code-input.error {
    border-color: #f44336;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.ac-code-input.success {
    border-color: #4caf50;
}

.ac-code-hint {
    text-align: center;
    font-size: 13px;
    color: #999;
    margin-top: 10px;
    margin-bottom: 15px;
}

.ac-code-hint strong {
    color: #667eea;
}

.ac-error-message {
    text-align: center;
    font-size: 13px;
    color: #f44336;
    margin-top: 8px;
    display: none;
}

.ac-error-message.show {
    display: block;
}

/* 按钮样式 */
.ac-primary-button,
.ac-btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    margin-bottom: 15px;
}

.ac-primary-button:hover,
.ac-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.ac-primary-button:active,
.ac-btn-primary:active {
    transform: translateY(0);
}

.ac-primary-button:disabled,
.ac-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* 次要按钮样式（取消按钮） */
.ac-btn-secondary,
.ac-secondary-button {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.ac-btn-secondary:hover,
.ac-secondary-button:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #adb5bd;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ac-btn-secondary:active,
.ac-secondary-button:active {
    background: #dee2e6;
    color: #343a40;
    transform: translateY(0);
    box-shadow: none;
}

/* 添加按钮点击波纹效果 */
.ac-btn-secondary {
    position: relative;
    overflow: hidden;
}

.ac-btn-secondary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.ac-btn-secondary:active::after {
    width: 100%;
    height: 100%;
}

/* 帮助区域 */
.ac-help-section {
    background: #fff9e6;
    border-radius: 10px;
    padding: 15px;
    border-left: 3px solid #ffc107;
    margin-top: 20px;
}

.ac-help-title {
    font-size: 14px;
    color: #f57c00;
    font-weight: 600;
    margin-bottom: 8px;
}

.ac-help-list {
    font-size: 12px;
    color: #666;
    line-height: 1.8;
    padding-left: 16px;
}

/* 底部 */
.ac-verify-footer {
    padding: 20px;
    background: #f8f9fa;
    text-align: center;
}

.ac-footer-text {
    font-size: 12px;
    color: #999;
    line-height: 1.6;
}

/* 成功状态 */
.ac-success-card {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    text-align: center;
    color: white;
}

.ac-success-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.ac-success-card h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.ac-success-card p {
    font-size: 14px;
    opacity: 0.95;
}

/* 用户卡片 */
.ac-user-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.ac-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ac-user-info {
    flex: 1;
}

.ac-user-info h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
}

.ac-user-info p {
    font-size: 12px;
    color: #666;
}

.ac-auth-badge {
    background: #4caf50;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    display: inline-block;
}

/* 欢迎框 */
.ac-welcome-box {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
    text-align: center;
}

.ac-welcome-box .icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.ac-welcome-box h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 6px;
}

.ac-welcome-box p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* 抖音徽章 */
.ac-douyin-badge {
    display: inline-flex;
    align-items: center;
    background: #000;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-top: 10px;
}

.ac-douyin-badge::before {
    content: "📱";
    margin-right: 5px;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .ac-verify-container {
        border-radius: 0;
    }
    
    .ac-header-title {
        font-size: 20px;
    }

    .ac-code-input {
        font-size: 20px;
        height: 48px;
        letter-spacing: 3px;
    }
    
    .ac-primary-button,
    .ac-btn-primary {
        font-size: 16px;
        padding: 14px;
    }
}

/* 加载动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ac-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
}

/* 提示信息 */
.ac-info-tip {
    background: #f0f7ff;
    border-radius: 8px;
    padding: 12px;
    border-left: 3px solid #667eea;
    margin-top: 15px;
}

.ac-info-tip p {
    font-size: 13px;
    color: #667eea;
    margin: 0;
    font-weight: 500;
}

.ac-info-tip .tip-icon {
    display: inline-block;
    margin-right: 5px;
}

/* 警告提示 */
.ac-warning-tip {
    background: #fff3e0;
    border-radius: 10px;
    padding: 15px;
    border-left: 3px solid #ff9800;
    margin-top: 15px;
}

.ac-warning-tip p {
    font-size: 13px;
    color: #e65100;
    margin: 0;
}

