/**
 * Axure原型展示系统 - 完整样式表
 * 包含所有页面元素的样式定义
 */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: #3b82f6;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
}

.user-info-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.user-info-text {
    font-size: 14px;
    color: #475569;
}

.frozen-status {
    color: #dc2626;
    font-weight: 600;
}

.active-status {
    color: #065f46;
    font-size: 13px;
}

.expired-status {
    color: #b45309;
    font-size: 13px;
}

.space-warning {
    font-size: 13px;
    color: #475569;
}

.space-upgrade-link {
    color: #3b82f6;
    font-weight: 600;
}

.space-upgrade-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 8px;
    background-color: #3b82f6;
    color: white;
    font-size: 13px;
    font-weight: 600;
}

.space-upgrade-btn:hover {
    background-color: #2563eb;
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background-color: #2563eb;
}

/* 项目列表样式 */
.projects-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.projects-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
}

.search-bar {
    position: relative;
}

.search-input {
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    width: 250px;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* 表格样式 */
.projects-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
}

.projects-table th,
.projects-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.projects-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #475569;
}

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

.projects-table tr:hover {
    background-color: #f8fafc;
}

.project-name {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.project-name:hover {
    text-decoration: none;
}

.space-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
    margin-bottom: 16px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.space-item {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.space-label {
    font-size: 13px;
    color: #64748b;
}

.space-value {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.space-total {
    color: #1e293b;
}

.space-used {
    color: #dc2626;
}

.space-remaining {
    color: #16a34a;
}

.project-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background-color: #d1fae5;
    color: #065f46;
}

.status-inactive {
    background-color: #fee2e2;
    color: #dc2626;
}

/* 操作按钮样式 */
.action-buttons {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-view {
    background-color: #e0f2fe;
    color: #0369a1;
}

.btn-view:hover {
    background-color: #bae6fd;
}

.btn-update {
    background-color: #fef3c7;
    color: #92400e;
}

.btn-update:hover {
    background-color: #fde68a;
}

.btn-disable {
    background-color: #fee2e2;
    color: #dc2626;
}

.btn-disable:hover {
    background-color: #fecaca;
}

.btn-delete {
    background-color: #fee2e2;
    color: #dc2626;
}

.btn-delete:hover {
    background-color: #fecaca;
}

.btn-logout {
    background-color: #94a3b8;
    color: white;
}

.btn-logout:hover {
    background-color: #64748b;
}

.btn-share-settings {
    background-color: #e0e7ff;
    color: #4338ca;
}

.btn-share-settings:hover {
    background-color: #c7d2fe;
}

.btn-enable-share {
    background-color: #d1fae5;
    color: #065f46;
}

.btn-enable-share:hover {
    background-color: #a7f3d0;
}

.table-copy-btn {
    padding: 4px 8px;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    color: #475569;
    margin-left: 8px;
    transition: all 0.2s;
}

.table-copy-btn:hover {
    background-color: #e2e8f0;
    color: #1e293b;
    border-color: #94a3b8;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 8px;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background-color: #f8fafc;
}

.page-btn.active {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

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

.modal-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #64748b;
}

.modal-close:hover {
    color: #1e293b;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.password-input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.share-url-container {
    display: flex;
    gap: 10px;
    align-items: center;
    background-color: #f8fafc;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.share-url-link {
    color: #3b82f6;
    text-decoration: underline;
    font-weight: 500;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.share-url-link:hover {
    color: #2563eb;
}

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

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

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* 上传区域样式 */
.upload-area {
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.upload-area:hover {
    border-color: #3b82f6;
    background-color: #f8fafc;
}

.upload-area.dragover {
    border-color: #3b82f6;
    background-color: #f0f9ff;
}

.upload-icon {
    font-size: 48px;
    color: #64748b;
    margin-bottom: 20px;
}

.upload-text {
    font-size: 18px;
    font-weight: 500;
    color: #475569;
    margin-bottom: 10px;
}

.upload-subtext {
    font-size: 14px;
    color: #64748b;
}

.upload-input {
    display: none;
}

/* 文件列表样式 */
.file-list {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8fafc;
    border-radius: 8px;
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.file-icon {
    margin-right: 10px;
    color: #64748b;
}

.file-name {
    flex: 1;
    font-size: 14px;
    color: #334155;
}

.file-size {
    font-size: 12px;
    color: #64748b;
    margin-left: 10px;
}

/* 上传区域文件列表显示 */
.upload-area.has-files .upload-icon {
    font-size: 32px;
}

.upload-area.has-files .upload-text {
    font-size: 16px;
    margin-bottom: 10px;
}

.upload-area.has-files .upload-subtext {
    display: none;
}

/* 进度条样式 */
.upload-progress {
    display: none;
    margin: 20px 0;
}

.progress-bar {
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background-color: #3b82f6;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 14px;
    color: #64748b;
    text-align: center;
}

/* 结果区域样式 */
.upload-result {
    display: none;
    margin: 20px 0;
}

.result-link {
    display: flex;
    margin-top: 15px;
    gap: 10px;
}

.link-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
}

.copy-btn {
    padding: 10px 15px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.copy-btn:hover {
    background-color: #2563eb;
}

/* 登录页面样式 */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.login-form {
    margin-top: 30px;
}

/* 禁用项目提示页面样式 */
.disabled-container {
    max-width: 600px;
    margin: 100px auto;
    text-align: center;
    padding: 40px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.disabled-icon {
    font-size: 64px;
    color: #f59e0b;
    margin-bottom: 20px;
}

.disabled-title {
    color: #d97706;
    font-size: 24px;
    margin-bottom: 20px;
}

.disabled-message {
    color: #4b5563;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.disabled-btn {
    padding: 12px 24px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .projects-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .search-input {
        width: 100%;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .result-link {
        flex-direction: column;
    }
    
    .link-input {
        margin-bottom: 10px;
    }
}

/* Switch Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}
input:checked + .slider {
  background-color: #2196F3;
}

/* 关键渲染CSS - 解决Tailwind加载延迟导致的闪烁 (Moved from inline) */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 50;
    border-bottom: 1px solid #f3f4f6;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.header-logo {
    display: flex;
    align-items: center;
}
.header-nav {
    display: none;
}
.header-mobile-btn {
    display: block;
}
@media (min-width: 768px) {
    .header-nav {
        display: flex;
    }
    .header-mobile-btn {
        display: none;
    }
}
.nav-link {
    color: #1D2129; /* text-dark */
    font-weight: 500;
    transition: color 0.3s;
}
.nav-link:hover {
    color: #165DFF; /* text-primary */
}
.nav-link.active {
    color: #165DFF;
}
.nav-link.has-bubble {
    position: relative;
}
.nav-link.has-bubble .nav-bubble {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translate(calc(-58% + 30px), -100%);
    background: #165DFF;
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 999px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    min-width: 96px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(22, 93, 255, 0.25);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.nav-link.has-bubble .nav-bubble::after {
    content: '';
    position: absolute;
    left: 26px;
    bottom: -10px;
    border: 6px solid transparent;
    border-top-color: #165DFF;
}
.nav-link.has-bubble.show-bubble .nav-bubble {
    opacity: 1;
    transform: translate(calc(-58% + 30px), -110%);
}
input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}
input:checked + .slider:before {
  transform: translateX(26px);
}
.slider.round {
  border-radius: 34px;
}
.slider.round:before {
  border-radius: 50%;
}

/* Tag Badge */
.tag-badge {
    display: inline-block;
    padding: 4px 8px;
    margin: 2px;
    background-color: #e2e8f0;
    color: #475569;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.tag-badge:hover {
    background-color: #cbd5e1;
    color: #1e293b;
}

/* Utility Classes */
.btn-full-width {
    width: 100%;
}

.logo-centered {
    justify-content: center;
    margin-bottom: 30px;
}

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

.error-message {
    background-color: #fee2e2;
    color: #dc2626;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.success-message {
    background-color: #d1fae5;
    color: #065f46;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

/* Custom Theme Colors & Utilities - Replaces Tailwind Config */
:root {
    --color-primary: #165DFF;
    --color-secondary: #36CFC9;
    --color-dark: #1D2129;
    --color-light: #F2F3F5;
}

/* Typography */
.font-sans { font-family: 'Inter', system-ui, sans-serif !important; }
.font-bold { font-weight: 700 !important; }
.text-xl { font-size: 0.8rem !important; line-height: 1rem !important; }

/* Text Colors */
.text-primary { color: var(--color-primary) !important; }
.text-secondary { color: var(--color-secondary) !important; }
.text-dark { color: var(--color-dark) !important; }
.text-light { color: var(--color-light) !important; }
.text-white { color: #ffffff !important; }

.hover\:text-primary:hover { color: var(--color-primary) !important; }

/* Background Colors */
.bg-primary { background-color: var(--color-primary) !important; }
.bg-secondary { background-color: var(--color-secondary) !important; }
.bg-dark { background-color: var(--color-dark) !important; }
.bg-light { background-color: var(--color-light) !important; }
.bg-white { background-color: #ffffff !important; }

/* Border Colors */
.border-primary { border-color: var(--color-primary) !important; }
.border-secondary { border-color: var(--color-secondary) !important; }

/* Opacity Variants (Manual Approximation) */
.bg-primary\/5 { background-color: rgba(22, 93, 255, 0.05); }
.bg-primary\/10 { background-color: rgba(22, 93, 255, 0.1); }
.bg-primary\/50 { background-color: rgba(22, 93, 255, 0.5); }
.bg-primary\/90 { background-color: rgba(22, 93, 255, 0.9); }

.bg-secondary\/5 { background-color: rgba(54, 207, 201, 0.05); }

.bg-white\/90 { background-color: rgba(255, 255, 255, 0.9); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }

.text-white\/90 { color: rgba(255, 255, 255, 0.9); }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }

/* Hover Variants */
.hover\:bg-primary\/90:hover { background-color: rgba(22, 93, 255, 0.9); }
.hover\:bg-primary\/5:hover { background-color: rgba(22, 93, 255, 0.05); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

/* Focus Rings */
.focus\:ring-primary\/50:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.5);
}

/* Gradients */
.from-primary {
    --tw-gradient-from: var(--color-primary);
    --tw-gradient-to: rgba(22, 93, 255, 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.to-secondary {
    --tw-gradient-to: var(--color-secondary);
}
.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}
.bg-gradient-to-b {
    background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

/* More Opacity Variants found in about/index.html */
.bg-primary\/20 { background-color: rgba(22, 93, 255, 0.2); }


.border-primary\/10 { border-color: rgba(22, 93, 255, 0.1); }
.border-primary\/20 { border-color: rgba(22, 93, 255, 0.2); }
.border-primary\/30 { border-color: rgba(22, 93, 255, 0.3); }
.border-primary\/50 { border-color: rgba(22, 93, 255, 0.5); }
