/**
 * 统一活动管理系统前端样式
 */

/* 活动列表样式 */
.uam-activity-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.activity-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.activity-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.activity-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

.activity-excerpt {
    color: #666;
    margin: 10px 0;
}

.activity-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.9em;
    margin: 10px 0;
}

.activity-actions {
    margin-top: 15px;
    text-align: right;
}

/* 活动详情样式 */
.uam-activity-info {
    background: #f9f9fa;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.meta-item {
    margin-bottom: 10px;
}

.meta-label {
    font-weight: bold;
    color: #555;
}

.meta-value {
    margin-left: 5px;
}

.status-planning {
    color: #ff9800;
}

.status-ongoing {
    color: #4caf50;
}

.status-completed {
    color: #9e9e9e;
}

/* 藏点列表样式 */
.uam-cangdian-list {
    margin: 20px 0;
}

.cangdian-item {
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
}

.cangdian-meta {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.cangdian-type {
    background: #e3f2fd;
    color: #1976d2;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8em;
}

.cangdian-difficulty {
    background: #fff3e0;
    color: #ff9800;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8em;
}

/* 报名表单样式 */
.uam-registration-form {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
}

.form-row {
    margin-bottom: 15px;
}

.form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-submit {
    margin-top: 20px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .uam-activity-list {
        grid-template-columns: 1fr;
    }
}

/**
 * UAM 报名系统样式
 */

/* 报名表单容器 */
.uam-registration-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
    border: 1px solid #e1e1e1;
}

.uam-registration-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5em;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

/* 用户信息区域 */
.registration-user-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 3px solid #0073aa;
}

.registration-user-info p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

/* 统计信息区域 */
.registration-stats {
    border-left: 3px solid #0073aa;
    padding-left: 15px;
    margin-bottom: 25px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
}

.registration-stats p {
    margin: 8px 0;
    color: #333;
    font-weight: 500;
}

/* 消息显示区域 */
.registration-message {
    margin-bottom: 20px;
}

.registration-message-success {
    background: #d4edda;
    color: #155724;
    padding: 12px 15px;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    border-left: 4px solid #28a745;
}

.registration-message-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 15px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    border-left: 4px solid #dc3545;
}

/* 成功状态 */
.registration-success {
    text-align: center;
    padding: 25px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.success-message {
    color: #155724;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
}

/* 禁用状态 */
.registration-disabled {
    text-align: center;
    padding: 25px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
}

.disabled-message {
    color: #721c24;
    font-size: 1.2em;
    font-weight: bold;
}

/* 付费活动 */
.registration-payment {
    text-align: center;
    padding: 25px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.payment-notice {
    color: #856404;
    font-size: 1.1em;
    margin-bottom: 15px;
    font-weight: 500;
}

/* 登录提示 */
.registration-login-required {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.login-notice {
    color: #666;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.login-actions .button {
    margin: 0 10px;
    padding: 12px 24px;
    text-decoration: none;
    display: inline-block;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* 表单样式 */
.uam-registration-form-inner {
    margin-top: 20px;
}

.registration-message-field {
    margin-bottom: 20px;
}

.registration-message-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.registration-message-field textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 0.3s ease;
}

.registration-message-field textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

/* 按钮样式 */
.registration-actions {
    text-align: center;
    margin-top: 20px;
}

.registration-actions .button {
    margin: 0 10px;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: none;
}

.button-large {
    padding: 15px 35px;
    font-size: 18px;
}

.button-primary {
    background-color: #0073aa;
    color: white;
}

.button-primary:hover {
    background-color: #005a87;
    transform: translateY(-1px);
}

.button-secondary {
    background-color: #6c757d;
    color: white;
}

.button-secondary:hover {
    background-color: #545b62;
    transform: translateY(-1px);
}

.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.button:disabled:hover {
    background-color: inherit;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .uam-registration-form {
        padding: 20px;
        margin: 20px 0;
    }
    
    .registration-actions .button {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    .login-actions .button {
        display: block;
        width: 100%;
        margin: 10px 0;
        box-sizing: border-box;
    }
    
    .registration-stats,
    .registration-user-info {
        padding: 12px;
    }
}

/* 动画效果 */
.registration-message {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 加载状态 */
.button.loading {
    position: relative;
    color: transparent;
}

.button.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: currentColor;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 表单验证样式 */
.form-error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin-bottom: 15px;
    border-left: 4px solid #dc3545;
}

.form-success {
    background: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    margin-bottom: 15px;
    border-left: 4px solid #28a745;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip .tooltip-content {
    visibility: hidden;
    background-color: #333;
    color: white;
    text-align: center;
    border-radius: 4px;
    padding: 5px 8px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    white-space: nowrap;
}

.tooltip:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .uam-registration-form {
        border: 2px solid #000;
    }
    
    .button-primary {
        border: 2px solid #000;
    }
    
    .button-secondary {
        border: 2px solid #000;
    }
}

/* 深色模式支持 
@media (prefers-color-scheme: dark) {
    .uam-registration-form {
        background: #2d2d2d;
        color: #fff;
        border-color: #444;
    }
    
    .registration-user-info {
        background: #3a3a3a;
        color: #ccc;
    }
    
    .registration-stats {
        background: #3a3a3a;
        color: #fff;
    }
    
    .registration-message-field textarea {
        background: #3a3a3a;
        color: #fff;
        border-color: #555;
    }
    
    .registration-login-required {
        background: #3a3a3a;
        border-color: #555;
    }
}*/