/* 五行穿衣颜色推荐网站样式 */

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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

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

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.header h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.today-info {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.today-info h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.today-date {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.today-wuxing {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
}

/* 卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.card h2 {
    color: #4a5568;
    margin-bottom: 25px;
    font-size: 1.8rem;
    text-align: center;
    position: relative;
}

.card h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* 日期选择器样式 */
.date-picker {
    text-align: center;
    margin-bottom: 25px;
}

.date-picker label {
    display: block;
    margin-bottom: 15px;
    font-weight: bold;
    color: #2d3748;
    font-size: 1.1rem;
}

.date-inputs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: center;
}

.date-inputs input {
    width: 120px;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s;
    background: #f8f9fa;
}

.date-inputs input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

/* 按钮样式 */
.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* 结果显示样式 */
.result {
    margin-top: 30px;
}

.color-group {
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 15px;
    border-left: 6px solid;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.color-group:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    background: linear-gradient(135deg, transparent 0%, currentColor 100%);
    pointer-events: none;
}

.color-group:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.color-group.daji {
    background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
    border-left-color: #38a169;
}

.color-group.ciji {
    background: linear-gradient(135deg, #fffaf0 0%, #fef5e7 100%);
    border-left-color: #ed8936;
}

.color-group.pingping {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-left-color: #4299e1;
}

.color-group.shenyong {
    background: linear-gradient(135deg, #fef5e7 0%, #fed7aa 100%);
    border-left-color: #d69e2e;
}

.color-group.jiyong {
    background: linear-gradient(135deg, #fed7d7 0%, #fbb6ce 100%);
    border-left-color: #e53e3e;
}

.color-group h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-type-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-block;
}

.daji .color-type-icon {
    background: #38a169;
}

.ciji .color-type-icon {
    background: #ed8936;
}

.pingping .color-type-icon {
    background: #4299e1;
}

.shenyong .color-type-icon {
    background: #d69e2e;
}

.jiyong .color-type-icon {
    background: #e53e3e;
}

.color-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

.color-item {
    padding: 10px 18px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
}

.color-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: white;
}

.color-meaning {
    margin-bottom: 10px;
    font-weight: 600;
    color: #2d3748;
}

.color-explanation {
    color: #4a5568;
    line-height: 1.6;
    font-size: 14px;
}

/* 五行颜色展示样式 */
.wuxing-colors {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.wuxing-item {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    min-width: 100px;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.wuxing-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
}

.wuxing-item.jin {
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
}

.wuxing-item.mu {
    background: linear-gradient(135deg, #f0fff4, #c6f6d5);
}

.wuxing-item.shui {
    background: linear-gradient(135deg, #ebf8ff, #bee3f8);
}

.wuxing-item.huo {
    background: linear-gradient(135deg, #fed7d7, #feb2b2);
}

.wuxing-item.tu {
    background: linear-gradient(135deg, #fef5e7, #fbd38d);
}

.wuxing-item strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #2d3748;
}

/* 五行关系说明样式 */
.wuxing-relation {
    text-align: center;
    color: #666;
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    line-height: 1.8;
}

/* 理论说明样式 */
.theory-explanation {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    line-height: 1.8;
    color: #2d3748;
}

.theory-explanation h3 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.theory-explanation h4 {
    color: #667eea;
    margin: 20px 0 15px 0;
    font-size: 1.2rem;
}

.theory-explanation p {
    margin-bottom: 15px;
}

.dizhi-wuxing-grid {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.dizhi-item {
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.dizhi-item.jin {
    background: #f7fafc;
}

.dizhi-item.jin strong {
    color: #718096;
}

.dizhi-item.mu {
    background: #f0fff4;
}

.dizhi-item.mu strong {
    color: #38a169;
}

.dizhi-item.shui {
    background: #ebf8ff;
}

.dizhi-item.shui strong {
    color: #3182ce;
}

.dizhi-item.huo {
    background: #fed7d7;
}

.dizhi-item.huo strong {
    color: #e53e3e;
}

.dizhi-item.tu {
    background: #fef5e7;
}

.dizhi-item.tu strong {
    color: #d69e2e;
}

.daji-color {
    color: #38a169;
}

.jiyong-color {
    color: #e53e3e;
}

.tip-box {
    background: rgba(102, 126, 234, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    border-left: 4px solid #667eea;
}

.tip-box p {
    margin: 0;
    font-weight: 600;
    color: #4a5568;
}

/* 知识网格样式 */
.knowledge-section {
    margin-top: 40px;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.knowledge-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid #667eea;
    transition: all 0.3s;
}

.knowledge-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.knowledge-item h3 {
    color: #4a5568;
    margin-bottom: 18px;
    font-size: 1.3rem;
}

.knowledge-item ul {
    list-style: none;
    padding-left: 0;
}

.knowledge-item li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.knowledge-item li:before {
    content: "●";
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* 加载动画样式 */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading:after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #667eea;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 底部样式 */
.footer {
    margin-top: 50px;
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px 20px 0 0;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.link-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 12px 16px;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.link-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.link-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    display: block;
    transition: color 0.3s;
}

.link-item a:hover {
    color: white;
}

.beian-info {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 25px;
}

.beian-info a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    display: inline-block;
}

.beian-info a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.2rem;
    }

    .date-inputs {
        flex-direction: column;
        align-items: center;
    }

    .date-inputs input {
        width: 200px;
    }

    .wuxing-colors {
        justify-content: center;
    }

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

    .color-list {
        justify-content: center;
    }

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

    .footer {
        margin-top: 30px;
        padding: 30px 0;
    }

    .dizhi-wuxing-grid {
        grid-template-columns: 1fr;
    }
}