/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    background-color: #fafafa;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 25px;
}

/* 头部样式 */
header {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 25px;
    border-bottom: 2px solid #58cc02;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

header h1 {
    color: #58cc02;
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin: 0;
    text-shadow: 0 1px 2px rgba(88, 204, 2, 0.1);
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: #58cc02;
    color: #fff;
}

.btn-primary:hover {
    background-color: #3fa300;
    box-shadow: 0 2px 8px rgba(88, 204, 2, 0.2);
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

.btn-danger {
    background-color: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background-color: #c82333;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: #6c757d;
    border: 1px solid #6c757d;
    padding: 11px 23px;
}

.btn-outline:hover {
    background-color: #6c757d;
    color: #fff;
}

/* 英雄区域 */
.hero {
    text-align: center;
    padding: 80px 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #666;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: #58cc02;
    color: #fff;
}

.btn-primary:hover {
    background-color: #3fa300;
    box-shadow: 0 2px 8px rgba(88, 204, 2, 0.2);
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

.btn-danger {
    background-color: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background-color: #c82333;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

/* 表单样式 */
form {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: #fafafa;
}

.form-group input:focus {
    outline: none;
    border-color: #58cc02;
    box-shadow: 0 0 0 2px rgba(88, 204, 2, 0.1);
    background-color: #ffffff;
    transform: translateY(-1px);
}

/* 全局设置样式 - 清爽简约 */
.global-settings {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-bottom: 30px;
    border-left: 4px solid #58cc02;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.global-settings:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: #dee2e6;
}

.global-settings h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #2c3e50;
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* 管理员配置区域 - 清爽简约 */
.admin-profile {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 22px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.admin-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: #dee2e6;
    transition: all 0.3s ease;
}

.admin-profile:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-color: #dee2e6;
    transform: translateY(-1px);
}

.admin-profile:hover::before {
    background-color: #58cc02;
}

.admin-profile.active {
    background-color: #f0fff4;
    border-color: #58cc02;
    box-shadow: 0 2px 6px rgba(88, 204, 2, 0.1);
}

.admin-profile.active::before {
    background-color: #58cc02;
}

/* 表单头部 */
.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* 管理员标签 */
.admin-label {
    font-weight: 600;
    color: #495057;
    font-size: 1.1rem;
}

/* 滑动开关样式 */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 64px;
    height: 36px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e0e0e0;
    transition: .4s;
    border-radius: 36px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 28px;
    width: 28px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

input:checked + .toggle-slider {
    background-color: #58cc02;
}

input:focus + .toggle-slider {
    box-shadow: 0 0 0 3px rgba(88, 204, 2, 0.2);
}

input:checked + .toggle-slider:before {
    transform: translateX(28px);
}

/* 表单行样式 */
.form-row {
    display: flex;
    gap: 25px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* 标签页样式 */
.tabs {
    display: flex;
    margin-bottom: 20px;
    background-color: #fff;
    padding: 6px;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    gap: 4px;
}

.tab-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #666;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-align: center;
}

.tab-btn:hover {
    background-color: #fafafa;
    color: #333;
}

.tab-btn.active {
    background-color: #58cc02;
    color: #fff;
    box-shadow: 0 2px 4px rgba(88, 204, 2, 0.2);
}

.tab-content {
    display: none;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.tab-content:hover {
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    border-color: #e5e5e5;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

.tab-content h2 {
    font-size: 1.6rem;
    margin-bottom: 22px;
    color: #2c3e50;
    font-weight: 600;
    letter-spacing: -0.5px;
}

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

/* 结果区域 */
.result {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    background-color: #f8f9fa;
    border-left: 4px solid #58cc02;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

/* 邀请链接生成结果样式 */
#link-result {
    background-color: #e8f5e9 !important;
    border-left-color: #4caf50 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
}

/* 链接显示区域 */
.link-display {
    display: flex;
    margin-top: 15px;
    gap: 10px;
    align-items: stretch;
    flex-wrap: wrap;
}

.link-display input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
    overflow-x: auto;
    background-color: #f9f9f9;
    transition: all 0.2s ease;
}

.link-display input:hover {
    background-color: #fff;
    border-color: #bdbdbd;
}

.link-display .btn {
    padding: 0 24px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s ease;
}

/* 邀请链接样式 */
.invite-link {
    color: #2196f3;
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    word-break: break-all;
    transition: all 0.2s ease;
}

.invite-link:hover {
    color: #0d47a1;
    text-decoration: underline;
}

/* 成员列表 */
.members-list {
    margin-top: 20px;
}

.member-item {
    background-color: #fafafa;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    border: 1px solid #e5e5e5;
}

.member-item:hover {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.member-info {
    flex: 1;
}

.member-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.member-id {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* 登录页面样式 - 简约风 */
.login-page {
    background: #f5f5f5;
    color: #333;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 登录页面的container样式 */
.login-page .container {
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.login-container header {
    background: #fff;
    padding: 30px 20px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.login-content {
    padding: 30px 30px 40px;
    text-align: center;
}

.login-title {
    font-size: 1.6rem;
    margin-bottom: 30px;
    color: #333;
    font-weight: 600;
}

.btn-login {
    background: #58cc02;
    color: #fff;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.btn-login:hover {
    background: #3fa300;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(88, 204, 2, 0.3);
}

.error-message {
    color: #dc3545;
    margin-top: 15px;
    padding: 10px;
    background-color: #f8d7da;
    border-radius: 6px;
    font-size: 0.9rem;
}

.success-message {
    color: #28a745;
    margin-top: 15px;
    padding: 10px;
    background-color: #d4edda;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* 模态框样式 - 清爽简约 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: #ffffff;
    padding: 0;
    border-radius: 10px;
    width: 450px;
    max-width: 95%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fafafa;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-close:hover {
    background-color: #e5e5e5;
    color: #333;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 18px 25px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background-color: #fafafa;
}

/* 统计表格样式 - 清爽简约 */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 22px;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.stats-table th,
.stats-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.stats-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
}

.stats-table td {
    font-size: 0.95rem;
    color: #555;
}

.stats-table tr:hover {
    background-color: #fafafa;
}

.stats-table tr:last-child td {
    border-bottom: none;
}

/* 统计表格链接列 */
.stats-table td:first-child {
    width: 40%;
    min-width: 250px;
    word-break: break-all;
}

/* 分页控件样式 */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-size-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-size-selector label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    margin: 0;
}

.page-size-selector select {
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.9rem;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-size-selector select:hover {
    border-color: #bdbdbd;
}

.admin-btn {
    background-color: #6c757d !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 6px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    position: relative;
    z-index: 100 !important;
    opacity: 1 !important;
    display: inline-block !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    transform: none !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.admin-btn:hover {
    background-color: #5a6268 !important;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2) !important;
    color: #fff !important;
}

.page-size-selector select:focus {
    outline: none;
    border-color: #58cc02;
    box-shadow: 0 0 0 2px rgba(88, 204, 2, 0.1);
}

.page-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-info {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    min-width: 120px;
    text-align: center;
}

.pagination .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    min-width: 80px;
}

.pagination .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #e0e0e0;
    color: #999;
    border: 1px solid #e0e0e0;
}

.pagination .btn:disabled:hover {
    background-color: #e0e0e0;
    color: #999;
}

/* 简约表单样式 */
.centered-form {
    background: none;
    padding: 0;
    box-shadow: none;
    margin-bottom: 0;
}

.centered-form .form-group {
    margin-bottom: 15px;
}

.centered-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    background: #fff;
    color: #333;
    transition: border-color 0.2s ease;
}

.centered-form input::placeholder {
    color: #999;
}

.centered-form input:focus {
    outline: none;
    border-color: #58cc02;
    box-shadow: 0 0 0 2px rgba(88, 204, 2, 0.05);
}

/* 简约标题样式 */
.super-duolingo {
    background: linear-gradient(135deg, #58cc02 0%, #3fa300 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0;
}

/* 教程按钮样式 */
.btn-tutorial {
    background: linear-gradient(135deg, #6c5ce7 0%, #5a4fd8 100%);
    color: #fff;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.4);
    margin-top: 20px;
    display: inline-block;
    text-decoration: none;
}

.btn-tutorial:hover {
    background: linear-gradient(135deg, #5a4fd8 0%, #6c5ce7 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(108, 92, 231, 0.5);
}

/* 邀请页面样式 - Duolingo深色主题 */
.duolingo-invite-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.duolingo-background {
    background-color: #0f172a;
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.super-duolingo-logo {
    margin-bottom: 30px;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

.super-text {
    font-size: 1.2rem;
    font-weight: bold;
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 5px;
    display: inline-block;
}

.duolingo-text {
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    display: inline-block;
}

.family-illustration {
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out;
}

.invite-message {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out;
}

.invite-message h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.invite-message h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.invite-message h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.invite-main {
    max-width: 600px;
    width: 100%;
    animation: fadeInUp 1.2s ease-out;
}

#invite-form-section {
    width: 100%;
}

.benefits-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.benefit-text {
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.duolingo-form {
    background: none;
    padding: 0;
    box-shadow: none;
}

.email-input {
    border-radius: 12px;
    padding: 16px 20px !important;
    font-size: 1.1rem !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.email-input:focus {
    border-color: #8b5cf6 !important;
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2) !important;
}

.form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.btn-join {
    width: 100%;
    padding: 16px 30px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    background: linear-gradient(90deg, #8b5cf6, #ec4899) !important;
    border: none !important;
    color: white !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3) !important;
}

.btn-join:hover {
    background: linear-gradient(90deg, #7c3aed, #db2777) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4) !important;
}

.form-note {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 400;
}

/* 页脚样式 - 清爽简约 */
footer {
    text-align: center;
    padding: 25px;
    margin-top: 40px;
    color: #666;
    font-size: 0.9rem;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border-top: 2px solid #f0f0f0;
}

footer p {
    margin: 0;
    color: #666;
}

.invite-footer {
    padding: 30px 20px;
    background: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
    animation: fadeInUp 1.4s ease-out;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

/* 深色主题模态框样式 */
.modal-content {
    background: #1e293b;
    color: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    color: white;
}

.modal-body {
    color: rgba(255, 255, 255, 0.9);
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 管理员页面按钮样式 - 清爽简约 */
.btn.btn-secondary.admin-btn {
    background-color: #6c757d !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 6px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    position: relative;
    z-index: 100 !important;
    opacity: 1 !important;
    display: inline-block !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    transform: none !important;
}

.btn.btn-secondary.admin-btn:hover {
    background-color: #5a6268 !important;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2) !important;
    color: #fff !important;
}

/* 深色主题按钮样式 */
.duolingo-invite-page .btn-secondary {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

.duolingo-invite-page .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3) !important;
}

/* 深色主题成功和错误消息 */
#success-message, #error-message {
    text-align: center;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.success-title, .error-title {
    color: white;
}

.success-text, .error-text {
    color: rgba(255, 255, 255, 0.8);
}

/* 深色主题加载动画 */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 深色主题响应式设计 */
@media (max-width: 768px) {
    .benefits-section {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .invite-message h1 {
        font-size: 1.5rem;
    }
    
    .invite-message h2 {
        font-size: 2rem;
    }
    
    .invite-message h3 {
        font-size: 1.5rem;
    }
}

.invite-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.3);
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

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

.invite-container header {
    background: linear-gradient(135deg, #58cc02 0%, #3fa300 100%);
    padding: 30px 40px;
    text-align: center;
    border-bottom: none;
}

.logo-container {
    margin-bottom: 0;
}

.duolingo-family-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: relative;
}

.duolingo-family-text {
    font-family: 'Arial Black', sans-serif;
    font-size: 2.2rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: -1px;
    margin: 0;
    font-weight: 900;
}

/* 邀请内容区域 */
.invite-header {
    text-align: center;
    padding: 40px 40px 20px;
}

.invite-title {
    color: #212121;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.invite-subtitle {
    color: #616161;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 400;
}

/* 福利展示区域 */
.benefits-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 0 40px 30px;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: #e8f5e9;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(88, 204, 2, 0.15);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.benefit-text {
    color: #424242;
    font-weight: 500;
    font-size: 0.95rem;
}

/* 表单容器 */
.form-container {
    padding: 0 40px 50px;
}

.email-input {
    border-radius: 12px;
    padding: 16px 20px !important;
    font-size: 1.1rem !important;
    border: 2px solid #e0e0e0 !important;
    background: #fafafa !important;
}

.email-input:focus {
    border-color: #58cc02 !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(88, 204, 2, 0.1) !important;
}

.form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.btn-join {
    width: 100%;
    padding: 16px 30px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #58cc02 0%, #3fa300 100%) !important;
    border: none !important;
    color: #fff !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 16px rgba(88, 204, 2, 0.3) !important;
}

.btn-join:hover {
    background: linear-gradient(135deg, #3fa300 0%, #58cc02 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(88, 204, 2, 0.4) !important;
}

.form-note {
    color: #757575;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 400;
}

/* 成功和错误消息样式 */
#success-message, #error-message {
    text-align: center;
    padding: 60px 40px;
}

.success-icon, .error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.success-title, .error-title {
    color: #212121;
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.success-text, .error-text {
    color: #616161;
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-weight: 400;
}

.success-actions, .error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 页脚样式 */
.invite-footer {
    padding: 30px 40px;
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-content p {
    color: #757575;
    margin: 0;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #58cc02;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #3fa300;
    text-decoration: underline;
}

/* 模态框样式增强 */
.modal-content {
    animation: modalSlideIn 0.3s ease-out;
    max-width: 450px;
    width: 90%;
    border-radius: 16px;
    overflow: hidden;
}

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

/* 加载弹窗样式 */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(88, 204, 2, 0.2);
    border-top: 4px solid #58cc02;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .invite-title {
        font-size: 2rem !important;
    }
    
    .duolingo-family-text {
        font-size: 1.8rem !important;
    }
    
    .invite-container header,
    .invite-header,
    .benefits-section,
    .form-container,
    .invite-footer {
        padding: 20px !important;
    }
    
    .benefits-section {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    .modal-content {
        width: 95% !important;
        margin: 20px !important;
    }
}


    height: 50px;
    border: 4px solid rgba(88, 204, 2, 0.2);
    border-top: 4px solid #58cc02;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 文本居中 */
.text-center {
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .invite-container {
        margin: 0 15px;
    }
    
    .invite-container header {
        padding: 20px 30px;
    }
    
    .duolingo-family-text {
        font-size: 1.8rem;
    }
    
    .invite-header {
        padding: 30px 30px 15px;
    }
    
    .invite-title {
        font-size: 2rem;
    }
    
    .invite-subtitle {
        font-size: 1.1rem;
    }
    
    .benefits-section {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 30px 25px;
        gap: 15px;
    }
    
    .form-container {
        padding: 0 30px 40px;
    }
    
    .benefit-item {
        padding: 15px;
    }
    
    .benefit-icon {
        font-size: 2rem;
    }
    
    .footer-links {
        gap: 20px;
    }
}

.sad-character .character-hat {
    background: linear-gradient(135deg, #6495ed 0%, #4169e1 100%);
}

.sad-character .character-hat::after {
    background: linear-gradient(135deg, #4169e1 0%, #6495ed 100%);
}

.sad-character .character-arms {
    background: linear-gradient(135deg, #87ceeb 0%, #b0e0e6 100%);
}

.sad-character .character-eyes::before,
.sad-character .character-eyes::after {
    width: 15px;
    height: 10px;
    border-radius: 0 0 50% 50%;
    animation: none;
}

.sad-character .character-smile {
    width: 40px;
    height: 20px;
    border: 3px solid #333;
    border-bottom: none;
    border-radius: 20px 20px 0 0;
}

.invite-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #fff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.invite-page .centered-form {
    background: none;
    padding: 0;
    box-shadow: none;
    margin-bottom: 20px;
}

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

.invite-page .centered-form input {
    width: 100%;
    max-width: 400px;
    padding: 16px 24px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.invite-page .centered-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.centered-form input:focus {
    outline: none;
    border-color: #6c5ce7;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.2);
}

.btn-invite {
    background: linear-gradient(135deg, #58cc02 0%, #3fa300 100%);
    color: #fff;
    padding: 16px 48px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(88, 204, 2, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.btn-invite:hover {
    background: linear-gradient(135deg, #3fa300 0%, #58cc02 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(88, 204, 2, 0.5);
}

.success-content, .error-content {
    padding: 30px 40px;
    text-align: center;
}

.success-title, .error-title {
    color: #fff;
    margin-bottom: 20px;
    font-size: 2rem;
    background: linear-gradient(135deg, #fff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.success-text, .error-text {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.invite-footer {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.invite-footer p {
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .super-duolingo-text {
        font-size: 2rem;
    }
    
    .invite-content {
        padding: 20px 20px 40px;
    }
    
    .cartoon-section {
        padding: 0 10px;
        min-height: 120px;
        margin-bottom: 30px;
    }
    
    .cartoon-character {
        width: 80px;
        height: 110px;
    }
    
    .character-body {
        border-radius: 40px 40px 25px 25px;
    }
    
    .character-hat {
        width: 55px;
        height: 25px;
        top: -15px;
    }
    
    .character-hat::after {
        width: 65px;
        height: 12px;
        bottom: -6px;
    }
    
    .character-face {
        width: 55px;
        height: 55px;
        top: 20px;
    }
    
    .character-eyes {
        width: 35px;
    }
    
    .character-eyes::before,
    .character-eyes::after {
        width: 12px;
        height: 12px;
    }
    
    .character-smile {
        width: 30px;
        height: 15px;
    }
    
    .character-arms {
        width: 25px;
        height: 12px;
        top: 50px;
    }
    
    .left-arm {
        left: -12px;
    }
    
    .right-arm {
        right: -12px;
    }
    
    /* 调整动画速度以适应小屏幕 */
    .cartoon-character {
        animation: bounce 2.5s infinite;
    }
    
    .character-eyes::before,
    .character-eyes::after {
        animation: blink 3.5s infinite;
    }
}

/* 统计表格 */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.stats-table th, .stats-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.stats-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
    position: sticky;
    top: 0;
}

.stats-table tbody tr {
    transition: all 0.3s ease;
    background-color: #fff;
}

.stats-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stats-table tbody tr:last-child td {
    border-bottom: none;
}

.stats-table td {
    vertical-align: middle;
    white-space: normal;
    word-break: break-all;
}

.stats-table th:first-child,
.stats-table td:first-child {
    width: 40%;
    min-width: 250px;
}

/* 状态标签 */
.status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-used {
    background-color: #d4edda;
    color: #155724;
}

.status-unused {
    background-color: #fff3cd;
    color: #856404;
}

.status-expired {
    background-color: #f8d7da;
    color: #721c24;
}

/* 深色主题样式 - Duolingo家庭套餐邀请页面 */
.duolingo-background {
    background-color: #0f172a;
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.super-duolingo-logo {
    margin-bottom: 30px;
    text-align: center;
}

.super-text {
    font-size: 1.2rem;
    font-weight: bold;
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 5px;
}

.duolingo-text {
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
}

.family-illustration {
    margin-bottom: 40px;
    text-align: center;
}

.invite-message {
    text-align: center;
    margin-bottom: 50px;
}

.invite-message h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: #f8fafc;
}

.invite-message h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.invite-message h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #f8fafc;
}

/* 福利区域 */
.benefits-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.benefit-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transform: translateY(-2px);
}

.benefit-icon {
    font-size: 1.5rem;
}

.benefit-text {
    font-size: 1rem;
    color: #cbd5e1;
}

/* 表单容器 */
.form-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

.email-input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border-radius: 30px !important;
    padding: 16px 24px !important;
    font-size: 1.1rem !important;
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.email-input:focus {
    border-color: #8b5cf6 !important;
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2) !important;
}

.btn-join {
    background: linear-gradient(135deg, #8b5cf6, #ec4899) !important;
    border: none !important;
    color: white !important;
    border-radius: 30px !important;
    padding: 16px 32px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-join:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4) !important;
    background: linear-gradient(135deg, #7c3aed, #db2777) !important;
}

.form-note {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 15px;
    text-align: center;
}

/* 模态框深色主题 */
.modal {
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    color: white;
}

.modal-body {
    color: #cbd5e1;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

/* 加载动画 */
.loading-spinner {
    border-color: rgba(139, 92, 246, 0.2) !important;
    border-top-color: #8b5cf6 !important;
}

/* 页脚 */
.invite-footer {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    text-align: center;
    margin-top: auto;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #8b5cf6;
    text-decoration: underline;
}

/* 隐藏类 */
.hidden {
    display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        margin-bottom: 5px;
    }
    
    .member-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .member-item .btn {
        margin-top: 10px;
    }
}
