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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部导航 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-info img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.login-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 主内容区 */
.main {
    margin-top: 70px;
    padding: 2rem;
    padding-bottom: 100px;
    flex: 1;
}

.section {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
}

.section.active {
    display: block;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #666;
}

/* Hero区域 */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.hero-icon i {
    font-size: 4rem;
    color: white;
}

.hero h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.8;
}

.main-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.main-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.quick-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.action-btn {
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.action-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
}

.action-btn i {
    font-size: 1.5rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    text-align: center;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #666;
    font-size: 0.9rem;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #f0f0ff;
}

/* 链接解析 */
.parse-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-group input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
}

.parse-tips {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.parse-tips h4 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.parse-tips ul {
    list-style: none;
    padding-left: 1rem;
}

.parse-tips li {
    color: #666;
    padding: 0.25rem 0;
}

.parse-tips li::before {
    content: '•';
    color: #667eea;
    margin-right: 0.5rem;
}

.parse-result {
    min-height: 200px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.empty-state {
    text-align: center;
    color: #999;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.parse-history h4 {
    margin-bottom: 1rem;
    color: #333;
}

.history-list {
    display: grid;
    gap: 0.5rem;
}

.history-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    gap: 1rem;
}

.history-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.history-item .info {
    flex: 1;
}

.history-item .status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.status.success {
    background: #d4edda;
    color: #155724;
}

.status.pending {
    background: #fff3cd;
    color: #856404;
}

.status.failed {
    background: #f8d7da;
    color: #721c24;
}

/* 创作图纸 */
.create-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.create-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.create-tab {
    padding: 0.75rem 1.5rem;
    border: none;
    background: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.create-tab.active {
    background: #667eea;
    color: white;
}

.create-panel {
    display: none;
}

.create-panel.active {
    display: block;
}

.canvas-controls {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-group label {
    color: #666;
}

.control-group input[type="range"] {
    width: 150px;
}

.tool-bar {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.tool-btn {
    background: #f5f5f5;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.tool-btn:hover,
.tool-btn.active {
    background-color: #667eea;
    color: white;
}

.tool-divider {
    width: 1px;
    background: #ddd;
    margin: 0 0.5rem;
}

.color-section {
    margin: 1rem 0;
}

.color-section h4 {
    margin-bottom: 0.75rem;
    color: #333;
}

.color-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 100%;
    margin-bottom: 1rem;
}

.color-item {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.3s;
}

.color-item:hover,
.color-item.active {
    transform: scale(1.2);
    border-color: #333;
}

.brand-colors select {
    padding: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.brand-color-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.series-group {
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #f5f5f5;
    border-radius: 6px;
}

.series-title {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.3rem;
}

.series-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.brand-color-item {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.brand-color-item:hover,
.brand-color-item.active {
    transform: scale(1.1);
    border-color: #333;
}

.inventory-series {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.2rem;
}

.canvas-area {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
    overflow: auto;
    padding: 1rem;
    background: #fafafa;
    border-radius: 8px;
}

#pixel-canvas {
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: crosshair;
}

.action-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.color-stats {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.color-stats h4 {
    margin-bottom: 1rem;
    color: #333;
}

.stats-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: white;
    border-radius: 8px;
}

.stat-color {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.stat-info {
    flex: 1;
}

.stat-info .name {
    font-size: 0.85rem;
    color: #333;
}

.stat-info .count {
    font-size: 0.75rem;
    color: #666;
}

/* 上传面板 */
.upload-area {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.upload-area i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.upload-area.small {
    padding: 1.5rem;
}

.upload-area.small i {
    font-size: 2rem;
}

.upload-preview {
    display: none;
    margin-top: 1rem;
}

.upload-preview.active {
    display: block;
}

.upload-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
}

.pixel-settings {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.setting-item {
    margin-bottom: 1rem;
}

.setting-item label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
}

/* 库存管理 */
.inventory-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.inventory-toolbar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
}

.search-box i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.filter-group {
    display: flex;
    gap: 0.5rem;
}

.filter-group select {
    padding: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 8px;
}

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

.summary-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.summary-card i {
    font-size: 2rem;
    color: #667eea;
}

.summary-card.warning i {
    color: #ffc107;
}

.summary-info {
    display: flex;
    flex-direction: column;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.summary-label {
    font-size: 0.85rem;
    color: #666;
}

.inventory-list {
    max-height: 500px;
    overflow-y: auto;
}

.inventory-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    gap: 1rem;
}

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

.inventory-color {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.inventory-info {
    flex: 1;
}

.inventory-info h4 {
    color: #333;
    margin-bottom: 0.25rem;
}

.inventory-info p {
    color: #666;
    font-size: 0.9rem;
}

.inventory-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.inventory-actions input {
    width: 80px;
    padding: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
}

.inventory-actions button {
    padding: 0.5rem;
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* 素材社区 */
.community-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.community-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.community-tab {
    padding: 0.75rem 1.5rem;
    border: none;
    background: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.community-tab.active {
    background: #667eea;
    color: white;
}

.community-panel {
    display: none;
}

.community-panel.active {
    display: block;
}

.category-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: #f5f5f5;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.tab-btn:hover,
.tab-btn.active {
    background-color: #667eea;
    color: white;
}

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

.material-card {
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.material-card:hover {
    transform: translateY(-5px);
}

.material-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.material-card h4 {
    padding: 0.5rem;
    text-align: center;
    color: #333;
    font-size: 0.9rem;
}

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

.works-header h3 {
    color: #333;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.work-card {
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.work-card:hover {
    transform: translateY(-5px);
}

.work-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.work-card .work-info {
    padding: 0.75rem;
}

.work-card h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.work-card p {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.work-card .work-stats {
    display: flex;
    gap: 1rem;
    color: #999;
    font-size: 0.8rem;
}

/* 弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content.large {
    max-width: 700px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.modal-body {
    padding: 1rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1rem;
    border-top: 1px solid #eee;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 120px;
}

.batch-list {
    margin-top: 1rem;
    overflow-x: auto;
}

.batch-list table {
    width: 100%;
    border-collapse: collapse;
}

.batch-list th,
.batch-list td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.batch-list th {
    background: #f8f9fa;
    color: #666;
}

/* 批量列表数量输入框 */
.batch-quantity-input {
    width: 80px;
    padding: 0.4rem 0.5rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.batch-quantity-input:focus {
    outline: none;
    border-color: #667eea;
}

/* Toast提示 */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    animation: slideIn 0.3s ease;
}

.toast.success {
    background: #28a745;
}

.toast.error {
    background: #dc3545;
}

.toast.info {
    background: #17a2b8;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 2rem;
    color: #999;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: none;
    justify-content: space-around;
    padding: 0.75rem 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #999;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s;
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.nav-item.active {
    color: #667eea;
}

/* 库存网格 */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.brand-tag {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: #667eea;
    color: white;
    border-radius: 10px;
    font-size: 0.75rem;
}

.color-code {
    font-size: 0.8rem;
    color: #999;
}

.color-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 0.25rem;
}

/* 单位切换 */
.unit-switch {
    display: flex;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #667eea;
}

.unit-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.unit-btn.active {
    background: #667eea;
    color: white;
}

/* 批量列表 */
.batch-list {
    margin-top: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.batch-list table {
    width: 100%;
    border-collapse: collapse;
}

.batch-list th,
.batch-list td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 0.85rem;
}

.batch-list th {
    background: #f5f5f5;
    font-weight: 600;
}

/* 小按钮 */
.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* 转换提示 */
.conversion-tip {
    background: #e8f4fd;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #667eea;
    margin-top: 0.5rem;
}

.conversion-tip i {
    margin-right: 0.5rem;
}

/* 库存表单 */
.inventory-form .form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-end;
}

.inventory-form .form-group {
    flex: 1;
}

.inventory-form .form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: #666;
    font-size: 0.9rem;
}

.inventory-form .form-group input,
.inventory-form .form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 8px;
}

.unit-label {
    margin-left: 0.5rem;
    font-weight: 500;
    color: #667eea;
}

.quantity-input-wrapper {
    display: flex;
    align-items: center;
}

.quantity-input-wrapper input {
    flex: 1;
}

.add-btn-group {
    flex: 0 0 auto;
    min-width: 80px;
}

.add-btn-group .btn-primary {
    width: 100%;
    margin-top: 0;
}

/* 套餐批量添加样式 */
.series-batch-add {
    background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 100%);
    border: 2px dashed #7dd3fc;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.series-batch-add .form-row {
    align-items: center;
}

.series-batch-add .btn-secondary {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    border: none;
}

.series-batch-add .btn-secondary:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

/* 套餐选择框样式 */
#batch-set {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: white;
}

/* 套餐批量添加的单位切换 - 小尺寸 */
.series-batch-add .unit-switch.small {
    display: flex;
    gap: 0;
    margin-left: 0.5rem;
}

.series-batch-add .unit-switch.small .unit-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 0 8px 8px 0;
}

.series-batch-add .unit-switch.small .unit-btn:first-child {
    border-radius: 8px 0 0 8px;
    border-right: 1px solid #ddd;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .user-info {
        display: none;
    }

    .bottom-nav {
        display: flex;
    }

    .main {
        padding: 1rem;
        padding-bottom: 80px;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .inventory-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .material-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-content {
        width: 95%;
    }
}

/* 登录弹窗样式 */
.login-modal {
    max-width: 400px;
    width: 90%;
}

.login-tabs {
    display: flex;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.login-tab {
    flex: 1;
    padding: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: color 0.3s;
}

.login-tab.active {
    color: #667eea;
    border-bottom: 2px solid #667eea;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-form .btn-block {
    width: 100%;
}

.btn-block {
    width: 100%;
}

/* 底部备案区域 */
.footer {
    background-color: #333;
    color: #999;
    padding: 1rem 0;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.copyright p {
    font-size: 0.875rem;
}

.beian-info {
    display: flex;
    justify-content: center;
    align-items: center;
}

.beian-info a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #999;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.beian-info a:hover {
    color: #fff;
}

.beian-info i {
    font-size: 0.75rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}