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

:root {
    --primary-color: #87CEEB;
    --secondary-color: #48D1CC;
    --accent-color: #40E0D0;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-color: #333;
    --success-color: #4CAF50;
    --error-color: #f44336;
    --warning-color: #ff9800;
    --info-color: #2196F3;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input, select, textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 20px rgba(64, 224, 208, 0.3);
    transform: translateY(-2px);
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-success {
    background: linear-gradient(45deg, var(--success-color), #66BB6A);
    color: white;
}

.btn-danger {
    background: linear-gradient(45deg, var(--error-color), #EF5350);
    color: white;
}

.btn-warning {
    background: linear-gradient(45deg, var(--warning-color), #FFA726);
    color: white;
}

.btn-info {
    background: linear-gradient(45deg, var(--info-color), #42A5F5);
    color: white;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.header h1 {
    color: white;
    font-size: 3em;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    font-weight: 300;
}

.header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.nav-menu {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.info-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 15px;
    border-left: 5px solid var(--accent-color);
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateX(5px);
}

.info-label {
    font-weight: 600;
    color: #555;
    font-size: 0.85em;
    margin-bottom: 8px;
}

.info-value {
    color: var(--text-color);
    font-size: 1.1em;
    font-weight: 500;
}

.success {
    color: var(--success-color);
    background: rgba(76, 175, 80, 0.1);
    padding: 15px;
    border-radius: 10px;
    border-left: 5px solid var(--success-color);
    margin: 15px 0;
}

.error {
    color: var(--error-color);
    background: rgba(244, 67, 54, 0.1);
    padding: 15px;
    border-radius: 10px;
    border-left: 5px solid var(--error-color);
    margin: 15px 0;
}

.warning {
    color: var(--warning-color);
    background: rgba(255, 152, 0, 0.1);
    padding: 15px;
    border-radius: 10px;
    border-left: 5px solid var(--warning-color);
    margin: 15px 0;
}

.qr-code {
    text-align: center;
    padding: 30px;
}

.qr-code img {
    max-width: 250px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 3px solid white;
}

.record-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 20px;
    margin: 15px 0;
    border-left: 5px solid var(--accent-color);
    transition: transform 0.3s ease;
}

.record-card:hover {
    transform: translateX(5px);
}

.search-form {
    max-width: 600px;
    margin: 0 auto 40px;
}

.auto-focus {
    animation: pulse 2s infinite;
}

.table-container {
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    overflow: hidden;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

th {
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tr:hover {
    background: rgba(64, 224, 208, 0.1);
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

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

.stat-card {
    background: rgba(255, 255, 255, 0.2);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--glass-border);
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9em;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(64, 224, 208, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(64, 224, 208, 0); }
    100% { box-shadow: 0 0 0 0 rgba(64, 224, 208, 0); }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

/* 全屏模式样式 */
.fullscreen-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.fullscreen-mode .container {
    max-width: 100%;
    margin: 0 auto;
}

.fullscreen-mode .header,
.fullscreen-mode .nav-menu,
.fullscreen-mode .stats-grid,
.fullscreen-mode .glass-card:not(.main-content) {
    display: none;
}

.fullscreen-mode .main-content {
    display: block !important;
    max-width: 800px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.fullscreen-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    gap: 10px;
}

.fullscreen-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-size: 20px;
    color: white;
}

.fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.exit-fullscreen-btn {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.exit-fullscreen-btn:hover {
    background: rgba(220, 53, 69, 0.3);
}

/* 全屏模式下的输入框优化 */
.fullscreen-mode input[type="text"],
.fullscreen-mode input[type="number"] {
    font-size: 18px;
    padding: 20px;
    text-align: center;
}

.fullscreen-mode .search-form {
    max-width: 600px;
    margin: 0 auto 40px;
}

.fullscreen-mode .btn {
    padding: 18px 30px;
    font-size: 18px;
}

/* 全屏模式下的结果展示优化 */
.fullscreen-mode .result-container {
    max-height: 70vh;
    overflow-y: auto;
    margin-top: 20px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .fullscreen-controls {
        top: 10px;
        right: 10px;
    }
    
    .fullscreen-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .fullscreen-mode .main-content {
        margin: 20px;
        padding: 20px;
    }
}