* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(180deg, #87CEEB 0%, #B0E0E6 30%, #E0F4FF 70%, #F0F9FF 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* 云朵装饰效果 */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    filter: blur(1px);
    pointer-events: none;
    z-index: 0;
}

body::before {
    width: 300px;
    height: 100px;
    top: 8%;
    left: 5%;
    box-shadow: 
        60px 20px 0 20px rgba(255,255,255,0.9),
        120px -10px 0 30px rgba(255,255,255,0.85),
        180px 15px 0 15px rgba(255,255,255,0.8);
    animation: floatCloud1 20s ease-in-out infinite;
}

body::after {
    width: 250px;
    height: 80px;
    top: 15%;
    right: 10%;
    box-shadow: 
        50px 15px 0 25px rgba(255,255,255,0.85),
        100px -5px 0 20px rgba(255,255,255,0.9),
        150px 10px 0 15px rgba(255,255,255,0.8);
    animation: floatCloud2 25s ease-in-out infinite;
}

@keyframes floatCloud1 {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(30px); }
}

@keyframes floatCloud2 {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-25px); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ========== 跨智介绍区域 ========== */
.hero-section {
    text-align: center;
    padding: 60px 20px 40px;
    margin-bottom: 20px;
}

.hero-logo {
    margin-bottom: 20px;
}

.hero-logo-img {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.35);
}

.hero-title {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 60px;
    font-weight: 700;
    color: #0369A1;
    margin-bottom: 12px;
    text-shadow: 2px 2px 8px rgba(255,255,255,0.9);
    letter-spacing: 8px;
}

.hero-subtitle {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 18px;
    color: #0EA5E9;
    margin-bottom: 0;
    font-weight: 300;
    letter-spacing: 2px;
}

/* ========== 公告区域 ========== */
.announcement-section {
    max-width: 500px;
    margin: 0 auto 20px;
}

.announcement-card {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-radius: 12px;
    padding: 15px 20px;
    border-left: 4px solid #F59E0B;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

.announcement-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.announcement-icon {
    font-size: 20px;
}

.announcement-title {
    font-weight: bold;
    color: #92400E;
    font-size: 16px;
}

.announcement-content {
    color: #78350F;
    font-size: 14px;
    line-height: 1.6;
}

/* ========== 认证卡片 ========== */
.auth-card {
    max-width: 450px;
    margin: 0 auto 30px;
}

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #0369A1;
    letter-spacing: 2px;
}

.navbar-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    font-size: 14px;
    color: #64748B;
}

.vip-badge {
    background: linear-gradient(135deg, #FB923C 0%, #F97316 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

/* 卡片 */
.card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 30px;
    margin-bottom: 20px;
}

.card-title {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 25px;
    color: #0369A1;
    letter-spacing: 1px;
}

/* 表单 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #475569;
    font-size: 14px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #38BDF8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

/* 按钮 */
.btn {
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, #38BDF8 0%, #0EA5E9 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(14, 165, 233, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: #64748B;
    border: 1px solid #E2E8F0;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    color: #475569;
}

.btn-success {
    background: #4caf50;
    color: white;
}

.btn-danger {
    background: #f44336;
    color: white;
}

.btn-block {
    width: 100%;
}

/* 输出区域 */
.output-area {
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    min-height: 200px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.6;
}

/* 标签页 */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(56, 189, 248, 0.3);
}

.tab {
    padding: 12px 24px;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.tab:hover {
    color: #0EA5E9;
}

.tab.active {
    color: #0369A1;
    border-bottom-color: #38BDF8;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 模板列表 */
.template-list {
    display: grid;
    gap: 15px;
}

.template-item {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.template-item:hover {
    border-color: #38BDF8;
    background: #E0F7FF;
}

.template-item.selected {
    border-color: #0EA5E9;
    background: #BAE6FD;
}

.template-name {
    font-weight: bold;
    color: #0369A1;
    margin-bottom: 5px;
}

.template-description {
    font-size: 13px;
    color: #666;
}

/* 历史记录列表 */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-item {
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 6px;
    background: white;
}

/* 页脚 */
.footer {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 30px;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

/* 统计卡片 */
.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
}

/* 弹窗模态框 */
.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;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #333;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 提示消息 */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* 隐藏元素 */
.hidden {
    display: none !important;
}

/* 收藏模板样式 */
.favorite-item {
    position: relative;
}

.favorite-item .favorite-name {
    cursor: text;
    padding: 2px 6px;
    border-radius: 4px;
    min-width: 50px;
    display: inline-block;
}

.favorite-item .favorite-name:hover {
    background: #fff3cd;
}

.favorite-item .favorite-name:focus {
    outline: 2px solid #667eea;
    background: white;
}

.btn-icon {
    transition: transform 0.2s, color 0.2s;
}

.btn-icon:hover {
    transform: scale(1.2);
}

.favorites-section {
    padding-bottom: 15px;
    border-bottom: 2px dashed #eee;
}

.template-header {
    margin-bottom: 8px;
}

/* 响应式 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .card {
        padding: 20px;
    }
}
