/* 全局样式 */
* {
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    background-color: #F5F5F7;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: #1D1D1F;
    font-size: 15px;
}
h1, h2, h3, h4, h5, h6 {
    font-size: 19px;
    font-weight: 600;
    color: #1D1D1F;
    margin: 0 0 1rem 0;
}
p {
    margin: 0 0 1rem 0;
}
a {
    color: #007AFF;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* 后台布局样式 */
.admin-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.admin-header {
    background: linear-gradient(135deg, #007AFF 0%, #0056CC 100%);
    border-bottom: 1px solid #0042A3;
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    background: none;
    border: none;
    width: 30px;
    height: 24px;
    cursor: pointer;
    color: #E5E7EB;
    display: none;
    position: relative;
}

.menu-toggle::before,
.menu-toggle::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #E5E7EB;
    transition: all 0.3s ease;
}

.menu-toggle::before {
    top: 0;
}

.menu-toggle::after {
    bottom: 0;
}

.menu-toggle span {
    position: absolute;
    left: 0;
    top: 11px;
    width: 100%;
    height: 2px;
    background-color: #E5E7EB;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .admin-header h1 {
        font-size: 16px;
    }
}
.admin-header h1 {
    margin: 0;
    font-size: 19px;
    color: #E5E7EB;
    font-weight: 600;
}
.admin-user {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.admin-user span {
    color: #E5E7EB;
    font-size: 13px;
}
.logout-btn {
    background-color: rgba(255, 255, 255, 0.15);
    color: #E5E7EB;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.625rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}
.logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(0.98);
    color: white;
}
.logout-btn:active {
    transform: scale(0.96);
    background-color: rgba(255, 255, 255, 0.1);
}
.admin-body {
    flex: 1;
    display: flex;
}
.sidebar {
    width: 240px;
    background-color: #F5F5F7;
    border-right: 1px solid #E5E7EB;
    padding: 1.5rem 0;
    flex-shrink: 0;
}
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-menu li {
    margin: 0;
}
.sidebar-menu a {
    display: block;
    padding: 0.875rem 1.5rem;
    color: #1D1D1F;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    font-weight: 500;
}
.sidebar-menu a:hover {
    background-color: #E5E7EB;
    border-left-color: #007AFF;
    color: #007AFF;
}
.sidebar-menu a.active {
    background-color: #007AFF;
    border-left-color: #007AFF;
    color: white;
    font-weight: 600;
}
.sidebar-submenu {
    padding-left: 1.5rem !important;
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.sidebar-submenu.expanded {
    max-height: 300px;
}
.sidebar-submenu a {
    padding-left: 1.5rem;
    font-size: 13px;
}
.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}
.content-card {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 2rem;
    margin-bottom: 2rem;
}
.content-card h2 {
    margin-top: 0;
    color: #1D1D1F;
    font-size: 19px;
    margin-bottom: 1.5rem;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.crawl-btn {
    background-color: #007AFF;
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.crawl-btn:hover {
    background-color: #0066CC;
    transform: scale(0.98);
}
.crawl-btn:active {
    transform: scale(0.96);
}
.procurement-table {
    width: 100%;
    border-collapse: collapse;
}
.procurement-table th,
.procurement-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
}
.procurement-table th {
    background-color: #F5F5F7;
    font-weight: 600;
    color: #1D1D1F;
    font-size: 13px;
}
.procurement-table tr:hover {
    background-color: rgba(0, 122, 255, 0.05);
}
.action-buttons {
    display: flex;
    gap: 0.75rem;
}
.relevant-btn {
    background-color: #FF9500;
    color: white;
    border: none;
    padding: 0.375rem 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.relevant-btn:hover {
    background-color: #E68A00;
    transform: scale(0.98);
}
.success-message {
    background-color: rgba(52, 199, 89, 0.1);
    color: #34C759;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #34C759;
}
.error-message {
    background-color: rgba(255, 59, 48, 0.1);
    color: #FF3B30;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #FF3B30;
}
.info-message {
    background-color: rgba(0, 122, 255, 0.1);
    color: #007AFF;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #007AFF;
}
.title-column {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.link-column {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.link-column a {
    color: #007AFF;
    text-decoration: none;
}
.link-column a:hover {
    text-decoration: underline;
}
.relevant-tag {
    background-color: #34C759;
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 12px;
    font-size: 13px;
}
.not-relevant-tag {
    background-color: #86868B;
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 12px;
    font-size: 13px;
}

/* 详细信息页面样式 */
.detail-btn {
    background-color: #007AFF;
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}
.detail-btn:hover {
    background-color: #0066CC;
    transform: scale(0.98);
}
.detail-btn:active {
    transform: scale(0.96);
}
.back-btn {
    background-color: #F5F5F7;
    color: #1D1D1F;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}
.back-btn:hover {
    background-color: #E5E7EB;
    transform: scale(0.98);
}
.back-btn:active {
    transform: scale(0.96);
}
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.detail-item {
    padding: 1.5rem;
    background-color: #F5F5F7;
    border-radius: 12px;
}
.detail-item h3 {
    font-size: 15px;
    color: #86868B;
    margin-bottom: 0.75rem;
    font-weight: 500;
}
.detail-item p {
    font-size: 15px;
    color: #1D1D1F;
    margin: 0;
}
.attachments-section {
    margin-top: 2rem;
}
.attachments-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.attachments-list li {
    margin-bottom: 0.75rem;
    padding: 1rem;
    background-color: #F5F5F7;
    border-radius: 12px;
}
.attachments-list a {
    color: #007AFF;
    text-decoration: none;
    display: block;
}
.attachments-list a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .admin-body {
        flex-direction: column;
    }
    .sidebar {
        width: 250px;
        height: 100vh;
        border-right: 1px solid #E5E7EB;
        border-bottom: none;
        padding: 1.5rem 0;
        overflow-y: auto;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        background-color: #F5F5F7;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .sidebar-menu {
        display: block;
        overflow-x: hidden;
        white-space: normal;
    }
    .sidebar-menu li {
        white-space: normal;
        display: block;
        width: 100%;
    }
    .sidebar-menu a {
        display: block;
        width: 100%;
        border-left: 3px solid transparent;
        border-bottom: none;
        padding: 0.875rem 1.5rem;
        text-align: left;
        color: #1D1D1F;
    }
    .sidebar-menu a:hover {
        background-color: #E5E7EB;
        border-left-color: #007AFF;
        color: #007AFF;
    }
    .sidebar-menu a.active {
        background-color: #007AFF;
        border-left-color: #007AFF;
        color: white;
    }
    .sidebar-submenu {
        display: block;
        padding-left: 1.5rem !important;
        list-style: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .sidebar-submenu.expanded {
        max-height: 300px;
    }
    .sidebar-submenu a {
        padding-left: 1.5rem;
        font-size: 13px;
    }
    .main-content {
        padding: 1.5rem;
    }
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .card-header div:last-child {
        width: 100%;
        display: flex;
        gap: 0.75rem;
    }
    .crawl-btn,
    .detail-btn,
    .back-btn {
        flex: 1;
        text-align: center;
    }
    .procurement-table {
        display: block;
        overflow-x: auto;
    }
    .action-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    .relevant-btn {
        width: 100%;
        text-align: center;
    }
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* 爬取进度条弹窗 */
#progress-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
#progress-modal > div {
    background-color: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 95%;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
#progress-modal h3 {
    margin-top: 0;
    color: #1D1D1F;
    text-align: center;
    font-size: 19px;
}
#progress-modal > div > div:first-of-type {
    margin: 2rem 0;
}
#progress-modal > div > div:first-of-type > div:first-of-type {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
#progress-bar-container {
    width: 100%;
    height: 12px;
    background-color: #F5F5F7;
    border-radius: 12px;
    overflow: hidden;
}
#progress-bar {
    height: 100%;
    background-color: #007AFF;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 12px;
}
#progress-message {
    font-size: 15px;
    color: #86868B;
    text-align: center;
    margin-bottom: 2rem;
}

/* 相关性判断结果弹窗 */
#relevance-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
#relevance-modal > div {
    background-color: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
#relevance-modal h3 {
    margin-top: 0;
    color: #1D1D1F;
    font-size: 19px;
}
#relevance-modal p {
    margin-bottom: 1.5rem;
    color: #1D1D1F;
}
#relevance-modal ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#relevance-modal li {
    padding: 0.75rem;
    border-bottom: 1px solid #E5E7EB;
}
#relevance-modal a {
    color: #007AFF;
    text-decoration: none;
}
#relevance-modal span {
    margin-left: 1rem;
    font-size: 13px;
    color: #86868B;
}
#relevance-modal > div > div:last-child {
    margin-top: 2rem;
    text-align: right;
}
#relevance-modal button {
    background-color: #007AFF;
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease;
}
#relevance-modal button:hover {
    background-color: #0066CC;
    transform: scale(0.98);
}
#relevance-modal button:active {
    transform: scale(0.96);
}

/* 登录页面样式 */
.login-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.login-header {
    background-color: #007AFF;
    color: white;
    padding: 1.5rem;
    text-align: center;
}
.login-header h1 {
    margin: 0;
    font-size: 1.5rem;
    color: white;
}
.login-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}
.title {
    font-size: 3rem;
    font-weight: bold;
    color: #1D1D1F;
    margin-bottom: 2.5rem;
}
.login-form {
    background-color: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 420px;
}
.login-form h2 {
    margin-top: 0;
    color: #1D1D1F;
    text-align: center;
    margin-bottom: 2rem;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: #1D1D1F;
    font-size: 13px;
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: none;
    border-bottom: 1px solid #E5E7EB;
    border-radius: 12px;
    font-size: 15px;
    background-color: #F5F5F7;
    transition: all 0.2s ease;
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: none;
    border-bottom: 1px solid #E5E7EB;
    border-radius: 12px;
    font-size: 15px;
    background-color: #F5F5F7;
    transition: all 0.2s ease;
    resize: vertical;
}
.form-group textarea:focus {
    outline: none;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}
.submit-btn {
    width: 100%;
    background-color: #007AFF;
    color: white;
    border: none;
    padding: 0.875rem;
    border-radius: 12px;
    font-size: 15px;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: all 0.2s ease;
}
.submit-btn:hover {
    background-color: #0066CC;
    transform: scale(0.98);
}
.submit-btn:active {
    transform: scale(0.96);
}

/* 响应式设计 - 登录页面 */
@media (max-width: 768px) {
    .login-form {
        padding: 2rem;
        border-radius: 16px;
    }
    .title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
}

/* 用户管理页面样式 */
.add-btn {
    background-color: #007AFF;
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}
.add-btn:hover {
    background-color: #0066CC;
    transform: scale(0.98);
}
.add-btn:active {
    transform: scale(0.96);
}
.user-table {
    width: 100%;
    border-collapse: collapse;
}
.user-table th,
.user-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
}
.user-table th {
    background-color: #F5F5F7;
    font-weight: 600;
    color: #1D1D1F;
    font-size: 13px;
}
.user-table tr:hover {
    background-color: rgba(0, 122, 255, 0.05);
}
.edit-btn {
    background-color: #FF9500;
    color: white;
    border: none;
    padding: 0.375rem 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.edit-btn:hover {
    background-color: #E68A00;
    transform: scale(0.98);
}
.delete-btn {
    background-color: #FF3B30;
    color: white;
    border: none;
    padding: 0.375rem 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.delete-btn:hover {
    background-color: #E03226;
    transform: scale(0.98);
}

/* 响应式设计 - 用户管理页面 */
@media (max-width: 768px) {
    .user-table {
        display: block;
        overflow-x: auto;
    }
    .edit-btn,
    .delete-btn {
        width: 100%;
        text-align: center;
    }
}

/* 通用表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
}
.data-table th {
    background-color: #F5F5F7;
    font-weight: 600;
    color: #1D1D1F;
    font-size: 13px;
}
.data-table tr:hover {
    background-color: rgba(0, 122, 255, 0.05);
}
.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* 状态标签 */
.status-tag {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background-color: #F5F5F7;
    color: #1D1D1F;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}
.status-tag.status-running {
    background-color: rgba(52, 199, 89, 0.1);
    color: #34C759;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem 1rem !important;
}
.empty-icon {
    font-size: 48px;
    margin-bottom: 1rem;
    opacity: 0.5;
}
.empty-state p {
    color: #86868B;
    margin-bottom: 1.5rem;
    font-size: 15px;
}
.empty-state .add-btn {
    background-color: #007AFF;
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease;
}
.empty-state .add-btn:hover {
    background-color: #0066CC;
    transform: scale(0.98);
}

/* 代码文本 */
.code-text {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: #F5F5F7;
    border-radius: 8px;
    font-family: 'SF Mono', 'Menlo', 'Monaco', monospace;
    font-size: 13px;
    color: #1D1D1F;
}

/* 表单容器 */
.form-container {
    max-width: 600px;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1D1D1F;
    font-size: 13px;
    font-weight: 500;
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: none;
    border-bottom: 1px solid #E5E7EB;
    border-radius: 12px;
    font-size: 15px;
    background-color: #F5F5F7;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}
.form-group input:disabled {
    background-color: #E5E7EB;
    cursor: not-allowed;
}

/* 短语容器 */
.phrases-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.phrase-item {
    display: flex;
    gap: 0.75rem;
}
.phrase-item input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    font-size: 15px;
    background-color: white;
    transition: all 0.2s ease;
}
.phrase-item input:focus {
    outline: none;
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}
.remove-btn {
    width: 32px;
    height: 32px;
    border: none;
    background-color: #FF3B30;
    color: white;
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.remove-btn:hover {
    background-color: #E03226;
    transform: scale(1.05);
}
.add-btn {
    background-color: #007AFF;
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease;
    margin-top: 0.75rem;
}
.add-btn:hover {
    background-color: #0066CC;
    transform: scale(0.98);
}

/* 表单操作区 */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E5E7EB;
.submit-btn {
    flex: 1;
    max-width: 200px;
    background-color: #007AFF;
    color: white;
    border: none;
    padding: 0.875rem;
}

/* 远程开锁配置页面样式 */
.page-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1D1D1F;
    margin-bottom: 0.75rem;
}

.page-subtitle {
    font-size: 15px;
    color: #86868B;
    margin: 0;
}

.card {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 19px;
    font-weight: 600;
    color: #1D1D1F;
    margin: 0 0 1.5rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    color: #1D1D1F;
    font-size: 15px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: none;
    border-bottom: 1px solid #E5E7EB;
    border-radius: 12px;
    font-size: 15px;
    background-color: #F5F5F7;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
}

.form-input:focus {
    outline: none;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: none;
    border-bottom: 1px solid #E5E7EB;
    border-radius: 12px;
    font-size: 15px;
    background-color: #F5F5F7;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    resize: vertical;
    min-height: 80px;
}

.form-textarea:focus {
    outline: none;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 13px;
    color: #86868B;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
}

.btn-primary {
    background-color: #007AFF;
    color: white;
}

.btn-primary:hover {
    background-color: #0066CC;
    transform: scale(0.98);
}

.btn-primary:active {
    transform: scale(0.96);
}

.btn-secondary {
    background-color: #F5F5F7;
    color: #1D1D1F;
}

.btn-secondary:hover {
    background-color: #E5E7EB;
    transform: scale(0.98);
}

.btn-secondary:active {
    transform: scale(0.96);
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
}

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

.result-box {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 15px;
}

.result-success {
    background-color: rgba(52, 199, 89, 0.1);
    color: #34C759;
    border-left: 4px solid #34C759;
}

.result-error {
    background-color: rgba(255, 59, 48, 0.1);
    color: #FF3B30;
    border-left: 4px solid #FF3B30;
}

.result-text {
    margin: 0;
    font-weight: 500;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid #E5E7EB;
}

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

.info-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background-color: rgba(0, 122, 255, 0.1);
    color: #007AFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.info-text {
    color: #1D1D1F;
    font-size: 15px;
    line-height: 1.6;
}

.code-inline {
    display: inline-block;
    padding: 0.125rem 0.375rem;
    background-color: #F5F5F7;
    border-radius: 6px;
    font-family: 'SF Mono', 'Menlo', 'Monaco', monospace;
    font-size: 13px;
    color: #1D1D1F;
}

.hidden {
    display: none !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-content {
        padding: 1.5rem 1rem;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-icon {
        margin-bottom: 0.5rem;
    }
}   border-radius: 12px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.submit-btn:hover {
    background-color: #0066CC;
    transform: scale(0.98);
}
.cancel-btn {
    flex: 1;
    max-width: 200px;
    background-color: #F5F5F7;
    color: #1D1D1F;
    border: none;
    padding: 0.875rem;
    border-radius: 12px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.cancel-btn:hover {
    background-color: #E5E7EB;
    transform: scale(0.98);
}

/* 卡片底部 */
.card-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E5E7EB;
}
.card-footer h3 {
    font-size: 15px;
    margin-bottom: 1rem;
    color: #1D1D1F;
}

/* 统计卡片网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9F9F9 100%);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.stat-icon {
    font-size: 36px;
    margin-bottom: 0.75rem;
}
.stat-card h3 {
    font-size: 13px;
    color: #86868B;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.stat-value {
    font-size: 19px;
    font-weight: 600;
    color: #1D1D1F;
    margin: 0;
}
.stat-value.status-running {
    color: #34C759;
}

/* 卡片区域 */
.card-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E5E7EB;
}
.card-section h3 {
    font-size: 15px;
    margin-bottom: 1rem;
    color: #1D1D1F;
}

/* 表格容器 */
.table-container {
    overflow-x: auto;
}

/* 文件上传样式 */
.file-drop-area {
    border: 2px dashed #E5E7EB;
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #F5F5F7;
}

.file-drop-area:hover {
    border-color: #007AFF;
    background-color: rgba(0, 122, 255, 0.05);
}

.file-drop-area.file-drop-active {
    border-color: #007AFF;
    background-color: rgba(0, 122, 255, 0.1);
}

.file-drop-content p {
    margin: 0 0 1rem 0;
    color: #86868B;
    font-size: 15px;
}

.file-drop-content input[type="file"] {
    display: none;
}

/* 进度条样式 */
.progress-bar {
    width: 100%;
    height: 12px;
    background-color: #F5F5F7;
    border-radius: 12px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #007AFF;
    transition: width 0.3s ease;
    border-radius: 12px;
}

/* 响应式设计 - 通用 */
@media (max-width: 768px) {
    .content-card {
        padding: 1.5rem;
    }
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .card-header div:last-child {
        width: 100%;
        display: flex;
        gap: 0.75rem;
    }
    .card-header button,
    .card-header a {
        flex: 1;
        text-align: center;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-card {
        padding: 1.25rem;
    }
    .stat-icon {
        font-size: 28px;
    }
    .stat-value {
        font-size: 16px;
    }
    .form-actions {
        flex-direction: column;
    }
    .submit-btn,
    .cancel-btn {
        max-width: 100%;
    }
    .phrase-item {
        flex-direction: column;
    }
    .remove-btn {
        width: 100%;
    }
    .file-drop-area {
        padding: 2rem;
    }
}