* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: #ffffff;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 非landing页面需要限制高度和滚动 */
.app-container:has(.wrapper),
.app-container:has(.auth-page) {
    height: 100vh;
    overflow: hidden;
}

.wrapper {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    z-index: 1;
    flex: 1;
    overflow: hidden;
    height: calc(100vh - 80px);
    min-height: 0;
}

/* 转写记录页面的wrapper需要可以滚动 */
.wrapper:has(.records-header) {
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 0;
    margin-top: 45px;
    height: calc(100vh - 45px);
}

/* 实时识别页面的wrapper不需要margin-top */
.wrapper:has(.result-section):not(:has(.records-header)) {
    margin-top: 0;
}

/* 装饰性背景元素 */
body::before {
    display: none;
}

body::after {
    display: none;
}

.container {
    background: #ffffff;
    backdrop-filter: none;
    border-radius: 0;
    padding-top: 16px;
    padding-bottom: 16px;
    box-shadow: none;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding-left: clamp(40px, 5vw, 80px);
    padding-right: clamp(40px, 5vw, 80px);
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    min-height: 0;
}

/* 转写记录页面的container需要可以滚动 */
.wrapper:has(.records-header) .container {
    overflow-y: visible;
    overflow-x: hidden;
    height: auto;
    min-height: auto;
    padding-top: 0;
}

.header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    flex-shrink: 0;
}

.logo {
    position: relative;
}

.logo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, #6366f1, #9333ea);
    border-radius: 12px;
    filter: blur(8px);
    opacity: 0.4;
}

.logo-inner {
    position: relative;
    background: linear-gradient(135deg, #6366f1 0%, #9333ea 100%);
    padding: 0;
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon {
    width: 48px;
    height: 48px;
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-wave {
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 1px;
}

.logo-wave:nth-child(1) {
    height: 3px;
}

.logo-wave:nth-child(2) {
    height: 2px;
}

.logo-wave:nth-child(3) {
    height: 2px;
}

.header-text h1 {
    color: #111827;
    margin-bottom: 4px;
    font-size: 24px;
    font-weight: 600;
}

.subtitle {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

.status {
    margin: 20px 0 32px 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(to right, #f0fdf4, #d1fae5);
    border: 1px solid #bbf7d0;
    font-size: 14px;
    color: #166534;
    flex-shrink: 0;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #4ade80;
    border-radius: 50%;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.status.success {
    background: linear-gradient(to right, #f0fdf4, #d1fae5);
    border-color: #bbf7d0;
    color: #166534;
}

.status.error {
    background: linear-gradient(to right, #fef2f2, #fee2e2);
    border-color: #fecaca;
    color: #991b1b;
}

.status.error .status-dot {
    background: #ef4444;
}

.status.error .status-dot::after {
    background: #f87171;
}

.status.recording {
    background: linear-gradient(to right, #fff7ed, #ffedd5);
    border-color: #fed7aa;
    color: #9a3412;
}

.status.recording .status-dot {
    background: #f97316;
}

.status.info {
    background: linear-gradient(to right, #eff6ff, #dbeafe);
    border-color: #bfdbfe;
    color: #1e40af;
}

.button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 8px 0 16px 0;
    flex-shrink: 0;
}

button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    border: none;
    overflow: hidden;
    white-space: nowrap;
}

button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.7s;
}

button:hover:not(:disabled)::before {
    transform: translateX(100%);
}

button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
}

button.primary {
    background: linear-gradient(to right, #6366f1, #9333ea);
    color: white;
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.3);
}

button.primary:hover:not(:disabled) {
    background: linear-gradient(to right, #4f46e5, #7c3aed);
    box-shadow: 0 6px 12px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

button.primary.recording {
    background: linear-gradient(to right, #ef4444, #dc2626);
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.3);
    animation: pulse 1.5s infinite;
}

button.primary.recording:hover:not(:disabled) {
    background: linear-gradient(to right, #dc2626, #b91c1c);
}

button.secondary {
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

button.secondary:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #c7d2fe;
    color: #6366f1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        box-shadow: 0 4px 6px rgba(239, 68, 68, 0.3), 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% { 
        opacity: 0.95;
        box-shadow: 0 4px 6px rgba(239, 68, 68, 0.3), 0 0 0 10px rgba(239, 68, 68, 0);
    }
}

.result-section {
    background: #ffffff;
    backdrop-filter: none;
    border-radius: 0;
    padding-top: 16px;
    padding-bottom: 16px;
    padding-left: clamp(30px, 5vw, 80px);
    padding-right: clamp(30px, 5vw, 80px);
    box-shadow: none;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    flex: 1 1 auto;
    height: 100%;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
}

.result-label {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.result-text-container {
    position: relative;
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 20px;
    flex: 1 1 auto;
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
    transition: border-color 0.3s;
    /* 自定义滚动条样式 */
    scrollbar-width: thin;
    scrollbar-color: #d1d5db #f9fafb;
}

.result-text-container::-webkit-scrollbar {
    width: 8px;
}

.result-text-container::-webkit-scrollbar-track {
    background: #f9fafb;
    border-radius: 4px;
}

.result-text-container::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.result-text-container::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.result-text-container:hover {
    border-color: #d1d5db;
}

.result-text-container::before {
    display: none;
}

.result-text {
    font-size: 18px;
    line-height: 1.8;
    color: #111827;
    white-space: pre-wrap;
    word-wrap: break-word;
    padding-left: 16px;
}

.result-text.empty {
    color: #9ca3af;
    font-style: normal;
    font-size: 16px;
}

.copy-text-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.copy-text-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #6366f1;
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.2);
    transform: translateY(-1px);
}

.copy-text-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.copy-text-btn svg {
    width: 18px;
    height: 18px;
    color: #6366f1;
    stroke: currentColor;
}

.copy-text-btn:hover svg {
    color: #4f46e5;
}

.copy-text-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    flex-shrink: 0;
    margin-top: 0;
    min-height: 60px;
}

.stat-card {
    position: relative;
    overflow: visible;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    transition: none;
}

.stat-card:hover {
    box-shadow: none;
    transform: none;
}

.stat-card::after {
    display: none;
}

.stat-card.blue {
    background: #f9fafb;
    border: 1px solid #d1d5db;
}

.stat-card.blue::after {
    display: none;
}

.stat-card.purple {
    background: #f9fafb;
    border: 1px solid #d1d5db;
}

.stat-card.purple::after {
    display: none;
}

.stat-card.green {
    background: #f9fafb;
    border: 1px solid #d1d5db;
}

.stat-card.green::after {
    display: none;
}

.stat-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1;
}

.stat-icon {
    padding: 0;
    border-radius: 0;
    background: transparent;
    transition: none;
}

.stat-card.blue .stat-icon {
    background: transparent;
}

.stat-card.blue:hover .stat-icon {
    background: transparent;
}

.stat-card.purple .stat-icon {
    background: transparent;
}

.stat-card.purple:hover .stat-icon {
    background: transparent;
}

.stat-card.green .stat-icon {
    background: transparent;
}

.stat-card.green:hover .stat-icon {
    background: transparent;
}

.stat-icon svg {
    width: 16px;
    height: 16px;
}

.stat-card.blue .stat-icon svg {
    color: #6b7280;
}

.stat-card.purple .stat-icon svg {
    color: #6b7280;
}

.stat-card.green .stat-icon svg {
    color: #6b7280;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 12px;
    margin-bottom: 2px;
    color: #6b7280;
    font-weight: normal;
}

.stat-card.blue .stat-label {
    color: #6b7280;
}

.stat-card.purple .stat-label {
    color: #6b7280;
}

.stat-card.green .stat-label {
    color: #6b7280;
}

.stat-value {
    font-size: 14px;
    font-weight: normal;
    color: #111827;
}

.info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 13px;
    flex-shrink: 0;
    min-height: 60px;
}

.info-item {
    margin: 5px 0;
}

.config {
    margin-top: 30px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 10px;
}

.config-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #666;
}

.config-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    margin-top: 5px;
}

.error-message {
    color: #f44336;
    font-size: 12px;
    margin-top: 5px;
}

/* ==================== 顶部导航栏样式 ==================== */

.top-nav {
    background: #ffffff;
    backdrop-filter: none;
    border-bottom: none;
    padding: 8px 32px;
    padding-top: 25px;
    padding-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* 只在转写记录页面时固定导航栏 */
.app-container:has(.wrapper:has(.records-header)) .top-nav {
    position: fixed;
    left: 0;
    right: 0;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-small {
    position: relative;
}

.logo-inner-small {
    background: linear-gradient(135deg, #6366f1 0%, #9333ea 100%);
    padding: 0;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon-small {
    width: 40px;
    height: 40px;
    color: white;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-tabs {
    display: flex;
    gap: 8px;
}

.nav-tab {
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-tab:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.nav-tab.active {
    background: linear-gradient(to right, #6366f1, #9333ea);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* 用户菜单 */

.user-menu-container {
    position: relative;
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border-radius: 24px;
    background: transparent;
    cursor: pointer;
    transition: none;
    overflow: visible;
}

.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(to bottom right, #6366f1, #9333ea);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.user-email-short {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    opacity: 0;
    width: 0;
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.dropdown-arrow {
    width: 0;
    height: 16px;
    color: #6b7280;
    opacity: 0;
    margin: 0;
    overflow: hidden;
    transition: all 0.2s ease;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    z-index: 1001;
}

.user-dropdown-header {
    padding: 12px 14px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.user-email-full {
    font-size: 12px;
    color: #374151;
    font-weight: 400;
}

.user-dropdown-divider {
    height: 1px;
    background: #e5e7eb;
}

.user-dropdown-item {
    width: 100%;
    padding: 10px 14px;
    background: white;
    border: none;
    text-align: left;
    color: #374151;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
    display: block;
}

.user-dropdown-item:hover {
    background: #f9fafb;
}

.user-dropdown-item svg {
    width: 16px;
    height: 16px;
    color: #6b7280;
}

.login-btn {
    padding: 8px 20px;
    background: linear-gradient(to right, #6366f1, #9333ea);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.login-btn:hover {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

/* ==================== 登录/注册页面样式 ==================== */

.auth-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-container {
    max-width: 420px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header .logo {
    display: inline-block;
    margin-bottom: 16px;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: #6b7280;
    font-size: 14px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.form-group input {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s;
    outline: none;
}

.form-group input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.auth-submit-btn {
    padding: 14px;
    background: linear-gradient(to right, #6366f1, #9333ea);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.auth-submit-btn:hover {
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.auth-switch {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}

.auth-switch a {
    color: #6366f1;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-guest {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.guest-btn {
    padding: 10px 20px;
    background: white;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.guest-btn:hover {
    border-color: #6366f1;
    color: #6366f1;
}

/* ==================== 转写记录列表样式 ==================== */

/* 转写记录页面的容器需要更大的左右边距 */
.wrapper .container:not(.result-section) {
    padding-left: clamp(60px, 8vw, 120px);
    padding-right: clamp(60px, 8vw, 120px);
}

.records-header {
    margin-bottom: 4px;
}

.records-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.records-subtitle {
    color: #6b7280;
    font-size: 14px;
}

.records-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.record-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    position: relative;
}

.record-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.record-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.record-source-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.record-source-badge.mic {
    background: linear-gradient(to right, #dbeafe, #bfdbfe);
    color: #1e40af;
}

.record-source-badge.file {
    background: linear-gradient(to right, #fae8ff, #f3e8ff);
    color: #7c3aed;
}

.record-source-badge.video {
    background: linear-gradient(to right, #dcfce7, #bbf7d0);
    color: #15803d;
}

.record-date {
    font-size: 12px;
    color: #9ca3af;
}

.record-preview {
    color: #1f2937;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.5;
    margin-top: 32px;
    margin-bottom: 12px;
    min-height: 54px;
}

.record-footer {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    margin-top: 16px;
    border-top: none;
}

.record-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 6px 12px;
    border-radius: 20px;
}

.record-icon {
    width: 16px;
    height: 16px;
}

/* 记录菜单样式 */
.record-menu-container {
    position: relative;
}

.record-menu-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s;
    border-radius: 6px;
    width: 28px;
    height: 28px;
}

.record-menu-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.record-menu-btn svg {
    width: 18px;
    height: 18px;
}

.record-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    padding: 4px;
    min-width: 120px;
    z-index: 100;
}

.record-menu-item {
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    color: #374151;
    font-size: 14px;
    border-radius: 6px;
    transition: background 0.2s;
}

.record-menu-item:hover {
    background: #f3f4f6;
    color: #111827;
}

/* 删除确认对话框样式 */
.delete-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.delete-confirm-modal {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.1);
}

.delete-confirm-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
}

.delete-confirm-message {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.delete-confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.delete-confirm-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    min-width: 100px;
}

.delete-confirm-btn.confirm {
    background: linear-gradient(to right, #ef4444, #dc2626);
    color: white;
}

.delete-confirm-btn.confirm:hover {
    background: linear-gradient(to right, #dc2626, #b91c1c);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.delete-confirm-btn.cancel {
    background: #f3f4f6;
    color: #374151;
}

.delete-confirm-btn.cancel:hover {
    background: #e5e7eb;
}

.loading-container {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    width: 80px;
    height: 80px;
    color: #d1d5db;
    margin: 0 auto 16px;
}

.empty-state p {
    color: #6b7280;
    font-size: 16px;
    margin-bottom: 24px;
}

/* ==================== 记录详情模态框样式 ==================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.modal-close {
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    position: relative;
    padding: 0;
}

.modal-close:hover {
    opacity: 0.7;
}

.modal-close:active {
    opacity: 0.5;
}

.modal-close svg {
    width: 24px;
    height: 24px;
    color: #111827;
    transition: color 0.2s;
}

.modal-body {
    padding: 32px;
}

.record-detail-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
}

.detail-item {
    display: flex;
    gap: 8px;
    font-size: 14px;
}

.detail-label {
    color: #6b7280;
    font-weight: 500;
}

.record-detail-text {
    margin-bottom: 24px;
}

.record-detail-text .result-text-container {
    min-height: 250px;
    max-height: 400px;
    padding: 20px;
}

.record-detail-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.record-detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.record-detail-btn {
    padding: 8px 30px;
    background: linear-gradient(to right, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex: 0 0 auto;
}

.record-detail-btn:hover {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.record-detail-btn-delete {
    background: linear-gradient(to right, #ef4444, #dc2626) !important;
}

.record-detail-btn-delete:hover {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.download-btn {
    padding: 12px 20px;
    background: linear-gradient(to right, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.download-btn:hover:not(:disabled) {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.download-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================== Landing Page Styles ==================== */

/* Landing Page Container */
.landing-page {
    min-height: 100vh;
    background: #ffffff;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Landing Header */
.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.landing-nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.landing-nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    margin-right: 1rem;
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    cursor: pointer;
}

.landing-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1 0%, #9333ea 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.landing-nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.landing-nav-links a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.landing-nav-links a:hover {
    color: #6366f1;
}

.landing-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #9333ea 100%);
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.landing-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.landing-btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.landing-btn-secondary {
    background: white;
    color: #374151;
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid #e5e7eb;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.landing-btn-secondary:hover {
    border-color: #c7d2fe;
    color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Hero Section */
.landing-hero {
    padding: 8rem 2rem 6rem;
    background: linear-gradient(135deg, #f5f3ff 0%, #ffffff 50%, #eff6ff 100%);
    position: relative;
    overflow: hidden;
}

.landing-hero::before,
.landing-hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.landing-hero::before {
    top: -250px;
    right: -250px;
    background: #a855f7;
}

.landing-hero::after {
    bottom: -250px;
    left: -250px;
    background: #3b82f6;
}

.landing-hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.landing-hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.landing-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(168, 85, 247, 0.1);
    color: #7c3aed;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.landing-hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #a855f7;
    border-radius: 50%;
    animation: pulse-badge 2s infinite;
}

.landing-hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.landing-gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #9333ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-hero p {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.landing-hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.landing-hero-stats {
    display: flex;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.landing-stat {
    text-align: left;
}

.landing-stat-value {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1 0%, #9333ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.landing-stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.landing-hero-image {
    position: relative;
    animation: fadeIn 1s ease-out;
    width: 100%;
    height: 100%;
    min-height: 600px;
}

.landing-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 8px solid white;
    display: block;
}

.landing-floating-card {
    position: absolute;
    bottom: -20px;
    left: -30px;
    background: white;
    padding: 1.25rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float-card 3s ease-in-out infinite;
}

.landing-floating-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #6366f1 0%, #9333ea 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.landing-floating-card-text {
    text-align: left;
}

.landing-floating-card-title {
    font-size: 0.875rem;
    color: #6b7280;
}

.landing-floating-card-value {
    font-size: 0.75rem;
    color: #6366f1;
    font-weight: 600;
}

/* Features Section */
.landing-features {
    padding: 6rem 2rem;
    background: white;
}

.landing-section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.landing-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.landing-section-desc {
    font-size: 1.25rem;
    color: #6b7280;
}

.landing-features-grid {
    max-width: 1280px;
    margin: 0 auto 5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.landing-feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid #f3f4f6;
    transition: all 0.3s;
    text-align: left;
}

.landing-feature-card:hover {
    border-color: #e9d5ff;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
}

.landing-feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #6366f1 0%, #9333ea 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s;
}

.landing-feature-card:hover .landing-feature-icon {
    transform: scale(1.1);
}

.landing-feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.landing-feature-desc {
    color: #6b7280;
    line-height: 1.8;
}

.landing-more-features {
    max-width: 1280px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f5f3ff 0%, #eff6ff 100%);
    padding: 3rem;
    border-radius: 24px;
}

.landing-more-features h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.landing-more-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.landing-more-feature {
    text-align: center;
}

.landing-more-feature-icon {
    width: 56px;
    height: 56px;
    background: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 28px;
    color: #6366f1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.landing-more-feature h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.landing-more-feature p {
    color: #6b7280;
    font-size: 0.95rem;
}

/* Use Cases Section */
.landing-use-cases {
    padding: 6rem 2rem;
    background: #f9fafb;
}

.landing-use-cases-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.landing-use-case-card {
    position: relative;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.landing-use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.landing-use-case-bg {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 0.5s;
}

.landing-use-case-card:hover .landing-use-case-bg {
    transform: scale(1.05);
}

.landing-use-case-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.landing-overlay-purple {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.85) 0%, rgba(147, 51, 234, 0.85) 100%);
}

.landing-overlay-blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.85) 0%, rgba(37, 99, 235, 0.85) 100%);
}

.landing-overlay-indigo {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.85) 0%, rgba(79, 70, 229, 0.85) 100%);
}

.landing-overlay-pink {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.85) 0%, rgba(219, 39, 119, 0.85) 100%);
}

.landing-use-case-card:hover .landing-use-case-overlay {
    opacity: 0.95;
}

.landing-use-case-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
}

.landing-use-case-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 1rem;
}

.landing-use-case-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.landing-use-case-desc {
    font-size: 1.05rem;
    opacity: 0.95;
}

/* How It Works Section */
.landing-how-it-works {
    padding: 6rem 2rem;
    background: white;
}

.landing-steps {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    position: relative;
}

.landing-step {
    position: relative;
    text-align: center;
}

.landing-step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 5rem;
    font-weight: 700;
    color: #f3f4f6;
    z-index: 0;
}

.landing-step-icon {
    position: relative;
    z-index: 1;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6366f1 0%, #9333ea 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 40px;
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.landing-step-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.landing-step-desc {
    color: #6b7280;
    line-height: 1.8;
}

.landing-cta-section {
    margin-top: 4rem;
    text-align: center;
}

.landing-cta-box {
    display: inline-block;
    background: linear-gradient(135deg, #f5f3ff 0%, #eff6ff 100%);
    padding: 3rem;
    border-radius: 20px;
}

.landing-cta-box p {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Footer */
.landing-footer {
    background: #1f2937;
    color: #d1d5db;
    padding: 4rem 2rem 2rem;
}

.landing-footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.landing-footer-brand {
    max-width: 350px;
}

.landing-footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}

.landing-footer-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1 0%, #9333ea 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.landing-footer-brand p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.landing-footer-email {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

.landing-footer-email:hover {
    color: #a855f7;
}

.landing-footer-section h3 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.landing-footer-links {
    list-style: none;
}

.landing-footer-links li {
    margin-bottom: 0.75rem;
}

.landing-footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

.landing-footer-links a:hover {
    color: #a855f7;
}

.landing-footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #9ca3af;
}

.landing-footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.landing-heart {
    color: #a855f7;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse-badge {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.3);
    }
}

@keyframes float-card {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .landing-hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .landing-hero-image {
        order: -1;
    }

    .landing-features-grid {
        grid-template-columns: 1fr;
    }

    .landing-more-features-grid {
        grid-template-columns: 1fr;
    }

    .landing-use-cases-grid {
        grid-template-columns: 1fr;
    }

    .landing-steps {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .landing-footer-content {
        grid-template-columns: 1fr;
    }

    .landing-hero h1 {
        font-size: 2.5rem;
    }

    .landing-nav-links {
        display: none;
    }
}

@media (max-width: 640px) {
    .landing-hero {
        padding: 6rem 1rem 4rem;
    }

    .landing-hero h1 {
        font-size: 2rem;
    }

    .landing-hero p {
        font-size: 1rem;
    }

    .landing-hero-buttons {
        flex-direction: column;
    }

    .landing-hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .landing-section-title {
        font-size: 1.75rem;
    }

    .landing-section-desc {
        font-size: 1rem;
    }

    .landing-floating-card {
        left: 10px;
        bottom: 10px;
    }
}

