/* ===== qigua-actions.css ===== */
/* 时间选择、占问类别、铜钱摇卦、音效开关、手动输入、直接排卦 */

/* 时间选择 */
  .time-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center;
  }
  .time-row label {
    font-size: 13px;
    color: var(--c-text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .time-row select,
  .time-row input[type="date"] {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    color: var(--c-primary);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
  }
  .time-row input[type="date"] {
    cursor: pointer;
  }
  /* .time-row 补充：居中对齐 */
  .time-row { justify-content: center; }
  .date-info {
    margin-bottom: 16px;
  }
  .date-info .date-main {
    text-align: center;
    font-size: 14px;
    color: var(--c-primary);
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 1px;
  }
  .date-info .date-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .date-info .date-item {
    background: rgba(255,255,255,0.35);
    border: 1px solid rgba(191,174,128,0.25);
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
  }
  .date-info .date-label {
    font-size: 11px;
    color: var(--c-text-light);
    margin-bottom: 5px;
    letter-spacing: 2px;
  }
  .date-info .date-value {
    font-size: 17px;
    color: var(--c-primary);
    font-weight: 700;
    line-height: 1.3;
  }
  .date-info .date-value .sub {
    display: block;
    font-size: 11px;
    color: var(--c-gold);
    font-weight: 400;
    margin-top: 3px;
  }
  .date-info .date-value.kongwang { color: var(--c-danger-dark); }
  /* 占问类别 */
  .zhanlei-row {
    text-align: center;
    margin-bottom: 16px;
  }
  .zhanlei-row select {
    background-color: var(--c-bg);
    border: 1px solid var(--c-border);
    color: var(--c-primary);
    padding: 6px 30px 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%233a5a52' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 12px;
    cursor: pointer;
  }
  /* 铜钱摇卦 */
  .cast-area { text-align: center; }
  .coins {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 20px 0;
    min-height: 70px;
    align-items: center;
  }
  .coin {
    width: 54px; height: 54px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--c-gold-light), var(--c-gold-deep));
    border: 2px solid var(--c-gold-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--c-coin-text);
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15), inset 0 2px 4px rgba(255,255,255,0.2);
    transition: transform 0.3s;
    position: relative;
  }
  .coin::before {
    content: '';
    position: absolute;
    top: 4px; left: 4px; right: 4px; bottom: 4px;
    border: 1px solid rgba(138,109,32,0.4);
    border-radius: 50%;
  }
  .coin.shaking { animation: coinToss 0.6s ease-in-out infinite; }
  .coin.shaking:nth-child(2) { animation-delay: 0.1s; }
  .coin.shaking:nth-child(3) { animation-delay: 0.2s; }
  @keyframes coinToss {
    0% { transform: translateY(0) rotateY(0deg) scale(1); }
    25% { transform: translateY(-20px) rotateY(180deg) scale(1.1); }
    50% { transform: translateY(-8px) rotateY(360deg) scale(0.95); }
    75% { transform: translateY(-16px) rotateY(540deg) scale(1.05); }
    100% { transform: translateY(0) rotateY(720deg) scale(1); }
  }
  /* 音效开关 */
  .sound-toggle {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    background: none;
    border: none;
    padding: 4px;
  }
  .sound-toggle:hover { opacity: 1; }
  .coin .face { font-size: 16px; }
  .yao-record {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
    padding: 0 30px;
  }
  .yao-row {
    display: grid;
    grid-template-columns: 32px 1fr 70px;
    align-items: center;
    gap: 12px;
  }
  .yao-pos {
    text-align: right;
    font-size: 15px;
    color: var(--c-text-light);
    font-weight: 500;
  }
  .yao-line-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
  }
  .yao-line {
    height: 10px;
    border-radius: 5px;
    background: #5e8578;
  }
  .yao-line.yang { width: 100%; max-width: 130px; }
  .yao-line.yin { width: 45%; max-width: 58px; }
  .yao-line.dong { background: #a88530; box-shadow: 0 0 6px rgba(168,133,48,0.4); }
  .yao-name {
    font-size: 15px;
    color: var(--c-primary);
    font-weight: 500;
  }
  .yao-name.dong { color: var(--c-primary); font-weight: 700; }
  .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
  .btn {
    padding: 10px 28px;
    border: 1px solid var(--c-gold);
    background: transparent;
    color: var(--c-gold);
    font-size: 14px;
    letter-spacing: 2px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
  }
  .btn:hover { background: rgba(154,122,32,0.1); }
  .btn:disabled { opacity: 0.5; cursor: not-allowed; }
  .btn-primary {
    background: var(--c-primary);
    color: var(--c-bg);
    border-color: var(--c-primary);
  }
  .btn-primary:hover { background: var(--c-primary-lighter); color: var(--c-bg); }
  .btn-gold {
    background: var(--c-gold-light);
    color: var(--c-primary);
    border-color: var(--c-gold-light);
    font-weight: 600;
    width: 100%;
    padding: 14px;
    font-size: 15px;
  }
  .btn-gold:hover { background: #c4a84a; color: var(--c-primary); }
  /* 手动输入 */
  .manual-list {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 16px 0;
    flex-wrap: wrap;
  }
  .manual-item {
    text-align: center;
  }
  .manual-item .yao-label {
    font-size: 11px;
    color: var(--c-text-light);
    margin-bottom: 4px;
  }
  .manual-item select {
    background-color: var(--c-bg);
    border: 1px solid var(--c-border);
    color: var(--c-primary);
    padding: 6px 4px;
    border-radius: 6px;
    font-size: 12px;
    font-family: inherit;
    width: 70px;
  }
  /* 直接排卦 */
  .direct-paipan {
    margin: 16px 0;
    text-align: center;
  }
  .direct-gua-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--c-primary);
    margin-bottom: 16px;
    background: var(--c-bg);
    display: inline-block;
    padding: 6px 20px;
    border-radius: 6px;
  }
  .direct-yao-list {
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    background: var(--c-bg);
    padding: 16px 20px;
    border-radius: 8px;
    border: 1px solid var(--c-border);
  }
  .direct-yao-row {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .direct-yao-pos {
    width: 24px;
    font-size: 13px;
    color: var(--c-text-secondary);
    text-align: right;
  }
  .direct-yao-line {
    width: 180px;
    height: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .direct-yao-line .yang {
    width: 100%;
    height: 6px;
    background: var(--c-primary-light);
    border-radius: 1px;
  }
  .direct-yao-line .yin {
    display: flex;
    width: 100%;
    gap: 8px;
  }
  .direct-yao-line .yin span {
    flex: 1;
    height: 6px;
    background: var(--c-primary-light);
    border-radius: 1px;
  }
  .direct-yao-dong {
    width: 32px;
    height: 24px;
    border: 1px solid var(--c-border);
    border-radius: 4px;
    background: var(--c-bg);
    color: var(--c-text-light);
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
  }
  .direct-yao-dong.active {
    background: var(--c-danger);
    color: #fff;
    border-color: var(--c-danger);
  }
  .direct-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
  }
  .direct-actions button {
    padding: 6px 14px;
    border: 1px solid var(--c-border);
    background: var(--c-bg);
    color: var(--c-text-secondary);
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
  }
  .direct-hint {
    font-size: 11px;
    color: var(--c-text-light);
    margin-top: 10px;
  }
