/* static/css/style.css */
:root {
    --primary-color: #1976D2;
    --secondary-color: #2196F3;
    --accent-color: #00BCD4;
    --success-color: #4CAF50;
    --danger-color: #F44336;
    --warning-color: #FFC107;
    --text-color: #2C3E50;
    --text-light: #546E7A;
    --background-color: #F5F7FA;
    --card-background: #FFFFFF;
    --border-color: #E0E6ED;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    min-height: 100vh;
}

/* 导航栏样式 */
nav {
    background-color: var(--card-background);
    box-shadow: var(--shadow-md);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

nav .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav .nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

nav a:hover {
    background-color: var(--background-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 卡片样式 */
.card {
    background: var(--card-background);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white !important;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white !important;
}

.btn-danger:hover {
    background-color: #d32f2f;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* 首页样式 */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 400;
}

/* 功能卡片区域 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.feature-card {
    background: var(--card-background);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon-wrapper {
    width: 100px;
    height: 100px;
    background: var(--background-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    padding: 0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.feature-icon {
    font-size: 40px !important;
    color: var(--primary-color);
    display: block;
    line-height: 1;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.feature-card h2 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.feature-card .btn {
    margin-top: auto;
    width: 100%;
    max-width: 200px;
    justify-content: center;
}

/* 用户信息样式 */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background-color: var(--background-color);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    font-weight: 500;
}

.user-info .material-icons {
    color: var(--primary-color);
}

/* 页脚样式 */
.footer {
    background-color: var(--card-background);
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.footer p {
    color: var(--text-light);
}

/* 响应式调整 */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem;
    }

    nav .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    nav a {
        width: 100%;
        justify-content: center;
    }

    .container {
        padding: 1rem;
    }

    .hero {
        padding: 3rem 1rem;
        margin: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero, .feature-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* Material Icons 优化 */
.material-icons {
    vertical-align: middle;
    font-size: 1.25rem;
}

.feature-card .material-icons.feature-icon {
    font-size: 40px !important;
}

/* 管理员界面样式 */
.admin-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.admin-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0.6;
}

.admin-header h1 {
    font-size: 2rem;
    color: white;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-header h1::before {
    content: 'dashboard';
    font-family: 'Material Icons';
    font-size: 2rem;
}

.admin-filters {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.admin-filters:hover {
    box-shadow: var(--shadow-lg);
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.filter-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.filter-item {
    flex: 1;
    min-width: 250px;
}

.filter-item label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.filter-item label i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.filter-item input,
.filter-item select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: white;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.filter-item input:hover,
.filter-item select:hover {
    border-color: var(--primary-color);
}

.filter-item input:focus,
.filter-item select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.filter-actions {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    min-width: 200px !important;
}

.filter-actions .btn {
    flex: 1;
}

.btn-secondary {
    background-color: var(--background-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
    border-color: var(--text-light);
}

.workorders-table {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 1.5rem;
}

.table-header h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.table-header h2::before {
    content: 'list_alt';
    font-family: 'Material Icons';
    color: var(--primary-color);
}

.workorder-count {
    background: var(--background-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.table-responsive {
    overflow-x: auto;
    margin: 0 -1px;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1px;
}

th {
    background-color: var(--background-color);
    color: var(--text-color);
    font-weight: 600;
    text-align: left;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    transition: background-color 0.3s ease;
}

tr:hover td {
    background-color: var(--background-color);
}

.user-cell,
.company-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-cell i,
.company-cell i {
    font-size: 1.25rem;
    color: var(--text-light);
    opacity: 0.7;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    gap: 0.5rem;
}

.status-badge::before {
    font-family: 'Material Icons';
    font-size: 1.1rem;
}

.status-pending {
    background-color: var(--warning-color);
    color: #000;
}

.status-pending::before {
    content: 'pending';
}

.status-reviewed {
    background-color: var(--success-color);
    color: white;
}

.status-reviewed::before {
    content: 'check_circle';
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-width: 120px;
}

.no-data {
    text-align: center;
    padding: 4rem !important;
    background: var(--background-color) !important;
}

.no-data-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-light);
}

.no-data-message i {
    font-size: 3.5rem;
    opacity: 0.5;
}

.no-data-message p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .admin-header {
        margin: 1rem;
        padding: 1.5rem;
    }

    .filter-item {
        min-width: 100%;
    }

    .filter-actions {
        flex-direction: column;
        width: 100%;
        min-width: 100% !important;
    }

    .filter-actions .btn {
        width: 100%;
    }

    .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }

    .workorder-count {
        width: 100%;
        text-align: center;
    }

    th, td {
        padding: 0.75rem 1rem;
    }
}

/* 登录页面样式 */
.login-container {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.05), rgba(33, 150, 243, 0.1));
    position: relative;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0.4;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem !important;
    background: white;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.6s ease-out forwards;
}

.login-card h1 {
    color: var(--text-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.login-card h1::before {
    content: 'login';
    font-family: 'Material Icons';
    font-size: 2rem;
    color: var(--primary-color);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-label {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label::before {
    font-family: 'Material Icons';
    font-size: 1.25rem;
    color: var(--primary-color);
}

.form-label[for="username"]::before {
    content: 'person';
}

.form-label[for="password"]::before {
    content: 'lock';
}

.form-control {
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    color: var(--text-color);
    background: white;
    transition: all 0.3s ease;
}

.form-control:hover {
    border-color: var(--primary-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.form-control::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.btn-block {
    width: 100%;
    padding: 1rem !important;
    font-size: 1.1rem !important;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease !important;
}

.btn-block::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn-block:active::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.flash-message {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideDown 0.3s ease-out forwards;
}

.flash-message::before {
    font-family: 'Material Icons';
    font-size: 1.5rem;
}

.flash-error {
    background-color: #FEE2E2;
    color: #DC2626;
    border: 1px solid #FCA5A5;
}

.flash-error::before {
    content: 'error';
}

.flash-success {
    background-color: #DCFCE7;
    color: #16A34A;
    border: 1px solid #86EFAC;
}

.flash-success::before {
    content: 'check_circle';
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式调整 */
@media (max-width: 480px) {
    .login-container {
        padding: 1rem;
    }

    .login-card {
        padding: 2rem !important;
    }

    .login-card h1 {
        font-size: 1.75rem;
    }

    .btn-block {
        padding: 0.875rem !important;
    }
}

/* 安装校验页面样式 */
.check-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.check-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0.6;
}

.check-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.check-header h1::before {
    content: 'build';
    font-family: 'Material Icons';
    font-size: 2rem;
}

.check-form {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.check-form-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--background-color);
}

.company-select {
    max-width: 300px;
}

.check-items {
    padding: 1.5rem;
}

.check-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.check-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.check-item:last-child {
    margin-bottom: 0;
}

.check-item-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.check-item-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.check-item-title {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.check-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.image-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

.reference-image,
.uploaded-image {
    background: var(--background-color);
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reference-image img,
.uploaded-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    object-fit: contain;
    aspect-ratio: 4/3;
    background: white;
}

.reference-image-label {
    display: block;
    padding: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    background: white;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.image-comparison {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.image-comparison::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 1rem;
    bottom: 1rem;
    width: 1px;
    background: var(--border-color);
}

@media (max-width: 768px) {
    .image-group {
        grid-template-columns: 1fr;
    }
    
    .image-comparison::before {
        display: none;
    }
}

/* 失败工单提示样式 */
.failed-orders {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    border-radius: var(--radius-lg);
    color: #DC2626;
}

.failed-orders h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.failed-orders h2::before {
    content: 'warning';
    font-family: 'Material Icons';
}

.failed-order-list {
    list-style: none;
    padding: 0;
}

.failed-order-item {
    padding: 0.75rem;
    background: white;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.failed-order-item:last-child {
    margin-bottom: 0;
}

.failed-order-info {
    flex: 1;
}

.failed-order-id {
    font-weight: 600;
}

.failed-order-date {
    font-size: 0.875rem;
    color: var(--text-light);
}

.upload-wrapper {
    position: relative;
    width: 100%;
    min-height: 200px;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    margin-bottom: 1rem;
}

.upload-wrapper:hover {
    border-color: var(--primary-color);
    background: rgba(25, 118, 210, 0.05);
    transform: translateY(-2px);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-light);
}

.upload-placeholder i {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.upload-wrapper:hover .upload-placeholder i {
    opacity: 1;
    transform: scale(1.1);
}

.upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.preview-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    display: none;
    object-fit: contain;
    background: white;
}

.preview-image.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.remark-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    background: white;
    margin-top: 1rem;
}

.remark-input:hover {
    border-color: var(--primary-color);
}

.remark-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.remark-input::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.upload-section {
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-top: 1.5rem;
}

.upload-section .form-label {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.upload-section .form-label i {
    color: var(--primary-color);
}

/* PWA相关样式 */
.add-to-home-prompt {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    margin: auto;
    width: 90%;
    max-width: 500px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 16px;
    z-index: 1000;
    border: 1px solid #e0e0e0;
}

.prompt-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.install-icon {
    font-size: 36px;
    color: #4285F4;
    margin-right: 16px;
}

.prompt-text {
    flex: 1;
}

.prompt-text h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    color: #333;
}

.prompt-text p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* 手动安装按钮 */
.manual-install-pwa {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #f1f1f1;
    color: #333;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.manual-install-pwa:hover {
    background-color: #e0e0e0;
    text-decoration: none;
}

.manual-install-pwa i {
    margin-right: 8px;
}

.btn-secondary {
    background-color: #f1f1f1;
    color: #333;
}

.btn-primary {
    background-color: #4285F4;
    color: white;
}

/* 安装按钮在移动设备上的样式 */
@media (max-width: 768px) {
    .prompt-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .install-icon {
        margin-bottom: 12px;
    }
    
    .prompt-text {
        margin-bottom: 12px;
        width: 100%;
    }
    
    .manual-install-pwa {
        width: 100%;
        justify-content: center;
    }
}
