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

.overlay-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明黑色背景 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  
  .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3; /* 浅色边框 */
    border-top: 4px solid #3498db; /* 蓝色顶部边框，可以改成其他颜色 */
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.wall-background {
    width: 100%;
    background: url('../images/web/wall-Background.jpg') no-repeat;
    background-size: 100%;
}

.wall-background2 {
    width: 100%;
    background: url('../images/web/wall-Background2.png') no-repeat;
    background-size: 100%;
}

.form-content {
    /* margin-top:2%; */
    white-space: pre-line;
}

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

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

.header h1 {
    color: #000;
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.info-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    height: 50px;
    border-radius: 25px;
    position: absolute;
    top: -20px;
    padding-right: 15px;
    min-width: 200px;
    color: #fff;
}

.info-card h3::before {
    content: counter(card-counter);
    counter-increment: card-counter;
    background: url('../images/web/Yellow.png') no-repeat;
    background-size: 100%;
    color: #000;
    width: 50px;
    height: 51px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* font-size: 0.8rem; */
    /* font-weight: bold; */
    margin-right: 10px;
}

.content-grid {
    counter-reset: card-counter;
}

.info-card ul {
    list-style: none;
    padding-left: 0;
}

.info-card li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: #555;
    font-size: 0.95rem;
}

.info-card li::before {
    content: "•";
    color: #515151;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.blue {
    background-color: #1E93F2;
}

.red {
    background-color: #FF6854;
}

.green {
    background-color: #5ACF58;
}

.form-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

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

.userInfo {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.userInfo .form-group {
    width: 45%
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.required {
    color: #d32f2f;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 1rem;
    border: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #F5F5F5;
    color: #828282
}

.form-control:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.story-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.upload-section {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: #fafafa;
    transition: border-color 0.3s ease;
}

.upload-section:hover {
    border-color: #1976d2;
    background: #f0f8ff;
}

.upload-input {
    display: none;
}

.upload-text {
    color: #666;
    font-size: 0.95rem;
}

.upload-hint {
    font-size: 0.85rem;
    color: #999;
    margin-top: 5px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 25px 0;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    accent-color: #1976d2;
    margin-top: 2px;
}

.checkbox-label {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    flex: 1;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.submit-btn {
    width: 35%;
    background: #000;
    color: white;
    border: none;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    /* border-radius: 8px; */
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* .submit-btn:hover {
    background: linear-gradient(135deg, #1565c0 0%, #104c92 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
} */

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

.upload-container {
    /* max-width: 800px; */
    margin: 0px auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    display: flex;
    flex-wrap: wrap;
}

.upload-area {
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    transition: all 0.3s;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.upload-area.drag-over {
    border-color: #2196F3;
    background-color: #e3f2fd;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.upload-button {
    background-color: #fff;
    color: #000;
    border: 1px solid #d9d9d9;
    min-width: 120px;
    line-height: 30px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
}

.file-list {
    display: flex;
    flex-wrap: wrap;
}

.file-item {
    display: flex;
    align-items: center;
    margin-left: 10px;
    position: relative;
}

.file-preview {
    text-align: center;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    transition: all 0.3s;
    width: 200px;
    height: 200px;
}

.file-preview img {
    max-width: 100%;
    max-height: 100%;
}

.file-preview video {
    max-width: 100%;
    max-height: 100%;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.file-meta {
    display: flex;
    font-size: 12px;
    color: #666;
}

.file-size {
    margin-right: 10px;
}

.remove-btn {
    background: #000;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    position: absolute;
    right: -10px;
    top: -15px;
    width: 20px;
    text-align: center;
    line-height: 20px;
    border-radius: 50%;
}

.error-message {
    color: #f44336;
    margin-top: 10px;
}

.upload-stats {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}



/* 瀑布流 */
.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #34495e;
}

.sub-title {
    font-size: 1.1rem;
    color: #7f8c8d;
    font-weight: 400;
}

.waterfall {
    columns: 3;
    column-gap: 24px;
    column-fill: balance;
}

.card {
    break-inside: avoid;
    page-break-inside: avoid;
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-image {
    width: 100%;
    max-height: 300px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 16px;
    /* background: linear-gradient(45deg, #ffd700, #ffed4e); */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

/* .card-image::before {
    content: '🤸';
    font-size: 4rem;
    opacity: 0.7;
} */

.card-content {
    space-y: 12px;
}

.username {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.date {
    font-size: 0.85rem;
    color: #95a5a6;
    margin-bottom: 12px;
}

.content-text {
    color: #34495e;
    line-height: 1.6;
    font-size: 0.9rem;
    word-wrap: break-word;
    overflow-wrap: break-word; /* 新式语法 */
}










/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .wall-background {
        width: 100%;
        background: url('../images/mobile/wall-Background.jpg') no-repeat;
        background-size: 100%;
    }

    .wall-background2 {
        width: 100%;
        background: url('../images/mobile/wall-Background2.jpg') no-repeat;
        background-size: 100%;
    }


    .header h1 {
        font-size: 1.6rem;
    }

    .header p {
        font-size: 1rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }

    .info-card {
        padding: 20px;
        margin-top: 20px;
    }

    .info-card h3 {
        height: 40px;
        font-size: 1rem;
    }

    .info-card h3::before {
        width: 40px;
        height: 41px
    }

    .form-container {
        padding: 20px;
    }

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

    .submit-btn {
        width: 50%;
        margin: 0 auto;
        display: block;
    }

    .upload-container {
        padding: 0
    }

    .upload-area,
    .file-preview {
        width: 100px;
        height: 100px
    }

    .file-item {
        margin-left: 10px;
    }

    .upload-button {
        min-width: 60px;
        font-size: 12px;
        line-height: 25px;
    }

    .userInfo {
        display: block;
        /* justify-content: space-between;
        flex-wrap: wrap; */
    }

    .userInfo .form-group {
        width: 100%
    }



    /* liu */
    .main-title {
        font-size: 2rem;
    }

    .sub-title {
        font-size: 1rem;
    }

    .waterfall {
        columns: 1;
        column-gap: 0;
    }

    .card {
        margin-bottom: 20px;
        padding: 16px;
    }

    .card-image {
        height: 160px;
        margin-bottom: 14px;
    }

    .card-image::before {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 20px 15px;
        margin-bottom: 30px;
    }

    .header h1 {
        font-size: 1.4rem;
    }

    .form-container {
        padding: 15px;
    }

    .submit-btn {
        padding: 14px 20px;
        font-size: 1rem;
    }

    .main-title {
        font-size: 1.8rem;
    }

    .card {
        padding: 14px;
    }

    .content-text {
        font-size: 0.85rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .waterfall {
        columns: 2;
    }
}

@media (min-width: 1025px) {
    .waterfall {
        columns: 3;
    }
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

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

.info-card {
    animation: slideInUp 0.6s ease-out;
}

.info-card:nth-child(1) {
    animation-delay: 0.1s;
}

.info-card:nth-child(2) {
    animation-delay: 0.2s;
}

.info-card:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* 加载动画 */
.loading {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-size: 1.1rem;
}