/* 
 * 钓鱼玩具设计展 - 主样式文件
 * 本程序由【小马克程序定制】设计与制作，如有售后和开发需求，官网：https://xiaomaker.cn
 */

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

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* 页面容器 */
.container {
    width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

body {
    overflow-x: hidden;
}

.display-page .container {
    width: 100%;
    max-width: 1920px;
}

@media (max-width: 1200px) {
    .display-page .container {
        left: auto;
        transform: none;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding: 10px;
        transform: none !important;
        left: auto !important;
        margin: 0;
    }
}

/* 页面标题 */
.page-title {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
    margin: 30px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* 主要内容区域 */
.main-content {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

/* 顶部选项卡 */
.tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 10px 0 18px;
}

.tab-btn {
    padding: 10px 18px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 999px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.25s ease;
}

.tab-btn.active {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

.tab-btn:hover {
    border-color: #3498db;
}

.tab-panel {
    display: none;
}

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

/* 设计区域 */
.design-section {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.design-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

/* 游戏互动区布局 */
.interaction-layout {
    display: flex;
    gap: 14px;
    align-items: stretch;
}

.materials-panel {
    width: 280px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fbfbfb;
    padding: 14px;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.panel-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.panel-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

.pen-controls {
    display: flex;
    gap: 10px;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 14px;
}

#toggleDrawBtn,
#toggleEraserBtn {
    justify-content: center;
}

.pen-tip {
    font-size: 12px;
    color: #777;
    line-height: 1.2;
}

/* 材料选择区域 */
.materials-section {
    margin-bottom: 20px;
}

.materials-title {
    font-size: 14px;
    font-weight: bold;
    color: #555;
    margin-bottom: 10px;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.materials-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.material-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f4f4f7;
    border: 2px solid #cfcfd6;
    border-radius: 10px;
    cursor: grab;
    transition: all 0.3s ease;
    user-select: none;
}

.material-item:hover {
    border-color: #3498db;
    background: #e8f4f8;
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.2);
}

.material-item:active {
    cursor: grabbing;
}

.material-image {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.material-name {
    font-size: 14px;
    color: #444;
}

/* 绘图区域 */
.canvas-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
}

#designCanvas {
    display: block;
    cursor: crosshair;
    background: white;
}

.canvas-info {
    font-size: 12px;
    color: #999;
    text-align: center;
    padding: 5px;
}

/* 绘图区 */
.drawing-panel {
    flex: 1;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    padding: 14px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.drawing-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.drawing-area {
    position: relative;
    width: 100%;
    height: 640px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
    overscroll-behavior: contain;
}

#penCanvas {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1;
    pointer-events: none;
    touch-action: none;
}

.drawing-area.drawing-mode #penCanvas {
    pointer-events: auto;
    cursor: crosshair;
}

.drawing-area.drawing-mode.eraser-mode #penCanvas {
    cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2724%27%20height%3D%2724%27%20viewBox%3D%270%200%2024%2024%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%278%27%20fill%3D%27none%27%20stroke%3D%27%233498db%27%20stroke-width%3D%272%27/%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%271%27%20fill%3D%27%233498db%27/%3E%3C/svg%3E") 12 12, auto;
}

.drawing-area.drawing-mode {
    touch-action: none;
}

.drawing-area.drawing-mode .placed-item {
    pointer-events: none;
}

.drawing-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #999;
    z-index: 0;
    pointer-events: none;
    padding: 10px;
    text-align: center;
}

.placed-item {
    position: absolute;
    z-index: 2;
    touch-action: none;
    user-select: none;
    transform-origin: center center;
}

.placed-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.placed-item.selected {
    outline: 2px solid rgba(52, 152, 219, 0.9);
    outline-offset: 2px;
}

.item-handle {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #3498db;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    display: none;
    z-index: 3;
}

.placed-item.selected .item-handle {
    display: block;
}

.item-handle.resize {
    right: -7px;
    bottom: -7px;
    cursor: nwse-resize;
}

.item-handle.rotate {
    left: calc(50% - 7px);
    top: -28px;
    cursor: grab;
}

.item-delete {
    position: absolute;
    right: -6px;
    top: -34px;
    padding: 6px 10px;
    border: none;
    border-radius: 999px;
    background: #e74c3c;
    color: white;
    cursor: pointer;
    font-size: 12px;
    display: none;
    z-index: 3;
}

.placed-item.selected .item-delete {
    display: inline-flex;
}

/* 工具栏 */
.toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.toolbar-bottom {
    margin-top: auto;
    margin-bottom: 0;
    justify-content: flex-end;
}

.tool-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tool-label {
    font-size: 13px;
    font-weight: bold;
    color: #555;
    min-width: 80px;
}

/* 按钮样式 */
.btn {
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

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

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-success {
    background-color: #27ae60;
    color: white;
}

.btn-success:hover {
    background-color: #229954;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

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

/* 输入框 */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
}

.form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* 其他材料选择 */
.other-materials {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.other-materials-title {
    font-size: 13px;
    font-weight: bold;
    color: #555;
    margin-bottom: 0;
    white-space: nowrap;
    flex: 0 0 auto;
}

.checkbox-group {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 14px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.checkbox-item input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.checkbox-item label {
    cursor: pointer;
    font-size: 13px;
    color: #555;
    user-select: none;
}

.submission-bar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
    margin-top: 10px;
}

.submission-bar .other-materials {
    flex: 0 0 auto;
    width: 100%;
    margin-bottom: 0;
}

.submit-actions {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.author-input {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    flex: 1;
}

.author-label {
    font-size: 14px;
    color: #444;
}

.author-number {
    width: 90px;
}

#submitBtn {
    min-width: 0;
    flex: 1;
    justify-content: center;
}

/* 作品展示区 */
.gallery-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.gallery-title {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
}

.sort-controls {
    display: flex;
    gap: 8px;
}

.sort-btn {
    padding: 8px 14px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.sort-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.sort-btn:hover {
    border-color: #3498db;
}

/* 作品卡片 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.display-page .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
}

.display-page .design-card-canvas {
    height: 320px;
}

.display-page .design-card-footer {
    display: block;
}

.display-page .design-card-header {
    padding: 16px;
}

.display-page .design-card-title {
    font-size: 18px;
}

.design-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.design-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.design-card-header {
    padding: 12px;
    background: #f0f0f0;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.design-card-title {
    font-size: 14px;
    font-weight: bold;
    color: #2c3e50;
}

.design-card-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.design-card-likes {
    font-size: 12px;
    color: #2c3e50;
    background: rgba(52, 152, 219, 0.12);
    border: 1px solid rgba(52, 152, 219, 0.25);
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.design-card-version {
    font-size: 12px;
    color: #999;
}

.design-card-canvas {
    width: 100%;
    height: 250px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.design-card-canvas canvas {
    max-width: 100%;
    max-height: 100%;
    border: 1px solid #eee;
}

.design-card-footer {
    padding: 12px;
    background: white;
}

.design-info {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.design-info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.design-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.like-section {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.like-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.like-btn:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

.like-btn.liked {
    background: #ffe8e8;
    border-color: #e74c3c;
    color: #e74c3c;
}

.like-count {
    min-width: 40px;
    text-align: center;
    font-weight: bold;
    color: #e74c3c;
}

/* 版本历史 */
.version-history {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.version-history-title {
    font-size: 12px;
    font-weight: bold;
    color: #555;
    margin-bottom: 6px;
}

.version-list {
    font-size: 12px;
    color: #999;
}

.version-item {
    padding: 4px 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.version-item:hover {
    color: #3498db;
}

/* 删除按钮 */
.delete-btn {
    padding: 6px 10px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

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

/* 加载状态 */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #999;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 消息提示 */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.message.success {
    background: #27ae60;
}

.message.error {
    background: #e74c3c;
}

.message.info {
    background: #3498db;
}

.version-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    padding: 20px;
}

.version-modal-overlay.open {
    display: flex;
}

.version-modal {
    width: min(560px, 100%);
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

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

.version-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

.version-modal-close {
    border: 1px solid #ddd;
    background: white;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
}

.version-modal-body {
    max-height: 60vh;
    overflow: auto;
}

.version-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.version-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.version-meta-title {
    font-weight: 700;
    color: #2c3e50;
}

.version-meta-sub {
    font-size: 12px;
    color: #666;
}

.version-thumb-wrap {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    background: #fff;
    flex: 0 0 auto;
}

.version-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.version-thumb-empty {
    background: #f3f3f3;
}

.version-row-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.version-row-right {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.version-row:hover {
    background: #f7fbff;
}

.image-preview-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1300;
    padding: 20px;
}

.image-preview-overlay.open {
    display: flex;
}

.image-preview {
    width: min(920px, 100%);
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

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

.image-preview-title {
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
}

.image-preview-close {
    border: 1px solid #ddd;
    background: white;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
}

.image-preview-body {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    max-height: 80vh;
    overflow: auto;
    padding: 10px;
}

.image-preview-img {
    max-width: 100%;
    max-height: 76vh;
    object-fit: contain;
    background: white;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 22px;
        margin: 15px 0;
    }

    .tabs {
        gap: 8px;
        margin: 8px 0 12px;
    }

    .tab-btn {
        padding: 8px 14px;
        font-size: 15px;
    }

    .design-section,
    .upload-section {
        padding: 12px;
    }

    .gallery-section {
        padding: 12px;
    }

    .gallery-title {
        font-size: 18px;
    }

    .materials-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .canvas-container {
        height: 300px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .sort-controls {
        width: 100%;
    }

    .sort-btn {
        flex: 1;
    }
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 12px;
    border-top: 1px solid #ddd;
    margin-top: 40px;
}

.footer a {
    color: #3498db;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* 上传区域 */
.upload-section {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.upload-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.upload-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding: 20px 0;
    width: 100%;
    max-width: 100%;
}

/* 组别输入区域 */
.group-input-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    flex-wrap: wrap;
    width: 100%;
    max-width: 500px;
}

.group-label {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
}

.group-number-input {
    width: 100px;
    padding: 10px 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.group-number-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.group-unit {
    font-size: 16px;
    color: #555;
    font-weight: 500;
}

/* 拍照上传区域 */
.photo-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 500px;
    padding: 0 10px;
}

.photo-preview-box {
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 50vh;
    border: 3px dashed #ccc;
    border-radius: 12px;
    background: #fafafa;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.photo-preview-box:hover {
    border-color: #ccc;
}

.photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #999;
    padding: 20px;
    text-align: center;
    width: 100%;
    height: 100%;
    justify-content: center;
}

.camera-icon {
    font-size: clamp(40px, 12vw, 64px);
    opacity: 0.6;
}

.camera-text {
    font-size: clamp(14px, 4vw, 16px);
    font-weight: 500;
    word-break: break-word;
    padding: 0 10px;
}

.photo-preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: white;
}

/* 提交按钮区域 */
.submit-area {
    width: 100%;
    max-width: 500px;
    padding: 0 10px;
}

.submit-area .btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 18px;
    border-radius: 8px;
}

/* 响应式设计 - 手机端优化 */
@media (max-width: 480px) {
    .upload-section {
        padding: 12px;
    }

    .upload-layout {
        padding: 10px 0;
        gap: 15px;
    }

    .group-input-area {
        padding: 12px 15px;
        gap: 8px;
    }

    .group-label {
        font-size: 14px;
        width: 100%;
        text-align: center;
    }

    .group-number-input {
        width: 80px;
        padding: 8px 10px;
        font-size: 15px;
    }

    .group-unit {
        font-size: 14px;
    }

    .photo-upload-area {
        padding: 0 5px;
    }

    .photo-preview-box {
        border-width: 2px;
        border-radius: 8px;
    }

    .photo-placeholder {
        padding: 15px 10px;
        gap: 8px;
    }

    .submit-area {
        padding: 0 5px;
    }

    .submit-area .btn {
        padding: 12px 20px;
        font-size: 16px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .group-number-input {
        width: 70px;
    }

    .photo-preview-box {
        aspect-ratio: 1;
    }
}
