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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    min-height: 100vh;
    padding:0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

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

.header h1 {
    background: linear-gradient(135deg, #0984e3, #74b9ff);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 24px;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 8px 20px rgba(9, 132, 227, 0.3);
}

.theme-section {
    margin-bottom: 40px;
}

.theme-section h2 {
    text-align: center;
    color: #0984e3;
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: bold;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.theme-item {
    background: white;
    border: 2px solid #e3f2fd;
    border-radius: 15px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.theme-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(9, 132, 227, 0.2);
    border-color: #74b9ff;
}

.theme-item.selected {
    background: linear-gradient(135deg, #fff, #c1eaff);
    color: white;
    border-color: #95c0ff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(9, 132, 227, 0.3);
}

.theme-item .icon {
    font-size: 28px;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.theme-item .icon img{
   width: auto;height: 50px;
    display: block;
}
.theme-item span {
    font-size: 18px;
    font-weight: 600;
    line-height: 1;color:#434343;
}

.message-section {
    margin-top: 30px;
}

.message-section h2 {
    text-align: center;
    color: #0984e3;
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: bold;
}

.message-form {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    border: 2px solid #e3f2fd;
}

#messageText {
    width: 100%;
    height: 150px;
    border: 2px solid #e3f2fd;
    border-radius: 10px;
    padding: 15px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

#messageText:focus {
    outline: none;
    border-color: #74b9ff;
    box-shadow: 0 0 0 3px rgba(116, 185, 255, 0.2);
}

#messageText:disabled {
    background-color: #f1f3f4;
    color: #9e9e9e;
    cursor: not-allowed;
}

.form-row {
    display: grid;
    grid-template-columns: 12fr 12fr 0fr auto;
    gap: 15px;
    margin-bottom: 25px;
}

.form-row input {
    padding: 12px 15px;
    border: 2px solid #e3f2fd;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-row input:focus {
    outline: none;
    border-color: #74b9ff;
    box-shadow: 0 0 0 3px rgba(116, 185, 255, 0.2);
}

.form-row input:disabled {
    background-color: #f1f3f4;
    color: #9e9e9e;
    cursor: not-allowed;
}

#getCodeBtn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

#getCodeBtn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(9, 132, 227, 0.3);
}

#getCodeBtn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#submitBtn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

#submitBtn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(9, 132, 227, 0.4);
}

#submitBtn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 20px;
    }
    
    .theme-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .theme-item {
        padding: 15px 8px;
    }
    
    .theme-item .icon {
        font-size: 24px;
    }
    
    .theme-item span {
        font-size: 12px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .header h1 {
        font-size: 20px;
        padding: 12px 30px;
    }
}

@media (max-width: 480px) {
    .theme-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .container {
        padding: 15px;
    }
    
    .message-form {
        padding: 20px;
    }
}

/* 留言列表样式 */
.jyxd {
    margin-top: 40px;
   
}

.message-list-container {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.message-list-header {
    text-align: center;
    margin-bottom: 30px;
}

.tab-btn {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(9, 132, 227, 0.3);
    transition: all 0.3s ease;
}

.tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(9, 132, 227, 0.4);
}

.message-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.message-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8f4fd;
    transition: all 0.3s ease;
}

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

.message-tag {
    display: inline-block;
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
}

.message-content {
    color: #333;
    line-height: 1.6;
    font-size: 15px;
    margin-bottom: 20px;
    text-align: justify;
}

.message-content p {
    margin: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.message-content p.expanded {
    -webkit-line-clamp: unset;
    display: block;
}

.read-more {
    color: #0984e3;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #74b9ff;
    text-decoration: underline;
}

.message-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    font-size: 14px;
    color: #666;
}

.author {
    font-weight: 500;
}

.date {
    color: #999;
}

.load-more {
    text-align: center;
    margin-top: 30px;
}

.load-more-btn {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(9, 132, 227, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(9, 132, 227, 0.4);
}

/* 分类导航样式 */
.category {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
}

.category-item {
    background: white;
    border: 1px solid #e3f2fd;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.category-item:hover, .category-item.active {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(9, 132, 227, 0.2);
}

/* 留言列表响应式设计 */
@media (max-width: 768px) {
    .jyxd {
        padding: 0 10px;
    }
    
    .message-list-container {
        padding: 20px;
        margin: 10px;
    }
    
    .message-card {
        padding: 20px;
    }
    
    .message-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .message-content {
        font-size: 14px;
    }
    
    .category {
        gap: 8px;
    }
    
    .category-item {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .message-list-container {
        padding: 15px;
    }
    
    .message-card {
        padding: 15px;
    }
    
    .tab-btn, .load-more-btn {
        padding: 10px 25px;
        font-size: 14px;
    }
}