.customer-review-form {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);

  .form-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;

    h3 {
      color: #333;
      font-size: 24px;
      font-weight: 600;
      margin-bottom: 8px;
    }

    .project-info {
      color: #666;
      font-size: 14px;
      margin-bottom: 16px;
    }

    .overall-rating {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      font-size: 16px;

      .rating-label {
        color: #333;
        font-weight: 500;
      }

      .average-score {
        color: #ff6b35;
        font-size: 20px;
        font-weight: 600;
      }

      .score-suffix {
        color: #999;
      }

      .star-display {
        display: flex;
        gap: 2px;

        .star {
          color: #ffc107;
          font-size: 18px;
        }
      }
    }
  }

  .form-content {
    .rating-section {
      margin-bottom: 32px;
      padding: 20px;
      background: #fafafa;
      border-radius: 8px;
      border-left: 4px solid #ff6b35;

      h4 {
        color: #333;
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 8px;
      }

      .section-description {
        color: #666;
        font-size: 14px;
        margin-bottom: 16px;
      }

      .rating-control {
        display: flex;
        gap: 12px;
        align-items: center;

        .star-option {
          display: flex;
          flex-direction: column;
          align-items: center;
          cursor: pointer;
          padding: 8px;
          border-radius: 6px;
          transition: background-color 0.2s;

          &:hover {
            background-color: #fff3e0;
          }

          input[type="radio"] {
            display: none;
          }

          .star {
            font-size: 24px;
            color: #ddd;
            transition: color 0.2s;
            margin-bottom: 4px;

            &.filled {
              color: #ffc107;
            }
          }

          .score-label {
            font-size: 12px;
            color: #666;
          }

          input:checked + .star {
            color: #ffc107;
          }
        }
      }

      .dimensions-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;

        .dimension-item {
          background: #fff;
          padding: 16px;
          border-radius: 8px;
          border: 1px solid #e0e0e0;

          label {
            display: block;
            color: #333;
            font-weight: 500;
            margin-bottom: 4px;
          }

          .dimension-desc {
            color: #666;
            font-size: 12px;
            margin-bottom: 12px;
          }

          .rating-control {
            justify-content: flex-start;

            .star-option {
              padding: 4px;

              .star {
                font-size: 20px;
              }

              .score-label {
                display: none;
              }
            }
          }
        }
      }

      .scenes-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 16px;

        .scene-item {
          background: #fff;
          padding: 16px;
          border-radius: 8px;
          border: 1px solid #e0e0e0;

          .scene-name {
            display: block;
            color: #333;
            font-weight: 500;
            margin-bottom: 12px;
          }

          .scene-comments {
            width: 100%;
            min-height: 60px;
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
            margin-top: 12px;
            resize: vertical;

            &:focus {
              outline: none;
              border-color: #ff6b35;
            }
          }
        }
      }
    }

    .suggestion-section,
    .optimization-section {
      margin-bottom: 24px;
      padding: 20px;
      background: #f8f9fa;
      border-radius: 8px;

      h4 {
        color: #333;
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 8px;
      }

      .section-description {
        color: #666;
        font-size: 14px;
        margin-bottom: 16px;
      }

      .suggestion-input,
      .optimization-input {
        width: 100%;
        min-height: 100px;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 14px;
        resize: vertical;

        &:focus {
          outline: none;
          border-color: #ff6b35;
        }
      }

      .optimization-options {
        .option-grid {
          display: grid;
          grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
          gap: 12px;
          margin-bottom: 16px;

          .option-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            background: #fff;
            border: 1px solid #e0e0e0;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;

            &:hover {
              border-color: #ff6b35;
              background-color: #fff3e0;
            }

            input[type="checkbox"] {
              margin: 0;
            }

            span {
              font-size: 14px;
              color: #333;
            }
          }
        }
      }
    }

    .cooperation-section {
      margin-bottom: 24px;
      padding: 20px;
      background: #e8f5e8;
      border-radius: 8px;

      h4 {
        color: #333;
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 16px;
      }

      .cooperation-options {
        display: flex;
        gap: 20px;

        .cooperation-option {
          display: flex;
          align-items: center;
          gap: 8px;
          cursor: pointer;
          padding: 12px 16px;
          background: #fff;
          border: 2px solid #e0e0e0;
          border-radius: 8px;
          transition: all 0.2s;

          &:hover {
            border-color: #4caf50;
          }

          input[type="radio"] {
            margin: 0;
          }

          .option-label {
            font-size: 14px;
            color: #333;
            font-weight: 500;
          }

          input:checked + .option-label {
            color: #4caf50;
          }
        }
      }
    }

    .complaint-section {
      margin-bottom: 32px;
      padding: 20px;
      background: #fff3e0;
      border-radius: 8px;
      border-left: 4px solid #ff9800;

      .complaint-toggle {
        margin-bottom: 16px;

        .complaint-switch {
          display: flex;
          align-items: center;
          gap: 8px;
          cursor: pointer;

          input[type="checkbox"] {
            margin: 0;
          }

          .switch-label {
            font-size: 16px;
            color: #ff9800;
            font-weight: 500;
          }
        }
      }

      .complaint-content {
        h5 {
          color: #333;
          font-size: 16px;
          font-weight: 600;
          margin-bottom: 8px;
        }

        .complaint-notice {
          color: #ff9800;
          font-size: 14px;
          margin-bottom: 12px;
          padding: 8px 12px;
          background: #fff;
          border-radius: 4px;
          border-left: 3px solid #ff9800;
        }

        .complaint-input {
          width: 100%;
          min-height: 100px;
          padding: 12px;
          border: 1px solid #ddd;
          border-radius: 6px;
          font-size: 14px;
          resize: vertical;

          &:focus {
            outline: none;
            border-color: #ff9800;
          }
        }
      }
    }

    .form-actions {
      display: flex;
      gap: 16px;
      justify-content: center;
      padding-top: 24px;
      border-top: 1px solid #e0e0e0;

      .submit-btn {
        padding: 12px 32px;
        border: none;
        border-radius: 6px;
        font-size: 16px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;

        &.primary {
          background: #ff6b35;
          color: #fff;

          &:hover {
            background: #e55a2b;
            transform: translateY(-1px);
          }
        }

        &.secondary {
          background: #f5f5f5;
          color: #666;
          border: 1px solid #ddd;

          &:hover {
            background: #e0e0e0;
          }
        }
      }
    }
  }
}

// 响应式设计
@media (max-width: 768px) {
  .customer-review-form {
    padding: 16px;

    .form-content {
      .rating-section {
        .dimensions-grid {
          grid-template-columns: 1fr;
        }

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

      .optimization-section {
        .optimization-options {
          .option-grid {
            grid-template-columns: 1fr;
          }
        }
      }

      .cooperation-section {
        .cooperation-options {
          flex-direction: column;
        }
      }

      .form-actions {
        flex-direction: column;

        .submit-btn {
          width: 100%;
        }
      }
    }
  }
}