:root {
    --primary-color: #4a148c;  /* 深紫色 */
    --secondary-color: #1a237e; /* 深蓝色 */
    --accent-color: #7e57c2;   /* 淡紫色 */
    --background-color: #f5f6fa;
    --text-color: #2c3e50;
    --border-color: rgba(126, 87, 194, 0.3);
    --input-bg: rgba(255, 255, 255, 0.9);
    --shadow-color: rgba(74, 20, 140, 0.1);
}

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

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #f6f8ff, #f0f4ff);
    color: var(--text-color);
    min-height: 100vh;
    padding-top: 4rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.main-header {
    background: linear-gradient(135deg, 
        var(--secondary-color),
        var(--primary-color),
        #6a1b9a
    );
    color: white;
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.2)"/></svg>') repeat;
    opacity: 0.1;
}


.header-text {
    flex: 1;
    text-align: left;
    padding-top: 0;
}

.main-header h1 {
    font-size: 2.2rem;
    margin: 0;
    line-height: 1.2;
    text-align: left;
}

.subtitle {
    opacity: 0.9;
    margin-top: 0.4rem;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    text-align: left;
}

.calculator-section {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--input-bg);
    border-radius: 15px;
    box-shadow: 0 8px 30px var(--shadow-color);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.calculator-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.calculator-intro {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.birth-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.input-wrapper {
    position: relative;
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.date-wrapper, .time-wrapper {
    position: relative;
    width: 100%;
    cursor: pointer;
}

.date-wrapper:hover, .time-wrapper:hover {
    border-color: var(--accent-color);
}

.input-wrapper input[type="date"],
.input-wrapper input[type="time"] {
    width: 100%;
    padding: 1rem;
    padding-right: 2.5rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg);
    font-size: 1rem;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.input-wrapper input[type="date"]::-webkit-calendar-picker-indicator,
.input-wrapper input[type="time"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
}

.calendar-icon,
.time-icon {
    position: absolute;
    right: 1rem;
    pointer-events: none;
    font-size: 1.2rem;
}

.calculate-btn {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.calculate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255,255,255,0.1), transparent);
    transition: transform 0.3s ease;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 20, 140, 0.3);
}

.calculate-btn:hover::before {
    transform: translateY(100%);
}

.btn-icon {
    font-size: 1.3rem;
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.5));
}

.result-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--input-bg);
    border-radius: 15px;
    box-shadow: 0 8px 30px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.hidden {
    display: none;
}

.mars-result {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(126, 87, 194, 0.1), rgba(74, 20, 140, 0.1));
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.personal-analysis {
    margin-top: 1.5rem;
    padding: 1rem;
    border-top: 2px solid var(--border-color);
}

.characteristics ul {
    list-style: none;
    padding: 1rem;
    background: rgba(255,255,255,0.5);
    border-radius: 8px;
    margin-top: 1rem;
}

.characteristics li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.characteristics li:last-child {
    border-bottom: none;
}

.error-message {
    background: linear-gradient(135deg, #fff5f5, #ffe5e5);
    color: #c0392b;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(192, 57, 43, 0.3);
    text-align: center;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.1);
}

.error-message::before {
    content: '⚠️ ';
    margin-right: 0.5rem;
}

.location-info {
    color: var(--primary-color);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.retrograde-info {
    color: #9c27b0;
    font-weight: 500;
    margin: 1rem 0;
    padding: 0.8rem;
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.1), rgba(156, 39, 176, 0.05));
    border-radius: 8px;
    display: inline-block;
    border: 1px solid rgba(156, 39, 176, 0.2);
}

.retrograde-analysis {
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.1), rgba(156, 39, 176, 0.05));
    border-radius: 8px;
    border: 1px solid rgba(156, 39, 176, 0.2);
}

.retrograde-analysis h4 {
    color: #7b1fa2;
    margin-bottom: 0.8rem;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .calculator-section {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .calculate-btn {
        padding: 1rem 1.5rem;
    }
    
    .result-section {
        margin: 1rem;
        padding: 1.5rem;
    }
}

/* 修改结果区域础样式 */
#resultSection {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: white;
    border-radius: 20px;
    border: 2px solid rgba(107, 70, 193, 0.2);
    box-shadow: 0 4px 20px rgba(107, 70, 193, 0.1);
    position: relative;
    overflow: hidden;
}

/* 添加结果区域的装饰标题 */
#resultSection::before {
    content: 'Ihr Mars-Analyse Ergebnis';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.1), rgba(128, 90, 213, 0.1));
    color: #6b46c1;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(107, 70, 193, 0.2);
}

/* 调整内 ��������上边距，为标题留出空间 */
#marsResult {
    margin-top: 3.5rem;
}

/* 主要结果卡片 */
#marsResult {
    background: linear-gradient(135deg, #6b46c1 0%, #805ad5 100%);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(107, 70, 193, 0.2);
}

#marsResult h3 {
    font-size: 2rem;
    margin: 0 0 1rem;
    font-weight: 600;
}

.location-info {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.retrograde-info {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.main-description {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
}

/* 个人分析部分 */
#personalAnalysis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.analysis-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #6b46c1;
    transition: transform 0.2s ease;
}

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

.analysis-section h4 {
    color: #6b46c1;
    font-size: 1.25rem;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(107, 70, 193, 0.2);
}

.analysis-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.analysis-section li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.analysis-section li:before {
    content: "•";
    color: #6b46c1;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.analysis-section p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

/* 逆行分析部分 */
.retrograde-analysis {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #f6e5ff 0%, #ede4ff 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.retrograde-analysis h4 {
    color: #6b46c1;
}

.retrograde-analysis ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    #marsResult {
        padding: 1.5rem;
    }

    #marsResult h3 {
        font-size: 1.5rem;
    }

    .analysis-section {
        padding: 1.25rem;
    }

    .retrograde-analysis ul {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#resultSection {
    animation: fadeIn 0.5s ease-out;
}

/* 额外的装饰元素 */
.basic-info {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.basic-info p {
    margin: 0;
    display: flex;
    align-items: center;
}

.basic-info p strong {
    margin-right: 0.5rem;
    opacity: 0.9;
}

/* 下拉选择框样式 */
select#birthCountry {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg);
    font-size: 1rem;
    color: var(--text-color);
    cursor: pointer;
    appearance: none; /* 移除默认的下拉箭头 */
    transition: all 0.3s ease;
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234a148c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
}

select#birthCountry:hover {
    border-color: var(--accent-color);
}

select#birthCountry:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 20, 140, 0.1);
}

/* 下拉选项样式 */
select#birthCountry option {
    padding: 1rem;
    background: white;
    color: var(--text-color);
}

/* 占位符选项样式 */
select#birthCountry option[value=""] {
    color: #666;
}

/* 表单组标签样式统一 */
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

/* 移动端适配 */
@media (max-width: 768px) {
    select#birthCountry {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
}

/* 日期和时间输入框的容器样式 */
.date-wrapper,
.time-wrapper {
    position: relative;
    width: 100%;
    cursor: pointer;
}

/* 输入框本身的样 */
input#birthDate,
input#birthTime {
    width: 100%;
    padding: 1rem;
    padding-right: 2.5rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg);
    font-size: 1rem;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* 移除默认的日期和时间选择器样式 */
input#birthDate::-webkit-calendar-picker-indicator,
input#birthTime::-webkit-calendar-picker-indicator {
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
}

/* 自定义图标样式 */
.date-wrapper::after,
.time-wrapper::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 0;
}

/* 日期图标 */
.date-wrapper::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234a148c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
}

/* 时间图标 */
.time-wrapper::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234a148c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12 6 12 12 16 14'%3E%3C/polyline%3E%3C/svg%3E");
}

/* 悬停焦点状态 */
input#birthDate:hover,
input#birthTime:hover {
    border-color: var(--accent-color);
}

input#birthDate:focus,
input#birthTime:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 20, 140, 0.1);
}

/* 占位符文本样式 */
input#birthDate::placeholder,
input#birthTime::placeholder {
    color: #666;
}

/* 移动端适配 */
@media (max-width: 768px) {
    input#birthDate,
    input#birthTime {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
    
    .date-wrapper::after,
    .time-wrapper::after {
        width: 20px;
        height: 20px;
    }
}

.intro-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, 
        var(--primary-color),
        var(--secondary-color)
    );
    color: #ffffff;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.2;
}

.intro-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 700;
}

.intro-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.intro-lead {
    font-size: 1.3rem;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-weight: 300;
}

.intro-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 2rem 0 3rem;
}

.intro-column h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
}

.intro-column p {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.95;
}

.intro-highlight {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.intro-highlight p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
}

.highlight-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.highlight-list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.5;
}

.highlight-list li::before {
    content: "✧";
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .intro-section {
        padding: 3rem 1.5rem;
    }
    
    .intro-section h2 {
        font-size: 2rem;
    }
    
    .intro-lead {
        font-size: 1.2rem;
        padding: 0;
    }
    
    .intro-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .highlight-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .intro-column h3 {
        font-size: 1.3rem;
    }
}

.importance-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, 
        var(--primary-color) 0%,
        var(--secondary-color) 100%
    );
    color: #ffffff;
    border-radius: 12px;
    margin: 3rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.importance-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.1;
}

.importance-section h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.importance-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.highlight-text {
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.importance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.importance-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.importance-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.importance-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.importance-item h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.importance-item p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.importance-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.importance-cta p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #ffffff;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: #f0f0f0;
}

@media (max-width: 768px) {
    .importance-section {
        padding: 3rem 1.5rem;
    }
    
    .importance-section h2 {
        font-size: 1.8rem;
    }
    
    .highlight-text {
        font-size: 1.1rem;
    }
    
    .importance-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .importance-item {
        padding: 1.5rem;
    }
}

.features-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, 
        rgba(74, 20, 140, 0.05) 0%,
        rgba(26, 35, 126, 0.05) 100%
    );
    border-radius: 12px;
    margin: 3rem 0;
    position: relative;
}

.features-content {
    max-width: 1200px;
    margin: 0 auto;
}

.features-section h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
    position: relative;
}

.features-header {
    text-align: center;
    margin-bottom: 3rem;
}

.features-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.features-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(74, 20, 140, 0.1);
}

.features-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(74, 20, 140, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.features-card h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-color);
}

.feature-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.features-footer {
    text-align: center;
    margin-top: 3rem;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.badge {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
    border: 1px solid rgba(74, 20, 140, 0.2);
}

.feature-cta {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.feature-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 20, 140, 0.2);
}

@media (max-width: 768px) {
    .features-section {
        padding: 3rem 1.5rem;
    }
    
    .features-section h2 {
        font-size: 1.8rem;
    }
    
    .features-intro {
        font-size: 1.1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .trust-badges {
        gap: 1rem;
    }
    
    .badge {
        font-size: 0.8rem;
    }
}

.zodiac-guide {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, 
        rgba(74, 20, 140, 0.03) 0%,
        rgba(26, 35, 126, 0.03) 100%
    );
    border-radius: 12px;
    margin: 3rem 0;
}

.zodiac-content {
    max-width: 1200px;
    margin: 0 auto;
}

.zodiac-guide h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
}

.guide-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color);
}

.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.zodiac-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(74, 20, 140, 0.1);
}

.zodiac-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(74, 20, 140, 0.1);
}

.zodiac-item h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(74, 20, 140, 0.1);
}

.zodiac-item p {
    color: var(--text-color);
    line-height: 1.6;
}

.zodiac-footer {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.guide-conclusion {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.guide-cta {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.guide-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 20, 140, 0.2);
}

@media (max-width: 768px) {
    .zodiac-guide {
        padding: 3rem 1.5rem;
    }
    
    .zodiac-guide h2 {
        font-size: 1.8rem;
    }
    
    .guide-intro {
        font-size: 1.1rem;
    }
    
    .zodiac-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .zodiac-item {
        padding: 1.5rem;
    }
    
    .zodiac-footer {
        margin-top: 3rem;
        padding: 1.5rem;
    }
}

.retrograde-section {
    padding: 4rem 2rem;
    background: linear-gradient(45deg, #2c003e, #3d0066);
    color: #ffffff;
    border-radius: 12px;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.retrograde-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.retrograde-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.retrograde-section h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, #ff8a00, #e52e71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.retrograde-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.2rem;
    line-height: 1.8;
}

.retrograde-phases {
    margin: 4rem 0;
}

.phase-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    position: relative;
}

.phase-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.3),
        rgba(229, 46, 113, 0.6),
        rgba(255,255,255,0.3)
    );
}

.timeline-marker {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 1;
}

.timeline-marker.retrograde {
    background: rgba(229, 46, 113, 0.2);
    border-color: rgba(229, 46, 113, 0.4);
}

.retrograde-explanation {
    margin: 4rem 0;
}

.explanation-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.explanation-card h3 {
    color: #ff8a00;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.retrograde-effects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.effect-column {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.effect-column h4 {
    color: #e52e71;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.effect-column ul {
    list-style: none;
    padding: 0;
}

.effect-column li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.effect-column li:last-child {
    border-bottom: none;
}

.retrograde-advice {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.advice-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.retrograde-cta {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ff8a00, #e52e71);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.retrograde-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 46, 113, 0.3);
}

@media (max-width: 768px) {
    .retrograde-section {
        padding: 3rem 1.5rem;
    }

    .retrograde-section h2 {
        font-size: 1.8rem;
    }

    .retrograde-effects {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .phase-timeline {
        flex-direction: column;
        gap: 1rem;
    }

    .phase-timeline::before {
        width: 2px;
        height: 100%;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }
}

.faq-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, 
        rgba(74, 20, 140, 0.02) 0%,
        rgba(26, 35, 126, 0.02) 100%
    );
    border-radius: 12px;
    margin: 3rem 0;
}

.faq-content {
    max-width: 1200px;
    margin: 0 auto;
}

.faq-section h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
    position: relative;
}

.faq-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(74, 20, 140, 0.1);
    display: flex;
    flex-direction: column;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(74, 20, 140, 0.1);
}

.faq-item h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(74, 20, 140, 0.1);
}

.faq-item p {
    color: var(--text-color);
    line-height: 1.6;
    flex-grow: 1;
    margin: 0;
}

@media (max-width: 768px) {
    .faq-section {
        padding: 3rem 1.5rem;
    }
    
    .faq-section h2 {
        font-size: 1.8rem;
    }
    
    .faq-intro {
        font-size: 1.1rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .faq-item {
        padding: 1.5rem;
    }
}

.calculation-guide {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, 
        rgba(74, 20, 140, 0.04) 0%,
        rgba(26, 35, 126, 0.04) 100%
    );
    border-radius: 12px;
    margin: 3rem 0;
    position: relative;
}

.calculation-content {
    max-width: 1000px;
    margin: 0 auto;
}

.calculation-guide h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
}

.calculation-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
}

.calculation-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.step-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(74, 20, 140, 0.1);
    position: relative;
}

.step-item h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(74, 20, 140, 0.1);
}

.step-item p {
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1.05rem;
}

.calculation-note {
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(74, 20, 140, 0.1);
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .calculation-guide {
        padding: 3rem 1.5rem;
    }
    
    .calculation-guide h2 {
        font-size: 1.8rem;
    }
    
    .calculation-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .step-item {
        padding: 1.5rem;
    }
    
    .calculation-note {
        margin-top: 2rem;
        padding: 1.5rem;
        font-size: 1rem;
    }
} 

.calculation-libraries {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(74, 20, 140, 0.1);
}

.calculation-libraries h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.library-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.library-list li {
    background: rgba(74, 20, 140, 0.03);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.library-list strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.3rem;
}

@media (max-width: 768px) {
    .library-list {
        grid-template-columns: 1fr;
    }
} 

/* Feedback Section Styles */
.feedback-section {
    padding: 3rem 1.5rem;
    background: linear-gradient(135deg, 
        rgba(74, 20, 140, 0.05) 0%,
        rgba(26, 35, 126, 0.05) 100%
    );
    margin-top: 2rem;
    border-radius: 12px;
}

.feedback-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.feedback-cta {
    display: flex;
    justify-content: center;
    gap: 2rem;  /* 增加按钮之间的间距 */
    margin: 2rem 0;
    flex-wrap: wrap;  /* 在小屏幕上自动换行 */
}

/* 统一按钮样式 */
.feedback-button,
.coffee-button {
    flex: 0 1 auto;  /* 允许按钮根据内容自动调整宽度 */
    min-width: 200px; /* 设置最小宽度确保按钮不会太窄 */
    margin: 0;  /* 移除之前的margin */
}

/* 移动端适配 */
@media (max-width: 576px) {
    .feedback-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .feedback-button,
    .coffee-button {
        width: 100%;
        max-width: 300px;
    }
}

.feedback-button {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feedback-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 20, 140, 0.2);
}

.feedback-icon {
    margin-right: 0.5rem;
    font-size: 1.2em;
}

.feedback-note {
    color: #666;
    font-size: 0.9em;
    margin-top: 1rem;
} 

/* 修改 Feedback Section 标题样式 */
.feedback-section h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
    position: relative;
}

/* Footer Styles */
.main-footer {
    background: linear-gradient(135deg, 
        var(--primary-color),
        var(--secondary-color)
    );
    color: white;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .main-footer {
        padding: 3rem 1.5rem 1.5rem;
    }

    .footer-nav {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section h3 {
        margin-bottom: 1rem;
    }

    .footer-section li {
        margin-bottom: 0.6rem;
    }
}

html {
    scroll-behavior: smooth; /* 添加平滑滚动效果 */
}

/* 顶部导航栏样式 */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-bottom: 1px solid rgba(74, 20, 140, 0.1);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-logo {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1.5;
    margin-right: 1rem;
    margin-left: 0.25rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    z-index: 999;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

/* 汉堡包按钮样式 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.hamburger-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.hamburger-icon::before {
    top: -6px;
}

.hamburger-icon::after {
    bottom: -6px;
}

/* 移动端样式 */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        display: none;
        /* 修改为纵向排列 */
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    /* 调整链接样式以适应纵向排列 */
    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 0.8rem;
        border-bottom: 1px solid rgba(74, 20, 140, 0.1);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    /* 修改链接悬停效果 */
    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover {
        background: rgba(74, 20, 140, 0.05);
    }

    /* 汉堡包按钮动画 */
    .mobile-menu-btn.active .hamburger-icon {
        background: transparent;
    }

    .mobile-menu-btn.active .hamburger-icon::before {
        transform: rotate(45deg);
        top: 0;
    }

    .mobile-menu-btn.active .hamburger-icon::after {
        transform: rotate(-45deg);
        bottom: 0;
    }

    .header-content {
        padding-top: 1rem;
    }
}

/* Header CTA 样式 */
.header-cta {
    margin-top: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    z-index: 3;
}

.header-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    background: white;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 3;
}

.header-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

.cta-icon {
    font-size: 1.3rem;
}

.cta-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.header-cta-button:hover .cta-arrow {
    transform: translateX(5px);
}

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

/* 移动端适配 */
@media (max-width: 768px) {
    .header-cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Header 布局调整 */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0;
    position: relative;
    z-index: 2;
}

/* 计算结果预览样式 */
.result-preview {
    flex: 0 1 380px;
    perspective: 1000px;
}

.preview-frame {
    position: relative;
    border-radius: 12px;
    background: white;
    padding: 0.75rem;
    box-shadow: 
        0 8px 16px rgba(74, 20, 140, 0.1),
        0 4px 4px rgba(74, 20, 140, 0.1);
    transform: rotate3d(1, 1, 0, -3deg);
    transition: transform 0.3s ease;
}

.preview-frame:hover {
    transform: rotate3d(1, 1, 0, 0deg);
}

.preview-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid rgba(74, 20, 140, 0.1);
}

.preview-label {
    position: absolute;
    bottom: -0.75rem;
    right: 0.75rem;
    background: #4a148c;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 16px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 3px 4px rgba(74, 20, 140, 0.2);
}

.preview-icon {
    font-size: 1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .result-preview {
        width: 90%;
        max-width: 320px;
        margin: 2rem auto 0;
    }

    .preview-frame {
        transform: none;
    }
}

.coffee-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.coffee-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 20, 140, 0.2);
}

/* 文章页面特定样式 */
.post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.post-header {
    margin-bottom: 2rem;
    text-align: center;
}

.post-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.post-date {
    color: var(--text-secondary);
}

/* 文章正文样式 */
.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-section {
    margin: 2.5rem 0;
}

.post-section h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.post-section p {
    margin-bottom: 1.2rem;
}

.post-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.post-section li {
    margin-bottom: 0.5rem;
}

/* 文章封面图样式 */
.post-cover-container {
    position: relative;
    width: 100%;
    margin: -2rem -2rem 2rem -2rem;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--primary-color);
}

.post-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-cover:hover {
    transform: scale(1.02);
}

.post-cover-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.95));
    pointer-events: none;
}

/* 文章内容容器 */
.post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .post-cover-container {
        margin: -1rem -1rem 1rem -1rem;
        aspect-ratio: 3 / 2;
    }

    .post-content {
        padding: 1rem;
    }
}

/* 文章标题样式 */
.post-header {
    text-align: center;
    margin-bottom: 2rem;
}

.post-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.post-date {
    color: var(--text-secondary);
}

/* 文章正文样式 */
.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-section {
    margin: 2.5rem 0;
}

.post-section h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.post-section p {
    margin-bottom: 1.2rem;
}

.post-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.post-section li {
    margin-bottom: 0.5rem;
}

/* 博客文章列表样式 */
.blog-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, 
        rgba(74, 20, 140, 0.03) 0%,
        rgba(26, 35, 126, 0.03) 100%
    );
    margin: 3rem 0;
    border-radius: 12px;
}

.blog-section h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 3rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(74, 20, 140, 0.1);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(74, 20, 140, 0.15);
}

.blog-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.blog-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-card p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-top: 1px solid rgba(74, 20, 140, 0.1);
    padding-top: 1rem;
    margin-top: auto;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    transition: transform 0.3s ease;
}

.blog-card:hover .read-more {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .blog-section {
        padding: 3rem 1.5rem;
    }

    .blog-section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

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

    .blog-card h3 {
        font-size: 1.2rem;
    }
}

/* 相关文章区块样式 */
.related-posts {
    margin: 4rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, 
        rgba(74, 20, 140, 0.03) 0%,
        rgba(26, 35, 126, 0.03) 100%
    );
    border-radius: 12px;
}

.related-posts h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.related-post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(74, 20, 140, 0.1);
    position: relative;
    padding: 2rem;
}

.related-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 4px 0 0 4px;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(74, 20, 140, 0.15);
}

.related-post-card h4 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.4;
    position: relative;
    padding-left: 1.5rem;
}

.related-post-card h4::before {
    content: '♂';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.related-post-card p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* 添加文章元数据样式 */
.related-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(74, 20, 140, 0.1);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.read-more-link {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.read-more-link:hover {
    gap: 0.8rem;
}

.read-more-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.related-post-card:hover .read-more-link::after {
    transform: translateX(5px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .related-posts {
        padding: 1.5rem;
        margin: 3rem 0;
    }

    .related-posts h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .related-post-card {
        padding: 1.5rem;
    }

    .related-post-card h4 {
        font-size: 1.2rem;
    }
}