:root {
    --primary: #0d7377;
    --primary-light: #14a3a8;
    --secondary: #f59e0b;
    --bg: #f0f7f7;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #d1e0e0;
    --shadow: 0 4px 20px rgba(0,0,0,0.05);
    --radius: 16px;
    --transition: 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部 */
.header {
    background: linear-gradient(135deg, #0b5e63 0%, #0d7377 50%, #14a3a8 100%);
    color: white;
    padding: 1.5rem 1rem;
    box-shadow: 0 4px 15px rgba(13, 115, 119, 0.3);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo svg {
    flex-shrink: 0;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo h1 span {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.9;
}

/* 主容器 */
.main-container {
    flex: 1;
    max-width: 1100px;
    width: 100%;
    margin: 2rem auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* 卡片 */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    transition: all var(--transition);
    border: 1px solid var(--border);
}

.card-header {
    margin-bottom: 1.5rem;
}

.card-header h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.card-header p {
    color: var(--text-light);
}

/* 表单 */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

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

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #334155;
}

.form-group input,
.form-group select {
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    background: #fafdfd;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 115, 119, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #0d7377, #14a3a8);
    color: white;
    box-shadow: 0 6px 15px rgba(13, 115, 119, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(13, 115, 119, 0.4);
}

.btn-secondary {
    background: #e2e8f0;
    color: #334155;
}

.btn-secondary:hover {
    background: #cbd5e1;
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1.2rem;
}

/* 结果区域 */
.result-section {
    animation: fadeInUp 0.5s ease;
}

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

.score-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    background: #f8fcfc;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(var(--primary) calc(var(--score, 0) * 1%), #e0eeee 0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: white;
    z-index: 0;
}

.score-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    z-index: 1;
}

.score-label {
    font-size: 0.8rem;
    color: var(--text-light);
    z-index: 1;
}

.score-details {
    flex: 1;
    min-width: 200px;
}

.score-details h3 {
    font-size: 1.5rem;
    color: #0f172a;
}

.score-details p {
    color: var(--text-light);
    margin: 0.3rem 0 0.8rem;
}

.score-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.score-breakdown span {
    background: #e6f2f2;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #0b5e63;
}

.result-block {
    margin-bottom: 1.8rem;
}

.result-block h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    border-left: 4px solid var(--secondary);
    padding-left: 0.8rem;
}

.highlight-block {
    background: #fffaf0;
    border-left: 4px solid var(--secondary);
    padding: 1.2rem;
    border-radius: 10px;
}

.time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.time-slots .slot {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.tip-text {
    color: #b45309;
    font-size: 0.9rem;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .two-column {
        grid-template-columns: 1fr;
    }
}

.spot-info h4,
.direction-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: #334155;
}

.spot-info ul {
    list-style: none;
    padding-left: 0;
}

.spot-info ul li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spot-info ul li::before {
    content: '🐟';
}

.direction-compass {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e6f2f2;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    position: relative;
}

.direction-compass::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--secondary);
    border-radius: 50%;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
}

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

.plan-item {
    background: #f8fcfc;
    border-radius: 10px;
    padding: 1.2rem;
    text-align: center;
    transition: all var(--transition);
}

.plan-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.plan-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.plan-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.plan-item p {
    font-size: 0.9rem;
    color: #475569;
}

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

.skill-item {
    background: #f1f5f9;
    border-radius: 10px;
    padding: 1rem;
}

.skill-item h4 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.skill-item p {
    font-size: 0.9rem;
}

.save-status {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary);
}

/* 历史记录 */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: #f8fcfc;
    border-radius: 8px;
    border-left: 4px solid var(--primary-light);
    flex-wrap: wrap;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-item:hover {
    background: #e6f2f2;
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.history-item .info {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.history-item .time {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* 底部 */
.footer {
    background: #0b3b3e;
    color: #cbd5e1;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 2rem;
    font-size: 0.9rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-tip {
    color: #fbbf24;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.footer-icp a {
    color: #a5b4fc;
    text-decoration: none;
    margin: 0 0.3rem;
}

.footer-icp a:hover {
    text-decoration: underline;
}

.footer-copy {
    margin-top: 0.5rem;
    opacity: 0.7;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        text-align: center;
    }

    .card {
        padding: 1.2rem;
    }

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

    .form-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        justify-content: center;
    }

    .score-container {
        flex-direction: column;
        text-align: center;
    }
}