* {
  margin: 0;
  padding: 0;
}

body {
  background: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 25px auto;
  color: #333;
}

.container * {
  box-sizing: border-box;
}

header {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
}

header h1 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1;
}

header p {
  font-size: 16px;
  color: #7f8c8d;
  max-width: 95%;
  margin: 0 auto;
}

.calculator-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.input-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.input-item {
    flex: 1;
    min-width: 300px;
}

.input-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.input-item input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-item input:focus {
    border-color: #667eea;
    outline: none;
}

.button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.result-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    display: none;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.result-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.result-value {
    font-size: 2em;
    font-weight: bold;
    color: #667eea;
    margin: 10px 0;
}

.result-label {
    color: #666;
    font-size: 0.9em;
}

.info-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-section h2 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.6em;
    line-height: 1;
}

.info-content {
    line-height: 1.8;
}

.info-content p {
    margin-bottom: 15px;
}

.info-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.info-content li {
    margin-bottom: 8px;
}

.footer {
    background: #2c3e50;
    color: white;
    padding: 30px 0;
    text-align: center;
}

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

.notice {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.notice.show {
    opacity: 1;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.feature-item {
    text-align: center;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
}

.feature-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

/* 提取的内联样式类 */
.quick-select-container {
    margin-top: 8px;
    font-size: 0.9em;
    color: #666;
}

.quick-select-btn {
    cursor: pointer;
    margin-right: 15px;
}

.quick-select-btn:hover {
    color: #667eea;
}

.cycle-range-info {
    margin-top: 4px;
    font-size: 0.8em;
    color: #666;
}

.cycle-range-note {
    color: #888;
}

.explanation-box {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    border: 1px solid #d1e7ff;
    padding: 15px;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.1);
}

.explanation-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.explanation-icon {
    font-size: 1.2em;
    margin-right: 8px;
}

.explanation-title {
    font-weight: bold;
    color: #1976d2;
    font-size: 1.1em;
}

.explanation-content {
    font-size: 0.95em;
    color: #444;
    line-height: 1.6;
}

.explanation-item {
    margin-bottom: 8px;
}

.explanation-label {
    background: #1976d2;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    margin-right: 8px;
}

.explanation-label-secondary {
    background: #2196f3;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    margin-right: 8px;
}

.explanation-example {
    background: #f8fdff;
    padding: 10px;
    border-radius: 6px;
    border-left: 3px solid #64b5f6;
    margin-top: 10px;
}

.example-title {
    color: #1976d2;
    font-weight: bold;
}

.example-content {
    color: #555;
}

.progress-container {
    background: #e9ecef;
    height: 20px;
    border-radius: 10px;
    margin-top: 15px;
}

.progress-bar {
    background: linear-gradient(135deg, #667eea, #764ba2);
    height: 100%;
    border-radius: 10px;
    width: 0%;
    transition: width 0.5s;
}

.progress-text {
    text-align: center;
    color: #666;
}

.footer-copyright {
    margin-top: 15px;
    opacity: 0.8;
    zoom: 0.9;
}