/* 
* 八字合婚测算网站样式
* 主题：中国传统风格，适合姻缘八字合婚主题
*/

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "SimSun", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f3e9;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect x="0" y="0" width="100" height="100" fill="none" stroke="%23f5dbba" stroke-width="1"/></svg>');
    background-size: 20px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #e8c09e;
    padding-bottom: 20px;
}

header h1 {
    color: #c1272d;
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.daily-info {
    background-color: #fff9f0;
    border: 1px solid #f0d3b8;
    border-radius: 8px;
    padding: 10px;
    display: inline-block;
    margin: 0 auto;
}

.daily-info p {
    margin: 5px 0;
    font-size: 0.9rem;
}

/* 每日更新内容 */
.daily-update {
    background-color: #fff;
    border: 1px solid #e8c09e;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.daily-update h2 {
    color: #c1272d;
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.daily-update h2:before {
    content: "❤";
    position: absolute;
    left: 0;
    top: 0;
    color: #c1272d;
}

.daily-advice p {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* 表单容器 */
.form-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8c09e;
}

.form-section {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px dashed #f0d3b8;
    border-radius: 8px;
    background-color: #fffaf2;
}

.form-section h3 {
    color: #c1272d;
    margin-bottom: 15px;
    font-size: 1.3rem;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.form-section h3:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #c1272d, transparent);
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.form-group label {
    width: 100px;
    text-align: right;
    padding-right: 15px;
    font-weight: bold;
}

.form-group input {
    flex: 1;
    padding: 10px;
    border: 1px solid #e8c09e;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #c1272d;
    box-shadow: 0 0 5px rgba(193, 39, 45, 0.3);
}

.form-actions {
    text-align: center;
    margin-top: 20px;
}

.submit-btn,
.reset-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.submit-btn {
    background-color: #c1272d;
    color: white;
}

.submit-btn:hover {
    background-color: #a31f24;
}

.reset-btn {
    background-color: #f0d3b8;
    color: #8a5a44;
}

.reset-btn:hover {
    background-color: #e8c09e;
}

/* 结果容器 */
.result-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8c09e;
}

.result-container h2 {
    color: #c1272d;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    position: relative;
}

.result-container h2:after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background-color: #c1272d;
    margin: 10px auto 0;
}

.compatibility-score {
    text-align: center;
    margin: 30px 0;
}

.score-ring {
    display: inline-block;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    position: relative;
    box-shadow: 0 0 15px rgba(193, 39, 45, 0.2);
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.score-label {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.9rem;
}

.result-section {
    margin-bottom: 25px;
    padding: 15px;
    border: 1px solid #f0d3b8;
    border-radius: 8px;
    background-color: #fffaf2;
}

.result-section h3 {
    color: #c1272d;
    margin-bottom: 15px;
    font-size: 1.3rem;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.result-section h3:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #c1272d, transparent);
}

.person-info {
    display: inline-block;
    width: 48%;
    vertical-align: top;
    padding: 10px;
}

.info-item {
    margin-bottom: 8px;
    line-height: 1.5;
}

.analysis-content {
    line-height: 1.8;
}

.analysis-content p {
    margin-bottom: 10px;
    text-indent: 2em;
}

/* 介绍部分 */
.intro-section {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8c09e;
}

.intro-section h2 {
    color: #c1272d;
    margin-bottom: 15px;
    font-size: 1.5rem;
    position: relative;
    padding-left: 30px;
}

.intro-section h2:before {
    content: "✦";
    position: absolute;
    left: 0;
    top: 0;
    color: #c1272d;
}

.intro-section p {
    margin-bottom: 20px;
    line-height: 1.8;
    text-indent: 2em;
}

/* 页脚 */
footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e8c09e;
    color: #8a5a44;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 10px;
}

.update-time {
    font-size: 0.8rem;
    color: #999;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .form-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-group label {
        width: 100%;
        text-align: left;
        margin-bottom: 5px;
    }

    .form-group input {
        width: 100%;
    }

    .person-info {
        width: 100%;
        display: block;
        margin-bottom: 15px;
    }

    .submit-btn,
    .reset-btn {
        padding: 8px 15px;
        margin: 5px;
    }
}

/* 新增的老黄历样式 */
.almanac-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8c09e;
}

.almanac-container h2 {
    color: #c1272d;
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.almanac-container h2:before {
    content: "📅";
    position: absolute;
    left: 0;
    top: 0;
    color: #c1272d;
}

.almanac-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
}

.almanac-date {
    text-align: center;
    padding: 15px;
    background-color: #fff9f0;
    border: 1px solid #f0d3b8;
    border-radius: 8px;
}

.almanac-date-lucky {
    background-color: #f8f0ff;
    border-color: #e0c6ff;
}

.almanac-date-unlucky {
    background-color: #fff0f0;
    border-color: #ffc6c6;
}

.almanac-lunar-date {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.almanac-ganzhi {
    font-size: 1rem;
    margin-bottom: 5px;
}

.almanac-jieqi {
    font-size: 1rem;
    color: #c1272d;
    font-weight: bold;
    margin-bottom: 5px;
}

.almanac-xingzuo {
    font-size: 0.9rem;
    color: #666;
}

.almanac-section {
    padding: 12px;
    border: 1px solid #f0d3b8;
    border-radius: 8px;
    background-color: #fffaf2;
}

.almanac-yi {
    border-color: #c8e6c9;
    background-color: #f1f8e9;
}

.almanac-ji {
    border-color: #ffccbc;
    background-color: #fff3e0;
}

.almanac-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #8a5a44;
}

.almanac-yi .almanac-title {
    color: #2e7d32;
}

.almanac-ji .almanac-title {
    color: #d84315;
}

.almanac-content {
    font-size: 0.95rem;
    line-height: 1.5;
}

.almanac-misc {
    padding: 15px;
    border: 1px solid #f0d3b8;
    border-radius: 8px;
    background-color: #fffaf2;
}

.almanac-item {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.almanac-item span {
    font-weight: bold;
    color: #8a5a44;
}

.almanac-relationship {
    padding: 15px;
    border: 1px solid #e8c09e;
    border-radius: 8px;
    background-color: #fff9f0;
    margin-top: 15px;
}

.almanac-relationship h3 {
    color: #c1272d;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.almanac-relationship ul {
    list-style-type: none;
    padding-left: 10px;
}

.almanac-relationship li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.almanac-relationship li:before {
    content: "❤";
    position: absolute;
    left: 0;
    color: #c1272d;
}

/* 每周星座运势预报样式 */
.weekly-forecast {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8c09e;
}

.weekly-forecast h2 {
    color: #c1272d;
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.weekly-forecast h2:before {
    content: "🌟";
    position: absolute;
    left: 0;
    top: 0;
    color: #c1272d;
}

.overall-forecast {
    background-color: #fff9f0;
    border: 1px solid #f0d3b8;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.overall-forecast h3 {
    color: #c1272d;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.zodiac-item {
    border: 1px solid #f0d3b8;
    border-radius: 8px;
    background-color: #fffaf2;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.zodiac-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.zodiac-item h3 {
    color: #c1272d;
    font-size: 1.1rem;
    margin-bottom: 10px;
    border-bottom: 1px dashed #f0d3b8;
    padding-bottom: 5px;
}

.zodiac-content p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.lucky-day,
.lucky-color {
    font-weight: bold;
    color: #8a5a44;
}

.forecast-tips {
    background-color: #fff9f0;
    border: 1px solid #f0d3b8;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.forecast-tips h3 {
    color: #c1272d;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.update-note {
    text-align: right;
    font-size: 0.85rem;
    color: #888;
    margin-top: 15px;
    font-style: italic;
}

/* FAQ部分样式 */
.faq-section {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8c09e;
}

.faq-section h2 {
    color: #c1272d;
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-left: 30px;
}

.faq-section h2:before {
    content: "❓";
    position: absolute;
    left: 0;
    top: 0;
    color: #c1272d;
}

.faq-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #f0d3b8;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    color: #8a5a44;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.faq-item p {
    line-height: 1.6;
    text-indent: 2em;
}

.caution-note {
    background-color: #fff9f0;
    border: 1px solid #f0d3b8;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.caution-note h3 {
    color: #c1272d;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .zodiac-grid {
        grid-template-columns: 1fr;
    }

    .almanac-grid {
        grid-template-columns: 1fr;
    }
}

/* 友情链接和备案信息样式 */
.friend-links {
    margin: 25px 0;
    padding-top: 15px;
    border-top: 1px dashed #e8c09e;
}

.friend-links h3 {
    color: #c1272d;
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: center;
}

.link-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 10px;
}

.link-container a {
    display: inline-block;
    margin: 5px 10px;
    padding: 3px 8px;
    color: #8a5a44;
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.link-container a:hover {
    color: #c1272d;
    background-color: #fff0e0;
}

.beian {
    margin: 10px 0;
}

.beian a {
    color: #8a5a44;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.beian a:hover {
    color: #c1272d;
    text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .zodiac-grid {
        grid-template-columns: 1fr;
    }

    .almanac-grid {
        grid-template-columns: 1fr;
    }

    .link-container {
        flex-direction: column;
        align-items: center;
    }

    .link-container a {
        margin: 3px 0;
    }
}