/* 基础样式设置 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f8e6;
    color: #333;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 30px;
    background-color: #8fbc8f;
    padding: 20px;
    border-radius: 10px;
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.header:hover {
    transform: translateY(-3px);
}

.header h1 {
    margin-bottom: 10px;
    font-size: 2.2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

/* 状态栏样式 */
.stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex-wrap: wrap;
    gap: 10px;
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    background-color: #f8f9fa;
}

/* 农场容器样式 */
.farm-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

@media (max-width: 1024px) {
    .farm-container {
        grid-template-columns: 1fr;
    }
}

/* 地块样式 */
.plots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.plot {
    border: 2px solid #8b4513;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    background-color: #f5deb3;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.plot:hover::before {
    transform: scaleX(1);
}

.plot:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.plot.tilled {
    background-color: #d2b48c;
}

.plot h4 {
    margin-bottom: 10px;
    color: #5d4037;
}

.plot-actions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}

/* 按钮样式 */
.btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

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

/* 侧边栏样式 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.panel:hover {
    transform: translateY(-3px);
}

.panel h3 {
    margin-top: 0;
    color: #2e8b57;
    border-bottom: 2px solid #8fbc8f;
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* 天气预报样式 */
.weather {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
}

.weather-day {
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    background-color: #f0f7ee;
    width: 30%;
    transition: all 0.2s ease;
}

.weather-day:hover {
    background-color: #e6f2dd;
}

/* 列表样式 */
.inventory-list, .shop-list, .dog-breeds {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.inventory-item, .shop-item, .dog-breed {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.inventory-item:hover, .shop-item:hover, .dog-breed:hover {
    background-color: #f0f7ee;
}

/* 消息区域样式 */
.messages {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
}

.messages::-webkit-scrollbar {
    width: 6px;
}

.messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.messages::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.messages::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.message {
    margin: 5px 0;
    padding: 8px;
    border-radius: 4px;
    animation: fadeIn 0.3s ease;
}

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

.message.info {
    background-color: #e3f2fd;
    border-left: 4px solid #2196F3;
}

.message.success {
    background-color: #e8f5e9;
    border-left: 4px solid #4CAF50;
}

.message.warning {
    background-color: #fff8e1;
    border-left: 4px solid #FFC107;
}

.message.danger {
    background-color: #ffebee;
    border-left: 4px solid #F44336;
}

/* 狗狗状态样式 */
.dog-status {
    text-align: center;
    padding: 15px;
    background-color: #f0f4c3;
    border-radius: 8px;
    margin: 15px 0;
}

.dog-status h4 {
    margin-bottom: 10px;
    color: #8D6E63;
}

/* 进度条样式九 零一起玩 www.90 175.com */
.progress-bar {
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    margin: 8px 0;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.progress {
    height: 100%;
    transition: width 0.5s ease;
}

.progress.happiness {
    background-color: #ffeb3b;
}

.progress.hunger {
    background-color: #4caf50;
}

.progress.health {
    background-color: #f44336;
}

/* 自动进行区域样式 */
.auto-progress {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
    flex-wrap: wrap;
}

#autoDays {
    width: 60px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.2s ease;
}

#autoDays:focus {
    border-color: #4CAF50;
    outline: none;
}

/* 经验条样式 */
.exp-bar {
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    margin: 5px 0;
    overflow: hidden;
}

.exp-progress {
    height: 100%;
    background-color: #2196F3;
    transition: width 0.3s ease;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .inventory-list, .shop-list, .dog-breeds {
        grid-template-columns: 1fr;
    }
    
    .stats-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .plots {
        grid-template-columns: repeat(2, 1fr);
    }
}
    