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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
.header {
    text-align: center;
    padding: 10px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    max-width: 300px;
    height: auto;
    border-radius: 15px;
    /*box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);*/
    /*background: white;*/
    padding: 10px;
}

.brand-name {
    font-size: 36px;
    font-weight: bold;
    background: linear-gradient(135deg, #ff6b35 0%, #ffa500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 15px;
    text-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

/* 查询区域 */
.query-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

.query-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

/* 说明文字区域 */
.description-section {
    margin: 20px auto 0;
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    border: 2px dashed #ffa500;
    text-align: center;
    max-width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.description-text {
    margin-bottom: 15px;
    line-height: 1.9;
    text-align: center;
}

.description-text p {
    font-size: 16px;
    color: #222;
    margin: 6px 0;
    text-align: center;
    display: block;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.highlight-text {
    color: #ff6b35 !important;
    font-weight: 700;
    font-size: 17px !important;
    text-shadow: 0 1px 3px rgba(255, 107, 53, 0.4);
}

.instruction-text {
    margin-top: 15px;
    padding-top: 20px;
    border-top: 2px dashed #ffd4a3;
    text-align: center;
}

.instruction-text p {
    font-size: 16px;
    color: #222;
    margin: 8px 0;
    text-align: center;
    display: block;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.highlight-instruction {
    color: #ff6b35 !important;
    font-weight: 700;
    font-size: 20px !important;
    text-shadow: 0 1px 3px rgba(255, 107, 53, 0.4);
    margin: 12px 0 !important;
}

.sub-instruction {
    font-size: 14px !important;
    color: #444 !important;
    font-style: italic;
    margin-top: 10px !important;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* 装饰爱心 */
.hearts-decoration {
    text-align: center;
    margin: 15px 0;
    padding: 8px 0;
}

.heart {
    display: inline-block;
    font-size: 20px;
    color: #ff6b35;
    margin: 0 5px;
    animation: heartbeat 1.5s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.1s);
}

.heart:nth-child(1) { --i: 0; }
.heart:nth-child(2) { --i: 1; }
.heart:nth-child(3) { --i: 2; }
.heart:nth-child(4) { --i: 3; }
.heart:nth-child(5) { --i: 4; }
.heart:nth-child(6) { --i: 5; }
.heart:nth-child(7) { --i: 6; }
.heart:nth-child(8) { --i: 7; }
.heart:nth-child(9) { --i: 8; }

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 16px;
}

.input-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    background: #fff;
}

.input-group input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ff6b35 0%, #ffa500 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 结果显示 */
.result-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: none;
    animation: fadeIn 0.5s;
}

.result-section.show {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-valid {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 20px;
}

.result-invalid {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 20px;
}

.result-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.result-message {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.result-details {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
    text-align: left;
}

.result-details p {
    margin: 10px 0;
    font-size: 16px;
}

/* 管理后台样式 */
.admin-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.admin-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background: linear-gradient(135deg, #ff6b35 0%, #ffa500 100%);
    color: white;
    font-weight: 600;
}

tr:hover {
    background: #f5f5f5;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.status-active {
    background: #4caf50;
    color: white;
}

.status-inactive {
    background: #f44336;
    color: white;
}

.btn-small {
    padding: 8px 15px;
    margin: 0 5px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-edit {
    background: #2196F3;
    color: white;
}

.btn-edit:hover {
    background: #1976D2;
}

.btn-delete {
    background: #f44336;
    color: white;
}

.btn-delete:hover {
    background: #d32f2f;
}

/* 表单模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #333;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.btn-cancel {
    flex: 1;
    padding: 12px;
    background: #e0e0e0;
    color: #333;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-cancel:hover {
    background: #d0d0d0;
}

.btn-submit {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #ff6b35 0%, #ffa500 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .query-section,
    .admin-section {
        padding: 20px;
    }
    
    .brand-name {
        font-size: 28px;
    }
    
    .description-text p,
    .instruction-text p {
        font-size: 14px;
    }
    
    .highlight-text {
        font-size: 15px !important;
    }
    
    .highlight-instruction {
        font-size: 18px !important;
    }
    
    .sub-instruction {
        font-size: 12px !important;
    }
    
    .heart {
        font-size: 16px;
        margin: 0 3px;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 10px;
    }
}
