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

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

/* 首页样式 */
.home-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.home-hero {
    text-align: center;
    padding: 2.5rem 1.5rem 2rem;
    color: white;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    backdrop-filter: blur(10px);
}

.hero-icon svg {
    width: 28px;
    height: 28px;
}

.home-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.home-content {
    flex: 1;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 2rem 1.5rem;
}

.cards-section {
    max-width: 900px;
    margin: 0 auto;
}

.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card:hover::before {
    opacity: 1;
}

.card-intro {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
    backdrop-filter: blur(10px);
}

.card-intro::before {
    opacity: 1;
}

.card-action {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.card-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.card-primary::before {
    background: rgba(255,255,255,0.3);
    opacity: 1;
}

.card-primary h2,
.card-primary p {
    color: white;
}

.card-primary .card-icon {
    background: rgba(255,255,255,0.2);
    color: white;
}

.card-secondary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.card-secondary::before {
    background: rgba(255,255,255,0.3);
    opacity: 1;
}

.card-secondary h2,
.card-secondary p {
    color: white;
}

.card-secondary .card-icon {
    background: rgba(255,255,255,0.2);
    color: white;
}

.card-admin {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
}

.card-admin::before {
    background: rgba(255,255,255,0.3);
    opacity: 1;
}

.card-admin h2,
.card-admin p {
    color: white;
}

.card-admin .card-icon {
    background: rgba(255,255,255,0.2);
    color: white;
}

.card-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    color: white;
}

.card-icon svg {
    width: 22px;
    height: 22px;
}

.card h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.card p {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.card-features {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.feature-tag {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(29, 78, 216, 0.1));
    color: var(--primary-color);
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.card-arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.card-action:hover .card-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.home-footer {
    text-align: center;
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* 表单页面样式 */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.container h1 {
    text-align: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--bg-color);
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.required {
    color: var(--danger-color);
    margin-left: 0.25rem;
}

/* 扫码输入框样式 */
.input-with-scan {
    display: flex;
    gap: 0.5rem;
}

.input-with-scan input[type="text"] {
    flex: 1;
}

.scan-btn {
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
}

.scan-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 扫码模态框 */
.scan-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.scan-modal-content {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-xl);
}

.scan-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.scan-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.scan-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.scan-close:hover {
    background: var(--bg-color);
    color: var(--text-primary);
}

.qr-reader {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1rem;
}

.scan-status {
    text-align: center;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    min-height: 1.25rem;
}

.scan-tips {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.scan-tips p {
    margin: 0.25rem 0;
}

/* 上传区域样式 */
.upload-area {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-color);
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.02);
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.upload-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.upload-subtext {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* 预览容器 */
.preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preview-remove:hover {
    background: var(--danger-color);
    transform: scale(1.1);
}

.preview-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.6875rem;
    padding: 0.25rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 提交按钮 */
.form-group button[type="submit"] {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.form-group button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.form-group button[type="submit"]:active {
    transform: translateY(0);
}

/* 链接样式 */
.link {
    text-align: center;
    margin-top: 1.5rem;
}

.link a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    display: inline-block;
    margin: 0 0.5rem;
}

.link a:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* 错误消息 */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger-color);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
}

/* 列表页面样式 */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.list-header h1 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
}

.search-box {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.search-box input {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    width: 250px;
    box-shadow: var(--shadow-md);
}

.search-box input:focus {
    outline: none;
    box-shadow: var(--shadow-lg);
}

.search-box button {
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.search-box button:hover {
    background: var(--bg-color);
    transform: translateY(-2px);
}

.record-list {
    display: grid;
    gap: 1rem;
}

.record-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.record-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.record-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.record-time {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.record-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.record-info-item {
    display: flex;
    flex-direction: column;
}

.record-info-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.record-info-value {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
}

.record-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.record-actions a {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-view {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-view:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-edit {
    background: var(--warning-color);
    color: white;
}

.btn-edit:hover {
    background: #d97706;
    transform: translateY(-1px);
}

.btn-delete {
    background: var(--danger-color);
    color: white;
}

.btn-delete:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.no-records {
    text-align: center;
    padding: 3rem;
    color: white;
    font-size: 1.125rem;
}

.no-records a {
    color: white;
    text-decoration: underline;
}

/* 详情页面样式 */
.detail-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
}

.detail-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.detail-item label {
    display: block;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.detail-item span {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.no-image {
    color: var(--text-secondary);
    font-style: italic;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.gallery-item {
    width: 100px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
}

.gallery-name {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
    word-break: break-all;
}

/* 灯箱效果 */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
}

/* 后台页面样式 */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-header h1 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
}

.admin-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.admin-actions a,
.admin-actions button {
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.admin-actions a:hover,
.admin-actions button:hover {
    background: var(--bg-color);
    transform: translateY(-2px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.filepool-grid {
    display: grid;
    gap: 1rem;
}

.filepool-folder {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.folder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem;
    margin: -0.5rem;
    border-radius: var(--radius-md);
    transition: background 0.2s;
}

.folder-header:hover {
    background: rgba(0,0,0,0.03);
}

.folder-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.folder-toggle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: transform 0.2s;
}

.folder-stats {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.folder-images {
    margin: 1rem 0;
}

.folder-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    max-width: 400px;
}

.folder-image-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--bg-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.folder-image-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

.folder-image-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

.folder-image-name {
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.folder-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.folder-files {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.folder-file {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-primary);
}

.folder-file a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.folder-file a:hover {
    text-decoration: underline;
}

/* 响应式设计 - 手机端适配 */
@media (max-width: 768px) {
    .home-hero {
        padding: 1.5rem 1rem 1.5rem;
    }
    
    .hero-icon {
        width: 48px;
        height: 48px;
    }
    
    .hero-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .home-hero h1 {
        font-size: 1.5rem;
    }
    
    .hero-desc {
        font-size: 0.875rem;
    }
    
    .home-content {
        padding: 1.5rem 1rem;
    }
    
    .action-cards {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .card-icon {
        width: 36px;
        height: 36px;
    }
    
    .card-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .card h2 {
        font-size: 1rem;
    }
    
    .card p {
        font-size: 0.75rem;
    }
    
    .container {
        padding: 1.5rem 1rem;
    }
    
    .form-card {
        padding: 1.5rem;
    }
    
    .record-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .record-actions {
        width: 100%;
    }
    
    .record-actions a {
        flex: 1;
        text-align: center;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-actions {
        width: 100%;
    }
    
    .admin-actions a,
    .admin-actions button {
        flex: 1;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .filepool-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        width: 80px;
    }
    
    .gallery-item img {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .home-hero h1 {
        font-size: 1.375rem;
    }
    
    .card h2 {
        font-size: 0.9375rem;
    }
    
    .card-icon {
        width: 32px;
        height: 32px;
    }
    
    .card-icon svg {
        width: 16px;
        height: 28px;
    }
    
    .upload-area {
        padding: 1.5rem;
    }
    
    .upload-icon {
        font-size: 2.5rem;
    }
    
    .preview-item {
        width: 80px;
        height: 80px;
    }
    
    .record-info {
        grid-template-columns: 1fr;
    }
    
    .input-with-scan {
        flex-direction: column;
    }
    
    .scan-btn {
        width: 100%;
    }
    
    .scan-modal-content {
        width: 95%;
        padding: 1rem;
    }
    
    .qr-reader {
        max-height: 300px;
    }
}